Image Manipulation Functions          

This palette contains vis for manipulating image pixels like.copy image, extract color plane, compose color plane, get/set pixel value, get/set ROI and COI, image to and from array, fill image, flip image, also vis for getting image information, etc.

Note: An vi icon with yellow background means they work on color images. With gray background means they only work on single channel image. With half yellow and half gray background means they work on both color and single channel image. Others vi icon background are for either examples or high level vis. For controls descriptions, you need to go to the vi in LabVIEW, use help (ctrl+H) and move mouse over the controls to see them.


IVision_RetrieveImageInfo.vi

Outputs specified one or all of the created image informations and image names.

Connector Pane

IVision_RetrieveImageInfo.vi


IVision_ImageToArray.vi

If ROI is set, only outputs data within the ROI. And only work for image which has depth 8U for each channel(8U gray or 24bit color). For color image, output array data is interleaved. The order is B,G,R,B,G,R...

Connector Pane

IVision_ImageToArray.vi


IVision_ArrayToImage.vi

Low level vi. Image.width has to be the multiple of 4.

Use for 8U gray or RGB image(24bit).

Connector Pane

IVision_ArrayToImage.vi


IVision_CopyImage.vi

Copy the source image data to destination image. Both images must have the same type and the same size.

ROI and COI fields are used. Mask must be a 8-bit single channel(gray) image. Empty name for mask means mask is not used. Mask specifies elements of destination image to be changed.

Connector Pane

IVision_CopyImage.vi


IVision_Extract Color Plane.vi

Extract a color image. ROI is used if it's set. After this operation, the input color image become a gray image as output.

Connector Pane

IVision_Extract Color Plane.vi


IVision_Compose Color Plane.vi

The source and destination images must have the same image size or ROI size if ROI is set. Which means you can just replace a part of color image data at the specified channel.

Connector Pane

IVision_Compose Color Plane.vi


IVision_FillImage.vi

Copies Fill Value to every selected element (by the mask) of the input image. Can be use for multi-channel image.

ROI will be used if it's set, but COI must not be set.

Mask image and source image must have the same size. Mask image must be one channel image.

Connector Pane

IVision_FillImage.vi


IVision_FlipImage.vi

Flip the source image horizontal, vertical or central and saved in destination image. If destination image name is empty, the source image will be used.

Connector Pane

IVision_FlipImage.vi


IVision_GetImageCOI.vi

This vi gets the COI (channel of the interest) of the image.

Connector Pane

IVision_GetImageCOI.vi


IVision_SetImageCOI.vi

The function sets the channel of interest to a given value. Value 0 means that all channels are selected, 1 means that the first channel is selected etc. Note that most of OpenCV functions do not support COI, so to process separate image channel one may copy (through IVision_CopyImage.vi or IVision_Extract Color Plane.vi) the channel to separate image, process it and copy the result back (via IVision_CopyImage.vi or IVision_Compose Color Plane.vi) if need.

Connector Pane

IVision_SetImageCOI.vi


 

IVision_GetImageROI.vi

This vi gets the ROI (region of the interest) of the image.

Connector Pane

IVision_GetImageROI.vi


IVision_SetImageROI.vi

This vi sets the ROI (region of interest) of an image. Once it's set, all processing will only be done on the ROI.

Connector Pane

IVision_SetImageROI.vi


IVision_GetPixelValue_Color.vi

Get pixel value at specified XY coordinate. Work on multi channel image. For gray image, "IVision_GetPixelValue_Gray.vi" is a little faster than this one.

Connector Pane

IVision_GetPixelValue_Color.vi


IVision_SetPixelValue_Color.vi

Sets the pixel value at the specified XY coordinate. Work on multi channel image. For gray image, "IVision_SetPixelValue_Gray.vi" is a little faster than this one.

Connector Pane

IVision_SetPixelValue_Color.vi


IVision_GetPixelValue_Gray.vi

Get the pixel value at the specified XY coordinate.

Connector Pane

IVision_GetPixelValue_Gray.vi


IVision_SetPixelValue_Gray.vi

Sets the pixel value at the specified XY coordinate. Works only on single channel image.

Connector Pane

IVision_SetPixelValue_Gray.vi


IVision_Image Manager.vi

Manager image opening, closing, adding... It's a high level vi.

Connector Pane

IVision_Image Manager.vi


IVision_CopyImage_LowLevel.vi

ROI and COI fields are used. Both source and destination images must have the same type, the same number of dimensions and the same size. Mask must be a 8-bit single channel image. Empty name for mask means mask is not used. This is a low level vi.

Connector Pane

IVision_CopyImage_LowLevel.vi


IVision_GetImageInfo.vi

Get image information. Low level vi.

Connector Pane

IVision_GetImageInfo.vi


 

1