Difference between revisions of "Converting image datasets to different data types"
(Created page with '== Converting image datasets to different data types == <div style="font-style: normal; font-weight: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top:...') |
(→Convert Type) |
||
Line 5: | Line 5: | ||
==== Convert Type ==== | ==== Convert Type ==== | ||
− | <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"> To convert a dataset to a different image type<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 Select Utilities >Conversion Tools > Convert type. The Convert Image Type dialog box ( | + | <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"> To convert a dataset to a different image type<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 Select Utilities >Conversion Tools > Convert type. The Convert Image Type dialog box (Figure 8) 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 Select the desired image type in the Image Type group.<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 Indicate the start and end input ranges in the Range of input values group.<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 Indicate the start and end output ranges in the Range of output values group.<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 Specify either Little endian or Big endian in the Endianess group.<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 dataset is converted to the new image type.<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"> |
{| 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 8. Convert Image Type dialog box <br /></font>'''</div> |
|- | |- | ||
| rowspan="1" colspan="3" | | | rowspan="1" colspan="3" | | ||
− | |||
− | |||
[[Image:ConvertImageType.jpg]] | [[Image:ConvertImageType.jpg]] | ||
− | |||
|- | |- | ||
| rowspan="4" colspan="1" | | | rowspan="4" colspan="1" | | ||
Line 37: | Line 34: | ||
|- | |- | ||
| rowspan="7" colspan="1" | | | rowspan="7" colspan="1" | | ||
− | <div class="CellBody"> | + | <div class="CellBody"> </div> |
| | | | ||
<div class="CellBody"><span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">Short</font>''</span></div> | <div class="CellBody"><span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">Short</font>''</span></div> | ||
Line 81: | Line 78: | ||
|- | |- | ||
| | | | ||
− | <div class="CellBody"> | + | <div class="CellBody"> </div> |
| | | | ||
<div class="CellBody"><span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">Replace image</font>''</span></div> | <div class="CellBody"><span style="font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">''<font color="#000000">Replace image</font>''</span></div> | ||
Line 156: | Line 153: | ||
<div class="CellBody">Displays online help for this dialog box.</div> | <div class="CellBody">Displays online help for this dialog box.</div> | ||
|} | |} | ||
− | |||
− | |||
==== Converting grayscale images to RGB images ==== | ==== Converting grayscale images to RGB images ==== |
Revision as of 17:17, 15 February 2012
Contents
Converting image datasets to different data types
Convert Type
Image Type
|
Specifies the data type. Select one of the following:
| |
Boolean
|
Indicates whether a condition if true or false.
| |
Byte
|
Primitive 8-bit data type. Valid values range from -127 to 128.
| |
Unsigned byte
|
Primitive 8-bit data type. Unsigned byte is a variation of the integer data type. The unsigned byte data type signifies that valid values must fall within a specified range of positive whole number values. Valid values range from 0 to 255. Negative values are not valid, hence the term unsigned byte.
| |
|
Short
|
Primitive 16-bit data type. Short is a variation of the integer data type. Short accommodates values that are whole numbers. Valid values range from 0 to 32,768.
|
Unsigned short
|
Primitive 16-bit data type. Unsigned short is a variation of the integer data type. The unsigned short data type signifies that valid values must fall within a specified range of positive whole number values. Valid values range from 0 to 65,535. Note that negative values are not valid, hence the term unsigned byte.
| |
Integer
|
Primitive 32-bit data type. Integer is sometimes abbreviated as int. Integer accommodates values that are whole numbers. Valid values range from
-2,147,483,648 to 2,147,483,648. | |
Unsigned integer
|
Primitive 32-bit data type.
| |
Long
|
Primitive 64-bit data type. Long is a variation of the integer data type. Long accommodates values that are whole numbers. Valid values range from
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,808. | |
Float
|
Primitive 32-bit data type. Float is a floating point data type that accommodates decimal values, up to 6 or 7 significant digits of accuracy. Valid values can range from -3.4 x 1038 to 3.4 x 1038.
| |
Double
|
Primitive 64-bit data type. Double is a floating point data type that accommodates decimal values, up to 14 or 15 significant digits of accuracy. Valid values can range from -1.7 x 10308 to 1.7 x 10308.
| |
Destination
|
New image
|
Shows the converted dataset in a new image window.
|
|
Replace image
|
Replaces the current active dataset with the converted dataset.
|
Range of input values
|
Use entire image range
|
Converts all intensity values to the result image range when converting the image to a different type.
|
Use user-defined range
|
Converts only the intensity values in the user-defined range when converting the image to a different type.
| |
Start input range
|
Specifies the intensity value at the beginning of the input range. The default value is the image minimum.
| |
End input range
|
Specifies the intensity value at the end of the input range.
| |
Range of output values
|
Starting range
|
Specifies the intensity value at the beginning of the output range. The default value is the image minimum.
|
Ending range
|
Specifies the intensity value at the end of the output range.
| |
Process each slice independently (2.5D)
|
Converts each image slice independently as if it was a separate image. This options works for 2.5D images.
| |
Endianess
|
Data organization strategy. Refers to the way computer processors store data in memory.
| |
Little endian
|
Stores the least significant byte (LSB) first.
| |
Big endian
|
Stores the most significant byte (MSB) first.
| |
OK
|
Applies the parameters that you specified to convert the dataset.
| |
Cancel
|
Disregards any changes you made in this dialog box, closes the dialog box, and does not convert the dataset.
| |
Help
|
Displays online help for this dialog box.
|
Converting grayscale images to RGB images
Image (red)
|
Identifies the image to be added to the red channel of the resulting image.
|
{| align="center" |
|- |
|
|- |
|
|- |
|
|- | rowspan="1" colspan="3" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|}
Converting RGB datasets to grayscale datasets
RGB datasets have four channels: red, green, blue, and alpha. When you convert RGB datasets to grayscale. RGB images, the intensities are combined to form a single grayscale value.
For example:
Where,
Equal weights
|
Assigns the same weight (0.3333) to each channel in the image. When you select this option, the Only average RGB values great than becomes available.
|
 {| align="center" |
|- |
|
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|}
|
|- |
|
|- |
|
|}
{| align="center" |
|
|- |
|
|}