- Details
- Published: Wednesday, 10 July 2013 20:17
PURPOSE
combine_masks combines two masks according to the selected logical operation. Among other things, this can be used to combine independently generated masks of the same image. The input masks must have the same size.
TYPICAL USAGE
combine_masks -input1 mask1.pbm -or -input2 mask2.pbm -output outmask.pbm
COMMAND LINE OPTIONS
-and
requests that the masks be and'ed together. If a pixel is masked out by either mask, it will be masked out in the output.
-input1 input.pbm
specifies the first input mask.
-input2 input.pbm
specifies the second input mask.
-or
requests that the masks be or'ed together. If a pixel is masked out by both masks, it will be masked out in the output.
-output output.pbm
specifies the output mask that will be written to.