Contour Plot


The Contour Plot command draws one or more intensity contours on an image. The contour plotting commands operate from the Contour Plot Toolbar. Contours are generated at specified levels. The related Interactive Contour Plot command allows you to mark the level where a single contour is to be created. Contouring can be done on the entire image or within the rectangular region of interest ("ROI") specified by the image cursor. Generally, it is best to contour within the cursor rectangle. To move and resize the cursor, use Ctrl+A to toggle cursor mode on and off.

 

Setting Contour Properties

This command opens a dialog for setting the contour levels and other properties. Clicking [Plot] generates the contours based on the present settings. Clicking [Apply] saves the properties as default values for future contouring. The contour example above was created using the properties in the dialog below. In this example, specific intensity contours were not required, so a reasonable spacing was selected using options in the left side of the dialog. The minimum and maximum were specified, a linear spacing selected, followed by [Copy to Levels >>].

You may want to create contours at specific intensity values, or you may want to simply choose limits and let Mira compute the levels between. This is why the dialog is divided into a left and right hand portions:

Contour Plotting Properties

Number

The number of contours.

Level [n]

The value and color for the n-th contour level.

Only 5 contour settings are visible; a selection scrollbar appears when more than 5 contours are specified.

Set All

Sets all contours to the same color.

Smoothness

Select the smoothness of the contours.

Use Cursor ROI

Check this option to contour only the region inside the image cursor.

Use Level Description

Check this option to enable the description fields on the left side of the dialog. This is a safety feature that prevents unintentional setting of contour levels.

Load ROI Range

Optionally loads the Minimum and Maximum fields using values measured inside the Region of Interest defined by the Image Cursor.

Minimum

The minimum value of the contour description.

Maximum

The maximum value of the contour description.

Copy to Levels >>

Computes the contour levels from the description Properties and copies the results into the level [n] fields.

Toolbar Commands

The Contour Plot Toolbar controls the process for drawing contours on an image. This toolbar is opened from the top-level Image Plot Toolbar or the Plot > Contour Toolbar menu command.

Procedure

  1. Open the Contour Plot dialog by clicking the button on the Image Plot Toolbar. The first time, this opens the Contour Plot dialog where the properties are set.

  2. In the Contour Plot dialog, set the properties, then click [Plot] to generate the contours. Click [Close] to close the dialog. There are two strategies for defining the contour levels:

  1. When you close the Contour Plot dialog the first time, the Contour Plot Toolbar appear at the edge of the Image window.

  2. To close the Contour Plot Toolbar, click the button again on the Image Plot Toolbar.

  3. After plotting contours, you can delete each one separately in "Delete Mode" by clicking the button on the Contour Plot Toolbar. In this mode, you point at and click on the target contour drawn on the image. Alternatively, all contours will be erased when you close the Contour Plot Toolbar as in step 4. You can delete all contours using the button.

Remarks

Tip

It is usually advisable to use the Image Cursor to constrain the contouring to the minimum necessary rectangle. Contours require drawing many short lines, and a complex contour containing a huge number of line segments may cause the computer to lag when redrawing the window.

 

With many complex contours visible, display updating is sluggish. You can see this when you adjust the palette or move the image cursor. To cure that problem, simplify the contours, increase smoothing, shrink the contour region, or delete the contour using the (delete all) button on the contour toolbar.

Contouring Regions of High Noise Level

Below is shown a magnified view of the image above with a single contour having many wiggles. This contour was created using Smoothing = low, which creates many wiggles as the contour tracks through noisy, low level pixels. For more information about contour plotting in noisy areas of an image, see Contour Plotting with Various Levels of Smoothing.

Tip

You can terminate the contour computation at any time by hitting the [Esc]key. This is especially handy if you start a contour computation after accidentally clicking on a level too far into the noise.

Related Topics

Plotting Commands

Interactive Contour Plot

Contour Plotting with Various Levels of Smoothing


Mira Pro x64 User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.