what is the best method for resizing a binary mask to preserve its shape?
5 views (last 30 days)
Show older comments
i hame a binary mask that whwn i multiply it with the CT scan image it gives me the tumor part of the image. now i want to resize the mask and CT image to another scale and then multiply them, but i want the shape of the mask to be preserved. im using a cubic interpolation for resizing the original CT image but im not sure whats the best method for resizing the mask. can anyone help?
0 Comments
Answers (1)
KALYAN ACHARJYA
on 22 Jun 2019
Edited: KALYAN ACHARJYA
on 22 Jun 2019
Have you tried with any approach, resizing the binary mask doesnot effect on its shape?
#Simple way
mask_modified=mask(1:2:end,1:2:end);
image_modified=image_gray(1:2:end,1:2:end);
Request you to see imresize and apply both images (mask & original) with same method.
Why are you doing such a way? You can do the same in original image before processed for mask may be easier way.
3 Comments
KALYAN ACHARJYA
on 22 Jun 2019
Edited: KALYAN ACHARJYA
on 22 Jun 2019
Can you show us these two images 512*512 and 256*256 ?
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!