Draw on Image¶
- 
class node_draw.ImageDraw[source]¶
- Annotates an image with drawings based on tabular data. - Algorithms: - circle - Draws (non-filled) circles from given X,Y points with givenradii - x:
- Column name containing X-coordinates 
- y:
- Column name containing Y-coordinates 
- radius:
- Column name containing radii 
- red color:
- A number (0-1) or column name containing colors for first imagechannel. 
- green color:
- A number (0-1) or column name containing colors for second imagechannel, ignored for non RGB images 
- blue color:
- A number (0-1) or column name containing colors for third imagechannel, ignored for non RGB images 
- alpha value:
- A number (0-1) or column name containing alpha values used forblending the drawings over the image. - 1.0 is opaque, 0.0 transparent 
 
- filled circle - Draws filled circles from given X,Y points with given radii - x:
- Column name containing X-coordinates 
- y:
- Column name containing Y-coordinates 
- radius:
- Column name containing radii 
- red color:
- A number (0-1) or column name containing colors for first imagechannel. 
- green color:
- A number (0-1) or column name containing colors for second imagechannel, ignored for non RGB images 
- blue color:
- A number (0-1) or column name containing colors for third imagechannel, ignored for non RGB images 
- alpha value:
- A number (0-1) or column name containing alpha values used forblending the drawings over the image. - 1.0 is opaque, 0.0 transparent 
 
- lines - Draws lines from coordinates (X,Y) to coordinates (X2,Y2) - x:
- Column name containing X-coordinates 
- y:
- Column name containing Y-coordinates 
- x2:
- Column name containing X2-coordinates 
- y2:
- Column name containing Y2-coordinates 
- red color:
- A number (0-1) or column name containing colors for first imagechannel. 
- green color:
- A number (0-1) or column name containing colors for second imagechannel, ignored for non RGB images 
- blue color:
- A number (0-1) or column name containing colors for third imagechannel, ignored for non RGB images 
- alpha value:
- A number (0-1) or column name containing alpha values used forblending the drawings over the image. - 1.0 is opaque, 0.0 transparent 
 
- symbols - Draws a symbol defined by number of vertices. Negative valuesare drawn as convex objects. Eg, triangles have N=3,squares N=4, hexagons N=6, stars N=-6 - x:
- Column name containing X-coordinates 
- y:
- Column name containing Y-coordinates 
- radius:
- Column name containing radii 
- red color:
- A number (0-1) or column name containing colors for first imagechannel. 
- green color:
- A number (0-1) or column name containing colors for second imagechannel, ignored for non RGB images 
- blue color:
- A number (0-1) or column name containing colors for third imagechannel, ignored for non RGB images 
- alpha value:
- A number (0-1) or column name containing alpha values used forblending the drawings over the image. - 1.0 is opaque, 0.0 transparent 
- N:
- Column name containing number of vertices 
 
 - Inputs: - image : image - Image to draw on - table : table - Table used for drawing - Outputs: - output : image - Resulting image