Generate Image¶
Generates an image or structuring element of a given size
Documentation¶
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
- k
Value for all pixels in all channels
- gaussian
Generates an elliptical Gaussian from the given variance matrix.
- width
Width of rectangle
- height
Height of rectangle
- sigma-x
Variation along first axis before rotation
- sigma-y
Variation along first axis before rotation
- rotation
Rotation given in radians
- scale
Multiplier for output
- x
Center point along x axis
- y
Center point along y axis
- p
Super-gaussian exponent (default 1)
- 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
Definition¶
Output ports¶
- output image
Resulting image
Configuration¶
- Algorithm (algorithm)
(no description)
- channels (channels)
(no description)
- height (height)
(no description)
- k (k)
(no description)
- other size (other size)
(no description)
- p (p)
(no description)
- rotation (rotation)
(no description)
- scale (scale)
(no description)
- sigma-x (sigma-x)
(no description)
- sigma-y (sigma-y)
(no description)
- size (size)
(no description)
- width (width)
(no description)
- x (x)
(no description)
- y (y)
(no description)
Implementation¶
- class node_generateimage.ImageGenerate[source]