Re: cv.jit.label reject blobs larger than threshold?


Forums > Jitter > cv.jit.label reject blobs larger than threshold?
November 18, 2010 | 12:46 pm

Very interesting patch MIB,

although I am not capable to see how to use it helpfully in my project,
I would very much like to thank you for the help you have provided.

I lack time, so I will get the jit.findbounds based patch to work thoroughly before I work more on the matrix-noise-reduction.

The next thing might be down noob-alley, but.. ;)
I have a jit.findbounds question I would be very grateful if you have knowledge to help me solve?

XY position of two pool-table balls with the same color are tracked using
jit.findbounds (in this case the Yellow balls):

min (left & top) = XY for ball nr 1
max (right & bottom) = XY for ball nr 2

In some situations (like in the attached pict) min & max has to switch top/bottom values to give correct XY positions in my patch:
min should be left & bottom,
max should be right & top.

I am not clever enough to figure out algorithm or if I need one to solve this. I hope you can give me some hints or advise to lead me in the right direction MIB. I will off course post a Q on the forum too.

Thanks in advance MIB :)

Sturla

[attachment=146436,1410]