RTK
2.6.0
Reconstruction Toolkit
|
#include <rtkFieldOfViewImageFilter.h>
Public Types | |
using | ConstPointer = itk::SmartPointer< const Self > |
using | FOVRadiusType = enum { RADIUSINF, RADIUSSUP, RADIUSBOTH } |
using | GeometryConstPointer = typename GeometryType::ConstPointer |
using | GeometryType = rtk::ThreeDCircularProjectionGeometry |
using | OutputImageRegionType = typename TOutputImage::RegionType |
using | Pointer = itk::SmartPointer< Self > |
using | ProjectionsStackPointer = typename ProjectionsStackType::Pointer |
using | ProjectionsStackType = typename TInputImage::Superclass |
using | Self = FieldOfViewImageFilter |
using | Superclass = itk::ImageToImageFilter< TInputImage, TOutputImage > |
Public Member Functions | |
void | AddCollimationConstraints (const FOVRadiusType type, _lprec *lp) |
virtual bool | ComputeFOVRadius (const FOVRadiusType type, double &x, double &z, double &r) |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
virtual const char * | GetNameOfClass () const |
virtual const GeometryType * | GetGeometry () const |
virtual void | SetGeometry (const GeometryType *_arg) |
virtual bool | GetMask () |
virtual void | SetMask (bool _arg) |
virtual ProjectionsStackPointer | GetProjectionsStack () |
virtual void | SetProjectionsStack (ProjectionsStackType *_arg) |
virtual bool | GetDisplacedDetector () |
virtual void | SetDisplacedDetector (bool _arg) |
virtual double | GetInsideValue () |
virtual void | SetInsideValue (double _arg) |
virtual double | GetOutsideValue () |
virtual void | SetOutsideValue (double _arg) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | BeforeThreadedGenerateData () override |
void | DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) override |
FieldOfViewImageFilter () | |
void | VerifyPreconditions () const override |
~FieldOfViewImageFilter () override=default | |
Private Attributes | |
double | m_CenterX { 0. } |
double | m_CenterZ { 0. } |
bool | m_DisplacedDetector { false } |
GeometryConstPointer | m_Geometry { nullptr } |
double | m_HatHeightInf |
double | m_HatHeightSup |
double | m_HatTangentInf |
double | m_HatTangentSup |
double | m_InsideValue { 1. } |
bool | m_Mask { false } |
double | m_OutsideValue { 0. } |
ProjectionsStackPointer | m_ProjectionsStack |
double | m_Radius { -1 } |
Computes the field of view mask for circular 3D geometry.
Masks out the regions that are not included in our field of view or creates the mask if m_Mask is true. Note that the 3 angle parameters are assumed to be 0. in the circular geometry: GantryAngle, OutOfPlaneAngle and InPlaneAngle. The rest is accounted for but the fov is assumed to be cylindrical.
Definition at line 48 of file rtkFieldOfViewImageFilter.h.
using rtk::FieldOfViewImageFilter< TInputImage, TOutputImage >::ConstPointer = itk::SmartPointer<const Self> |
Definition at line 57 of file rtkFieldOfViewImageFilter.h.
using rtk::FieldOfViewImageFilter< TInputImage, TOutputImage >::FOVRadiusType = enum { RADIUSINF, RADIUSSUP, RADIUSBOTH } |
Definition at line 64 of file rtkFieldOfViewImageFilter.h.
using rtk::FieldOfViewImageFilter< TInputImage, TOutputImage >::GeometryConstPointer = typename GeometryType::ConstPointer |
Definition at line 63 of file rtkFieldOfViewImageFilter.h.
using rtk::FieldOfViewImageFilter< TInputImage, TOutputImage >::GeometryType = rtk::ThreeDCircularProjectionGeometry |
Definition at line 62 of file rtkFieldOfViewImageFilter.h.
using rtk::FieldOfViewImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename TOutputImage::RegionType |
Definition at line 59 of file rtkFieldOfViewImageFilter.h.
using rtk::FieldOfViewImageFilter< TInputImage, TOutputImage >::Pointer = itk::SmartPointer<Self> |
Definition at line 56 of file rtkFieldOfViewImageFilter.h.
using rtk::FieldOfViewImageFilter< TInputImage, TOutputImage >::ProjectionsStackPointer = typename ProjectionsStackType::Pointer |
Definition at line 61 of file rtkFieldOfViewImageFilter.h.
using rtk::FieldOfViewImageFilter< TInputImage, TOutputImage >::ProjectionsStackType = typename TInputImage::Superclass |
Definition at line 60 of file rtkFieldOfViewImageFilter.h.
using rtk::FieldOfViewImageFilter< TInputImage, TOutputImage >::Self = FieldOfViewImageFilter |
Standard class type alias.
Definition at line 54 of file rtkFieldOfViewImageFilter.h.
using rtk::FieldOfViewImageFilter< TInputImage, TOutputImage >::Superclass = itk::ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 55 of file rtkFieldOfViewImageFilter.h.
|
protected |
|
overrideprotecteddefault |
void rtk::FieldOfViewImageFilter< TInputImage, TOutputImage >::AddCollimationConstraints | ( | const FOVRadiusType | type, |
_lprec * | lp | ||
) |
Add collimation constraints. This function is always called from ComputeFOVRadius but it has an effect only if the geometry has the m_CollimationUInf or m_CollimationUSup which are non infinity (default).
|
overrideprotectedvirtual |
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Computes the radius r and the center (x,z) of the disk perpendicular to the y-axis that is covered by:
|
virtual |
Reimplemented from itk::Object.
|
overrideprotectedvirtual |
Generates a FOV mask which is applied to the reconstruction A call to this function will assume modification of the function.
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Assume that a displaced detector image filter, e.g., rtk::DisplacedDetectorImageFilter, has been used.
|
virtual |
Get / Set the object pointer to projection geometry
|
virtual |
Inside value when Mask is true. 1 by default
|
virtual |
Get / Set of the member Mask. If set, all the pixels in the field of view are set to InsideValue. The data value is kept otherwise. Pixels outside the mask are set to OutsideValue in any case.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >.
|
virtual |
Outside value. 0 by default
|
virtual |
Get / Set the region of projection images, required to determine the FOV radius. Note that only the geometric information is required, the data are therefore not updated.
|
static |
Method for creation through the object factory.
|
virtual |
Assume that a displaced detector image filter, e.g., rtk::DisplacedDetectorImageFilter, has been used.
|
virtual |
Get / Set the object pointer to projection geometry
|
virtual |
Inside value when Mask is true. 1 by default
|
virtual |
Get / Set of the member Mask. If set, all the pixels in the field of view are set to InsideValue. The data value is kept otherwise. Pixels outside the mask are set to OutsideValue in any case.
|
virtual |
Outside value. 0 by default
|
virtual |
Get / Set the region of projection images, required to determine the FOV radius. Note that only the geometric information is required, the data are therefore not updated.
|
overrideprotectedvirtual |
Checks that inputs are correctly set.
Reimplemented from itk::ProcessObject.
|
private |
Definition at line 153 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 154 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 159 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 149 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 157 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 158 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 155 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 156 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 160 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 150 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 161 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 151 of file rtkFieldOfViewImageFilter.h.
|
private |
Definition at line 152 of file rtkFieldOfViewImageFilter.h.