Degrees of freedom and Generating graphs: Difference between pages

From MIPAV
(Difference between pages)
Jump to navigation Jump to search
m (1 revision imported)
 
MIPAV>Angelfish100
 
Line 1: Line 1:
The number of independent pieces of information that go into the estimate of a parameter is called '''the degrees of freedom (DOF)'''. In this guide, DOF are given for 3D images.
MIPAV allows you to generate intensity profiles, or contour VOI graphs, for VOI contours. For delineated VOIs, you can generate 2D, 3D, or 4D intensity graphs. You can also generate a 3D intensity graph at a specific point across all slices in a dataset. For information on how to contour a VOI, refer to Chapter 1, "Segmenting Images Using Contours and Masks,"<br />


== Basics ==
=== Generating contour VOI graphs ===
In general, the degrees of freedom of an estimate is equal to the number of independent scores that go into the estimate minus the number of parameters estimated as intermediate steps in the estimation of the parameter itself. In image registration, a transformation matrix establishes geometrical correspondence between coordinate systems of different images. It is used to transform one image into the space of the other.  
Contour VOI graphs display the intensity values of the selected contour's boundary in the Contour VOI Graph window (Figure 10). You can generate either 2D or 3D contour VOI graphs. <br />


=== Transformations generally used in biomedical imaging ===
'''To generate 2D contour VOI graphs'''<br />
1 Open an image.<br />
2 Delineate a 2D VOI on the image using one of the 2D icons in the MIPAV window.<br />


==== Rigid-body transformations ====


Rigid-body transformations include translations and rotations. They preserve all lengths and angles. These are '''6 DOF''' transformations, and the transformation matrix is as follows:
{| border="1" cellpadding="5"
|+ '''Figure 10. Contour VOI Graph window '''
|-
| rowspan="1" colspan="3" |
[[Image:windowContourVOIGraph.jpg]]
|-
| rowspan="4" colspan="1" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">File</font>'''</span></div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Open Graph</font>'''</span>-Opens a PLT file that contains graph data. When you select this command or press Ctrl O on the keyboard, the Open Graph Data dialog box appears. </div>
|-
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Save Graph</font>'''</span>-Saves the graph data in a PLT file. When you select this command or when you press Ctrl S on the keyboard, the Save dialog box opens.</div>
|-
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Print Graph</font>'''</span>-Allows you to print the graph. When you select this command or press <br />Ctrl P, the Print dialog box opens.</div>
|-
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Close Graph</font>'''</span>-Closes the Intensity Graph window. To close the window, you can also press Ctrl X on the keyboard.</div>
|-
| rowspan="3" colspan="1" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Edit</font>'''</span></div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Delete Function</font>'''</span>-Allows you to delete a specific function. However, you cannot delete a function if it is the only function displayed in the window.</div>
|-
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Copy Function</font>'''</span>-Copies a function that is currently displayed in the window.</div>
|-
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Paste Function</font>'''</span>-Pastes a previously copied function into the window. The pasted function has a different color than the first function displayed in the window.</div>
|-
| rowspan="3" colspan="1" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Views</font>'''</span></div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Modify Graph Features</font>'''</span>-Allows you to customize the appearance of the graph.</div>
|-
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Reset Range to Default</font>'''</span>-<span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">[TBD]</font>'''</span></div>
|-
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Reset Graph to Original</font>'''</span>-<span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">[TBD]</font>'''</span>. </div>
|-
|
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Help</font>'''</span></div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Help Topics</font>'''</span>-Displays online help topics.</div>
|}


<math>
<br />
\begin{bmatrix}
3 Select the VOI. <br />
  R_x & R_y & R_z \\
As an option, copy the VOI to other slices in the dataset by selecting VOI &gt; Propagate and one of the following commands:<br />
  T_x & T_y & T_z
*To Next Slice<br />
\end{bmatrix}
*To Previous Slice<br />
</math>
*To All Slices<br />
4 Do one of the following:<br />
*Select VOI &gt; Graph &gt; Boundary Intensity in the MIPAV window. <br />
*Right click on the VOI and then select Graph &gt; Boundary Intensity.<br />
*The Contour VOI Graph window (Figure 10) opens.<br />


==== Global rescale transformations ====
'''To generate 3D contour VOI graphs'''<br />
1 Open an image.<br />
2 Delineate a VOI on the image using the 3D rectangular VOI icon, in the MIPAV window. <br />
3 Select the VOI. <br />
As an option, copy the VOI to other slices in the dataset by selecting VOI &gt; Propagate and one of the following commands:<br />
*To Next Slice<br />
*To Previous Slice<br />
*To All Slices<br />
4 Do one of the following:<br />
*Select VOI &gt; Graph &gt; Boundary Intensity in the MIPAV window.<br />
*Right-click on the VOI and then select Graph &gt; Boundary Intensity. <br />
The Contour VOI Graph window (Figure 10) opens. This window displays a graph of the intensity values of the selected contour's boundary. <br />


Include translations, rotations, and a single scale parameter S=Sx=Sy=Sz. They preserve all angles and relative lengths. These are '''7DOF''' transformations and the transformation matrix is as follows:
=== Generating intensity graphs ===
Intensity profiles, or graphs, present information on the intensity values of the VOI region in an image. The intensity graph appears in the Intensity Graph window (Figure 11).<br />


<math>
'''To generate 2D intensity graphs'''<br />
\begin{bmatrix}
1 Open an image.<br />
  R_x & R_y & R_z \\
2 Delineate a 2D VOI on the image using one of the 2D icons in the MIPAV window.<br /><
  T_x & T_y & T_z \\
3 Select the VOI. <br />
        S
As an option, copy the VOI to other slices in the dataset by selecting VOI &gt; Propagate and one of the following commands:<br />
\end{bmatrix}
*To Next Slice<br />
</math>
*To Previous Slice<br />
*To All Slices<br />
4 Do one of the following:<br />
Select VOI &gt; Graph in the MIPAV window and either of the following:<br />
* ''2.5D Total Intensity'' -To generate a graph of the sum of the intensity values of the VOI region. <br />
* ''2.5D Average Intensity'' -To generate a graph of the average of the intensity values of the VOI region.<br />
Right-click on the VOI and then select Graph and one of the following commands:<br />
* ''2.5D Total Intensity'' -To generate a graph of the sum of the intensity values of the area delineated by the VOI per slice.<br />
* ''2.5D Average Intensity'' -To generate a graph of the average of the intensity values of the VOI region.<br />
* ''2.5D Total Intensity with Threshold'' -TBD. <br />
* ''2.5D Average Intensity with Threshold'' -TBD.<br />
The Intensity Graph window (Figure 11) opens.


<div id="AffineTransformations"></div>
{| border="1" cellpadding="5"
==== Affine transformations ====
|+ '''Figure 11. Intensity Graph window '''
|-
|
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">File</font>'''</span></div>
|
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Open Graph</font>'''</span>-Opens a PLT file that contains graph data.</div> <div class="CellBody">When you select this command or press Ctrl O on the keyboard, the Open Graph Data dialog box appears. </div>
| rowspan="2" colspan="1" |
[[Image:VOIGRaphMOdifyPointsVis.jpg]]
|-
|
<div class="CellBody"> </div>
|
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Save Graph</font>'''</span>-Saves the graph data in a PLT file. </div> <div class="CellBody">When you select this command or when you press Ctrl S on the keyboard, the Save dialog box opens.</div>
|-
|
<div class="CellBody"> </div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Print Graph</font>'''</span>-Allows you to print the graph. When you select this command or press <br />Ctrl P, the Print dialog box opens.</div>
|-
|
<div class="CellBody"> </div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Close Graph</font>'''</span>-Closes the Intensity Graph window. To close the window, you can also press Ctrl X on the keyboard.</div>
|-
|
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Edit</font>'''</span></div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Delete Function</font>'''</span>-Allows you to delete the function that you select. However, you cannot delete a function if it is the only function displayed in the window.</div>
|-
|
<div class="CellBody"> </div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Paste Function</font>'''</span>-Pastes a previously copied function into the window. The pasted function has a different color than the first function displayed in the window.</div>
|-
|
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Views</font>'''</span></div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Modify Graph Features</font>'''</span>-Allows you to customize the appearance of the graph.</div>
|-
|
<div class="CellBody"> </div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Reset Range to Default</font>'''</span>-TBD.</div>
|-
|
<div class="CellBody"> </div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Reset Graph to Original</font>'''</span>-TBD.</div>
|-
|
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Help</font>'''</span></div>
| rowspan="1" colspan="2" |
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Help Topics</font>'''</span>-Displays online help topics.</div>
|}


Include translations, rotations, scales, and/or skewing parameters. They preserve straight lines but necessarily not angles or lengths. Transformation matrixes for affine transformations are as follows:  
'''To generate 3D intensity graphs of all slices in a dataset at a specific point'''<br />
1 Open an image.<br />
2 Draw a point VOI on the image (Figure 12).<br />
3 Select the VOI.<br />
4 Do one of the following:<br />
*Select the Propagate VOI to all slices icon.<br />
*Select VOI &gt; Propagate &gt; To All Slices. <br />
*Right-click on the VOI, then select Propagate &gt; To All Slices (Figure 12).<br />
5 Right-click on the VOI and select Show VOI Graph (Figure 12).<br />


'''9 DOF''' transformation matrix which includes scale parameters Sx, Sy and Sz looks as follows
{| border="1" cellpadding="5"
|+ '''Figure 12. Point VOI'''
|-
|
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  <br /></font></div>


<math>
<br clear="all" />
\begin{bmatrix}
  R_x & R_y & R_z \\
  T_x & T_y & T_z \\
  S_x & S_y & S_z
\end{bmatrix}
</math>


{|
|
[[Image:PointVOIPropagate.jpg]]
|}


'''12 DOF''' transformation matrix which includes both scale and skew parameters. In the matrix, skewing parameters are presented as Skx, Sky, and Skz:  
'''To generate 3D intensity graphs of specific areas'''<br />
1 Open an image.<br />
2 Delineate a VOI on the image using the 3D rectangular VOI icon.<br />
3 Select the VOI. Then, do one of the following:<br />
*a Select VOI &gt; Graph and either of the following in the MIPAV window:<br />
** ''2.5D Total Intensity'' -To generate a graph of the sum of the intensity values of the area delineated by the VOI per slice.<br />
** ''2.5D Average Intensity'' -To generate a graph of the average of the intensity values of the VOI region.<br />
*b Right-click the VOI, and then select Graph and one of the following commands in the MIPAV window:<br />
** ''2.5D Total Intensity'' -To generate a graph of the sum of the intensity values of the area delineated by the VOI per slice.<br />
** ''2.5D Average Intensity'' -To generate a graph of the average of the intensity values of the VOI region.<br />
** ''2.5D Total Intensity with Threshold'' -TBD.<br />
** ''2.5D Average Intensity with Threshold'' -TBD.<br />
The Intensity Graph window (Figure 11) opens.<br />


<math>
\begin{bmatrix}
  R_x & R_y & R_z \\
  T_x & T_y & T_z \\
  S_x & S_y & S_z \\
  S_kx & S_ky & S_kz
\end{bmatrix}
</math>


== References ==
[[Customizing the appearance of graphs - Modify graph dialog box]]
 
*Lisa Gottesfeld Brown, A survey of image registration techniques (abstract), ACM Computing Surveys (CSUR) archive, Volume 24 , Issue 4, December 1992), Pages: 325 - 376
*Simonson, K., Drescher, S., Tanner, F., A Statistics Based Approach to Binary Image Registration with Uncertainty Analysis. IEEE Pattern Analysis and Machine Intelligence, Vol. 29, No. 1, January 2007
*Domokos, C., Kato, Z., Francos, J., Parametric estimation of affine deformations of binary images. Proceedings of IEEE International Conference on Acoustics, Speech, and Signal Processing, 2008
 
== See also: ==
 
*[[Using MIPAV Algorithms]]
*[[Cost functions used in MIPAV algorithms]]
 
[[Category:Help]]
[[Category:Help:Algorithms]]

Revision as of 20:22, 21 February 2012

MIPAV allows you to generate intensity profiles, or contour VOI graphs, for VOI contours. For delineated VOIs, you can generate 2D, 3D, or 4D intensity graphs. You can also generate a 3D intensity graph at a specific point across all slices in a dataset. For information on how to contour a VOI, refer to Chapter 1, "Segmenting Images Using Contours and Masks,"

Generating contour VOI graphs

Contour VOI graphs display the intensity values of the selected contour's boundary in the Contour VOI Graph window (Figure 10). You can generate either 2D or 3D contour VOI graphs.

To generate 2D contour VOI graphs
1 Open an image.
2 Delineate a 2D VOI on the image using one of the 2D icons in the MIPAV window.


Figure 10. Contour VOI Graph window

WindowContourVOIGraph.jpg

File
Open Graph-Opens a PLT file that contains graph data. When you select this command or press Ctrl O on the keyboard, the Open Graph Data dialog box appears.
Save Graph-Saves the graph data in a PLT file. When you select this command or when you press Ctrl S on the keyboard, the Save dialog box opens.
Print Graph-Allows you to print the graph. When you select this command or press
Ctrl P, the Print dialog box opens.
Close Graph-Closes the Intensity Graph window. To close the window, you can also press Ctrl X on the keyboard.
Edit
Delete Function-Allows you to delete a specific function. However, you cannot delete a function if it is the only function displayed in the window.
Copy Function-Copies a function that is currently displayed in the window.
Paste Function-Pastes a previously copied function into the window. The pasted function has a different color than the first function displayed in the window.
Views
Modify Graph Features-Allows you to customize the appearance of the graph.
Reset Range to Default-[TBD]
Reset Graph to Original-[TBD].
Help
Help Topics-Displays online help topics.


3 Select the VOI.
As an option, copy the VOI to other slices in the dataset by selecting VOI > Propagate and one of the following commands:

  • To Next Slice
  • To Previous Slice
  • To All Slices

4 Do one of the following:

  • Select VOI > Graph > Boundary Intensity in the MIPAV window.
  • Right click on the VOI and then select Graph > Boundary Intensity.
  • The Contour VOI Graph window (Figure 10) opens.

To generate 3D contour VOI graphs
1 Open an image.
2 Delineate a VOI on the image using the 3D rectangular VOI icon, in the MIPAV window.
3 Select the VOI.
As an option, copy the VOI to other slices in the dataset by selecting VOI > Propagate and one of the following commands:

  • To Next Slice
  • To Previous Slice
  • To All Slices

4 Do one of the following:

  • Select VOI > Graph > Boundary Intensity in the MIPAV window.
  • Right-click on the VOI and then select Graph > Boundary Intensity.

The Contour VOI Graph window (Figure 10) opens. This window displays a graph of the intensity values of the selected contour's boundary.

Generating intensity graphs

Intensity profiles, or graphs, present information on the intensity values of the VOI region in an image. The intensity graph appears in the Intensity Graph window (Figure 11).

To generate 2D intensity graphs
1 Open an image.
2 Delineate a 2D VOI on the image using one of the 2D icons in the MIPAV window.
< 3 Select the VOI.
As an option, copy the VOI to other slices in the dataset by selecting VOI > Propagate and one of the following commands:

  • To Next Slice
  • To Previous Slice
  • To All Slices

4 Do one of the following:
Select VOI > Graph in the MIPAV window and either of the following:

  • 2.5D Total Intensity -To generate a graph of the sum of the intensity values of the VOI region.
  • 2.5D Average Intensity -To generate a graph of the average of the intensity values of the VOI region.

Right-click on the VOI and then select Graph and one of the following commands:

  • 2.5D Total Intensity -To generate a graph of the sum of the intensity values of the area delineated by the VOI per slice.
  • 2.5D Average Intensity -To generate a graph of the average of the intensity values of the VOI region.
  • 2.5D Total Intensity with Threshold -TBD.
  • 2.5D Average Intensity with Threshold -TBD.

The Intensity Graph window (Figure 11) opens.

Figure 11. Intensity Graph window
File
Open Graph-Opens a PLT file that contains graph data.
When you select this command or press Ctrl O on the keyboard, the Open Graph Data dialog box appears.

VOIGRaphMOdifyPointsVis.jpg

Save Graph-Saves the graph data in a PLT file.
When you select this command or when you press Ctrl S on the keyboard, the Save dialog box opens.
Print Graph-Allows you to print the graph. When you select this command or press
Ctrl P, the Print dialog box opens.
Close Graph-Closes the Intensity Graph window. To close the window, you can also press Ctrl X on the keyboard.
Edit
Delete Function-Allows you to delete the function that you select. However, you cannot delete a function if it is the only function displayed in the window.
Paste Function-Pastes a previously copied function into the window. The pasted function has a different color than the first function displayed in the window.
Views
Modify Graph Features-Allows you to customize the appearance of the graph.
Reset Range to Default-TBD.
Reset Graph to Original-TBD.
Help
Help Topics-Displays online help topics.

To generate 3D intensity graphs of all slices in a dataset at a specific point
1 Open an image.
2 Draw a point VOI on the image (Figure 12).
3 Select the VOI.
4 Do one of the following:

  • Select the Propagate VOI to all slices icon.
  • Select VOI > Propagate > To All Slices.
  • Right-click on the VOI, then select Propagate > To All Slices (Figure 12).

5 Right-click on the VOI and select Show VOI Graph (Figure 12).

Figure 12. Point VOI


PointVOIPropagate.jpg

To generate 3D intensity graphs of specific areas
1 Open an image.
2 Delineate a VOI on the image using the 3D rectangular VOI icon.
3 Select the VOI. Then, do one of the following:

  • a Select VOI > Graph and either of the following in the MIPAV window:
    • 2.5D Total Intensity -To generate a graph of the sum of the intensity values of the area delineated by the VOI per slice.
    • 2.5D Average Intensity -To generate a graph of the average of the intensity values of the VOI region.
  • b Right-click the VOI, and then select Graph and one of the following commands in the MIPAV window:
    • 2.5D Total Intensity -To generate a graph of the sum of the intensity values of the area delineated by the VOI per slice.
    • 2.5D Average Intensity -To generate a graph of the average of the intensity values of the VOI region.
    • 2.5D Total Intensity with Threshold -TBD.
    • 2.5D Average Intensity with Threshold -TBD.

The Intensity Graph window (Figure 11) opens.


Customizing the appearance of graphs - Modify graph dialog box