6.1.4   Menu Visualization

Via this menu, you can open or close graphics windows and clear their displays. Their output behavior during runtime can also be specified here. Most functions are also available from the context menu of the graphics window.

Menu Entry Description Shortcut

Open Graphics Window... Specify the position, size, and background color of the new graphics window. More info. See also dev_open_window. Ctrl+Shift+G,O or Ctrl+Shift+G,Ctrl+Shift+O

Clear Graphics Window Clear active graphics window. The history (previously displayed objects) of the window is also cleared. See also dev_clear_window. Ctrl+Shift+G,Del or Ctrl+Shift+G,Ctrl+Shift+Del

Close Graphics Window Close active graphics window. See also dev_close_window. Ctrl+Shift+G,Q or Ctrl+Shift+G,Ctrl+Shift+Q

Display Select iconic variable to be displayed in active graphics window. This submenu lists all instantiated iconic variables (images, regions, XLDs) for quick selection. See also dev_display.

Window Size Set window size of active graphics window. Double and Half change the size to half and double its current window size, respectively. Aspect Ratio 1:1 scales down the current window size, so that the aspect ratio of the displayed image is maintained. See also dev_set_window_extents.

Image Size This submenu offers a list of zoom options to scale the image and to control its resizing behavior. More info

Colored Color regions and XLDs as an easy way to display multiple regions or XLDs. Each region is displayed in a different color, where the number of different colors (3, 6, or 12) is specified in the submenu; default: 12 colors. If all regions are still displayed with one color, use the operator connection beforehand. You can check this also with the operator count_obj. See also dev_set_colored.

Color

Choose a color for displaying segmentation results (regions and XLDs), text created with write_string, and general line drawings (for example, 3D plots, contour lines, and bar charts); default color: red. The number of available colors depends on the graphics display (that is, the number of bits used for displaying). After selecting a color, the previously displayed region or XLD object will be redisplayed with this color if Apply Changes Immediately is selected. See also dev_set_color.

Draw

Select a visualization mode to display regions. It can either be filled (menu entry fill) or outlined (menu entry margin). If set to margin, the line thickness of the displayed regions is specified using the menu item Line Width. See also dev_set_draw.

Line Width

Determine the line width for painting XLDs, borders of regions, or other types of lines. See also dev_set_line_width.

Shape Specify the representation shape for regions. You can display not only the region's original shape but also its enclosing rectangle or its enclosing circle. See also dev_set_shape.

Lut Specify a look-up table to display gray value images and color images in different intensities and colors. In the case of a true color display, the image has to be redisplayed due to the missing support of a look-up table in the graphics hardware. For color images only the gray look-up tables can be used, which change each channel (separately) with the same table. See also dev_set_lut.

Paint Define the mode to display gray value images. See the menu item Set Parameters below. See also dev_set_paint.

Attach To Canvas / Detach From Canvas Add the selected graphics window to or remove it from the canvas.

Apply Changes Immediately If checked, any changes to the visualization settings are applied immediately to the active graphics window. Otherwise, the changes are deferred until the next object is displayed.

Set Parameters Opens the Visualization Parameters of the active graphics window. More info Ctrl+Shift+G,P or Ctrl+Shift+G,Ctrl+Shift+P

Reset Parameters Reset the visualization parameters of the active graphics window to the default settings (as defined in the preferences; see section “Preferences Dialog”). The only exception is the size of the window. To clear the history of previously displayed objects, use Clear Graphics Window. To set the size, use Window Size.

Record Interactions If enabled, any subsequent changes to the visualization settings will insert the corresponding operator call(s) into the current program. Unlike Insert Code..., which dumps the current settings in one block, Record Interactions allows you to selectively adjust the settings you want to replay in your program. This includes opening, activating, and closing graphics windows, displaying or clearing iconic objects, adjusting the image or window size from the menu or the tool bar, as well as adjusting the draw colors, draw mode, line width, region shape, LUT, and paint mode. Ctrl+I

Insert Code...

Insert code into the current program that can be used to restore the current settings of the graphics window. More info Ctrl+Shift+G,I or Ctrl+Shift+G,Ctrl+Shift+I

Update Window Specify the update behavior of the active graphics window. Check In Run Mode to update images, regions, or XLDs during program execution. The submenu In Single Step Mode specifies the update behavior when stepping through the program.
Always: display iconic results
Never: do not display iconic results
Clear And Display: clear graphics window before displaying iconic results
Last Image And Display: keep displaying the latest image and additional iconic results
As in Run Mode: same behavior as run mode setting

Position Precision Select the precision of subpixel mouse positions. By default, mouse positions are displayed as integers (precision 0), where the upper left image pixel is displayed as 0, 0. Increasing the precision results in mouse positions being reported as subpixel-precise positions. Please note that when subpixel mouse positions are enabled, the position 0.0, 0.0 refers to the center of the upper left pixel. The upper left edge of the image is displayed as -0.5, -0.5.

Pixel Grid To easier visualize the pixels when an image is zoomed, a Pixel Grid can be set.

Save Window... The graphics window is saved “as is” (including displayed regions and XLDs). In the file dialog, you can select between the output formats TIFF, BMP, JPEG, PNG, or PostScript. See also dump_window. Ctrl+Shift+G,S or Ctrl+Shift+G,Ctrl+Shift+S

Submenu Tools

Menu Entry Description Shortcut

Zoom Window

Open zoom window for image details and pixel inspection. More info Ctrl+Shift+O,Z or Ctrl+Shift+O,Ctrl+Shift+Z

New Zoom Window Open additional zoom window. More info

Gray Histogram Display gray value histogram of active graphics window, can also be used to select thresholds interactively and to set the range of displayed gray values dynamically. More info Ctrl+Shift+O,H or Ctrl+Shift+O,Ctrl+Shift+H

Feature Histogram Interactively inspect feature histograms. More info Ctrl+Shift+O,F or Ctrl+Shift+O,Ctrl+Shift+F

Feature Inspection Inspect shape and gray value features of individual regions. More info Ctrl+Shift+O,I or Ctrl+Shift+O,Ctrl+Shift+I

Line Profile Display line profile of active graphics window. More info Ctrl+Shift+O,L or Ctrl+Shift+O,Ctrl+Shift+L

OCR Training File Browser Browse OCR training files. More info Ctrl+Shift+O,T or Ctrl+Shift+O,Ctrl+Shift+T