EasyManua.ls Logo

Dectris PILATUS - Mask Files

Dectris PILATUS
57 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
User_Manual-PILATUS-V1_2.doc 27/57
deleteallobjs Delete the TVX record of all objects – the objects
themselves are untouched. Images are stored in the
TVX memory up to the limit specified in tvxrc, which can
consume significant resources; use this command to free
up memory. In addition, one can create files with
identical names in various directories. To avoid the
necessity of always specifying full path names, use this
command to clear the TVX memory.
deleteobj filename
Deletes the specified object from the TVX memory. The
file on disk is untouched.
maskimg Specify a mask image to be used by many TVX
commands, such as box and histogram. See below.
8.6 Mask files
Setting a mask image is useful when you are looking at the statistics of
images from the detector. Pixels in the detector that are either dead, too noisy
or behave in a non-desirable manner can be masked out. After a pixel has
been masked, it will no longer be considered when using statistical routines in
tvx to analyse your image so that your results will not be distorted by pixels
behaving incorrectly.
A mask file is an image file that uses only two distinct values for each pixel.
Every pixel that is to be masked out is given a value of 0, every other pixel is
given a value of 1. You can create a mask file from another image by using
the command "mkmask".
Command Description
mkmask Make a mask from an image between two limits,
inclusively.
Usage: mkmask [IM] [IMout]] low high
The result is a mask of 1's and 0's which can be used to
select pixels of an image by multiplication. If no image is
supplied, the default is used. Note that a float input
object returns a 32-bit integer mask.
Because the generated file is a normal image you can
use any of the image manipulation tools supplied in TVX
to alter your mask image if you wish.