#include <Importer/R3DImportDelegate.h>
Public Member Functions | |
| int32 | importDataSource (IDataSource::Pointer dataSource, IDataFile::Pointer dataFile) |
| Imports the data from the datasource object into the HDF5 data file. | |
| virtual int32 | setProperty (const std::string &key, const std::string &value) |
| Sets a property of this class with the given value. | |
| R3DMosaic::Pointer | readBmpImage (const std::string &path, bool convertToGrayScale) |
| Reads a bmp image from a file on disk into an UCharArray. | |
| R3DMosaic::Pointer | cropImage (R3DMosaic::Pointer imageData, int32 *insets) |
| Crops out a region of interest from the supplied image. | |
| R3DMosaic::Pointer | resizeImage (R3DMosaic::Pointer imageData, float scaleFactor) |
| Resizes an image using ITK algorithms. | |
| int32 R3DImportDelegate::importDataSource | ( | IDataSource::Pointer | dataSource, | |
| IDataFile::Pointer | dataFile | |||
| ) |
Imports the data from the datasource object into the HDF5 data file.
| dataSource | Valid IDataSource Object | |
| dataFile | An IDataFile Object |
| virtual int32 R3DImportDelegate::setProperty | ( | const std::string & | key, | |
| const std::string & | value | |||
| ) | [inline, virtual] |
Sets a property of this class with the given value.
| key | The name of the property. | |
| value | The value to set the property to. |
| R3DMosaic::Pointer R3DImportDelegate::readBmpImage | ( | const std::string & | path, | |
| bool | convertToGrayScale | |||
| ) |
Reads a bmp image from a file on disk into an UCharArray.
| path | The path to the image on disk | |
| convertToGrayScale | Convert the image on disk to grayscale | |
| outWidth | The width of the output image | |
| outHeight | the height of the output image |
| R3DMosaic::Pointer R3DImportDelegate::cropImage | ( | R3DMosaic::Pointer | imageData, | |
| int32 * | insets | |||
| ) |
Crops out a region of interest from the supplied image.
| imageData | R3DMosaic Shared Pointer | |
| insets | The insets from the outer edges of the image that define the new region of interest (ROI) |
| R3DMosaic::Pointer R3DImportDelegate::resizeImage | ( | R3DMosaic::Pointer | imageData, | |
| float | scaleFactor | |||
| ) |
Resizes an image using ITK algorithms.
| imageData | R3DMosaic Shared Pointer | |
| scaleFactor | The factor by which to resize the image. |
1.5.2