[MINC-users] Filling with mincreshape
Andrew Janke
a.janke at gmail.com
Mon Nov 13 03:13:31 EST 2006
Hi Simon,
On 11/10/06, Simon Fristed Eskildsen <se at hst.aau.dk> wrote
> This is probably a dumb question. What exactly is the function of the
> -fill option on mincreshape? Reading the manual I expect it to fill
> voxels outside my input image with a value other than zero (which can be
> set by -fillvalue). However, it seems not to work.
>
> Example: input.mnc contains a small test object surrounded by zeros
> $ mincreshape -fill -fillvalue 255 -colsize 100 -rowsize 100 input.mnc
> output.mnc
First, the -fill and -fillvalue options are mutually exclusive of each
other. Meaning choose one of -nofill -fill and -fillvalue. in this
case, I think you want to skip the -fill option.
> $ mincinfo output.mnc
> file: output.mnc
> image: unsigned byte 0 to 255
> image dimensions: zspace yspace xspace
> dimension name length step start
> -------------- ------ ---- -----
> zspace 67 1 -33
> yspace 100 1 -49
> xspace 100 1 -49
>
> Looks fine, but in the "outside input" voxels are zero. I would expect
> them to be 255. The man page say that -fillvalue is a real value. The
> real range of input is 0 to 400, so 255 should be ok.
>
> How do I get values in my "outside input" voxels?
Try this again without the -fill option. Also check out -pixfillvalue
it might be closer to what you want.
--
Andrew Janke (a.janke at gmail.com || http://a.janke.googlepages.com/)
Canada->Montreal Cell: +1 (514) 924 2012
More information about the MINC-users
mailing list