extracting subvolume in different shapes

Hello all. As we know, by using 'subvolume' function we can extract volume data in cuboid form which is controlled by the limits . I want to ask that, IS there any process with we can extract subvolumes with 'subvolumes' function in different shapes such as - cylinder,sphere,conical etc. ? Thank you :)

 Accepted Answer

Well yes and no. As you probably know, an image must be rectangular. However you can mask the volume by some oddball shape so that everything else is zero, and then you can extract the bounding box. So it will be rectangular but the shape will be surrounded/filled with zeros from the shape out to the boundaries of the image.

6 Comments

thank you for your consideration sir but could you please describe in some easier and descriptive way ?
The image must have flat sides, like a box. It can't have round sides, like an apple or a cylinder. Though you can have an apple in a box where the apple has some gray levels and the "air" between the apple and the box sides has gray level of zero. Does that analogy work for you???
Yes sir, thanks a lot for explanation . Now I want to share my task with you which is - I am having a filled sphere and a cylinder , I insert the cylinder into the sphere so cylinder will surely acquire some volume of sphere and they will be having some common volume . how to show or extract that part ??
If you can segment them separately, you can just and the segmented images
binaryIntersections = binarySphere & binaryCylinder;
Sorry but couldn't get the concept ...
Them you should get some background in the logical operations such as AND and OR. Try this link: https://www.google.com/?gws_rd=ssl#q=logical+and+matlab

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!