[VoxBo] mask dimensions question

Daniel Y Kimberg kimberg at mail.med.upenn.edu
Thu Nov 1 14:03:58 EDT 2007


Daniel Drucker wrote:
> You should be able to do something like this:
>
> resample yourmask.cub resampledmask.cub -rd nFunctional.cub
>
> This uses resample's rd flag:
>    -rd <ref>      ref=image of desired dimensions

If you do this, the sinc interpolation will probably lead to a lot of
non-zero values in voxels outside your mask.  You can follow up with
vbmaskmunge to threshold and quantize the resampled mask, something
like:

vbmaskmunge resampledmask.cub -t 0.5 -o thresholdedmask.cub
vbmaskmunge thresholdedmask.cub -q -o finalmask.cub

(You're supposed to be able to do those in one step, but various
versions of vbmaskmunge have been a bit flaky about this.)

Or if you're comfortable with it, you can use the -nn flag to do
nearest neighbor interpolation.  Neither of this is really ideal, but
we don't have an option right now to integrate over the
high-resolution mask properly.

dan


More information about the voxbo-general mailing list