Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the aspect ratio of an image display

I am snapping a sequence of images and using imgPlot to diplay the images. However, due to my camera specifications [it's a Pulnix 9701 with Pixel Size 11.6μm (H) X 13.3μm (V)], the image I get displayed is elongated in the horizontal direction, i.e. if I snap an image of a square, I get a rectangle on my computer display.
How can I change the aspect ratio of the display on my computer? The only parameters I have seen so far just control what portion of the image is acquired or diplayed, but none actually changes the aspect ratio.

Thanks in advance for any help.
0 Kudos
Message 1 of 2
(2,932 Views)
If you are using an analog camera, you can set the aspect ratio in MAX. This will correct for non-square pixels.

If you are using a digital camera, I don't think there is a way to fix it during acquisition. You could resample the image to correct the ratios, but that would be a slow, time consuming process.

One other possibility is that your computer monitor is in a mode which is not a standard 4x3 configuration. For example 640x480 and 800x600 are 4:3 ratios. 1200x1024 is not, which tends to distort your displayed images.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 2
(2,932 Views)