Loading...
Searching...
No Matches
itkAdvancedRayCastInterpolateImageFunction.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile: itkAdvancedRayCastInterpolateImageFunction.h,v $
Language: C++
Date: $Date: 2009-04-23 03:53:36 $
Version: $Revision: 1.17 $
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef itkAdvancedRayCastInterpolateImageFunction_h
#define itkAdvancedRayCastInterpolateImageFunction_h
#include "itkInterpolateImageFunction.h"
#include "itkTransform.h"
#include "itkVector.h"
namespace itk
{
template <class TInputImage, class TCoordRep = double>
class ITK_TEMPLATE_EXPORT AdvancedRayCastInterpolateImageFunction
: public InterpolateImageFunction<TInputImage, TCoordRep>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(AdvancedRayCastInterpolateImageFunction);
using Self = AdvancedRayCastInterpolateImageFunction;
using Superclass = InterpolateImageFunction<TInputImage, TCoordRep>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
using TransformType = Transform<TCoordRep, InputImageDimension, InputImageDimension>;
using TransformPointer = typename TransformType::Pointer;
using InputPointType = typename TransformType::InputPointType;
using OutputPointType = typename TransformType::OutputPointType;
using TransformParametersType = typename TransformType::ParametersType;
using TransformJacobianType = typename TransformType::JacobianType;
using PixelType = typename Superclass::InputPixelType;
using SizeType = typename TInputImage::SizeType;
using DirectionType = Vector<TCoordRep, InputImageDimension>;
using InterpolatorType = InterpolateImageFunction<TInputImage, TCoordRep>;
using InterpolatorPointer = typename InterpolatorType::Pointer;
itkTypeMacro(AdvancedRayCastInterpolateImageFunction, InterpolateImageFunction);
itkNewMacro(Self);
using typename Superclass::OutputType;
using typename Superclass::InputImageType;
using typename Superclass::RealType;
itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);
using typename Superclass::PointType;
using typename Superclass::IndexType;
using typename Superclass::ContinuousIndexType;
OutputType
Evaluate(const PointType & point) const override;
OutputType
EvaluateAtContinuousIndex(const ContinuousIndexType & index) const override;
itkSetObjectMacro(Transform, TransformType);
itkGetModifiableObjectMacro(Transform, TransformType);
itkSetObjectMacro(Interpolator, InterpolatorType);
itkGetModifiableObjectMacro(Interpolator, InterpolatorType);
itkSetMacro(FocalPoint, InputPointType);
itkGetConstMacro(FocalPoint, InputPointType);
itkSetMacro(Threshold, double);
itkGetConstMacro(Threshold, double);
bool
IsInsideBuffer(const PointType &) const override
{
return true;
}
bool
IsInsideBuffer(const ContinuousIndexType &) const override
{
return true;
}
bool
IsInsideBuffer(const IndexType &) const override
{
return true;
}
protected:
AdvancedRayCastInterpolateImageFunction() = default;
~AdvancedRayCastInterpolateImageFunction() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
TransformPointer m_Transform{};
InputPointType m_FocalPoint{};
double m_Threshold{ 0.0 };
InterpolatorPointer m_Interpolator{};
private:
SizeType
GetRadius() const override
{
const InputImageType * const input = this->GetInputImage();
if (!input)
{
itkExceptionMacro("Input image required!");
}
return input->GetLargestPossibleRegion().GetSize();
}
class RayCastHelper;
};
} // namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkAdvancedRayCastInterpolateImageFunction.hxx"
#endif
#endif
itk::AdvancedRayCastInterpolateImageFunction::TransformJacobianType
typename TransformType::JacobianType TransformJacobianType
Definition itkAdvancedRayCastInterpolateImageFunction.h:81
itk::AdvancedRayCastInterpolateImageFunction< typename InterpolatorBase< TElastix >::InputImageType, typename InterpolatorBase< TElastix >::CoordRepType >::m_Interpolator
InterpolatorPointer m_Interpolator
Definition itkAdvancedRayCastInterpolateImageFunction.h:213
itk::AdvancedRayCastInterpolateImageFunction::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkAdvancedRayCastInterpolateImageFunction.h:66
itk::AdvancedRayCastInterpolateImageFunction::GetRadius
SizeType GetRadius() const override
Definition itkAdvancedRayCastInterpolateImageFunction.h:217
itk::AdvancedRayCastInterpolateImageFunction::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(AdvancedRayCastInterpolateImageFunction)
itk::AdvancedRayCastInterpolateImageFunction::OutputPointType
typename TransformType::OutputPointType OutputPointType
Definition itkAdvancedRayCastInterpolateImageFunction.h:79
itk::AdvancedRayCastInterpolateImageFunction::DirectionType
Vector< TCoordRep, InputImageDimension > DirectionType
Definition itkAdvancedRayCastInterpolateImageFunction.h:87
itk::AdvancedRayCastInterpolateImageFunction::Pointer
SmartPointer< Self > Pointer
Definition itkAdvancedRayCastInterpolateImageFunction.h:65
itk::AdvancedRayCastInterpolateImageFunction::EvaluateAtContinuousIndex
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &index) const override
itk::AdvancedRayCastInterpolateImageFunction::Evaluate
OutputType Evaluate(const PointType &point) const override
Interpolate the image at a point position.
itk::AdvancedRayCastInterpolateImageFunction::TransformType
Transform< TCoordRep, InputImageDimension, InputImageDimension > TransformType
Definition itkAdvancedRayCastInterpolateImageFunction.h:75
itk::AdvancedRayCastInterpolateImageFunction::SizeType
typename TInputImage::SizeType SizeType
Definition itkAdvancedRayCastInterpolateImageFunction.h:85
itk::AdvancedRayCastInterpolateImageFunction::IsInsideBuffer
bool IsInsideBuffer(const IndexType &) const override
Definition itkAdvancedRayCastInterpolateImageFunction.h:186
itk::AdvancedRayCastInterpolateImageFunction::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
itk::AdvancedRayCastInterpolateImageFunction::IsInsideBuffer
bool IsInsideBuffer(const ContinuousIndexType &) const override
Definition itkAdvancedRayCastInterpolateImageFunction.h:179
itk::AdvancedRayCastInterpolateImageFunction::TransformPointer
typename TransformType::Pointer TransformPointer
Definition itkAdvancedRayCastInterpolateImageFunction.h:77
itk::AdvancedRayCastInterpolateImageFunction::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
Print the object.
itk::AdvancedRayCastInterpolateImageFunction::~AdvancedRayCastInterpolateImageFunction
~AdvancedRayCastInterpolateImageFunction() override=default
Destructor.
itk::AdvancedRayCastInterpolateImageFunction::IsInsideBuffer
bool IsInsideBuffer(const PointType &) const override
Definition itkAdvancedRayCastInterpolateImageFunction.h:172
itk::AdvancedRayCastInterpolateImageFunction::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(Interpolator, InterpolatorType)
itk::AdvancedRayCastInterpolateImageFunction::itkStaticConstMacro
itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension)
itk::AdvancedRayCastInterpolateImageFunction< typename InterpolatorBase< TElastix >::InputImageType, typename InterpolatorBase< TElastix >::CoordRepType >::m_Threshold
double m_Threshold
Definition itkAdvancedRayCastInterpolateImageFunction.h:210
itk::AdvancedRayCastInterpolateImageFunction::Superclass
InterpolateImageFunction< TInputImage, TCoordRep > Superclass
Definition itkAdvancedRayCastInterpolateImageFunction.h:64
itk::AdvancedRayCastInterpolateImageFunction::InterpolatorPointer
typename InterpolatorType::Pointer InterpolatorPointer
Definition itkAdvancedRayCastInterpolateImageFunction.h:92
itk::AdvancedRayCastInterpolateImageFunction< typename InterpolatorBase< TElastix >::InputImageType, typename InterpolatorBase< TElastix >::CoordRepType >::m_Transform
TransformPointer m_Transform
Definition itkAdvancedRayCastInterpolateImageFunction.h:204
itk::AdvancedRayCastInterpolateImageFunction< typename InterpolatorBase< TElastix >::InputImageType, typename InterpolatorBase< TElastix >::CoordRepType >::m_FocalPoint
InputPointType m_FocalPoint
Definition itkAdvancedRayCastInterpolateImageFunction.h:207
itk::AdvancedRayCastInterpolateImageFunction::Self
AdvancedRayCastInterpolateImageFunction Self
Definition itkAdvancedRayCastInterpolateImageFunction.h:63
itk::AdvancedRayCastInterpolateImageFunction::AdvancedRayCastInterpolateImageFunction
AdvancedRayCastInterpolateImageFunction()=default
Constructor.
itk::AdvancedRayCastInterpolateImageFunction::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(Transform, TransformType)
itk::AdvancedRayCastInterpolateImageFunction::InterpolatorType
InterpolateImageFunction< TInputImage, TCoordRep > InterpolatorType
Definition itkAdvancedRayCastInterpolateImageFunction.h:90
itk::AdvancedRayCastInterpolateImageFunction::InputPointType
typename TransformType::InputPointType InputPointType
Definition itkAdvancedRayCastInterpolateImageFunction.h:78
itk::AdvancedRayCastInterpolateImageFunction::TransformParametersType
typename TransformType::ParametersType TransformParametersType
Definition itkAdvancedRayCastInterpolateImageFunction.h:80
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |