The meanshift segmentation (the function pyrMeanShiftFiltering
) has been omitted. OpenCV includes an example showing how to use this function ([opencv_source_code]/samples/cpp/meanshift_segmentation.cpp
).This method is, however, relatively slow and tends to produce oversegmented results.
Background/foreground segmentations can also be achieved using video, which will be covered in Chapter 7, What Is He Doing? Motion.