09-24-2013 08:08 AM
Hi Guys:
I'm using IMAQ Extract Contour VI to get the contour points, is there anyway to conert thoese points to ROI , so that i can extract the
area from the image ?
09-24-2013 12:37 PM
What you probably want to do is create a mask from the controur. This produces a binary image, with every pixel inside the contour receiving a value of 1, and everything outside receiving a value of 0. Now you can take this binary image, and multiply it by the original. The result image will contain only those pixels that are inside the mask. All others will be 0.
If the original image is not 8-Bit, you will need to cast your binary image to whatever bit depth you need.
If you really need an ROI, you can use the Mask to ROI VI to get this.
09-24-2013 01:01 PM
This can work for You:
This is good example about ROIs:
09-24-2013 11:41 PM
Thank you guys for the great help!
09-25-2013 01:20 AM
Could you upload the vi you shows in attachement ?
i can't find it from the examples
09-25-2013 02:45 AM
I tried , seems like the ROI is invalid.
09-25-2013 03:52 AM
Attached
04-17-2015 05:19 AM
Thank you guys for the details and examples... It helped me a lot in my project...