cv.jit : finding the object closest to a specific point

Scott Fitzgerald's icon

Hi.

I have a fairly straightforward patch that does some background
subtraction, then tracks a blob. When there are multiple blobs, I
would like to only follow the one that is closest to a particular
coordinate in the matrix (say 0, 60).

How would I start approaching this?

Thanks,

Scott

Jean-Marc Pelletier's icon

cv.jit.label -> cv.jit.blobs.centroids -> jit.iter -> vexpr -> cartopol

Hopefully this should get you started.