Bsoft program

bmask

Usage: bmask [options] input.img output.img

Generates and uses binary masks of the size given or of the input image.
Types of use: 1. Creating a new mask: bmask -v 7 -create 100,100,50 -radius 10,20 -origin 50,50,25 mask.mrc 2. Generating a mask from an image: bmask -v 7 -threshold 1.5 test.map mask.mrc 3. Applying a mask to an image: bmask -v 7 -Mask mask.mrc test.map new.map 4. Generating and applying a mask to an image: bmask -v 7 -apply -radius 50,80 -origin 100,100,100 test.map new.map The selected regions have value 1 and the omitted regions 0. The default is a blank mask created of the same size as the input image. Mask creation actions: -create 20,60,30 Create a new mask of this size in place of input image -threshold -0.55 Threshold input image to generate a mask. Mask modification actions: -invert Invert mask. -operation xor Binary operation for mask modifications: replace/and/or/xor (default and). -dilate 2 Dilate mask a number of times. -erode 3 Erode mask a number of times. -plane 0.3,0.5,-0.1,0,3,25 Mask on one side of a plane with the given normal and origin. -rectangle 40,20,45 Rectangular mask with given length, width and rotation angle. -color Generate a RGBA image. -radius 10,45 Generate a mask inside these radii. -level 134 Convert a mask to multiple levels, with the given voxels per level. -bands 250,-1,150,1,30,0 Banded mask for reciprocal space (pairs of numbers: angstrom,value). Band with 0: Not used. Band with 1: Use for orientation determination. Band with -1: Use for cross-validation. Mask application action: -apply Apply the mask to the input image (default output mask).

Parameters:

-verbose 1Verbosity of output.
-datatype uForce writing of a new data type.
-sampling 1.5,1.5,1.5Sampling (A/pixel; a single value can be given).
-origin 110,50,44Origin for the mask (default from input image).
-fill 28.3Fill value (default average).
-wrapFlag to wrap around image boundaries (default not).

Input:

-Mask file.imgInput mask to get difference with main input image
The main input image must be a mask or use the -threshold option.

Bsoft version 1.5.7-20090605 (64 bit)


Generated by bdoc.pl on Mon Jun 15 11:47:11 2009


Back to the Bsoft home