13 #ifndef MITK_BEAMFORMING_SETTINGS 14 #define MITK_BEAMFORMING_SETTINGS 16 #include <itkObject.h> 19 #include <MitkPhotoacousticsAlgorithmsExports.h> 53 itkGetConstMacro(PitchInMeters,
float);
54 itkGetConstMacro(SpeedOfSound,
float);
55 itkGetConstMacro(TimeSpacing,
float);
56 itkGetConstMacro(Angle,
float);
57 itkGetConstMacro(IsPhotoacousticImage,
bool);
58 itkGetConstMacro(TransducerElements,
unsigned int);
59 itkGetConstMacro(SamplesPerLine,
unsigned int);
60 itkGetConstMacro(ReconstructionLines,
unsigned int);
61 itkGetConstMacro(InputDim,
const unsigned int*);
62 itkGetConstMacro(UseGPU,
bool);
63 itkGetConstMacro(GPUBatchSize,
unsigned int);
64 itkGetConstMacro(ApodizationFunction,
const float*);
66 itkGetConstMacro(ApodizationArraySize,
int);
68 itkGetConstMacro(ReconstructionDepth,
float);
70 itkGetConstMacro(ProbeRadius,
float);
71 itkGetConstMacro(ElementHeights,
float*);
72 itkGetConstMacro(ElementPositions,
float*);
73 itkGetConstMacro(HorizontalExtent,
float);
78 static bool SettingsChangedOpenCL(
const BeamformingSettings::Pointer lhs,
const BeamformingSettings::Pointer rhs)
80 return !((std::abs(lhs->GetAngle() - rhs->GetAngle()) < 0.01f) &&
81 (lhs->GetApod() == rhs->GetApod()) &&
82 (lhs->GetGeometry() == rhs->GetGeometry()) &&
83 (std::abs(lhs->GetProbeRadius() - rhs->GetProbeRadius()) < 0.001f) &&
84 (lhs->GetIsPhotoacousticImage() == rhs->GetIsPhotoacousticImage()) &&
85 (std::abs(lhs->GetPitchInMeters() - rhs->GetPitchInMeters()) < 0.000001f) &&
86 (lhs->GetReconstructionLines() == rhs->GetReconstructionLines()) &&
87 (lhs->GetSamplesPerLine() == rhs->GetSamplesPerLine()) &&
88 (lhs->GetReconstructionDepth() == rhs->GetReconstructionDepth()) &&
89 (std::abs(lhs->GetSpeedOfSound() - rhs->GetSpeedOfSound()) < 0.01f) &&
90 (std::abs(lhs->GetTimeSpacing() - rhs->GetTimeSpacing()) < 0.00000000001f) &&
91 (lhs->GetTransducerElements() == rhs->GetTransducerElements()));
94 static Pointer
New(
float pitchInMeters,
98 bool isPhotoacousticImage,
99 unsigned int samplesPerLine,
100 unsigned int reconstructionLines,
101 unsigned int* inputDim,
102 float reconstructionDepth,
104 unsigned int GPUBatchSize,
106 unsigned int apodizationArraySize,
115 isPhotoacousticImage,
123 apodizationArraySize,
127 smartPtr->UnRegister();
131 unsigned short* GetMinMaxLines();
141 bool isPhotoacousticImage,
142 unsigned int samplesPerLine,
143 unsigned int reconstructionLines,
144 unsigned int* inputDim,
145 float reconstructionDepth,
147 unsigned int GPUBatchSize,
149 unsigned int apodizationArraySize,
244 #endif //MITK_BEAMFORMING_SETTINGS
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)