-
Notifications
You must be signed in to change notification settings - Fork 1
Transform_mask_v31
Create or Apply a mask. Count pixels/voxels within a mask
You do not need to give the dimensions of the mask but you simply provide an example of image/volume you are going to apply the mask to, then the dimensions are taken from this file and the mask is created. In the creation of the mask, a file with the mask is written to disk but it is not applied to the input file.
You can generate blank images/volumes with the size of the sample one if you do not supply any mask type.You may also apply masks without having to generate the corresponding files (but you also can save them)
This utility also allows you to count the number of pixels/voxels in an image/volume which are inside a given mask and whose value is below|above or both some threshold.
See here for more information about the program.
Parameters
--mode <mode
overwrite> where <mode> can be:
-
-
$
--label <image_label
image> $-o, --output <output_file
> $--oroot <root
> $--save_metadata_stack <output_md
> $: Store the original image filename in the output metadata in column imageOriginal. $
: Preserve the columns from the input metadata. Some of the column values can be changed by the program. $--mask <mask_type
circular>where <mask_type> can be:
-
- 2D or 3D sincs if w > 0
> outside sinc if w < 0 => inside sinc -m <blob_order
2> $-a <blob_alpha
10.4> $--center <x0
0> <y0=0> <z0=0> $: Don't apply and save mask $
: Voxels within mask >= th$``: Voxels within mask <= th $ --substitute <val
0>
Sample at circular mask inside radius 72:
xmipp_transform_mask -i reference.vol -o output_volume.vol --mask circular -72As above but save mask:
xmipp_transform_mask -i reference.vol --create_mask output_mask.vol --mask circular -25Mask and overwrite a selection file:
xmipp_transform_mask -i t7_10.sel --mask circular -72Mask using rectangular mask:
xmipp_transform_mask -i singleImage.spi -o salida20.spi --mask rectangular -10 -10