i3d::ImageWriter Class Reference
[Image input/output methods]
#include <imgfiles.h>
Inheritance diagram for i3d::ImageWriter:

Public Member Functions | |
ImageWriter (const char *fname) | |
constructor | |
virtual | ~ImageWriter () |
destructor | |
void | SetDim (size_t w, size_t h, size_t d) |
set the image dimension | |
void | SetDim (Vector3d< size_t > sz) |
set the image dimension | |
void | SetVoxelType (ImgVoxelType vt) |
set image voxel type | |
void | SetCompression (bool comp) |
void | SetResolution (Vector3d< float > v) |
set image resolution | |
virtual void | SaveImageInfo () |
save image header | |
void | SetOffset (Offset _off) |
set offet of the image | |
virtual void | SaveImageData (const GRAY8 *data)=0 |
save gray8 image data | |
virtual void | SaveImageData (const BINARY *data)=0 |
save binary image data | |
virtual void | SaveImageData (const RGB *data)=0 |
save rgb image data | |
virtual void | SaveImageData (const GRAY16 *data)=0 |
save gray16 image data | |
virtual void | SaveImageData (const RGB16 *data)=0 |
save rgb16 image data | |
virtual void | SaveImageData (const float *data) |
save float image data | |
virtual void | SaveImageData (const double *data) |
save double image data | |
virtual void | SaveImageData (const int *data) |
save int image data | |
virtual void | SaveImageData (const Vector3d< float > *data) |
save Vector3d<float> data - empty function | |
virtual void | SaveImageData (const Vector3d< double > *data) |
save Vector3d<double> data - empty function | |
Protected Attributes | |
ImageFileHeader | header |
image file header structure instantiation |
Detailed Description
General object for writting image file formats
Member Function Documentation
void i3d::ImageWriter::SetCompression | ( | bool | comp | ) | [inline] |
Set the type of compression used when saving the appropriate image file. If 'comp' is false, no compression is used (if possible). If 'comp' is treu, the default compression is applied. For TIFF format it is LZW compression, for TARGA format RLE scheme is used, etc.
The documentation for this class was generated from the following files:
- imgfiles.h
- imgfiles.cc