This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

How to Change Image Size with Vision Development Module

Updated Mar 20, 2025

Environment

Software

  • Vision Assistant
  • Vision Development Module
  • LabVIEW

I am using Vision Development Module. I want to change the size (pixel) of an image file. For an example, I want to change an image's size from 200 x 100 pixels to 400 x 200 pixels. How can I do this?

The image's size can be resized by following these following methods:

 

Vision Assistant

  1. In the Function palette, click Vision & Motion>>Vision Express>>Vision Assistant to access the function.
  2. Double-click the Vision Assistant on the block diagram to open up the NI Vision Assistant windows.
  3. Once the windows had opened, under the Processing Function, click Image>>Geometry>> Resampling.
  4. Insert the X Resolution and Y Resolution that you want, to change the image's pixel size.

 

Vision APIs

  1. To change the pixel size of an image, you can use the IMAQ Resample.vi which can be access by clicking Vision & Motion>>Vision Utilities>>Image Manipulation in the Function palette.
  2. The X Resolution and Y Resolution inputs of the IMAQ Resample enables user to change the pixel size of an image.
  3. You can use the IMAQ Read File 2.vi and IMAQ Write File 2.vi (Vision & Motion>>Vision Utilities>>Files) in order to open and save the image file.