Generate Image¶
-
class
node_generateimage.
ImageGenerate
[source]¶ Generates an image or structuring element of a given size
Algorithms: diamond
Generates a diamond-shaped binary structuring element.
A pixel is part of the neighborhood if the city block/Manhattan distance between it and the center of theneighborhood is no greater than radius.
- size:
Radius of the disk
disk
Generates an circular binary structuring element
- size:
Radius of the disk
empty
Generates an empty image of a given size
- width:
Width of generated image
- height:
Height of generated image
- channels:
Number of channels in generated image
octagon
Generates an octagon-shaped binary structuring element.
- size:
Size of horizontal/vertial parts of the octagon
- other size:
Size of diagonal parts of the octagon
rectangle
Generates a rectangle-shaped binary structuring element.
- width:
Width of rectangle
- height:
Height of rectangle
square
Generates a square-shaped binary structuring element.
- size:
Size of the square
star
Generates a star-shaped binary structuring element.
The star has 8 vertices and is an overlap of a square of size 2n + 1 with its 45 degree rotated version. The slanted sides are 45 or 135 degrees to the horizontal axis.
- size:
Size “N” of the square
Inputs: None
Outputs: output : image
Resulting image