[MINC-users] subsampling

Andrew Janke a.janke at gmail.com
Tue Nov 22 08:47:56 EST 2005


No skipping of slices that I know of.

a

On 22/11/05, Søren Christensen <U951678 at studmed.au.dk> wrote:
> That will probably work; i was just thinking if mincreshape alone could have done it, but it probably can't skip slices.
>
> Thanks
> Soren
>
>
>
>
> Fra: Christopher Bailey
> Sendt: ti 22-11-2005 21:42
> Til: MINC users mailing list
> Emne: Re: [MINC-users] subsampling
>
>
> Would this work?
>
> foreach $i (every second slice index) {
>         `mincreshape -dimrange zspace=$i,1 input.mnc /tmp/slice$i.mnc`;
>         push(@slices, "/tmp/slice$i.mnc");
> }
> `mincconcat -concat_dimension zspace @slices output.mnc`;
> unlink @slices;
>
> -Chris
>
> On Tue, 2005-11-22 at 10:17 +0100, Søren Christensen wrote:
> > Hi,
> >  What is the fastest way to extract for instance every 2nd slice from a volume?
> > I guess mincresample can be used, but it becomes a little tedious as step sizes and start points have to be given in voxel coordinates.
> > Is there a better way?
> >
> > Best regards
> > Soren
> >
> > _______________________________________________
> > MINC-users at bic.mni.mcgill.ca
> > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>


--
Andrew Janke      (a.janke at gmail.com || www.cmr.uq.edu.au/~rotor)
Canada->Montreal                                   Cell: +1 (514) 924 2012



More information about the MINC-users mailing list