Difference between revisions of "Understanding Image Basics"
(→Understanding Image Basics) |
(→Supported graphic formats overview) |
||
Line 14: | Line 14: | ||
== Supported graphic formats overview == | == Supported graphic formats overview == | ||
− | <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"> MIPAV supports three categories of graphic file formats: vector (i.e., volume of interest, or VOI), bitmap (i.e., 2D to 5D grayscale or RGB images), and 3D images.<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"> <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Vector file formats </font>'''</span>are usually used to store line-based elements. These elements can be geometric shapes, such as polygons, curves, or splines. MIPAV can read and generate several vector-formatted file types including the MIPAV lookup table (LUT), MIPAV MTX, MIPAV Graphics Plot (PLT), and MIPAV VOI. See also Appendix C: [MIPAV_AppCSupportedFormats.html#1256636 "Supported formats" on page 562].<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"> <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Bitmap file formats</font>'''</span> are usually used to store real-world graphics data e.g., photographs or medical images such as CT scans. The data portion of bitmap files contains numerical data that indicates the color of each pixel or voxel in the image. MIPAV can read and generate a number of bitmap formatted file types, such as Adobe Photoshop (PSD), Graphics Interchange File (GIF), Sun Raster (RS), Tagged Image File Format (TIFF), and Truevision Graphics Adapter (TGA).<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"> <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">MIPAV uses 3D graphic formatted files </font>'''</span>to store descriptions of the color and shape of 3D models of real-world and imaginary objects.<br /></font></div><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"> To support the wide range of image-processing needs of the NIH intramural research community, MIPAV reads and writes the image file types indicated in | + | <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"> MIPAV supports three categories of graphic file formats: vector (i.e., volume of interest, or VOI), bitmap (i.e., 2D to 5D grayscale or RGB images), and 3D images.<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"> <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Vector file formats </font>'''</span>are usually used to store line-based elements. These elements can be geometric shapes, such as polygons, curves, or splines. MIPAV can read and generate several vector-formatted file types including the MIPAV lookup table (LUT), MIPAV MTX, MIPAV Graphics Plot (PLT), and MIPAV VOI. See also Appendix C: [MIPAV_AppCSupportedFormats.html#1256636 "Supported formats" on page 562].<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"> <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Bitmap file formats</font>'''</span> are usually used to store real-world graphics data e.g., photographs or medical images such as CT scans. The data portion of bitmap files contains numerical data that indicates the color of each pixel or voxel in the image. MIPAV can read and generate a number of bitmap formatted file types, such as Adobe Photoshop (PSD), Graphics Interchange File (GIF), Sun Raster (RS), Tagged Image File Format (TIFF), and Truevision Graphics Adapter (TGA).<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"> <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">MIPAV uses 3D graphic formatted files </font>'''</span>to store descriptions of the color and shape of 3D models of real-world and imaginary objects.<br /></font></div><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"> To support the wide range of image-processing needs of the NIH intramural research community, MIPAV reads and writes the image file types indicated in Table 1, refer to Appendix C: "Supported formats". <br /></font></div> |
== Understanding the MIPAV dimensionality and coordinate system == | == Understanding the MIPAV dimensionality and coordinate system == |
Revision as of 16:34, 7 February 2012
Contents
Understanding Image Basics
This chapter also explains the dimensionality and coordinate system used by MIPAV, the data types MIPAV supports, the header offset information, endianness, and how to view and edit image attributes.It also provides a basic information about image file formats supported by MIPAV. More information about graphic file formats and the formats that MIPAV supports can be found in Appendix C: "Supported formats".
Supported graphic formats overview
Understanding the MIPAV dimensionality and coordinate system
The voxel in the upper left-most position is considered the origin of the dataset. (A volumetric dataset is a set of cross-sectional images). Ideally, each voxel would be isotropic (i.e., cubic), but clinical datasets are often acquired in such a manner that the resolution in the x and y dimensions is greater than the resolution in the z dimension, thus producing rectangular voxels (elongated in the z direction). This voxel anisotropy is taken into account in the execution of the algorithms found in MIPAV.
Because MIPAV's image storage buffer is n-dimensional, it can store 2D, 3D, and 4D medical images. CT and MRI are examples of 3D medical images where the three dimensions (x, y, and z) are spatial dimensions. Other 3D datasets include fluoroscopy volumes, where the first two dimensions are spatial and the third dimension is time.
|}
Data types
Data type
|
Description
|
Boolean
|
1 bit per pixel/voxel (1 on, 0 off)
|
Signed byte
|
1 byte per pixel/voxel (-128, 127)
|
Unsigned byte
|
1 byte per pixel/voxel (0, 255)
|
Signed short
|
2 bytes per pixel/voxel (-32768, 32767)
|
Unsigned short
|
2 bytes per pixel/voxel (0, 65535)
|
Integer
|
4 bytes per pixel/voxel (-231, 231-1)
|
Long
|
8 bytes per pixel/voxel (-9.22E18, 9.22E18)
|
Float
|
4 bytes per pixel/voxel (-3.4E38, 3.4E38)
|
Double
|
8 bytes per pixel/voxel (-1.8E308, 1.8E308)
|
Color 32
|
3 bytes per pixel/voxel, plus 1 byte; 8 bits per color channel (alpha, red, green, and blue)
|
Headers
Endianness
Viewing and editing image attributes
The Image Attributes window displays the name of the image file and information about the resolution of the image. The About Image window displays more detailed information about the image, such as the orientation of the image or the number of bits per pixel or voxel.
Viewing image attributes
|- |
|- |
|- |
|}
Editing image attributes
By default, the General page always appears first when the Image Attributes dialog box opens.
Image Attributes dialog box
Apply
|
applies the changes to the current image, but doesn't close the dialog box.
| ||
OK
|
applies the changes to the current image and closes the dialog box.
| ||
Close
|
closes the dialog box without applying the changes to the image.
| ||
Help
|
opens the on-line help.
| ||
General tab
| |||
{| align="center" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- | rowspan="1" colspan="3" |
|- | rowspan="1" colspan="3" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- | rowspan="1" colspan="3" |
|- | rowspan="1" colspan="3" |
|- |
| rowspan="1" colspan="2" |
|- | rowspan="3" colspan="1" |
| rowspan="3" colspan="2" |
|- |- |- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- | rowspan="1" colspan="3" |
|- | rowspan="1" colspan="3" |
|- |
| 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" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- |
| rowspan="1" colspan="2" |
|- | rowspan="1" colspan="3" |
|- |
| rowspan="12" colspan="2" |
|- |
|- |
|- |
|- | rowspan="8" colspan="1" |
|- |- |- |- |- |- |- |- | rowspan="1" colspan="3" |
|}