CMeasureRegions Class Description


The CMeasureRegions class draws regular or irregular regions on a displayed image. This class works with the CImageView class and opens a Region Measurement toolbar in the image window. The marker properties and associated measurements are listed in a docking pane or measurement window, as specified. For further information about region measurements and the toolbar commands, see the Mira User's Guide under the main topic Measuring Images.

Usage

Construction

Object = new_measureregions()

Object = CMeasureRegions:new()

Destruction

Object:delete()

Creation - Non-class Functions

This function is normally used to create a new CMeasureRegions object as an alternative to the class-based new method.

new_measureregions

Creates a new instance of the CMeasureRegions class.

Construction and Destruction - Class Methods

new

Creates a new instance of the CMeasureRegions class.

delete

Deletes the instance of the CMeasureRegions object.

Operations

Add

Adds a region marker to the collection and draws it on the image.

Attach

Attaches a CImageView object to the CMeasureRegions object. Use this if the CMeasureRegions was created without passing a CImageView object to the constructor.

SetParams

Sets region marking properties using members of the RegionParams table.

Related Topics

Contents, Script Classes, CImageView, CImage class

 

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