matlab - How to use a logical image as a mask for the original image? -



matlab - How to use a logical image as a mask for the original image? -

i have original image , on connected components want utilize sift function. able extract regions , convert them logical format per matlab help file:

this section describes how create binary masks define rois. however, binary image can used mask, provided binary image same size image beingness filtered.

this original image

and here part want, able extract in logical format:

now want apply sift function on single connected component of original image.

i used createmask function in same format explained in help documentation:

img = imread(word.jpg); h_im = imshow(img); e = word_bw; %this image used mask bw = createmask(e,h_im);

i error: undefined function 'createmask' input arguments of type 'logical'.

how go using mask in way allow me apply functions area in original image?

see if works -

img_out = img; img_out(~word_bw) = 0;

img_out image mask word_bw beingness applied.

image matlab image-processing mask image-segmentation

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -