PCMRegistrationThread Class Reference

#include <R3D/PCMRegistration/PCMRegistrationThread.h>

Inherits R3DAbstractThread.

Inheritance diagram for PCMRegistrationThread:

Inheritance graph
[legend]
Collaboration diagram for PCMRegistrationThread:

Collaboration graph
[legend]
List of all members.

Detailed Description

Thread of execution that uses the PCM classes to register 2 images.

Author:
Michael Jackson For Bluequartz Software
Date:
June 2009
Version:
1.0


Public Member Functions

 PCMRegistrationThread (R3DThreadGroup::Pointer threadGroup, int threadSlot, const std::string &threadName, PCMRegistration *master, PCMRegistrationData::Pointer registrationData, bool debug=false)
 Constructor for this object.
void run ()
 main entry point to register the 2 images

Protected Member Functions

int32 registerAtFFTResolution (int fftDim)
 Registers the fixed and moving images using the supplied FFT dimension.
void initializeImportFilter (ImportFilterType::Pointer importFilter, UCharPixelType *imageData, R3DSliceInfo::Pointer sliceInfo)
 Initializes the itkImportFilter object with the correct size, spacing and origin information.
int registerImages (ImportFilterType::Pointer fxImageImport, R3DSliceInfo::Pointer fixedSliceInfo, ImportFilterType::Pointer mvImageImport, R3DSliceInfo::Pointer movingSliceInfo)
 This will actually register 2 images.
std::string makeAnalysisImage (const std::string &path, const std::string &slice, const std::string &num, const std::string &label)
 Creates an image that is written out to disk.
void createCorrelationImages (ImportFilterType::Pointer fxImport, ImportFilterType::Pointer mvImport)
 This will create the Correlation Images from the data.


Constructor & Destructor Documentation

PCMRegistrationThread::PCMRegistrationThread ( R3DThreadGroup::Pointer  threadGroup,
int  threadSlot,
const std::string &  threadName,
PCMRegistration master,
PCMRegistrationData::Pointer  registrationData,
bool  debug = false 
)

Constructor for this object.

Parameters:
threadGroup The R3DThreadGroup object that is controlling this thread
threadSlot The slot number where this thread is stored in the lookup table.
threadName The std::string name for this thread which should be unique among all threads generated
master The 'master' class that is invoking this object
registrationData Object to hold data related to the registration process and outcome
debug Should debug statements be generated.
Returns:


Member Function Documentation

void PCMRegistrationThread::run (  )  [virtual]

main entry point to register the 2 images

Returns:
Negative value on error.

Implements R3DAbstractThread.

int32 PCMRegistrationThread::registerAtFFTResolution ( int  fftDim  )  [protected]

Registers the fixed and moving images using the supplied FFT dimension.

Parameters:
fftDim The size of the image which should be one of the set FFT Dimensions
Returns:
Negative value on Error

void PCMRegistrationThread::initializeImportFilter ( ImportFilterType::Pointer  importFilter,
UCharPixelType *  imageData,
R3DSliceInfo::Pointer  sliceInfo 
) [protected]

Initializes the itkImportFilter object with the correct size, spacing and origin information.

Parameters:
importFilter The ImportFilterType object to be initialized
imageData A pointer to the raw image data
sliceInfo A Shared Pointer to the R3DSliceInfo Object

int PCMRegistrationThread::registerImages ( ImportFilterType::Pointer  fxImageImport,
R3DSliceInfo::Pointer  fixedSliceInfo,
ImportFilterType::Pointer  mvImageImport,
R3DSliceInfo::Pointer  movingSliceInfo 
) [protected]

This will actually register 2 images.

Parameters:
fxImageImport The itkImportFilter representing the fixed image
fixedSliceInfo The Zeiss Slice Info for the fixed image
mvImageImport The itkImportFilter representing the moving image
movingSliceInfo The Zeiss Slice Info for the moving image
Returns:

std::string PCMRegistrationThread::makeAnalysisImage ( const std::string &  path,
const std::string &  slice,
const std::string &  num,
const std::string &  label 
) [protected]

Creates an image that is written out to disk.

Parameters:
path The path to the output image
slice The slice number
num The frame number
label Extra label for the filename
Returns:
Absolute path to the output image

void PCMRegistrationThread::createCorrelationImages ( ImportFilterType::Pointer  fxImport,
ImportFilterType::Pointer  mvImport 
) [protected]

This will create the Correlation Images from the data.

Primarily used for debugging

Parameters:
fxImport Fixed Image
mvImport Moving Image


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