regarding masking the image
Show older comments
kindly expalin the following line
mask_h and mask_w are the scalar inputs
mask = zeros(mask_h,mask_w);
mask(1:mask_h/2,:) = -1;
mask(mask_h/2 + 1:end,:) = 1;
Accepted Answer
More Answers (0)
Categories
Find more on Author Block Masks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!