Skip to content
Adrian Quintana edited this page Dec 11, 2017 · 1 revision

mask_design

Purpose

mask_design is a graphical program intended to create a binary mask image that is going to be used later to generate the data for classification. It does print the mask parameters whenever the mask is saved. The convert_img2data and convert_data2img programs need such a mask file.

The program has only 3 parameters: if-img is used, then the program will load this image and the rest of the parametes will be ignored. In case-sel is used, then the average and standard deviation of this set of images is calculated and used for visualization. If the selfiles is selected, the average image is visualized by default. If the-sd flag is set, then the standard deviation image is used instead.

Usage


$ mask_design ...


Parameters

  • `` The image file name to visualize
  • `` The selection file name to get the averge or satandard deviation Image
  • `` If the selfile is used, this flag will tell the program to use the standard deviation image instead of the Average image. Default: not used
  • `` Force saving the output mask with this name.
  • `` Do not apply the transformation that is stored in the headers of 2D images

Examples and notes


$ mask_design -img x0u.spi


/xmask_1.gif

As shown in the picture, in the status bar at the bottom reflects information about the image. First the "real" pixel coordinates and its real density values are shown(0,11) = -0.260. After that, the real image dimension is shown (in this case 70x70) and at the end, within brackets, the actual widget dimension (280x280).

By right-clicking on any place in the window area a pop-up menu is shown showing three options:File,Mask types andHelp

  • File will allow the loading of a new image and Saving the generated mask image (Spider and Bitmap image format are supported)

/xmask_save.gif

  • Mask types The type of geometrical mask can be selected from this menu. The following formats are allowed:
    • Circle
    • Ellipse
    • Rectangle
    • Square
    • Circular crown
    • Elliptical crown
    • Rectangular frame
    • Square frame
    • Polygon (not shown in the image below). To start a polygon: select the corresponding mask type, click on the first point on the image with the mouse left button, continue left-clicking with more points until the polygon is finished. Double click on the last point to close the polygon. PressESC to cancel the current polygon

/xmask_masks.gif

  • Help The following picture of the help file will explain the commands supported in mask_design to move and expand the mask figure.

/xmask_help.gif

--Main.AlfredoSolano - 22 Jan 2007

Clone this wiki locally