I am using the watershed filter to segment the image, but I cannot get enough regions. What can I do to improve the regions I am getting?

6 ビュー (過去 30 日間)
Donny Sun
Donny Sun 2016 年 5 月 11 日
回答済み: Alex Taylor 2016 年 5 月 18 日
Here is the code I am using: g2 is my mask.
se = strel('disk',1);
gr=sqrt(imfilter(Hr,h,'replicate').^2+ imfilter(Hr,h','replicate').^2);

回答 (1 件)

Alex Taylor
Alex Taylor 2016 年 5 月 18 日
If you have R2016a, you can use the superpixels function to obtain the oversegmentation instead of using watershed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by