#include <R3D/PCMRegistration/PCMRegistrationThread.h>
Inherits R3DAbstractThread.
Inheritance diagram for PCMRegistrationThread:


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. | |
| PCMRegistrationThread::PCMRegistrationThread | ( | R3DThreadGroup::Pointer | threadGroup, | |
| int | threadSlot, | |||
| const std::string & | threadName, | |||
| PCMRegistration * | master, | |||
| PCMRegistrationData::Pointer | registrationData, | |||
| bool | debug = false | |||
| ) |
Constructor for this object.
| 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. |
| void PCMRegistrationThread::run | ( | ) | [virtual] |
main entry point to register the 2 images
Implements R3DAbstractThread.
| int32 PCMRegistrationThread::registerAtFFTResolution | ( | int | fftDim | ) | [protected] |
Registers the fixed and moving images using the supplied FFT dimension.
| fftDim | The size of the image which should be one of the set FFT Dimensions |
| void PCMRegistrationThread::initializeImportFilter | ( | ImportFilterType::Pointer | importFilter, | |
| UCharPixelType * | imageData, | |||
| R3DSliceInfo::Pointer | sliceInfo | |||
| ) | [protected] |
Initializes the itkImportFilter object with the correct size, spacing and origin information.
| 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.
| 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 |
| 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.
| path | The path to the output image | |
| slice | The slice number | |
| num | The frame number | |
| label | Extra label for the filename |
| void PCMRegistrationThread::createCorrelationImages | ( | ImportFilterType::Pointer | fxImport, | |
| ImportFilterType::Pointer | mvImport | |||
| ) | [protected] |
This will create the Correlation Images from the data.
Primarily used for debugging
| fxImport | Fixed Image | |
| mvImport | Moving Image |
1.5.2