02-12-2009 03:28 AM
Hello
I am having an image displayed in the front panel. Now i want to select a portion of the image such that when i select that particular portion in the front panel , the result is displayed. Is this possible?
AT present what i have done is, i take a subset from the image 2D array. But here i always have to enter the index and length by trial and error to locate the exact position. Is there a possibility to automatically detect the index and length when i select that portion in the original image???
Thankyou
02-12-2009 03:49 AM
Hi Nghtcrwlr,
you can use an Event Structure to read the mouse down/up/move position. If you store it in a shift register, you can use it to cut the part of the image you are interested in.
Mike
02-12-2009 03:58 AM
Hello Mike
How can we read the mouse down/up/move position in an event structure? I didnt fully understand.Could you please show an example.?
thnx
02-12-2009 04:14 AM
Hi Nghtcrwlr,
see the attached example please.
Mike
02-12-2009 05:54 AM - edited 02-12-2009 05:54 AM
Hello Mike
Thankyou very much for you example. This was what i meant. I have modified ur VI to what i need. But still am having a difference. When i click a particular point in the original image, iam getting the result image at a distance away from where i click on original image. I tried to subtract the original pic size from both but still not wrkin. any idea?
Thnx
02-12-2009 06:23 AM
Hi Nghtcrwlr,
see the attached example. You can select the part you need with the image. Mouse down -> move -> mouse up.
Mike
02-16-2009 08:14 AM
Hello Mike
Thanx... it worked. But i have one more question. How can i link the selected image to be used for another operation in the same VI. I tried to wire the output of the array subset out of the loop. But value is not coming out.
02-16-2009 03:57 PM
Hello Mike
I made it myself. now its wrking...
anywyzz thnxx