Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple line profile One pixel shifted from each from same image

Hello
I am acquiring online image of fringe pattern using PCI-1407 based system with a Sony monochrome camera. I am selecting a limited portion of image to get fast and useful information for further processing.My problem is how to get multiple output line profile of the same image length but sifted longitudenaly by one pixel from each other. Say I am selecting (100,100)-(199,199) ROI for online grabbing of image. It will be displaying this portion of image as well as its line profile as desired by me. I want to display four different line profile of little smaller length of image size each shifted by one pixel from previous one. For example from above image portion I need that my VI keep on displaying 4 output having 80 pixel length but shifted one pisxel successively like one portion (100,100)-(179,199) as first (101,100)-(180,199) as second (102,100)-(181,199) as third and (103,100)-(182,199) as forth output each having 80x100 pixel dimension. Thus same frame size shifted one pixel in one direction . This should be displayed for further processing online.
Can you help me how. I am not able to do this.
Ajay Shankar
0 Kudos
Message 1 of 6
(3,815 Views)
If you are using the Vision toolkit, it should be very easy. You can generate the coordinates using a loop. Bundle the coordinates and use the "Line to ROI" vi (subset of ROI palette) to convert them to an ROI.

Bruce
Bruce Ammons
Ammons Engineering
Message 2 of 6
(3,805 Views)
Thanks Ammons but as I want to see the complete image of fringe pattern first then select a rectangular portion as per judgement of the region of best quality of fringes available there and then this vi take care of shifting one pixel for subsequent subset of this ROI and then displaying the output of all these shifted sub set ROI seperately so that I can process these one pixel phase shifted images.Please tell me how to go about this . Generating by loop I will have to provide initial point which I do not want to fix.
Ajay Shankar
0 Kudos
Message 3 of 6
(3,801 Views)
Hello.

You can use the loop method that Bruce discussed even with a provided 'seed point.' In the same palette that he mentioned, there are ROI to point, line, and rectangle VIs as well. You could first select your initial ROI, convert that, and use it as your seed. To extract an ROI from a LabVIEW image display, you can use a property node (right-click on the display and select Create»Property Node) and select the 'ROI' property.

Regards,
Colin C.
Applications Engineering
Colin Christofferson
Community Web Marketing
Blog
Message 4 of 6
(3,783 Views)
Hello Colin
Thanks. Do you mean that I should convert initial ROI to ractangle then from this I creat 4 different one pixel shifted rectangle convert these 4 rectangle back to ROI by using IMAQ Group ROI for further use or something other way.I want to creat this in attached vi. can you modify it as suggested by you.
Thanks again.
Ajay Shankar
0 Kudos
Message 5 of 6
(3,777 Views)
Hello again.

I am still not exactly sure exactly what your application is, so I am not going to be able to modify your code. Indeed I will say though that all of the tools should be there in the ROI palette for you to get what you want accomplished.

Regards,
Colin C.
Applications Engineering
Colin Christofferson
Community Web Marketing
Blog
0 Kudos
Message 6 of 6
(3,758 Views)