LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you change the location of a small image within an IMAQ image display?

I have an image that exactly fills the display. But then I want to extract a portion of the image and display that small piece, but have it be in the same location as it was before, not centered in the display (essentially I want to crop the image but leave it in the same location). I tried the 'Image Center Position' property node for the image display, but is resets itself to the center of the display. Can anyone offer any suggestions?

Thanks,
Marty
0 Kudos
Message 1 of 2
(2,709 Views)

@Marty_M wrote:
I have an image that exactly fills the display. But then I want to extract a portion of the image and display that small piece, but have it be in the same location as it was before, not centered in the display (essentially I want to crop the image but leave it in the same location). I tried the 'Image Center Position' property node for the image display, but is resets itself to the center of the display. Can anyone offer any suggestions?


You misused the Image Center position property : it works only on images larger than the display area. Have a look at the simplified version of your sample vi.
One way to achieve your objective will be to create a black (or white) background image, with the same size as the original image and to paste the small piece over this BG.

Happy New Wires

CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 2
(2,701 Views)