#include <rtkProjectionsReader.h>
This is the universal projections reader of rtk (raw data converted to attenuation). Currently handles his (Elekta Synergy), hnd (Varian OBI), edf (ESRF), XRad. For all other ITK file formats (mha, tif, ...), it is assumed that the attenuation is directly passed if the pixel type is not unsigned short and there is no processing. Optionnally, one can activate cropping, binning, scatter correction, etc. The details of the mini- pipeline is provided below, note that dashed filters are shunt if they are not required according to parameters.
Definition at line 126 of file rtkProjectionsReader.h.
Inheritance diagram for rtk::ProjectionsReader< TOutputImage >:
Collaboration diagram for rtk::ProjectionsReader< TOutputImage >:Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
Static Public Attributes | |
| static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
| static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Attributes | |
| FileNamesContainer | m_FileNames |
Protected Attributes inherited from itk::ImageSource< TOutputImage > | |
| bool | m_DynamicMultiThreading { true } |
Protected Attributes inherited from itk::ProcessObject | |
| TimeStamp | m_OutputInformationMTime {} |
| bool | m_Updating {} |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
Private Member Functions | |
| void | ConnectElektaRawFilter (itk::ImageBase< OutputImageDimension > **nextInputBase) |
| void | PropagateI0 (itk::ImageBase< OutputImageDimension > **nextInputBase) |
| template<class TInputImage> | |
| void | PropagateParametersToMiniPipeline () |
Additional Inherited Members | |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
| static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
| static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Static Protected Member Functions inherited from itk::ProcessObject | |
| template<typename TSourceObject> | |
| static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
| static constexpr float | progressFixedToFloat (uint32_t fixed) |
| static uint32_t | progressFloatToFixed (float f) |
| using rtk::ProjectionsReader< TOutputImage >::FileNamesContainer = std::vector<std::string> |
Definition at line 152 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::MedianRadiusType = typename rtk::ConditionalMedianImageFilter<TOutputImage>::MedianRadiusType |
Definition at line 154 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::OutputImageDirectionType = typename OutputImageType::DirectionType |
Definition at line 147 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType |
Definition at line 146 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Definition at line 144 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::OutputImagePointType = typename OutputImageType::PointType |
Definition at line 149 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType |
Definition at line 145 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::OutputImageSizeType = typename OutputImageType::SizeType |
Definition at line 150 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::OutputImageSpacingType = typename OutputImageType::SpacingType |
Definition at line 148 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::OutputImageType = TOutputImage |
Some convenient type alias.
Definition at line 143 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::Pointer = itk::SmartPointer<Self> |
Definition at line 134 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::Self = ProjectionsReader |
Standard class type alias.
Definition at line 132 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::ShrinkFactorsType = itk::FixedArray<unsigned int, TOutputImage::ImageDimension> |
Definition at line 153 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::StreamingType = itk::StreamingImageFilter<TOutputImage, TOutputImage> |
Definition at line 160 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::Superclass = itk::ImageSource<TOutputImage> |
Definition at line 133 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::WaterPrecorrectionType = rtk::WaterPrecorrectionImageFilter<TOutputImage, TOutputImage> |
Typdefs of filters of the mini-pipeline that do not depend on the raw data type.
Definition at line 159 of file rtkProjectionsReader.h.
| using rtk::ProjectionsReader< TOutputImage >::WaterPrecorrectionVectorType = std::vector<double> |
Definition at line 155 of file rtkProjectionsReader.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
virtual |
|
virtual |
|
private |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
overrideprotectedvirtual |
Does the real work.
Reimplemented from itk::ImageSource< TOutputImage >.
|
overridevirtual |
Prepare the allocation of the output image during the first back propagation of the pipeline.
Reimplemented from itk::ProcessObject.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinenodiscard |
Definition at line 177 of file rtkProjectionsReader.h.
References m_FileNames.
|
virtual |
Set/Get rtk::LUTbasedVariableI0RawToAttenuationImageFilter. Default is used if not set which depends on the input image type max. If equals 0, automated estimation is activated using rtk::I0EstimationProjectionFilter.
|
virtual |
Set/Get the intensity with no photons for rtk::LUTbasedVariableI0RawToAttenuationImageFilter.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageSource< TOutputImage >.
References ProjectionsReader().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set/Get the index of the component to be extracted if the projection data contains vectors instead of scalars.
|
virtual |
Get / Set the water precorrection parameters.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ImageSource< TOutputImage >.
|
private |
|
private |
Function that checks and propagates the parameters of the class to the mini-pipeline. Due to concept checking, i0 propagation can only be done with unsigned shorts and is left apart without template.
|
virtual |
|
virtual |
Convert the projection data to line integrals after pre-processing. Default is on.
|
virtual |
|
virtual |
|
inline |
Set the vector of strings that contains the file names. Files are processed in sequential order.
Definition at line 168 of file rtkProjectionsReader.h.
References m_FileNames, and itk::Object::Modified().
|
virtual |
|
virtual |
|
virtual |
Set/Get the ImageIO helper class. Often this is created via the object factory mechanism that determines whether a particular ImageIO can read a certain file. This method provides a way to get the ImageIO instance that is created. Or you can directly specify the ImageIO to use to read a particular file in case the factory mechanism will not work properly (e.g., unknown or unusual extension).
|
virtual |
|
virtual |
Set/Get itk::ConditionalMedianImageFilter parameters
|
virtual |
|
virtual |
Set/Get the new image information for the input projections before any pre-processing.
|
virtual |
|
virtual |
Set/Get itk::BinShrinkImageFilter parameters
|
virtual |
|
virtual |
Set/Get the cropping sizes for the upper and lower boundaries.
|
virtual |
|
inlinevirtual |
Definition at line 234 of file rtkProjectionsReader.h.
References m_WaterPrecorrectionCoefficients, and itk::Object::Modified().
|
private |
Definition at line 335 of file rtkProjectionsReader.h.
|
private |
Definition at line 304 of file rtkProjectionsReader.h.
|
private |
Definition at line 300 of file rtkProjectionsReader.h.
|
private |
Definition at line 342 of file rtkProjectionsReader.h.
|
private |
Definition at line 303 of file rtkProjectionsReader.h.
|
private |
Definition at line 340 of file rtkProjectionsReader.h.
|
private |
Definition at line 302 of file rtkProjectionsReader.h.
|
private |
Definition at line 330 of file rtkProjectionsReader.h.
|
private |
Definition at line 329 of file rtkProjectionsReader.h.
|
private |
Definition at line 328 of file rtkProjectionsReader.h.
|
private |
Definition at line 301 of file rtkProjectionsReader.h.
|
protected |
A list of filenames to be processed.
Definition at line 279 of file rtkProjectionsReader.h.
Referenced by GetFileNames(), and SetFileNames().
|
private |
Definition at line 338 of file rtkProjectionsReader.h.
|
private |
Definition at line 306 of file rtkProjectionsReader.h.
|
private |
Definition at line 339 of file rtkProjectionsReader.h.
|
private |
Image IO object which is stored to create the pipe only when required
Definition at line 321 of file rtkProjectionsReader.h.
|
private |
Definition at line 331 of file rtkProjectionsReader.h.
|
private |
Definition at line 334 of file rtkProjectionsReader.h.
|
private |
Definition at line 337 of file rtkProjectionsReader.h.
|
private |
Copy of parameters for the mini-pipeline. Parameters are checked and propagated when required in the GenerateOutputInformation. Refer to the documentation of the corresponding filter for more information.
Definition at line 326 of file rtkProjectionsReader.h.
|
private |
When m_ComputeLineIntegral is off, one just casts the value instead of doing a line integral.
Definition at line 314 of file rtkProjectionsReader.h.
|
private |
The projections reader which template depends on the scanner. It is not typed because we want to keep the data as on disk. The pointer is stored to reference the filter and avoid its destruction.
Definition at line 296 of file rtkProjectionsReader.h.
|
private |
Conversion from raw to attenuation. Depends on the input image type, set to binning filter output by default.
Definition at line 310 of file rtkProjectionsReader.h.
|
private |
Definition at line 305 of file rtkProjectionsReader.h.
|
private |
Definition at line 336 of file rtkProjectionsReader.h.
|
private |
Definition at line 333 of file rtkProjectionsReader.h.
|
private |
Definition at line 327 of file rtkProjectionsReader.h.
|
private |
Definition at line 318 of file rtkProjectionsReader.h.
|
private |
Definition at line 332 of file rtkProjectionsReader.h.
|
private |
Definition at line 343 of file rtkProjectionsReader.h.
|
private |
Pointers for pre-processing filters that are created only when required.
Definition at line 299 of file rtkProjectionsReader.h.
|
private |
Definition at line 341 of file rtkProjectionsReader.h.
Referenced by SetWaterPrecorrectionCoefficients().
|
private |
Pointers for post-processing filters that are created only when required.
Definition at line 317 of file rtkProjectionsReader.h.
|
staticconstexpr |
ImageDimension constant
Definition at line 163 of file rtkProjectionsReader.h.