Difference between revisions of "Segmenting Images Using Contours and Masks: Generating Masks"

From MIPAV
Jump to: navigation, search
(Created page with '== Generating masks == <div style="font-style: normal; font-weight: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-deco...')
 
Line 331: Line 331:
  
 
<br /></font></div><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>
 
<br /></font></div><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>
 
=== Creating a mask using the Paint Grow Segmentation method ===
 
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 6pt; 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"> You can create a mask using the paint grow segmentation method, which uses voxel aggregation to group voxels into larger regions. You begin by selecting a voxel to serve as the <span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">seed point,</font>''</span> or starting point. The software applies paint color to all voxels touching the seed point that fall within the intensity range that you specify.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 5pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Note:</font>'''</span> You cannot apply the paint grow segmentation method to RGB images.<br /></font></div>
 
 
==== To create a mask using the Paint Grow tool ====
 
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 6pt; 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"> [[Image:FillsAreaIco.jpg]] - Fill an Area with Desired Color<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  1 Click the Fill an Area with Desired Color icon. The Paint Grow dialog box appears ([MIPAV_Segmentation.html#1026632 Figure 189]).<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  2 Select the seed point, which is used as a starting point for the paint grow operation. To do this, move the pointer to the image. As you move the cursor, the location and intensity of the voxel under the pointer tip appears in the Cursor position and voxel intensity text box. Click the voxel you want to designate as the seed point.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  3 Adjust the delta values and parameters. <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  4 Click Apply when complete to begin the paint grow method. The Paint Grow dialog box closes.<br /></font></div><div style="font-style: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> To correct the mask<br /></font>'''</div>
 
 
If the results are not what you want, do the following:
 
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  1 Click the Paint Grow button. The Paint Grow dialog box appears.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  2 Select the seed point, which is used as a starting point for the paint grow operation. To do this, move the pointer to the image. As you move the cursor, the location and intensity of the voxel under the pointer tip appears in the Cursor position and voxel intensity text box. Click the voxel you want to designate as the seed point.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  3 Adjust the delta values and parameters. <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  4 Click Apply when complete to begin the paint grow method. The Paint Grow dialog box closes.<br /></font></div><div style="font-style: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> If the results are not what you want, do either of the following:<br /></font>'''</div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 36pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -12pt; text-transform: none; vertical-align: baseline"><font color="#000000">  Click the Undo last region paint icon, and start again.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 36pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -12pt; text-transform: none; vertical-align: baseline"><font color="#000000">  Click the Erase icon, or click, the Erase all paint icon, to erase all paint.<br /></font></div><div style="font-style: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> To commit the mask<br /></font>'''</div>
 
 
Click one of the following commit buttons:
 
 
<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"> [[Image:MasksInsidePaintedAreaIco.jpg]] - the Masks Inside Painted Area icon.<br /></font></div><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">  [[Image:MasksOutsidePaintedAreaIco.jpg]] - the Masks Outside Painted Area icon.<br /></font></div>
 
 
==== Paint Grow dialog box options ====
 
 
<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><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">
 
 
{| border="1" cellpadding="5"
 
|+ <div style="font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 9pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Figure 189. Paint Grow dialog box  <br /></font>'''</div>
 
|-
 
|
 
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Cursor position and voxel intensity</font>'''</span></div>
 
|
 
<div class="CellBody">Indicates the coordinates and intensity of the pixel under the mouse pointer tip. This pixel is the seed point.</div>
 
| rowspan="3" colspan="1" |
 
<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 clear="all" />{| align="center"
 
|
 
[[Image:PaintGrow_StaticThreshold.jpg]]
 
|}<br clear="all" /><br /></font></div>
 
|-
 
|
 
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Delta above selected voxel intensity</font>'''</span></div>
 
|
 
<div class="CellBody">Once a seed point has been selected, MIPAV uses this value to determine whether to fill adjacent voxels with color. The voxels that are filled must have intensity levels that fall within the range of the seed point intensity minus the lower delta value and the upper delta value. For example, if seed point has an intensity of 100.0, and the <span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">Delta Above Selected Pixel Intensity </font>''</span>value is 10 and the <span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">Delta Below Selected Pixel Intensity </font>''</span>value is 15, MIPAV color-fills adjacent voxels whose intensities range from 85.0 to 110.0.</div>
 
|-
 
|
 
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Delta below selected voxel intensity</font>'''</span></div>
 
|
 
<div class="CellBody">Once a seed point is, MIPAV uses this value to determine whether to fill adjacent voxels with color. The voxels that are filled must have intensity levels that fall within the range of the seed point intensity minus the lower delta value and the upper delta value.</div>
 
|-
 
| rowspan="5" colspan="1" |
 
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Parameters:</font>'''</span></div> <div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Unrestricted size</font>'''</span></div> <div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Maximum size</font>'''</span></div> <div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Unrestricted distance</font>'''</span></div> <div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Maximum distance</font>'''</span></div>
 
| rowspan="5" colspan="2" |
 
<div class="CellBody">Constrains the growth of the paint grow operation. Select the <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Unrestricted size</font>'''</span> and <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Unrestricted distance</font>'''</span> check boxes to allow the paint grow operation to be applied without restraint. If the <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Unrestricted size</font>'''</span> check box is not selected, type the <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">maximum size</font>'''</span> (in cubic meters) of the paint grow region in the text box. If the <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Unrestricted distance</font>'''</span> check box is not selected, type the maximum distance from the original seed point in the text box.</div>
 
|-
 
|-
 
|-
 
|-
 
|-
 
| rowspan="1" colspan="3" |
 
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Fuzzy connectedness</font>'''</span></div>
 
|-
 
|
 
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Fuzzy connectedness</font>'''</span></div>
 
| rowspan="1" colspan="2" |
 
<div class="CellBody">Check tis box to use the fuzzy connectedness coefficient instead of static threshold. Here, Fuzzy connectedness represents the idea of connection or "hanging-togetherness" of image elements in an object by assigning a strength of connectedness to every possible path between every possible pair of image elements. </div> <div class="CellBody">A fuzzy connected object is defined with a fuzzy threshold or the strength of connectedness. </div>
 
|-
 
|
 
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Initial variance from selected VOI</font>'''</span></div>
 
|
 
<div class="CellBody">Uses the initial intensity values from the selected region of interest (VOI).</div>
 
| rowspan="6" colspan="1" |
 
<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 clear="all" />{| align="center"
 
|
 
[[Image:PaintGrow_FuzzyConnectedness.jpg]]
 
|}<br clear="all" /><br /></font></div>
 
|-
 
|
 
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Display fuzzy image</font>'''</span></div>
 
|
 
<div class="CellBody">Displays the result image in a separate frame. </div>
 
|-
 
|
 
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Fuzzy threshold</font>'''</span></div>
 
|
 
<div class="CellBody">is a threshold on the strength of connectedness of image elements.</div>
 
|-
 
|
 
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Close</font>'''</span></div>
 
|
 
<div class="CellBody">Closes this dialog box.</div>
 
|-
 
|
 
<div class="CellBody"><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Cancel</font>'''</span></div>
 
|
 
<div class="CellBody">Disregards any changes that you made in this dialog box and closes the dialog box.</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>
 
|
 
<div class="CellBody">Displays online help for this dialog box.</div>
 
|}
 
 
<br /></font></div><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><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>
 
 
==== Examples of using the Paint Grow tool ====
 
 
Here, is a step-by-step guide for selecting a region(s) of interest using the Paint Grow tool options. In this example we will use an image of the human eye and we will try to segment the blood vessels located on the retina.
 
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 5pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> First, make sure to adjust the contrast of your image so that the different tissues appear visually distinctive. For images with more than 8 bits per voxel you may want to use the various LUT available in MIPAV.<br /></font></div><div style="font-style: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> To segment blood vessels using the static threshold<br /></font>'''</div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  1 Open the Paint Grow dialog box.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  2 Use the mouse cursor to select the point on the image (on a blood vessel) which has the desired intensity value.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  3 Use the Change Paint Color option to select the color (other than red) which will be used for painting.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  4 On the Static Threshold tab, adjust the intensity thresholds so that the tissue you want to preserve is highlighted.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  5 Check the Unrestricted size and Unrestricted distance options. This will allow the paint grow operation to be applied without restriction.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  6 Watch the paint region growing.<br /></font></div>
 
 
For example, when selecting the blood vessels, the image might look like the panel A for grayscale images or panel B for images after applying Blue LUT in the [MIPAV_Segmentation.html#1610564 Figure 190] below.
 
 
<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">
 
 
{| border="1" cellpadding="5"
 
|+ <div style="font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 9pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Figure 190. The Paint Grow tool was used to locate the blood vessels on the grayscale image (A) first, and then on the same image after applying the Blue LUT (B). <br /></font>'''</div>
 
|-
 
|
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 1pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br clear="all" />{| align="center"
 
|
 
[[Image:RetinaVesselsGrayscale.jpg]]
 
|}<br clear="all" /><br /></font></div> <div class="CellBody">A - the painted region appears in red (which is the default color)</div>
 
|
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 1pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br clear="all" />{| align="center"
 
|
 
[[Image:RetinaVeselsDialogOptions.jpg]]
 
|}<br clear="all" /><br /></font></div>
 
|
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 1pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br clear="all" />{| align="center"
 
|
 
[[Image:RetinaVessels BlueLUT.jpg]]
 
|}<br clear="all" /><br /></font></div> <div class="CellBody">B - the painted region appears in green, because we selected it as a color contrast to LUT colors</div>
 
|}
 
 
<br /></font></div><div style="font-style: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> To segment blood vessels using the Fuzzy Connectedness option<br /></font>'''</div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  1 Open an image of interest.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  2 You might consider to delineate a VOI on a region of the image which is of your interest, first. This is optional.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  1 Open the Paint Grow dialog box, and then open the Fuzzy Connectedness tab.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  2 Check the <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Fuzzy Connectedness</font>'''</span> check box to activate the tool.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  3 Check the<span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Initial variance from selected VOI</font>'''</span> box (optional).<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  4 Check the <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Display fuzzy image option</font>'''</span> to view the result in a new frame.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  5 Use the mouse cursor to select the point on the image (on a blood vessel) which has the desired intensity value.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  6 Adjust the Fuzzy thresholds so that the tissue you want to preserve is highlighted.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  7 Watch the paint region appeared in a new frame.<br /></font></div>
 
 
For example, when selecting the blood vessels, the image might look like the panel A or panel B for images in the [MIPAV_Segmentation.html#1611374 Figure 191] below.
 
 
<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">
 
 
{| border="1" cellpadding="5"
 
|+ <div style="font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 9pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Figure 191. The Fuzzy Connectedness option.<br /></font>'''</div>
 
|-
 
|
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 1pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br clear="all" />{| align="center"
 
|
 
[[Image:RetinaVesselsFuzzyGrayscale.jpg]]
 
|}<br clear="all" /><br /></font></div> <div class="CellBody">a - the painted region appears in red </div>
 
|
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 1pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br clear="all" />{| align="center"
 
|
 
[[Image:RetinaVesselsFuzzyResult.jpg]]
 
|}<br clear="all" /><br /></font></div> <div class="CellBody">b -the painted region also appears in a new frame</div>
 
|
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 1pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br clear="all" />{| align="center"
 
|
 
[[Image:RetinaVeselsDialogOptionsFuzzy.jpg]]
 
|}<br clear="all" /><br /></font></div> <div class="CellBody">c</div>
 
|}
 
 
</font></div>
 
 
[[Segmenting Images Using Contours and Masks:Converting VOI contours to masks]]
 

Revision as of 20:48, 13 February 2012

Generating masks

A mask is a filter that selectively includes or excludes certain values. You can create a mask that includes the VOI areas and excludes all other areas. Masks are particularly helpful if you use other applications to further analyze images because those programs may require that you supply a mask. An example of a mask appears in [MIPAV_Segmentation.html#1345222 Figure 181].

You can create masks using a variety of methods:

Use paint tools to manually create a mask, refer to [MIPAV_Segmentation.html#1348003 page 282]
Use Paint Grow Segmentation tool, refer to [MIPAV_Segmentation.html#1012743 page 294]
Use binary or short mask utilities, refer to [MIPAV_Segmentation.html#1610706 page 297]
Use the Advanced Paint tool, refer to [MIPAV_Segmentation.html#1604592 page 302]
Use the Power Paint tool, refer to [MIPAV_Segmentation.html#1617005 page 303]

MIPAV also provides algorithms that you can use to generate masks. These algorithms are addressed in volume 2 of the User's Guide.

Figure 181. Image with (A) a painted region and (B) the resulting mask


{| align="center"

ExamplePaintandMask.jpg



|}


Manually creating a mask using paint

You can manually create a mask using the tools on the Paint toolbar, which is located in the MIPAV window. To create the mask, you first select the intensity level of the paint, along with the paint color and opacity value. Next, you paint on the image using the paint brush. You can adjust the size of the paint brush tip. When complete, you then commit the paint by choosing one of the following icons:
MasksInsidePaintedAreaIco.jpg - Masks Inside the Painted Area
MasksOutsidePaintedAreaIco.jpg - Masks Outside the Painted Area

When you click one of these icons, it applies the intensity permanently to the image. You can then choose to save the image.

If the Paint toolbar does not appear in the MIPAV window, select Toolbars. The Toolbar menu lists four commands: VOI Toolbar, Paint Toolbar, Scripting Toolbar, and Image Toolbar. If a toolbar command has a check mark next to it, the toolbar is displayed; otherwise, it is hidden. To display the Paint toolbar, select Paint Toolbar. See also [MIPAV_QuickStart.html#2693414 "MIPAV toolbars" on page 21].

Manually generating a mask includes the following four steps:

Step 1, Selecting the paint intensity level
Step 2, Selecting a paint color
Step 3, Adjusting the opacity level of the paint
Step 4, Applying the paint

Step 1, Selecting the paint intensity level

The first step in manually creating a mask is to select the intensity level of the masked area.You can select the intensity level by using the eyedropper tool to select an intensity value that is already present in an image or by typing a specific intensity value in the Desired Paint Intensity dialog box.
To select the intensity level using the Eyedropper tool
PIckColorIco.jpg - Eyedropper
The allows you to copy an intensity level that is already present in the image. To use this tool, complete the following steps:
1 Click the Eyedropper icon, on the paint toolbar in the MIPAV window.
2 Click the area of the image that has the intensity level you want to copy. The intensity shown at the bottom of the MIPAV window changes to the intensity level in the part of the image you've selected.
Example: Initially, the intensity level button shows a zero on the button. However, when you click an area of the image, it displays the number that is associated with that part of the image, such as 250.
You can enter a specific intensity level value in the Desired Paint Intensity window. To do this, complete the following steps:
1 Click the Intensity button.
Note: If you changed the intensity level using the eyedropper or this button previously in your current MIPAV session, the number on the Intensity button would have changed from 0 to the number representing that earlier intensity level.
The Desired Paint Intensity dialog box opens.
2 Notice that the minimum and maximum intensity values appear in parentheses. These values depend on the image type, or data type, of the image.
Tip: You can look at the exact intensity levels in the image using ButtonMagnifyRegion.jpg , the Magnify region icon.
Figure 182. Desired Paint Intensity dialog box

Intensity
Specifies the intensity, or strength, of the paint.

{| align="center"

DialogboxDesiredPaintIntensity.jpg



|- |

Apply

|

Applies the intensity that you specified to the image.

|- |

Cancel

|

Disregards any changes that you made in this dialog box and closes the dialog box.

|- |

Help

|

Displays online help for this dialog box.

|}


3 Type the desired level of intensity.
4 Click Apply to apply the intensity level to the paint. Note that the number on the Intensity button changes to the number you entered.
5 Click ButtonClose.jpg or Cancel to close the dialog box.

Step 2, Selecting a paint color

ChoosePaintColorIco.jpg - Change Paint Color
After you select the intensity level, the next step is selecting the paint color. The program applies this color to the image so that you can easily see where you applied the new intensity. When you commit the changes to the image, the grayscale intensity level that you indicated in step 1 is permanently applied to the image.

To select a color, use the Change Paint Color icon, to display the Pick Paint Color dialog box ([MIPAV_Segmentation.html#1346190 Figure 184]). This dialog box includes three tabbed pages: Swatches page, which is always displayed first; the HSB page; and the RGB page. You can select a color on any of the pages.

To select a color from one of the 310 color swatches
1 Click the Change Paint Color icon. The Pick Paint Color dialog box ([MIPAV_Segmentation.html#1348107 Figure 183]) opens.
2 Stay on the Swatches page, or, if you moved to HSB or RGB pages, click Swatches to return to the Swatches page.
3 Click the desired color in the larger grid. The color appears in the Recent color grid on the right.
4 Click Close when done. The Pick Paint Color dialog box closes. The color you selected becomes the current paint color.
To select a color using the HSB model
1 Click the Change Paint Color icon. The Pick Paint Color dialog box opens.
2 Click HSB. The HSB page appears ([MIPAV_Segmentation.html#1346190 Figure 184]B).
3 Specify a color by entering specific numbers for the hue, saturation, and brightness values, or select the color from the color graphic.
Enter specific values into the H, S, and B boxes:
Type the hue value in H. The hue can be any number from 0 to 359. The numbers correspond to the degree numbers on the color square ([MIPAV_Segmentation.html#1033995 Figure 185]). For example, to specify a shade of blue, enter a number from 255 to 270. The slider automatically moves the correct hue on the color strip.
Type the saturation value in S. The level of saturation can be anywhere from 0 (gray) to 100 (full-strength hue). When you type a value into this box, a circle appears in the color square around the color with the specified saturation level. Colors to the left of the color graphic are circled if the saturation level is high. Lower saturated colors are found to the left of the color graphic.
Type the brightness value in B. The level of brightness can be anywhere from 0 (dark) to 100 (light). In the color graphic, a circle appears around the color with the specified brightness level. Colors near the top of the color graphic are circled if the saturation level is high. Darker colors are found near the bottom of the color graphic.
Select the hue, saturation, and brightness on the color square or color strip:
Drag the slider to select the desired hue from the color strip.
Select the shade you wish to use in the color square.
4 Click Close when done. The Pick Paint Color dialog box closes. The color you selected becomes the current paint color.

Pick Paint Color dialog box options

Figure 183. Swatches page in the Pick Paint Color dialog box


{| align="center" | DialogboxPickPaintColorSwatches.jpg |}

Color grid
Shows the available colors. Select one of these colors and it appears in the Recent grid on the right.
Recent grid
Indicates colors that you have recently selected from the color grid on the left. MIPAV uses the last color that you selected from the color grid and that appears in this grid as the color of the background in the lightbox view once you select OK.
OK
Applies the parameters that you specified to crop the image.
Cancel
Disregards any changes you made in this dialog box, closes the dialog box, and does not crop the image.
Reset
Returns the color settings to their previous values.
Help
Displays online help for this dialog box.

Figure 184. The HSB page in the Pick Paint Color dialog box


{| align="center"

DialogboxPickPaintColorHSB.jpg



|- |

Color square

|

Specifies a specific color to be used as the background color.

|- |

Color strip

|

Specifies a specific color to be used as the background color.

|- |

H

|

Specifies the number representing the hue of the color.

|- |

S

|

Specifies the number representing the saturation of the color.

|- |

B

|

Specifies the number representing the brightness of the color.

|- |

R

|

Specifies the number for the color used for the red channel.

|- |

G

|

Specifies the number for the color used for the green channel.

|- |

B

|

Specifies the number for the color used for the blue channel.

|- |

OK

|

Applies the parameters that you specified to crop the image.

|- |

Cancel

|

Disregards any changes you made in this dialog box, closes the dialog box, and does not crop the image.

|- |

Reset

|

Returns the color settings to their previous values.

|- |

Help

|

Displays online help for this dialog box.

|}