From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-09-2013 05:38 PM
Hi
I want to use ROI in my code.
after selected image with rectanguler, my image in second Intensity Graph (Image 2) was zoomed but I like to see the same image in Image2.
what do I do?
thanks
04-12-2013 06:56 PM
Hi VSA
did you try to use a property node with "Value(Signaling)" instead local Variables ?
04-12-2013 07:15 PM
Hi Jimm
thanks for your reply.
after your suggestion, I try that but it doesn't work too.
Best regards
04-13-2013 11:01 AM
turn off autoscaling on the graph
04-13-2013 09:10 PM
Hi vsa
I am a little bit confused. What exactly do you need?. You got a initial image and display it in both intensity graph, right? Then when you draw a rectangle and release the mouse button, you get a section zoomed it and display it in "Image 2". This already happen with your code.
However, what do you mean when you say " I like to see the same image in Image2." ??
Could you give us more details? Have a nice day!!!
04-15-2013 09:38 AM
Hi Jimm
after some suggestion, I change my code a little bit and attached again.
in this cod ,I want to take Image and then I select ROI in second intensity graph when select with mouse so I need define coordinate of ROI of my Image. my camera has this Icon (ROIPixelsH and ROIPixelsV ) for my aim but I don t know how can I put this icon in my code becuse as you see I can not wired this icons to another thing that I have in event structure.
Best regards
04-17-2013 11:55 AM
Hi Jimm
for more information ,I attach this example.
as you see in this example when selected with rectanguler, we can see the image exactly inside the rectanguler in other picture.
I want it happen also in my cod,I mean when I select part of image then see only that part in other intensity.
Any help would be greatly appreciated.
Best regards
04-19-2013 01:33 AM
Hi VSA
I am sorry, I was not cheking my email and I did not see your answers. Ok. Now I understand what do you want to implement. I checked your codes and I found next points.
1.- Your image is an array with at least 1600 rows and 1050 columns.
2.- When you release the mouse, you got the coord where you start your rectangle and how much area you have selected ( giving a rows and columns)
3. However your coordinate set for the coords that you got, start at top of your plot and to the left side of your plot.
4. Nevertheless your image is an array that start at bottom of your plot and to the left side of your plot. So, when you use the array subset function some times the index and the lenght that you are asking is out of the orginal array or sometimes you are pointing to another place on the array that is not the same portion that you are looking for.
Try to change how you are pointing to the array. And for avoid the behavior as zoom tool. just disable the autoscale for the X axis and for Y axis on the second intensity graph.
I will make some test and then post the results. Have a nice day!!!
04-19-2013 09:27 AM
@JimM-Ehecatl wrote:
Hi VSA
I am sorry, I was not cheking my email and I did not see your answers. Ok. Now I understand what do you want to implement. I checked your codes and I found next points.
1.- Your image is an array with at least 1600 rows and 1050 columns.
2.- When you release the mouse, you got the coord where you start your rectangle and how much area you have selected ( giving a rows and columns)
3. However your coordinate set for the coords that you got, start at top of your plot and to the left side of your plot.
4. Nevertheless your image is an array that start at bottom of your plot and to the left side of your plot. So, when you use the array subset function some times the index and the lenght that you are asking is out of the orginal array or sometimes you are pointing to another place on the array that is not the same portion that you are looking for.Try to change how you are pointing to the array. And for avoid the behavior as zoom tool. just disable the autoscale for the X axis and for Y axis on the second intensity graph.
I will make some test and then post the results. Have a nice day!!!
sounds familliar
04-22-2013 09:51 AM
Hi
thanks all.
yes Jimm, you are right ,my problem is I do not know how am I pointing to the array.
I attached picture of my code after runing, as you see the number of the left,right,top,bottom are not equal with my rectangular coordinate and also I see the image out side of the rectangular!!.how can I find the relation between those?
thank you so much for your good suggestion.