-
Notifications
You must be signed in to change notification settings - Fork 6
/
pctFDKDDBackProjectionImageFilter.h
67 lines (51 loc) · 2.59 KB
/
pctFDKDDBackProjectionImageFilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef __pctFDKDDBackProjectionImageFilter_h
#define __pctFDKDDBackProjectionImageFilter_h
#include <itkInPlaceImageFilter.h>
#include <rtkBackProjectionImageFilter.h>
namespace pct
{
template <class TInputImage, class TOutputImage>
class ITK_EXPORT FDKDDBackProjectionImageFilter :
public rtk::BackProjectionImageFilter<TInputImage,TOutputImage>
{
public:
/** Standard class typedefs. */
typedef FDKDDBackProjectionImageFilter Self;
typedef rtk::BackProjectionImageFilter<TInputImage,TOutputImage> Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
typedef typename Superclass::ProjectionMatrixType ProjectionMatrixType;
typedef typename TOutputImage::RegionType OutputImageRegionType;
typedef TInputImage ProjectionImageType;
typedef typename ProjectionImageType::Pointer ProjectionImagePointer;
typedef typename ProjectionImageType::PixelType ProjectionPixelType;
typedef itk::Image<float, 4> ProjectionStackType;
typedef ProjectionStackType::Pointer ProjectionStackPointer;
/** Method for creation through the object factory. */
itkNewMacro(Self);
/** Run-time type information (and related methods). */
itkTypeMacro(FDKDDBackProjectionImageFilter, rtk::BackProjectionImageFilter);
virtual ProjectionImagePointer GetDDProjection(const unsigned int iProj);
/** Get / Set the stack of projection images */
itkGetMacro(ProjectionStack, ProjectionStackPointer);
itkSetMacro(ProjectionStack, ProjectionStackPointer);
/** Creates the #iProj index to index projection matrix with current inputs
instead of the physical point to physical point projection matrix provided by Geometry */
ProjectionMatrixType GetIndexToIndexProjectionMatrix(const unsigned int iProj, const ProjectionImageType *proj);
protected:
FDKDDBackProjectionImageFilter() {
this->SetNumberOfRequiredInputs(1); this->SetInPlace( true );
};
virtual ~FDKDDBackProjectionImageFilter() {
};
virtual void DynamicThreadedGenerateData( const OutputImageRegionType& outputRegionForThread ) ITK_OVERRIDE;
ProjectionStackPointer m_ProjectionStack;
private:
FDKDDBackProjectionImageFilter(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
};
} // end namespace pct
#ifndef ITK_MANUAL_INSTANTIATION
#include "pctFDKDDBackProjectionImageFilter.txx"
#endif
#endif