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?
이전 댓글 표시
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);
g2=imclose(imopen(gr,se),se);
L2=watershed(g2);
답변 (1개)
Alex Taylor
2016년 5월 18일
1 개 추천
If you have R2016a, you can use the superpixels function to obtain the oversegmentation instead of using watershed.
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!