Calculating VOI statistics

From MIPAV
Jump to: navigation, search

VOI statistics

Once a VOI is drawn, you can calculate the number of voxels in the VOI, the volume, and area. You can also calculate the average and standard deviation of the voxel intensity and the center of mass. For 2D images, you can calculate the principal axis and the eccentricity. MIPAV provides two methods for you to obtain VOI statistics:

  • By using VOI properties - this method is fast and simple and provides statistics for the entire VOI. Although it allows you to save the results in a text file, that is an additional step. However, using this method, you can type additional information directly onto the Data page with the statistics.
  • By using the Statistics Generator - in this method, you can obtain statistics on the entire VOI, on a single slice of the VOI, or by contour and slice. The Statistics Generator also automatically saves the results in either a tab-delimited file or an XML file of your choosing. In addition, it displays statistics in a tabular format.

Note: MIPAV can calculate statistics for only one VOI at a time. In addition, MIPAV calculates the volume and area in a VOI using image pixel (voxel) resolutions.

Calculating VOI statistics using VOI properties

This method is fast and simple and provides statistics for the entire VOI. It allows you to save the results in a text file.

To calculate statistics for a given VOI:

  1. Select the desired VOI in the image window.
  2. Select VOI > Properties in the MIPAV window. The VOI Statistics dialog box appears.
  3. Select the statistics to be calculated in Statistics to Calculate. Click Calculate. The VOI Statistics dialog box remains on the desktop. In a few moments, statistical data appears on the Data page in the Output window.
  4. To close the dialog box, click Cancel in the VOI Statistics dialog box when complete.
  5. To add information to the statistics, just type it in into the statistics on the Data page.
  6. To remove the data, select them first, and then click the Cut icon or select Edit > Cut to cut the selected data. MIPAV removes the selected text from the Output window and copies it to the clipboard for use in other applications.
  7. Select the data that you want to copy, and then click Copy or select Edit > Copy to copy the data to another location in the window or to another application (such as a word processor).
  8. Click Save or select File > Save messages to save the data and any comments you've added to a text file.
  9. Click Clear Messages or select Edit > Clear Messages to clear the window.

VOI Statistics dialog box

VOI Statistics dialog box
VOI Properties
Name of VOI
Shows the name of VOI.
VOIStatisticsDialogBox.jpg
Thickness of VOI
Shows the number which represents how many slices has a selected VOI.
Color of VOI
Shows the color that was used to outline the VOI.
Show contour bounding box
Highlights the VOI and, when you select the VOI, displays a box that encompasses all of the VOI's borders and lists the measurements and position of each boundary.
Use additive polarity for VOI
If selected, put VOI names, such as "polygon1" to indicate VOI location.
Include for processing
This option is very helpful if you have a set of VOIs delineated on your image and want to use some of them for masking. See "Using the Include for Processing option".
Show VOI name
If selected, shows the name of the chosen VOI. E.g. "polygon1."
Display VOI shading
Shades the area inside a chosen VOI. When this option is selected, the Opacity slider becomes also available, so you can regulate the opacity of the shaded area.
Statistics to calculate
Provides a list of statistics. Select the statistics that you want to include in the report.
VOIStatisticsOutput.jpg
Select all
Selects all of the statistics listed in the Statistics to calculate list.
Clear
Clears all of the check boxes that you selected in the Statistics to calculate list.
VOI Tree
Displays all VOIs delineated on the image in an hierarchical view.
Tree options
Frame follows VOI selection - if this option is selected, the current selected VOI appears in a frame in the VOI tree.
Exclude intensity range
Allows you to select specific intensity ranges that you want to exclude from the calculation.
Watershed seed value (0-32K)
Indicates the basin value used when running the Watershed algorithm on images.
Apply
Applies the changes you made in this dialog box and leaves the dialog box open for you to make further changes.
Cancel
Disregards any changes you made in this dialog box, closes the dialog box, and does not run a statistics report.
Calculate
Calculates the statistics requested in this dialog box and displays them in the Data page of the Output window.


Quick AND VOI mask operation

The Include for Processing option of VOI Statistics dialog box is very helpful if you have a set of VOIs delineated on your image and want to use some of them for masking. In that case, select the VOI(s) of interest, then activate the Include for Processing option, and after that, call one of the mask tools, e.g. the Quick AND VOI mask operation, see VOI toolbar. The tool will apply on the selected VOI(s). In case when the Include for Processing option has not been activated, then the Quick AND VOI mask operation will apply on the whole image and darken it.


How to use the Include for processing option for the Quick AND VOI mask operation

In the illustration below, (a) The Include for Processing option is activated and (b) the Include for Processing option is disabled.

VOIProtertiesIncludeForProcessing.jpg

Using the Statistics Generator

If you plan either to use a database or spreadsheet to keep track of VOI statistics or to obtain them in an XML format, use the Statistics Generator. As mentioned earlier, the Statistics Generator can provide statistics on an entire VOI(s) or a particular slice or by contour and slice.

Using the Statistics Generator involves three tasks:

Selecting VOI and save options

The first task is to select the VOIs on which you want to obtain statistics and select the file in which the resulting statistics should be saved.

StatisticsVoiGroups

To Calculate Statistics on VOI Groups

Calculate Statistics on VOI Groups window
  1. Delineate or select the VOI(s) on the image.
  2. Select VOI > Statistics Generator in the MIPAV window. The Calculate Statistics on VOI Groups window appears (Figure 35). This window displays all of the VOIs on the image in the VOI group list on the left.
  3. Select the VOI on which you want to obtain statistics.
  4. Press Send Selection Right. The name of the VOI appears in the VOI group list on the right.
  5. Use Browse to choose a file name in the VOI Statistic File Destination box.
  6. Select either one of the two formats in the Output Format group: Tab delimited or XML.
  7. Click Statistics Options. The Statistics Options page opens.
  8. Proceed to the next task: Selecting statistics options.

See also: Calculating statistics on VOI groups.

Selecting statistics options

The Statistics Options tab provides a list of statistics from which you can select and the options to obtain statistics by slice, by contour and slice, or by the total VOI.

Statistics Options tab

To select statistics to perform on VOIs

Do either of the following in the Statistics to calculate group:

  1. Select one or more of the listed types of statistics.
  2. Click Select all to obtain all of the statistic types.
  3. Select one of the following options in the Statistics options group:
  • By contour & slice;
  • By slice only;
  • By total VOI (the default selection).
  • Select Show all totals if you want to record the totals for each type of statistic.
  • Click Calculate.
  • Select Logging. The Logging page appears.
  • Proceed to the next task: Reviewing VOI statistics.
  • Reviewing VOI statistics

    Refer to: Reviewing VOI statistics.

    See also: