Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkThreadedToFRawDataReconstruction.h>
Public Member Functions | |
mitkClassMacroItkParent (ThreadedToFRawDataReconstruction, itk::ProcessObject) | |
Pointer | Clone () const |
virtual bool | GetInit () |
void | SetChannelData (vtkShortArray *sourceData) |
void | Initialize (int width, int height, int modulationFrequency, int sourceDataSize) |
void | GetDistances (float *dist) |
void | GetAmplitudes (float *ampl) |
void | GetIntensities (float *inten) |
void | GetAllData (float *dist, float *ampl, float *inten) |
void | Update () |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
ThreadedToFRawDataReconstruction () | |
standard constructor More... | |
~ThreadedToFRawDataReconstruction () | |
standard destructor More... | |
virtual void | GenerateData () |
method generating the outputs of this filter. Called in the updated process of the pipeline. This method generates the two outputs of the ToFImageSource: The distance and the intensity image More... | |
virtual void | BeforeThreadedGenerateData () |
method configures the camera output and prepares the thread data struct for threaded data generation More... | |
void | ResizeOutputImage (float *in, float *out) |
Method to reduce image size from original controller size to output size (200x200px) and rotate the image. This is needed due to defect pixel rows at the rim of the chip. More... | |
Static Protected Member Functions | |
static ITK_THREAD_RETURN_TYPE | ThreadedGenerateDataCallbackFunction (void *data) |
threader callback function for multi threaded data generation More... | |
Protected Attributes | |
int | m_StackSize |
int | m_Width |
int | m_Height |
int | m_ImageSize |
int | m_SourceDataSize |
vtkShortArray * | m_SourceData |
bool | m_Init |
float * | m_CISDist |
holds the distance information from for one distance image slice More... | |
float * | m_CISAmpl |
holds the amplitude information from for one amplitude image slice More... | |
float * | m_CISInten |
holds the intensity information from for one intensity image slice More... | |
float * | m_ThreadedCISDist |
float * | m_ThreadedCISAmpl |
float * | m_ThreadedCISInten |
itk::MultiThreader::Pointer | m_Threader |
ThreadDataStruct * | m_ThreadData |
Definition at line 41 of file mitkThreadedToFRawDataReconstruction.h.
|
protected |
standard constructor
Definition at line 44 of file mitkThreadedToFRawDataReconstruction.cpp.
References fMod, mitk::ThreadDataStruct::m_ImageDataMutex, mitk::ThreadDataStruct::m_ModulationFrequency, m_StackSize, m_ThreadData, and mitk::ThreadDataStruct::m_ThreadDataMutex.
|
protected |
standard destructor
Definition at line 58 of file mitkThreadedToFRawDataReconstruction.cpp.
References m_CISAmpl, m_CISDist, m_CISInten, m_ThreadData, m_ThreadedCISAmpl, m_ThreadedCISDist, and m_ThreadedCISInten.
|
protectedvirtual |
method configures the camera output and prepares the thread data struct for threaded data generation
Definition at line 149 of file mitkThreadedToFRawDataReconstruction.cpp.
References mitk::ThreadDataStruct::m_Barrier, m_CISAmpl, m_CISDist, m_CISInten, mitk::ThreadDataStruct::m_DataSize, mitk::ThreadDataStruct::m_FrameHeight, m_Height, mitk::ThreadDataStruct::m_ImageDataMutex, mitk::ThreadDataStruct::m_InputData, mitk::ThreadDataStruct::m_LineWidth, mitk::ThreadDataStruct::m_OutputData, m_SourceData, m_SourceDataSize, m_ThreadData, m_Threader, m_Width, and ThreadedGenerateDataCallbackFunction().
Referenced by GenerateData().
Pointer mitk::ThreadedToFRawDataReconstruction::Clone | ( | ) | const |
|
protectedvirtual |
method generating the outputs of this filter. Called in the updated process of the pipeline. This method generates the two outputs of the ToFImageSource: The distance and the intensity image
Definition at line 141 of file mitkThreadedToFRawDataReconstruction.cpp.
References BeforeThreadedGenerateData(), and m_Init.
Referenced by Update().
void mitk::ThreadedToFRawDataReconstruction::GetAllData | ( | float * | dist, |
float * | ampl, | ||
float * | inten | ||
) |
Definition at line 134 of file mitkThreadedToFRawDataReconstruction.cpp.
References m_CISAmpl, m_CISDist, m_CISInten, and m_ImageSize.
void mitk::ThreadedToFRawDataReconstruction::GetAmplitudes | ( | float * | ampl | ) |
Definition at line 124 of file mitkThreadedToFRawDataReconstruction.cpp.
References m_CISAmpl, and m_ImageSize.
void mitk::ThreadedToFRawDataReconstruction::GetDistances | ( | float * | dist | ) |
Definition at line 119 of file mitkThreadedToFRawDataReconstruction.cpp.
References m_CISDist, and m_ImageSize.
|
virtual |
void mitk::ThreadedToFRawDataReconstruction::GetIntensities | ( | float * | inten | ) |
Definition at line 129 of file mitkThreadedToFRawDataReconstruction.cpp.
References m_CISInten, and m_ImageSize.
void mitk::ThreadedToFRawDataReconstruction::Initialize | ( | int | width, |
int | height, | ||
int | modulationFrequency, | ||
int | sourceDataSize | ||
) |
Definition at line 83 of file mitkThreadedToFRawDataReconstruction.cpp.
References m_CISAmpl, m_CISDist, m_CISInten, m_Height, m_ImageSize, m_Init, mitk::ThreadDataStruct::m_ModulationFrequency, mitk::ThreadDataStruct::m_OutputData, m_SourceData, m_SourceDataSize, m_ThreadData, m_ThreadedCISAmpl, m_ThreadedCISDist, m_ThreadedCISInten, and m_Width.
mitk::ThreadedToFRawDataReconstruction::mitkClassMacroItkParent | ( | ThreadedToFRawDataReconstruction | , |
itk::ProcessObject | |||
) |
|
static |
Referenced by mitk::ToFCameraPMDRawDataDevice::ToFCameraPMDRawDataDevice().
|
protected |
Method to reduce image size from original controller size to output size (200x200px) and rotate the image. This is needed due to defect pixel rows at the rim of the chip.
void mitk::ThreadedToFRawDataReconstruction::SetChannelData | ( | vtkShortArray * | sourceData | ) |
Definition at line 114 of file mitkThreadedToFRawDataReconstruction.cpp.
References m_SourceData.
|
staticprotected |
threader callback function for multi threaded data generation
Definition at line 227 of file mitkThreadedToFRawDataReconstruction.cpp.
References cAir, fMod, mitk::ThreadDataStruct::m_Barrier, mitk::ThreadDataStruct::m_FrameHeight, mitk::ThreadDataStruct::m_ImageDataMutex, mitk::ThreadDataStruct::m_InputData, mitk::ThreadDataStruct::m_LineWidth, mitk::ThreadDataStruct::m_ModulationFrequency, mitk::ThreadDataStruct::m_OutputData, and mitk::ThreadDataStruct::m_ThreadDataMutex.
Referenced by BeforeThreadedGenerateData().
void mitk::ThreadedToFRawDataReconstruction::Update | ( | ) |
Definition at line 322 of file mitkThreadedToFRawDataReconstruction.cpp.
References GenerateData().
|
protected |
holds the amplitude information from for one amplitude image slice
Definition at line 103 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by BeforeThreadedGenerateData(), GetAllData(), GetAmplitudes(), Initialize(), and ~ThreadedToFRawDataReconstruction().
|
protected |
holds the distance information from for one distance image slice
Definition at line 102 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by BeforeThreadedGenerateData(), GetAllData(), GetDistances(), Initialize(), and ~ThreadedToFRawDataReconstruction().
|
protected |
holds the intensity information from for one intensity image slice
Definition at line 104 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by BeforeThreadedGenerateData(), GetAllData(), GetIntensities(), Initialize(), and ~ThreadedToFRawDataReconstruction().
|
protected |
Definition at line 96 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by BeforeThreadedGenerateData(), and Initialize().
|
protected |
Definition at line 97 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by GetAllData(), GetAmplitudes(), GetDistances(), GetIntensities(), and Initialize().
|
protected |
Definition at line 100 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by GenerateData(), and Initialize().
|
protected |
Definition at line 99 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by BeforeThreadedGenerateData(), Initialize(), and SetChannelData().
|
protected |
Definition at line 98 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by BeforeThreadedGenerateData(), and Initialize().
|
protected |
Definition at line 94 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by ThreadedToFRawDataReconstruction().
|
protected |
Definition at line 110 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by BeforeThreadedGenerateData(), Initialize(), ThreadedToFRawDataReconstruction(), and ~ThreadedToFRawDataReconstruction().
|
protected |
Definition at line 106 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by Initialize(), and ~ThreadedToFRawDataReconstruction().
|
protected |
Definition at line 105 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by Initialize(), and ~ThreadedToFRawDataReconstruction().
|
protected |
Definition at line 107 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by Initialize(), and ~ThreadedToFRawDataReconstruction().
|
protected |
Definition at line 109 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by BeforeThreadedGenerateData().
|
protected |
Definition at line 95 of file mitkThreadedToFRawDataReconstruction.h.
Referenced by BeforeThreadedGenerateData(), and Initialize().