08-25-2009 02:57 AM
Hi guys:
i am looking for any way to detect whether a doit ,a line or a object is inside or outside the a ROI , any idea?
thanks
08-25-2009 02:58 AM
08-25-2009 03:11 AM
08-25-2009 03:59 AM
08-25-2009 05:01 PM
Hi,
I would suggest using pattern matching, geometric matching, or shape detection. These VI's will tell you if the dot/line is in the ROI that you have selected. Do you have the Vision Assistant to try this out?
Cheers,
08-25-2009 09:05 PM - edited 08-25-2009 09:07 PM
Thanks for all of your reply.
I know exactlly what you mean , my background is :
1 Split up a 1280*1024 image into 1280 piecese of 32*32 pixel size regions
2 Find bright or dark objects in each 32*32 region using different threshold value which depands on the average luminance of the region
3 Classfiy all the objects by judging whether they are inside ,outside or included partially of a specified center ROI in the whole image
so , now the question is, after step 2, we aleady have the information of these objects, but how should i classfiy them? or just in one word , how can i know whether ROI A has intersection with ROI B?
08-25-2009 11:30 PM
If you can recombine your regions and create a single binary image of your particles, it is pretty easy. Use ROItoMask to convert your ROI into a mask, then AND the two images together. Only the particles within the ROI will be remaining. You can make this a little fancier by numbering the particles (using label) before the AND operation. This way you could identify each particle after the operation.
If you can't recombine the regions, all you have is a bunch of coordinates that you need to know are either inside or outside the ROI. The mask may still be the easiest way to go, since you could use it as a lookup table. Get the mask pixel value at X,Y and see if it is inside (255) or outside (0).
Bruce
08-26-2009 08:43 AM - edited 08-26-2009 08:48 AM
08-26-2009 06:36 PM
Hi,
I would suggest using the Vision Assistant, which was made to be user friendly. Try playing with the Image Mask and see how far you can get. There are also a plethora of vision examples available in LabVIEW under Help>Find Examples>Toolkits and Modules>Vision.
Try these out, then post again if you have more questions.
Cheers,
08-27-2009 01:03 AM