15 #ifndef itkBackwardImageProjector2Dto3D_h
16 #define itkBackwardImageProjector2Dto3D_h
28 template <
class IntensityType =
float>
31 Image<IntensityType, 3> >
68 itkStaticConstMacro(InputImageDimension,
unsigned int, 2);
69 itkStaticConstMacro(OutputImageDimension,
unsigned int, 3);
78 virtual void GenerateOutputInformation();
87 virtual void GenerateInputRequestedRegion();
88 virtual void EnlargeOutputRequestedRegion(DataObject *output);
94 m_OutputImageSpacing = outImageSpacing;
95 this->GetOutput()->SetSpacing(m_OutputImageSpacing);
99 m_OutputImageOrigin = outImageOrigin;
100 this->GetOutput()->SetOrigin(m_OutputImageOrigin);
114 void PrintSelf(std::ostream& os, Indent indent)
const;
117 void ClearVolume(
void);
121 virtual void BeforeThreadedGenerateData(
void);
124 virtual void AfterThreadedGenerateData(
void);
131 void ThreadedGenerateData(
const InputImageRegionType& inputRegionForThread,
132 ThreadIdType threadId );
139 int SplitRequestedRegion(
int i,
int num, InputImageRegionType& splitRegion);
144 static ITK_THREAD_RETURN_TYPE BackwardImageProjectorThreaderCallback(
void *arg );
172 void operator=(
const Self&);
178 #ifndef ITK_MANUAL_INSTANTIATION
179 #include "itkBackwardImageProjector2Dto3D.txx"
virtual ~BackwardImageProjector2Dto3D()
Definition: itkBackwardImageProjector2Dto3D.h:113
InputImageType::RegionType InputImageRegionType
Definition: itkBackwardImageProjector2Dto3D.h:51
Definition: itkBackwardImageProjector2Dto3D.h:160
void ClearVolumePriorToNextBackProjection(void)
Set the backprojection volume to zero prior to the next back-projection.
Definition: itkBackwardImageProjector2Dto3D.h:107
ImageProjectionBaseClass2D3D< Image< IntensityType, 2 >, Image< IntensityType, 3 > > Superclass
Definition: itkBackwardImageProjector2Dto3D.h:39
Class to project a 3D image into 2D.
Definition: itkBackwardImageProjector2Dto3D.h:29
Image< IntensityType, 2 > InputImageType
Definition: itkBackwardImageProjector2Dto3D.h:45
ImageType::SizeType SizeType
Definition: niftkMakeLapUSProbeBasicModel.cxx:31
InputImageType::PixelType InputImagePixelType
Definition: itkBackwardImageProjector2Dto3D.h:56
OutputImageType::PointType OutputImagePointType
Definition: itkBackwardImageProjector2Dto3D.h:65
OutputImageType::RegionType OutputImageRegionType
Definition: itkBackwardImageProjector2Dto3D.h:61
bool m_ClearBackProjectedVolume
Flag that back-projected volume should be filled with zeros.
Definition: itkBackwardImageProjector2Dto3D.h:157
Image< IntensityType, 3 > OutputImageType
Definition: itkBackwardImageProjector2Dto3D.h:58
InputImageType::IndexType InputImageIndexType
Definition: itkBackwardImageProjector2Dto3D.h:55
The base class for 2D-3D forward and back projection.
Definition: itkImageProjectionBaseClass2D3D.h:31
OutputImageSizeType m_OutputImageSize
The size of the output projected image.
Definition: itkBackwardImageProjector2Dto3D.h:147
void SetBackProjectedImageSize(OutputImageSizeType &outImageSize)
Set the size in voxels of the output back-projected image.
Definition: itkBackwardImageProjector2Dto3D.h:91
BackwardImageProjector2Dto3D Self
Definition: itkBackwardImageProjector2Dto3D.h:35
Definition: niftkITKAffineResampleImage.cxx:74
ImageType::IndexType IndexType
Definition: niftkMakeLapUSProbeBasicModel.cxx:32
OutputImagePointType m_OutputImageOrigin
The origin of the output projected image.
Definition: itkBackwardImageProjector2Dto3D.h:151
InputImageType::Pointer InputImagePointer
Definition: itkBackwardImageProjector2Dto3D.h:49
OutputImageType::PixelType OutputImagePixelType
Definition: itkBackwardImageProjector2Dto3D.h:64
SmartPointer< Self > Pointer
Definition: itkBackwardImageProjector2Dto3D.h:36
void SetBackProjectedImageOrigin(OutputImagePointType &outImageOrigin)
Set the origin of the output back-projected image.
Definition: itkBackwardImageProjector2Dto3D.h:98
InputImageType::SpacingType InputImageSpacingType
Definition: itkBackwardImageProjector2Dto3D.h:53
InputImageType::ConstPointer InputImageConstPointer
Definition: itkBackwardImageProjector2Dto3D.h:50
GLuint num
Definition: glew.h:2607
OutputImagePointer m_VoxelRayCount
Definition: itkBackwardImageProjector2Dto3D.h:167
float PixelType
Definition: niftkBreastDCEandADC.cxx:88
OutputImageSpacingType m_OutputImageSpacing
The resolution of the output projected image.
Definition: itkBackwardImageProjector2Dto3D.h:149
ImageType::RegionType RegionType
Definition: niftkMakeLapUSProbeBasicModel.cxx:30
InputImageType::PointType InputImagePointType
Definition: itkBackwardImageProjector2Dto3D.h:54
SmartPointer< const Self > ConstPointer
Definition: itkBackwardImageProjector2Dto3D.h:37
bool m_FlagMultiThreadedExecution
Flag to turn multithreading on or off.
Definition: itkBackwardImageProjector2Dto3D.h:154
OutputImageType::SpacingType OutputImageSpacingType
Definition: itkBackwardImageProjector2Dto3D.h:63
Pointer Filter
Definition: itkBackwardImageProjector2Dto3D.h:162
void SetSingleThreadedExecution(void)
For debugging purposes, set single threaded execution.
Definition: itkBackwardImageProjector2Dto3D.h:104
OutputImageType::Pointer OutputImagePointer
Definition: itkBackwardImageProjector2Dto3D.h:59
OutputImageType::SizeType OutputImageSizeType
Definition: itkBackwardImageProjector2Dto3D.h:62
InputImageType::SizeType InputImageSizeType
Definition: itkBackwardImageProjector2Dto3D.h:52
Simultaneous itk::Image and itk::Array (and hence vnl_vector) class.
OutputImageType::ConstPointer OutputImageConstPointer
Definition: itkBackwardImageProjector2Dto3D.h:60
void SetBackProjectedImageSpacing(OutputImageSpacingType &outImageSpacing)
Set the resolution in mm of the output back-projected image.
Definition: itkBackwardImageProjector2Dto3D.h:93