Node image tools (Image processing on instructions from data (node) file)
Implemented: Read, Write, Blur, Sharpen,Color Correct, Size, Rotate, Composite
Used: Python 2.7 , PIL, the Python Image Library: http://www.pythonware.com/products/pil/ ,
Numpy/Scipy: http://www.numpy.org/
Node refers to the node processor to data ("link" : "read_01"). Nodes are sorted by id.
Node list
Read:
"nodeN":{
"name" : "read_01",
"type" : "read",
"file" : "read_file_name.jpg",
"id": 1
}
Write:
"nodeN":{
"name" : "write_01",
"type" : "write",
"link" : "read_01",
"file" : "write_file_name,
"id": 2
}
View:
"nodeN":{
"name" : "view_01",
"type" : "view",
"link" : "read_01",
"id": 3
}
Gradient:
"nodeN":{
"name" : "gradient_01",
"type" : "gradient",
"width" : 1280,
"height" :720,
"id": 3
}
Size:
"nodeN":{
"name" : "size_01",
"type" : "size",
"link" : "read_01"",
"size" : 1.2,
"id": 4
}
Blur/Sharpen:
"nodeN":{
"name" : "blur_01",
"type" : "blur",
"link" : "read_01",
"size" : 10,
"id": 2
}
Color Correct:
"nodeN":{
"name" : "color_correct_01",
"type" : "cc",
"link" : "read_01",
"bright" : 1.2,
"contrast":2,
"id": 2
}
Invert:
"nodeN":{
"name" : "invert_01",
"type" : "invert",
"link" : "read_01",
"id": 2
}
Rotate:
nodeN":{
"name" : "rotate_01",
"type" : "rotate",
"link" : "read_01",
"angle" : 90,
"id": 3
}
Composite: (job: plus, minus,multiply,mask,over)
nodeN":{
"name" : "composite_01",
"type" : "composite",
"link_a" : "read_01",
"link_b" : "read_02",
"mask" : "mask_01",
"job" : "plus",
"id": 3
}
Sample node files (test.json):
{
"node1":{
"name" : "read_01",
"type" : "read",
"file" : "in.jpg",
"id": 1
},
"node2":{
"name" : "blur_01",
"type" : "blur",
"link" : "read_01",
"size" : 10,
"id": 2
},
"node3":{
"name" : "write_01",
"type" : "write",
"link" : "blur_01",
"file" : "test.jpg",
"id": 3
}
}