[MINC-users] subsampling
Søren Christensen
U951678 at STUDMED.AU.DK
Tue Nov 22 18:46:05 EST 2005
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
More information about the MINC-users
mailing list