segment object from saliency map

조회 수: 2 (최근 30일)
Elysi Cochin
Elysi Cochin 2014년 4월 11일
댓글: Image Analyst 2014년 4월 24일
I have obtained a saliency map from an image..... Please can someone help me to segment the object using the saliency map using a simple way.....
The original image is
The saliency map image is
Please do reply.
  댓글 수: 5
Star Strider
Star Strider 2014년 4월 12일
FWIW, we do appreciate your fixing them!
Image Analyst
Image Analyst 2014년 4월 12일
I hope she'd taken the hint and fixed it, but I guess not, so I just fixed it now, which you can see if you "show older comments." Sometimes when they post on a web site instead of posting to MATLAB Central, the web link is not correct because it's the whole web page with advertisements and all kinds of stuff, instead of just an image. In cases like that you have to right click on the image and say "View image" to get the true link to the image. Of course it's best to not use third party sites and just upload your image to MATLAB Central instead of someone else's web site.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2014년 4월 11일
Just threshold:
binaryImage = saliencyImage > 100; % or whatever.
% Fill holes
binaryImage = imfill(binaryImage, 'holes');
imshow(binaryImage);
  댓글 수: 7
Elysi Cochin
Elysi Cochin 2014년 4월 24일
sir if i have the manual mask... how to compute the background pixel and foreground pixel?
Image Analyst
Image Analyst 2014년 4월 24일
The mask is the foreground and background. There is nothing to compute. To compare you then just do an exclusive OR on the two images - your "true" one that you masked and define as being the absolute truth, and the binary image that you got from thresholding. Personally I'd trust the thresholding one as being the more accurate of the two so maybe to validate all you want is to show good correlation.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by