select the odd or even frames of a volume

1 vue (au cours des 30 derniers jours)
talayeh ghodsi
talayeh ghodsi le 16 Juin 2019
hi every body. i have a volume which consist of 430 images and the size of each image is 512*512. so the size of the volume is 512*512*430.
because of the large capacity of the volume, i want to select construct the volume with half of the number of images to have the volume of size 512*512*215
and i want to select the odd or even indexes of images.
how can i do that?
  2 commentaires
Walter Roberson
Walter Roberson le 16 Juin 2019
odd_volume = the_volume(:,:,1:2:end);
even_volume = the_volume(:,:,2:2:end);
talayeh ghodsi
talayeh ghodsi le 16 Juin 2019
thanks sir

Connectez-vous pour commenter.

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 16 Juin 2019
Modifié(e) : KALYAN ACHARJYA le 16 Juin 2019
Let say Image1 is the original 3D image
resultant_image=image1(:,:,1:2:430)
  2 commentaires
talayeh ghodsi
talayeh ghodsi le 16 Juin 2019
thanks a lot
KALYAN ACHARJYA
KALYAN ACHARJYA le 19 Juin 2019
Modifié(e) : KALYAN ACHARJYA le 19 Juin 2019
Welcome @Talayeh
Keep Learning!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 3-D Volumetric Image Processing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by