I have segmented my image using the Watershed algorithm, the result is pretty satisfying. Now, I would like to extract and store what has been segmented but I don't really know how to do it.

Do you guys have an idea please ?

Thank you.

有帮助吗?

解决方案

Could you not do a connected component analysis(8 connectedness) on the output image based on the color / index information. I think that would give you the easiest starting point. All the pixels in the neighborhood which are in the same segment and you can store that information and further use it.

However I don't think you can do background/foreground segmentation based on watershed as that requires a little more information than just segments for each frame. You will have to somehow keep a track of previous frame information too. There are a lot of papers. Go through them. Grimmson's paper was seminal. I've seen a lot more these days. Pixel Based Adaptive Segmenter was the best but very slow, in my opinion.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top