Generate Image

../../../../_images/image_generate.svg

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

    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

Inputs:

None

Outputs:

output : image

Resulting image

Ports:

Outputs:

output:

image

Resulting image

Configuration:

algorithm
(no description)
width
(no description)
height
(no description)
sigma-x
(no description)
sigma-y
(no description)
rotation
(no description)
scale
(no description)
x
(no description)
y
(no description)
k
(no description)
p
(no description)
size
(no description)
other size
(no description)
channels
(no description)
class node_generateimage.ImageGenerate[source]