Resizing a 3D image on one axis

3 Ansichten (letzte 30 Tage)
Matthew Lee
Matthew Lee am 9 Sep. 2019
Beantwortet: Image Analyst am 12 Sep. 2019
I was wondering if there was a way of resizing a 3D image (ex. 200 * 200 * 10) by expanding the voxels in one direction (into something like 200*200*200).

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 9 Sep. 2019
repelem(YourArray, 1, 1, 10)
  2 Kommentare
Matthew Lee
Matthew Lee am 11 Sep. 2019
Thank you very much!
Rik
Rik am 11 Sep. 2019
If it solved your problem, feel free to hit the 'accept this answer' button.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Image Analyst
Image Analyst am 12 Sep. 2019
Try imresize()
bigImage = imresize(image3d, [200,200,200], 'bicubic'); % Or 'nearest' - whatever you want.

Community Treasure Hunt

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

Start Hunting!

Translated by