Difference between revisions of "Segmenting Images Using Contours and Masks: Generating Masks"
(→Step 1, Selecting the paint intensity level) |
(→Step 2, Selecting a paint color) |
||
Line 72: | Line 72: | ||
<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:ChoosePaintColorIco.jpg]] - Change Paint Color<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"> 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.<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:ChoosePaintColorIco.jpg]] - Change Paint Color<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"> 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.<br /></font></div> | ||
− | To select a color, use the Change Paint Color icon, to display the Pick Paint Color dialog box ( | + | 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. |
− | <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 select a color from one of the 310 color swatches<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 Paint Color icon. The Pick Paint Color dialog box ( | + | <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 select a color from one of the 310 color swatches<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 Paint Color icon. The Pick Paint Color dialog box (Figure 3) opens.<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 Stay on the Swatches page, or, if you moved to HSB or RGB pages, click Swatches to return to the Swatches page.<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 the desired color in the larger grid. The color appears in the Recent color grid on the right.<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 Close when done. The Pick Paint Color dialog box closes. The color you selected becomes the current paint color.<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 select a color using the HSB model<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 Paint Color icon. The Pick Paint Color dialog box opens.<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 Click HSB. The HSB page appears (Figure 4B).<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 Specify a color by entering specific numbers for the hue, saturation, and brightness values, or select the color from the color graphic.<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"> Enter specific values into the H, S, and B boxes:<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 48pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -12pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">Type the hue value in H.</font>''</span> The hue can be any number from 0 to 359. The numbers correspond to the degree numbers on the color square (Figure 5). 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.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 48pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -12pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">Type the saturation value in S.</font>''</span> 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.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 48pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -12pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">Type the brightness value in B.</font>''</span> 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.<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"> Select the hue, saturation, and brightness on the color square or color strip:<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 48pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -12pt; text-transform: none; vertical-align: baseline"><font color="#000000"> Drag the slider to select the desired hue from the color strip.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 48pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -12pt; text-transform: none; vertical-align: baseline"><font color="#000000"> Select the shade you wish to use in the color square.<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 Close when done. The Pick Paint Color dialog box closes. The color you selected becomes the current paint color.<br /></font></div> |
==== Pick Paint Color dialog box options ==== | ==== Pick Paint Color dialog box options ==== |
Revision as of 21:07, 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.
|
|- |
|
|- |
|
|- |
|
|- |
|
|- |
|
|- |
|
|- |
|
|- |
|
|- |
|
|- |
|
|- |
|
|- |
|
|}
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. Â
| |
{| align="center" |
|}
|- |
|
|- |
|
|- |
|
|- |
|
|- |
|
|- |
|
|- |
|
|}
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.
|
{| align="center" |
|- |
|
|}