04-01-2019 07:53 AM
Hello All,
I have an Image control and I allow the user to draw several ROIs. As and when the user draws ROIs, I will save them and list them in a list box. Now if the user clicks on an ROI, I will display it in the Image control. The problem here is, when the user zooms the image, only a particular portion of the image will be visible on the image control and not the entire image. Now if the user changes the ROI in the list box, the ROI displayed is not seen on screen as the image is zoomed and it is not part of the zoomed image section. I want to check this and automatically zoom out when this scenario comes. How to achieve this?
Thanks in advance.
Solved! Go to Solution.
04-16-2019 04:32 AM
I finally solved this by comparing image co-ordinates and ROI co-ordinates. I have attached a VI which does the functionality. Draw any ROI on the image using the Rectangle tool. Zoom into another part of the image where ROI is not involved and click on OK. The image automatically zooms out. I also have a LabVIEW Navigation bar kind of a thing, just to show the active image section that is displayed.