You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Mask Editor GUI is intended to manually create/edit mask of bad pixels and save it as 2-d image and 3-d array shaped as data.

Content

Mask Editor GUI main window

Mask Editor main window consists of sub-panels listed in this section with brief description of their functionality.

Image with axes and cursor info panel

Click and drag or scroll mouse on image to translate of zoom-in/out desired part of the image. At mouse release spectrum will be updated. for visible part of the image.

Spectrum with statistical data

Click and drag or scroll mouse on spectrum to select its part projected on color map on image. The same works for vertical axis. Horizontal scale does the same things for histogram scale. At mouse release image will be updated.

Color bar selection

Click on color bar and select color map from pop-up window. The color bar and Image will be updated after selection is done.

Logger

Most important info messages are displayed in the logger window. By default it has low profile, but can be expanded by mouse using expansion mark on the boarder.

Control fields and buttons

Control fields allows to set imaging array and geometry constants from DB or files.

Select DB parameters

After click on the button next to DataSource label a bunch of sequentially pop-up windows for instrument, experiment, and run number allows to set DB parameters.

Select detector

After click on the button next to Detector label pop-up menu window allows to select detector from specified DB

If geometry is available for specified DataSource and Detector the field next to geo DB will be filled out automatically.

If many geometry files available for specified detector, they can be selected from pop-up menu window.

Select files

Use standard dialog to select I/O files

More fields

Button More/Less shows more or less control field between default and advanced modes. It adds fields to load geometry constants from file and array for image from DB constants.

ROI control buttons

Translate and zoom image

Click on Image mode button, then click and drag or scroll mouse for translation or zooming image, respectively. At release mouse button spectrum will be updated for visible part of the image.

Add ROI

Click on Add button and select ROI type from pop-up menu:

Adding ROI

Right after selected ROI type click on image to mark ROI control point locations as many times as it is necessary to define particular ROI shape.

Add/Remove PIXEL and PIXGROUP

Right after click on Add button and selection of PIXEL or PIXGROUP ROI, start clicking on desired pixels or click-hold-and-pan. Added pixels will be marked by color. Double click removes appropriate pixel. Input of the PIXGROUP is compleated by the click on Compl.(ete) button.

Button Cancel

Button Cancel cancels adding of non-compleated ROI if it is not too late...

Button Compl.

Button Compl. completes adding of ROI with multi-point definition like PIXGROUP and POLYGON.

Select and Delete ROIs

Currently Select mode is used in combination with Delete in order to preview deleting ROI.

Click on Select button, then on ROIs to select. Selected items will change color.

PIXEL type ROI will be selected one-by-one. PIXGROUP ROI will be selected as whole by a single click.

Invert bad pixel region

Click on button Invert then select ROIs to invert region of good/bad pixels. By default internal region of each ROI is marked as bad pixels.

Edit mode

Click on Edit button, then on ROIs to edit. Selected for edition ROI changes color and shows control handle. Then, click and pan control handles to translate, resize or rotate ROIs.

Save/restore ROI constants

Current ROIs parameters can be saved in json file by clicking on Save button and selecting output file name

Button Load loads constants from json file and draws ROIs on image.

Mask

Button Mask creates mask for drawn ROIs and save it in files for 2-d image (with suffix "-2d") and 3-d array (for panels like in data).

References



  • No labels