[MINC-users] subsampling
Christopher Bailey
cjb at pet.auh.dk
Tue Nov 22 05:42:54 EST 2005
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
More information about the MINC-users
mailing list