2D Gray scale volumatric image slicing: with uniform cross-section

2 views (last 30 days)
Hii,
I am having problem with slicing the 2d gray scale volumatric image (as like the attached image ). Below to the text, I have shown one example of uniform slicing of 2D Gray scale volumatric image to 2D gray scale planar image. It would be my pleasure if anyone could find a solution to such slicing process.
Please try to slice the attached image.
  2 Comments
darova
darova on 3 Jul 2020
Do you have a 3d image? Just try
imshow(A(:,:,50)) % show 50th slice
Subha Mallick
Subha Mallick on 7 Jul 2020
Dear Darova thanks a lot for your response. Please follow the queries and help if possible.
The image is 2d gray scale image: as attached.

Sign in to comment.

Answers (1)

Vimal Rathod
Vimal Rathod on 6 Jul 2020
Edited: Vimal Rathod on 6 Jul 2020
You could view individual XY planes by doing normal matrix slicing and using "imshow" function. You can check each of the image plane and select the one which you want.
img = load('image_file'); % img size = K x L x M
imshow(img(:,:,n)); % where n can be any value from 1 to M
you could also use sliceViewer to view all the slides using a GUI.
s = sliceViewer(img);
For more info you could refer to the following links
  1 Comment
Subha Mallick
Subha Mallick on 7 Jul 2020
Dear Vimal,
Thanks a lot for your assitance and information. I would be grateful if you could provide further assiatnce to solve this problem.
Please check the image below, which is shown with detailed description and related queries.
The input image is attached in the beginning of the query.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!