# Measurement and Analysis

The Measurement and Analysis tool used to measure and straighten images. On the toolbar there are some important icons:

<figure><img src="https://642819126-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLBlqtJBdFJ4rkIvhdwcZ%2Fuploads%2FHKQqEkWmnhRxMYLXXLpV%2Fregions.png?alt=media&#x26;token=7f76d6a6-03e3-42be-aa10-979a985b9f05" alt=""><figcaption><p>Region, line, measure buttons.</p></figcaption></figure>

In this image, the first icon is selected, which is the Region tool. The next icon is the line tool. Rather than drawing a region (box, or region of interest), this will draw a line on the image. The right-most icon will display the Measurement and Analysis tool window.

<div align="left"><figure><img src="https://642819126-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLBlqtJBdFJ4rkIvhdwcZ%2Fuploads%2F62yhUchwC5t7fTRYspgV%2Fmeasurement.png?alt=media&#x26;token=9610f7f6-55d0-404b-b76e-f46d0b8d8ceb" alt="The Measurement and Analysis window."><figcaption><p>The Measurement and Analysis window.</p></figcaption></figure></div>

**Region**\
The four edit boxes contain the coordinates of the currently selection region (region of interest). The width, height and aspect ratio (A/R) of the region are also displayed.

**Line**\
When a line is drawn on the image, the length and logical length are calculated. In addition, the angle of the line and length in pixels are also displayed.

<div align="left"><figure><img src="https://642819126-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLBlqtJBdFJ4rkIvhdwcZ%2Fuploads%2FAIvjxVEw7ddaLPLdXiMm%2Fstraighten.png?alt=media&#x26;token=35db20e6-c2e5-4788-80d7-967a3a6b4d64" alt=""><figcaption></figcaption></figure></div>

When a line is defined, you can click this button to straighten the image based on the angle of the line.

<div align="left"><figure><img src="https://642819126-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLBlqtJBdFJ4rkIvhdwcZ%2Fuploads%2F2mR1KfEEXrkXcpM8X3ou%2Fline_color.png?alt=media&#x26;token=7e32b41d-98d7-4d9c-862f-0816b8fe8c24" alt=""><figcaption></figcaption></figure></div>

Click this button to change the color of the line.

**Example**

As an example, image that you know that 1 pixel in your image is equivalent to 2mm. You can set the measurement to 'mm' and the Logical length to 2.000. Then, as you draw a line on the image, you can see the measurement in mm. In the example below, the Length (pixels) is 75.0, and therefore our measurement is 150.00mm.

<div align="left"><figure><img src="https://642819126-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLBlqtJBdFJ4rkIvhdwcZ%2Fuploads%2FG4xAqHGCkeGbQjAFrrxu%2Fmeasurement_2.png?alt=media&#x26;token=2866541c-4e05-46ab-b484-86b0c8a886f2" alt="Measurement example."><figcaption><p>Measurement example.</p></figcaption></figure></div>
