Line Measurements


The Line Measurement tool measures a collection of lines including the endpoint coordinates, length, and angle. The endpoint coordinates are reported in both (column,row) and world coordinates for images having a world coordinate calibration. Coordinates are marked using the mouse crosshair and may be refined using precision centroid coordinates computed near the clicked point. Lines drawn on the image are persistent until you leave Lines mode by closing the toolbar. Results are reported in the Lines Measurement Pane or Line Measurements report window. The toolbar opens with Marking Mode (top button) active. Lines may also be measured using the CMeasureLines class in the Pro Script Module. See the Mira Pro x64 Script User's Guide for details.

The picture below shows two lines marked on an image. The results may be directed to a measurement pane or report window, as described below.

Procedure

  1. Adjust the image to the desired scale, showing the region to measure.

  2. Click the btn_lines.png button on the Image Measurements Toolbar or use the Measure > Lines Toolbar menu command to open the toolbar. Marking mode is automatically enabled when the toolbar is first opened. To reactivate Marking Mode it, click btn_lines.png at the top of the Plot Lines Toolbar.

  3. Move the mouse to the starting point. Press and hold down the left mouse button.

  4. With the left button down, drag the mouse pointer to the endpoint and release the button.

  5. To measure other lines, repeat steps 3 and 4.

  6. When finished drawing lines, you can disable marking mode by clicking on the toolbar.

Plotting Multiple Lines

You may choose to draw new lines of arbitrary length and angle or you may add lines of the same length parallel to the last line. Parallel lines are drawn by using the button.

  1. Press the button and rubber-band the first line vector on the image. The line properties are listed in a grid window (Measurement Pane or Report Window).

  2. Press the button and click on an image point through which you want to place a new line of equal length parallel to the previous line. The line properties are listed in a grid window (Measurement Pane or Report Window).

  3. Repeat step 2 to add additional parallel lines.

  4. To draw a different line, repeat step 1 and, optionally, steps 2 and 3.

TIP

Before tracking through an image set, be sure generate/checkbox.jpg Centroid First Point and generate/checkbox.jpg Centroid Last Point are set as desired on the Centroid Properties (Markers) page.

If checked, the centroid coordinates will be computed for every member of the image set.

If unchecked, the current coordinates will be duplicated to each member of the image set.

Measurement Results

Measurements are tabulated in a grid window (Line Measurements measurement pane as shown above, or a Report Window as shown below). The difference between the two output options is that the Lines measurement pane receives only measurements of that Image Window whereas the Line Measurements window is global and receives measurements from all Image Windows.

If the image has a World Coordinate System ("WCS") calibration, then X1, X2, Y1, and Y2 give the WCS values corresponding to listed column,row coordinates.

Column data in the Lines pane and Line Measurements report are described in the table below. The last few columns from the table below are not scrolled into view in the picture above.

Line Measurements Column Data

#

The sequence number of the measurement.

Image

The name of the image that was measured.

Index

The marker index for the particular image.

Distance

The distance in pixel units, or World units if the image has a WCS calibration, between the beginning and ending points.

Angle

The angle in degrees.

X 1

The X coordinate of the starting point.

Y 1

The Y coordinate of the starting point.

Value 1

The image pixel value at the starting point.

X 2

The X coordinate of the ending point.

Y 2

The Y coordinate of the ending point.

Value 2

The image pixel value at the ending point.

Col 1

The column coordinate of the starting point.

Row 1

The row coordinate of the starting point.

Col 2

The column coordinate of the ending point.

Row 2

The row coordinate of the ending point.

Notes

Space to add comments about the measurements. These will be included if you export the table to a text file.

Marking Endpoints

As with other interactive marking commands, the Line Measurements command can use the exact marked endpoints or it can compute either or both of the endpoints as a precise centroid position. All 4 combinations of centroid or no centroid and starting point or ending point are possible. To set these options, click btn_options_sm2.png on the toolbar to open the Marker Properties dialog for this command, then set Centroid First Point or Centroid Last Point accordingly.

The related Distance & Angle measurement tool marks only one line on a single image per window. However the general operating principles are the same. The topic Examples of Distance & Angle Measurement discusses centroiding the starting and ending points when making a line measurement.

Related Topics

Measuring Images

World Coordinate System

Distance and Angle

Angle Measurement Definition

Measurement Panes

Report Windows

Marker Properties

Line Profile Plot

Plot Line Measurements


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