Revolve 2D binary matrix around axis of symmetry to create 3D binary matrix

Is there a way to revolve a 2D binary matrix (like a binary image file) around an axis to produce a 3D matrix?
For example, in the attached image, is there a way to revolve this around the vertical axis down the center of the circle in the center? The resulting 3D matrix would look somewhat like a spherical revolved version of the 2D image.
I'm looking to calculate the volume of this revolved 3D shape from the 2D cross section attached.
Thanks for the help.

1 Comment

Have you got any solution?
I would be very grateful to know how you have solved it!

Sign in to comment.

Answers (1)

Hey
I understand that you are looking to perform rotation of a matrix around an axis. I think this link can help you, although I'm not sure if this is the best method for your use-case: Rotation about shifted axis
Cheers

Categories

Asked:

on 5 Feb 2018

Commented:

on 11 Dec 2019

Community Treasure Hunt

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

Start Hunting!