gen_mask

PURPOSE

gen_mask generates a mask from an image according to one of several rule options.  A mask designates which pixels of an image are to be considered valid and used in AlignTK image processing tools.  Other pixels are ignored and their intensity values have no effect on the output.

TYPICAL USAGE

gen_mask -input image.tif -output mask.pbm -threshold 1

COMMAND LINE OPTIONS

-input image[.tif | .pgm | .jpg]

specifies the input image.

-output mask.pbm

specifies the filename that the output mask will be written to.

-threshold pixel_value

applies a fixed threshold to the entire image to produce the output mask.  Image pixels whose value is less than the threshold will have their corresponding mask bit cleared, indicating that the pixel will be ignored.  Image pixels whose value is greater than or equal to the threshold will have their corresponding mask bit set, indicating a valid pixel.

-boundary-fill

 

 

Copyright © 2020 National Center for Multiscale Modeling of Biological Systems. All Rights Reserved.