rescale for making isotropic voxels

Hello all,
Can I make an isotropic 336*512 matrix? my teacher says i can add zero pixels to 336 but i want to expand method to 336*512*112 matrix and make an isotropic voxels.
Thanks in advance

 Accepted Answer

How to make a 2D isotropic matrix:
m = value * ones(336,512); % You pick what you want "value" to be.
How to add zero pixels (i.e. nothing to add at all) to 336:
336
How to make a 3D isotropic matrix:
m3D = value * ones(336,512,112); % You pick what you want "value" to be.

7 Comments

m3D = repmat(value, [336, 512, 112]);
Muhammad Jawaid
Muhammad Jawaid on 29 Jan 2016
Edited: Muhammad Jawaid on 29 Jan 2016
Image Analyst, I would like to ask for another example. I have got a CTA volume (Dicom) with size 512*512*304 & I want to make it isotropic volume having axial image size (256,256). can you please help me out.. For your information, pixel spacing is 0.4004 where as distance between slices is 0.45. Thanks alot
Use this:
m3D = CTAImage(1:2:end, 1:2:end, :);
For spatial calibration, see attached demo.
@ImageAnalyst: What number this value can be
I don't understand your question. So I guess I'll just say 7.
7 is an optimization value for value?
With the lack of any information on what you're looking for or how it relates to my last comment on spatial calibration, sure, why not? If you don't like that, how about 13 or 42? Use whatever value works best for you.

Sign in to comment.

More Answers (0)

Categories

Find more on Medical Physics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!