|
|
(3 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | == Replacing pixel/voxel value in images ==
| + | You can replace the values of pixels or voxels in images by using the Replace pixel/voxel values command on the Utilities menu. Suppose, for example, that you have a set of images that contain <span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">not a number</font>''</span> (NaN) values. To be able to use MIPAV algorithms on those images, you first need to replace those not a number values. The Replace pixel/voxel value command provides an easy way to replace those values or any pixel or voxel values.<br /> |
| | | |
− | <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 replace the values of pixels or voxels in images by using the Replace pixel/voxel values command on the Utilities menu. Suppose, for example, that you have a set of images that contain <span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">not a number</font>''</span> (NaN) values. To be able to use MIPAV algorithms on those images, you first need to replace those not a number values. The Replace pixel/voxel value command provides an easy way to replace those values or any pixel or voxel values.<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 replace pixel or voxel value in images<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 image whose pixels or voxels you want to change.<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 Utilities > Replace pixel/voxel values. <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: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> The Replace Pixel/Voxel Value dialog box ([MIPAV_Utilities.html#1184679 Figure 272]) opens.<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">
| + | === To replace pixel or voxel value in images === |
| + | 1 Open the image whose pixels or voxels you want to change.<br /> |
| + | 2 Select Utilities > Replace pixel/voxel values. <br /> |
| + | The Replace Pixel/Voxel Value dialog box (Figure 52) opens.<br /> |
| + | |
| + | == Replace Pixel or Voxel Value dialog box == |
| | | |
| {| 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 272. Replace Pixel/Voxel Value dialog box<br /></font>'''</div> | + | |+ '''Figure 52. Replace Pixel/Voxel Value dialog box''' |
| |- | | |- |
| | | | | |
Line 11: |
Line 16: |
| <div class="CellBody">Specifies the value that you want to replace in the image.</div> | | <div class="CellBody">Specifies the value that you want to replace in the image.</div> |
| | rowspan="4" colspan="1" | | | | rowspan="4" 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:ReplacePixelVoxelValueDialogBox.jpg]] | | [[Image:ReplacePixelVoxelValueDialogBox.jpg]] |
− | |}<br clear="all" /><br /></font></div>
| |
| |- | | |- |
| | | | | |
Line 52: |
Line 54: |
| |} | | |} |
| | | |
− | <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 Do one 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: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> a Select User defined value and type the value that you want to replace in the text box<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: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> b Select Presets and then select one of the following in the list box:<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">NaN</font>''</span>-Not a number<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-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline"><font color="#000000">[[Image:fieldvalueInfinity.jpg]] </font></span>-Positive infinity<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-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline"><font color="#000000">[[Image:fieldvalueNotInfinity.jpg]] </font></span>-Negative infinity<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 Do one 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"> Accept the default value in Replace with.<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"> Type another value in the text 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"> 5 Select one 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"> <span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">New image</font>''</span>-To create a new image in its own image window using the replaced value<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"> <span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">Replace image</font>''</span>-To overwrite the original image in the original image window with an image using the replaced 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 Click OK. The image with the replaced value appears in either a new window or in the original image window.<br /></font></div>
| + | 3 Do one of the following:<br /> |
| + | *a Select User defined value and type the value that you want to replace in the text box<br />< |
| + | *b Select Presets and then select one of the following in the list box:<br /> |
| + | ** ''NaN'' -Not a number<br /> |
| + | ** [[Image:fieldvalueInfinity.jpg]]-Positive infinity<br /> |
| + | ** [[Image:fieldvalueNotInfinity.jpg]] -Negative infinity<br /> |
| + | 4 Do one of the following:<br /> |
| + | *Accept the default value in Replace with.<br /> |
| + | *Type another value in the text box.<br /> |
| + | 5 Select one of the following:<br /> |
| + | * ''New image'' -To create a new image in its own image window using the replaced value<br /> |
| + | * ''Replace image'' -To overwrite the original image in the original image window with an image using the replaced value<br /> |
| + | 6 Click OK. The image with the replaced value appears in either a new window or in the original image window.<br /> |
| | | |
| + | == See also: == |
| [[Rotating images]] | | [[Rotating images]] |
| + | |
| + | [[Changing Image Datasets Using MIPAV Utilities]] |
| + | |
| + | [[Category:Help]] |
You can replace the values of pixels or voxels in images by using the Replace pixel/voxel values command on the Utilities menu. Suppose, for example, that you have a set of images that contain not a number (NaN) values. To be able to use MIPAV algorithms on those images, you first need to replace those not a number values. The Replace pixel/voxel value command provides an easy way to replace those values or any pixel or voxel values.
1 Open the image whose pixels or voxels you want to change.
2 Select Utilities > Replace pixel/voxel values.
The Replace Pixel/Voxel Value dialog box (Figure 52) opens.
6 Click OK. The image with the replaced value appears in either a new window or in the original image window.