I would like to do registration using only parts of the image. That is, I would draw a mask, then do 3dvolreg (or 3dWarpDrive), but just the voxels that survive the mask would be used in the calculations. I've tried to use the '-weight' flag in 3dvolreg, but this is not exactly what I want:
Quote
3dvolreg -verbose -verbose -twopass -twodup -cubic -base foo+orig"[0]" -weight foo.masked+orig"[0]" -prefix foo.maskreg -dfile foo.maskreg.txt foo+orig
actually, this process fails with a core dump after displaying:
Quote
++ Start of first pass alignment on all sub-bricks
wtrim: [256..-1]x[256..-1]x[10..-1] = -655360 voxels kept, out of 655360 (-100.0%)
Segmentation fault (core dumped)
I would really like to pass '-mask' to 3dvolreg (or 3dWarpDrive) and have the exact same calculation, i.e. weights would be a smoothed version of the dataset, except that only the voxels that survive the mask would be used.
How hard would it be to add a '-mask' flag to either 3dvolreg or 3dWarpDrive?
Thanks,
Vince
Version AFNI_2007_05_29_1644
[[Precompiled binary solaris29_suncc_64: Jun 29 2007]]
SunOS mr7 5.9 Generic_118558-37 sun4u sparc SUNW,Sun-Blade-2500 Solaris