R3DImportDelegate Class Reference

#include <Importer/R3DImportDelegate.h>

List of all members.


Detailed Description

This class handles the import of a RoboMet Bit map image into the MXA File.

Author:
Mike Jackson / Herb Mullens
Date:
Oct 2007
Version:
Revision
1.1


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.


Member Function Documentation

int32 R3DImportDelegate::importDataSource ( IDataSource::Pointer  dataSource,
IDataFile::Pointer  dataFile 
)

Imports the data from the datasource object into the HDF5 data file.

Parameters:
dataSource Valid IDataSource Object
dataFile An IDataFile Object
Returns:
error condition. Negative is error.

virtual int32 R3DImportDelegate::setProperty ( const std::string &  key,
const std::string &  value 
) [inline, virtual]

Sets a property of this class with the given value.

Parameters:
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.

Parameters:
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
Returns:
The image data wrapped in a boost shared array

R3DMosaic::Pointer R3DImportDelegate::cropImage ( R3DMosaic::Pointer  imageData,
int32 *  insets 
)

Crops out a region of interest from the supplied image.

Parameters:
imageData R3DMosaic Shared Pointer
insets The insets from the outer edges of the image that define the new region of interest (ROI)
Returns:
The image data wrapped in a boost shared array

R3DMosaic::Pointer R3DImportDelegate::resizeImage ( R3DMosaic::Pointer  imageData,
float  scaleFactor 
)

Resizes an image using ITK algorithms.

Parameters:
imageData R3DMosaic Shared Pointer
scaleFactor The factor by which to resize the image.
Returns:
The image data wrapped in a boost shared array


The documentation for this class was generated from the following files:
Generated on Fri Aug 28 14:04:33 2009 for R3DImageTools by  doxygen 1.5.2