Images

This section describes operators belonging to the Images category.

This page discusses:

Apply Mask

Creates an image by setting the alpha values of each pixel of the input image by using the luminance of the mask image.

Inputs

Name Type Description
Image Bitmap Input image
Image Mask Bitmap Mask image

Outputs

Name Type Description
Result Image Bitmap Resulting image

Close (Morpho)

Applies a dilatation followed by an erosion.

Inputs

Name Type Description
Image Bitmap Input image
Radius Integer Number of pixels over which we propagate

Outputs

Name Type Description
Result Image Bitmap Resulting image

Color Pixels

Colorizes given pixels of an image.

Inputs

Name Type Description
Image Bitmap Input image
x Integer X coordinates of the pixels to colorize.
y Integer Y coordinates of the pixels to colorize.
Color Color Color to apply. can be one color for all pixels or one color per pixel.

Outputs

Name Type Description
Result Image Bitmap Resulting image

Dilate

Morphological dilatation : propagation of the white pixels to their neighbours.

Inputs

Name Type Description
Image Bitmap Input image
Radius Integer Number of pixels over which we propagate

Outputs

Name Type Description
Result Image Bitmap Resulting image

Erode

Morphological erosion : propagation of the black pixels to their neighbours.

Inputs

Name Type Description
Image Bitmap Input image
Radius Integer Number of pixels over which we propagate

Outputs

Name Type Description
Result Image Bitmap Resulting image

Find Contours

Returns lists of contours pixels positions. all contours are closed. isolated pixels are ignored.

Inputs

Name Type Description
Image Bitmap Input image
Threshold Integer Threshold for the binary conversion
Sampling Integer By increasing this value you will reduce the number of returned positions

Outputs

Name Type Description
Pixel Contours List Lists of contours pixels positions

Gaussian Blur

Creates a blured image based on a gaussian kernel.

Inputs

Name Type Description
Image Bitmap Input image
Radius Integer Size of the bluring

Outputs

Name Type Description
Result Image Bitmap Blured image

Get Dimensions

Gives the dimensions of an image.

Inputs

Name Type Description
Image Bitmap

Outputs

Name Type Description
Width Integer
Height Integer

Get Pixel

Gives the rgba values of the input image pixel at position x, y.

Inputs

Name Type Description
Image Bitmap Input image
X Integer Column of the pixel to read
Y Integer Row of the pixel to read

Outputs

Name Type Description
Red Integer Pixel red value (between 0 and 255)
Green Integer Pixel green value (between 0 and 255)
Blue Integer Pixel blue value (between 0 and 255)
Alpha Integer Pixel alpha value (between 0 and 255)

Get Pixels

Gives the rgba values of all the pixels of the input image.

Inputs

Name Type Description
Image Bitmap Input image

Outputs

Name Type Description
Red List Table of pixels red values (between 0 and 255)
Green List Table of pixels green values (between 0 and 255)
Blue List Table of pixels blue values (between 0 and 255)
Alpha List Table of pixels alpha values (between 0 and 255)

Grey

Creates a grey level image.

Inputs

Name Type Description
Image Bitmap Color input image

Outputs

Name Type Description
Result Image Bitmap Grey level output image

Negative

Creates the negative of the input image.

Inputs

Name Type Description
Image Bitmap Input image

Outputs

Name Type Description
Result Image Bitmap

Open (Morpho)

Applies an erosion followed by a dilatation.

Inputs

Name Type Description
Image Bitmap Input image
Radius Integer Number of pixels over which we propagate

Outputs

Name Type Description
Result Image Bitmap Resulting image

Resize Image

Resizes the input image. if factor is false, width and height inputs drives the resulting image's dimensions in pixels. if factor is true, resulting image's dimensions are original dimensions multiplied by width and height inputs values. if one of width or height is 0 the original ratio is preserved.

Inputs

Name Type Description
Image Bitmap Input image.
Width Integer Expected width for resize. 0 to keep ratio while controlling the height.
Height Integer Expected height for resize. 0 to keep ratio while controlling the width.
Factor Boolean If true, use width and height input to multiply the original dimensions.

Outputs

Name Type Description
Result Image Bitmap Resized image

Sobel

Creates a contour image based on a sobel filter.

Inputs

Name Type Description
Image Bitmap Input image
Radius Integer

Outputs

Name Type Description
Result Image Bitmap Resulting image

Threshold Image

Creates a black and white image. every pixel which luminence is above the given threshold will be white. others will be black.

Inputs

Name Type Description
Image Bitmap Input image
Threshold Integer Black and white threshold

Outputs

Name Type Description
Result Image Bitmap Output black and white (binary) image