Difference between revisions of "Segmenting Images Using Contours and Masks: Generating Masks"
(→Pick Paint Color dialog box options) |
(→Step 3, Adjust the opacity level of the paint) |
||
Line 250: | Line 250: | ||
==== Step 3, Adjust the opacity level of the paint ==== | ==== Step 3, Adjust the opacity level of the paint ==== | ||
− | <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 further refine the appearance of the paint selecting its opacity level. Opacity levels can range from 0.0 (transparent) to 1.0 (opaque). <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 change the opacity level<br /></font>'''</div><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:ChangeOpacityOfPaintIco.jpg]] - Change Opacity of Paint<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 Change Opacity of Paint icon on the Paint toolbar. The Paint Opacity window appears ( | + | <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 further refine the appearance of the paint selecting its opacity level. Opacity levels can range from 0.0 (transparent) to 1.0 (opaque). <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 change the opacity level<br /></font>'''</div><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:ChangeOpacityOfPaintIco.jpg]] - Change Opacity of Paint<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 Change Opacity of Paint icon on the Paint toolbar. The Paint Opacity window appears (Figure 7).<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 Drag the slider to the desired level of opacity. The current level appears in the bold print underneath the slider.<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 Click Close to apply the opacity level. The opacity level on the image changes according to your specifications.<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" | {| 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 | + | |+ <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 7. Paint Opacity dialog box<br /></font>'''</div> |
|- | |- | ||
| | | | ||
Line 260: | Line 260: | ||
<div class="CellBody">Specifies the degree of transparency. To make the color more transparent, move the slider to left. To make it more opaque, move the slider to the right.</div> | <div class="CellBody">Specifies the degree of transparency. To make the color more transparent, move the slider to left. To make it more opaque, move the slider to the right.</div> | ||
| rowspan="2" colspan="1" | | | rowspan="2" colspan="1" | | ||
− | |||
− | |||
[[Image:dialogboxPaintOpacity.jpg]] | [[Image:dialogboxPaintOpacity.jpg]] | ||
− | |||
|- | |- | ||
| | | | ||
Line 271: | Line 268: | ||
|} | |} | ||
− | <br / | + | <br /> |
==== Step 4, Apply paint ==== | ==== Step 4, Apply paint ==== |
Revision as of 21:14, 13 February 2012
Contents
- 1 Generating masks
- 1.1 Manually creating a mask using paint
Generating masks
You can create masks using a variety of methods:
- Use paint tools to manually create a mask
- Use Paint Grow Segmentation tool
- Use binary or short mask utilities
- Use the Advanced Paint tool
- Use the Power Paint tool
MIPAV also provides algorithms that you can use to generate masks. These algorithms are addressed in volume 2 of the User's Guide.
Manually creating a mask using paint
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
Intensity
|
Specifies the intensity, or strength, of the paint.
|
|
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.
|
Step 2, Selecting a paint color
To select a color, use the Change Paint Color icon, to display the Pick Paint Color dialog box (Figure 4). 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.
Pick Paint Color dialog box options
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.
|
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.
|
Using the Hue, Saturation, and Brightness Color Model
| |
The HSB color model defines colors by a combination of their hue, saturation, and brightness. The hue is the wavelength of light transmitted through or reflected from an object. The hue is more commonly known as color (such as magenta or green). Below is the Munsell color wheel. A color strip, which is derived from the color wheel, appears as well. Hues are represented by the degrees in the color wheel. (Since colors are graduated, the degrees in the figure are approximations and not necessarily absolute values. For example, yellow is approximately 45 degrees; 50 degrees is a different shade of yellow.
|
Primary colors (red, yellow, and blue) combine to create secondary colors (magenta, cyan, and green).Tertiary colors, such as orange, are also represented on the color wheel. The color strip is simply a different representation of the color wheel. Degrees and corresponding hues were added to the figure. Saturation is the strength or purity of the hue. To lessen the saturation, gray is added to the color. Thus, if pure orange is 70 percent saturated, the hue is a mixture of orange (70 percent) and gray (30 percent). Brightness is the relative darkness and lightness of a color; 0% brightness is black; 100% brightness is white. |
Red slider and list box
|
Specifies the number representing the red channel. Either use the slider, or select the number in the list box.
|
Green slider and list box
|
Specifies the number representing the green channel. Either use the slider, or select the number in the list box.
|
Blue slider and list box
|
Specifies the number representing the blue channel. Either use the slider, or select the number in the list box.
|
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.
|
Step 3, Adjust the opacity level of the paint
Opacity
|
Specifies the degree of transparency. To make the color more transparent, move the slider to left. To make it more opaque, move the slider to the right.
|
|
Close
|
Closes this dialog box.
|
Step 4, Apply paint
To paint on the image
Step 5, Commit
To commit changes, select one of the following commit icons:
{| align="center" |
|
|
|}
===Section Con't in Creating a mask using the Paint Grow Segmentation method ===