Image width.
Image height.
Image options.
ReadonlyalphaWhether the image has an alpha channel or not.
ReadonlybitThe number of bits per value in each channel.
ReadonlychannelsThe total number of channels in the image, including the alpha channel.
ReadonlycolorThe color model of the image.
ReadonlycomponentsThe number of color channels in the image, excluding the alpha channel. A GREY image has 1 component. An RGB image has 3 components.
ReadonlyheightThe number of rows of the image.
ReadonlymaxThe maximum value that a pixel channel can have.
Optional ReadonlymetaReadonlyoriginOrigin of the image relative to a the parent image.
ReadonlysizeThe total number of pixels in the image (width × height).
ReadonlywidthThe number of columns of the image.
Bottom hat of an image.
Optionaloptions: BottomHatOptionsBottom hat options.
The bottom-hatted image.
Apply Canny edge detection to an image.
Optionaloptions: CannyEdgeOptionsCanny edge detection options.
The processed image.
Modify all the values of the image using the given callback.
Callback that modifies a given value.
Close an image.
Optionaloptions: CloseOptionsClose options.
The closed image.
Optionaloptions: ConvertColorOptionsCorrect the colors in an image using the reference colors.
Colors from the image, which will be compared to the reference.
Reference colors.
Image with the colors corrected.
Crop the input image to a desired size.
Optionaloptions: CropOptionsCrop options.
The new cropped image.
Crops the image based on the alpha channel This removes lines and columns where the alpha channel is lower than a threshold value.
Crop alpha options.
The cropped image.
Crop an oriented rectangle from the image. If the rectangle's length or width are not an integers, its dimension is expanded in both directions such as the length and width are integers.
The points of the rectangle. Points must be circling around the rectangle (clockwise or anti-clockwise)
Optionaloptions: CropRectangleOptionsCrop options, see CropRectangleOptions
The cropped image. The orientation of the image is the one closest to the rectangle passed as input.
Apply a derivative filter to an image.
Optionaloptions: DerivativeFilterOptionsDerivative filter options.
The processed image.
Dilate an image.
Optionaloptions: DilateOptionsDilate options.
The dilated image.
Optionaloptions: ConvolutionOptionsDivide image pixels by a constant.
Value which pixels will be divided to.
Divide options.
Divided image.
Draw a circle defined by center and radius onto an image.
Circle center.
Circle radius.
Draw circle options.
The image with the circle drawing.
Draw a line defined by two points onto an image.
Line starting point.
Line ending point.
Draw Line options.
The mask with the line drawing.
Draw a marker on the image.
Marker center point.
Draw marker options.
The image with the marker drawing.
Draw markers on the image.
Markers center points.
Draw marker options.
The image with the markers drawing.
Draw a set of points on an image.
Array of points.
Draw points on Image options.
New mask.
Draw a polygon defined by an array of points onto an image.
Polygon vertices.
Draw Line options.
The image with the polygon drawing.
Draw a polyline defined by an array of points on an image.
Polyline array of points.
Draw polyline options.
The image with the polyline drawing.
Draw a rectangle defined by position of the top-left corner, width and height.
Draw rectangle options.
The image with the rectangle drawing.
Erode an image.
Optionaloptions: ErodeOptionsErode options.
The eroded image.
Extract the pixels of an image, as specified in a mask.
The mask defining which pixels to keep.
Optionaloptions: ExtractOptionsExtract options.
The extracted image.
Fill the image with a value or a color.
Value or color.
The image instance.
Fill the alpha channel with the specified value.
New channel value.
The image instance.
Fill one channel with a value.
The channel to fill.
The new value.
The image instance.
Apply a gaussian filter to an image.
Gaussian blur options.
The blurred image.
Get one channel of the image as an array.
The channel to fill.
Array with the channel values.
Get the coordinates of a point in the image. The reference is the top-left corner.
The point for which you want the coordinates.
Whether the coordinates should be rounded. This is useful when you want the center of the image.
Coordinates of the point in the format [column, row].
Get all the channels of a pixel.
Column index.
Row index.
Channels of the pixel.
Get all the channels of a pixel using its index.
Index of the pixel.
Channels of the pixel.
Return the raw image data.
The raw data.
Get the value of a specific pixel channel. Select pixel using coordinates.
Column index.
Row index.
Channel index.
Value of the specified channel of one pixel.
Get the value of a specific pixel channel. Select pixel using index.
Index of the pixel.
Channel index.
Value of the channel of the pixel.
Get the value of a specific pixel channel. Select pixel using a point.
Coordinates of the desired pixel.
Channel index.
Value of the channel of the pixel.
Apply a gradient filter to an image.
Gradient filter options.
The gradient image.
Optionaloptions: GreyOptionsOptionaloptions: HistogramOptionsCalculate a new image that is the hypotenuse between the current image and the other.
Other image.
Optionaloptions: HypotenuseOptionsHypotenuse options.
Hypotenuse of the two images.
Increase the contrast of an image by spanning each channel on the range [0, image.maxValue].
Increase contrast options.
The enhanced image.
Invert the colors of the image.
Optionaloptions: InvertOptionsInversion options.
The inverted image.
Level the image using the optional input and output value. This function allows you to enhance the image's contrast.
Optionaloptions: LevelOptionsLevel options.
The levelled image.
Compute the mean pixel of an image.
Optionaloptions: MeanOptionsMean options.
The mean pixel.
Compute the median pixel of an image.
Optionaloptions: MedianOptionsMedian options.
The median pixel.
Apply a median filter to the image.
Options to apply for median filter.
Image after median filter.
Find the min and max values of each channel of the image.
An object with arrays of the min and max values.
Apply morphological gradient to an image.
Optionaloptions: MorphologicalGradientOptionsMorphological gradient options.
The processed image.
Multiply image pixels by a constant.
Value which pixels will be multiplied to.
Multiply options.
Multiplied image.
Paint a mask onto an image and the given position and with the given color.
Mask to paint on the image.
Optionaloptions: PaintMaskOnImageOptionsPaint mask options.
The painted image.
Compute direct convolution of an image and return an array with the raw values.
Kernel used for the convolution.
Optionaloptions: ConvolutionOptionsConvolution options.
Array with the raw convoluted values.
Optionaloptions: ConvolutionOptionsSet the value of a specific pixel channel. Select pixel using coordinates. If the value is out of range it is set to the closest extremety.
Column index.
Row index.
Channel index.
Value to set.
Set the value of a specific pixel channel. Select pixel using index. If the value is out of range it is set to the closest extremety.
Index of the pixel.
Channel index.
Value to set.
Set all the channels of a pixel.
Column index.
Row index.
New color of the pixel to set.
Set all the channels of a pixel using its index.
Index of the pixel.
New channel values of the pixel to set.
Set the value of a specific pixel channel. Select pixel using coordinates.
Column index.
Row index.
Channel index.
Value to set.
Set the value of a specific pixel channel. Select pixel using index.
Index of the pixel.
Channel index.
Value to set.
Set the value of a specific pixel channel. Select pixel using a point.
Coordinates of the pixel.
Channel index.
Value to set.
Set all the channels of a pixel if the coordinates are inside the image.
Column index.
Row index.
New color of the pixel to set.
Subtract other from an image.
Image to subtract.
Inversion options.
The subtracted image.
Top hat of an image.
Optionaloptions: TopHatOptionsTop hat options.
The top-hatted image.
Optionaloptions: TransformOptionsOptionaloptions: TransformRotateOptionsCompute the variance of each channel of an image.
Optionaloptions: VarianceOptionsVariance options.
The variance of the channels of the image.
StaticcreateCreate a new Image based on the properties of an existing one.
Reference image.
Image options.
New image.
Construct a new Image knowing its dimensions.