Find only 1 blob based on threshold

Feb 24, 2010 at 9:29pm

Find only 1 blob based on threshold

Hi,

I’m trying to figured out how can i extract only 1 blob from a binary image, i based the detection whit an op object just to filter the other blobs, like a threshold.
If someone have time to help me out :)

Thanks

Luis Marques

– Pasted Max Patch, click to expand. –
#48755
Feb 25, 2010 at 1:10am

Hi! ;)
With frame subtraction you get a very unstable image because framesub measures the amount of movement/change in a image so its hard to track a precise blob.
Check this, I hope it helps.

Best wishes!

– Pasted Max Patch, click to expand. –
#175219
Feb 25, 2010 at 1:46am

hi,

thanks for the reply! great example. but extracting the coordinates now is impossible, due to the lack os cv.jit.label before the cv.jit.blob’s…
Any solution? Applying the cv.jit.label after the op==1, will fix it?

Thanks

Luis Marques

#175220
Feb 25, 2010 at 4:01am

Hi!
You’re right!
Only worked with cv.jit.centroid.

Best wishes!

– Pasted Max Patch, click to expand. –
#175221

You must be logged in to reply to this topic.