Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 10 lines (10 sloc) 327 Bytes
function image_mask = load_image_mask(image_mask_filepath)
% load image mask
image_mask = imread(image_mask_filepath);
% convert mask to 0 and 1
image_mask(image_mask > 0) = 1;
% convert mask to double
image_mask = double(image_mask);
% flip mask upside down
image_mask = flipud(image_mask);
end