Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Pointing out a particle from Freehand ROI

Hello,

I am stuck up with a problem. I have Freehand ROI. I have to check whether the part of an image lies inside that ROI. I cannot use global rectangle as the particles goes outside the global rectangle. Is there any way to point out the particle/object in image which belongs to a particular ROI.?

0 Kudos
Message 1 of 8
(6,193 Views)

One more example (in general the same as link above, but with rotated ROI support)

 

isinside.png

Full source in attachment (LabVIEW 2010 + VS2010)

 

Andrey.

Message 3 of 8
(6,186 Views)

Thanks Uday,

I had aleadry read this thread. I was not so helpful for my application.

 

Thanks Andrey,

My ROI is not so simple. My ROI will be a freehand with too many points. Image has over 500 particles & I will be having less than 200 ms to process & detect the flaws.

 

I found a way out & its running fine.

Thanks,

Amith Vasista

0 Kudos
Message 4 of 8
(6,178 Views)
Good to know you found better solution to the problem. It would be better if you can share the same(if no problem) for someone else.
Thanks
uday
0 Kudos
Message 5 of 8
(6,169 Views)

Sorry for the very delayed reply.

 

 

What I did was, I masked the entire image except the freehand ROI. So number of iterration is equal to number of Freehand ROIs(Inmy case, ROIs never overlap). Each iterration I get 1 freehand ROI part & I continue further processing inside the for loop for maskd image & keep ORing all the images & put it on a shift register. therefore It doesnt bother me to display image to the user & I can know, which particle belongs to which ROI.

 

 

Thank you guys for your help,

Amith Vasista 

0 Kudos
Message 6 of 8
(5,858 Views)

@Amith_Vasista wrote:

Sorry for the very delayed reply.

 

 

What I did was, I masked the entire image except the freehand ROI.


Sure, there are different approaches are available. But if you perform masking before analysis, then the particles, which touches the border of ROI will change their shapes, sizes and center of mass - depends from the processings this can be acceptable or not (if not, then probably IMAQ RejectBorder should be used for removing such particles from analysis).

 

0 Kudos
Message 7 of 8
(5,849 Views)

Yes, I agree, but in my case, this never going to happen. objects & particles come at the same place always, if at all it toches border, I dont have to consider that. 🙂

0 Kudos
Message 8 of 8
(5,845 Views)