[MINC-users] minccalc

Abraham Gedamu abraham.gedamu at gmail.com
Sun May 6 10:49:30 EDT 2007


Hi,

I want to do something simple with minccalc.  I have an input image (in.mnc)
and a mask (mask.mnc).  I want to set every voxel in the masked region of
the input image to a value, X.  Every voxel that is not within the masked
region gets assigned a value of Y*original voxel intensity.  I did the
following:

minccalc -expression "A[1] >= 1 ? 100 : A[0]*5" in.mnc mask.mnc out.mnc

When I look at out.mnc, the voxel intensities in the image do not represent
the values they should.

Any ideas?

Thanks,

Abe


More information about the MINC-users mailing list