MATLAB: Segment object from saliency map

image processingImage Processing Toolboximage segmentationsaliency

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.

Best Answer

Just threshold:
binaryImage = saliencyImage > 100; % or whatever.
% Fill holes
binaryImage = imfill(binaryImage, 'holes');
imshow(binaryImage);