Is there any LabVIEW built-in vi to do the task of mean shift algorithm? Do not ask me use in what application, I just wish to know how the actually running of this algorithm.. Or someone has example regarding this issue? thx..
What I understand is mean shift is an iterative process and it will find the mode of the set of data by shifting the mean or average. I wish to use it in image processing.. Do you have any idea that can perform this? thx..
Unfortunately, Vision does not have a built-in VI to accomplish a mean shift. Most of the Vision VIs are designed to process a single image. However, you should be able to using existing VIs (such as IMAQ Quantify and IMAQ Centroid) to build your own VI that implements a mean shift algorithm.
Best Regards,
Jesse D. Applications Engineering National Instruments
For Jesse 😧 I tried to use IMAQ Quantify to find the mean value within a ROI but the answer given to me looked not accurate..
For Doc: Can I say in this way? I use the kernel of all 1s in 3x3 matrix and apply with convolute vi within a ROI, then I use the IMAQ Centroid to get the mean position within the ROI, later the same procedure is performed in the next video frame.. Is this the mean shift algorithm? Or I miss out any additional step in between?
to convolute within the ROI, it will only average the picture inside the ROI rite? What does it to do with mean shift? I wish to track a moving object, whereby a ROI will indicate the object that is being tracked. At first I relied on the IMAQ Centroid vi to find the centroid position within the ROI and track the object by following the new centroid at each frame. Nevertheless, the result can be affected by outlier even though it still can track. I found some literatures that most of the people used mean shift as the fundamental method to track whatever they want. I knew mean shift uses kernel and weight to compute until it converges at one point which is the exact centroid that I want in order to track an object without being lied by outlier (I guess due to the help of kernel and weight).
Is it clear enough of why I wish to implement mean shift? thx alot!!