what is the best method for resizing a binary mask to preserve its shape?

5 views (last 30 days)
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?

Answers (1)

KALYAN ACHARJYA
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
mehdi amini
mehdi amini on 22 Jun 2019
and im doing it because i want to segment a registered pet scan with this mask that is 256*256

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!