ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkSingleImageCostFunction.h>
This class is a cost function which queries an underlying image for the single value.
The user is expected to provide an image representing the underlying cost function. The user may also provide an image interpolator (if not provided the LinearInterpolateImageFunction is used by default). The gradient is computed using central differences in physical space.
The parameters are the physical location (itkPoint) of the current position. Initialize() must be called before using this cost function.
Definition at line 52 of file itkSingleImageCostFunction.h.
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
void | GetDerivative (const ParametersType ¶meters, DerivativeType &derivative) const override |
virtual const char * | GetNameOfClass () const |
unsigned int | GetNumberOfParameters (void) const override |
MeasureType | GetValue (const ParametersType ¶meters) const override |
virtual void | Initialize (void) throw ( ExceptionObject ) |
void | SetMaximize () |
void | SetMinimize () |
virtual void | SetInterpolator (InterpolatorType *_arg) |
virtual const InterpolatorType * | GetInterpolator () const |
virtual void | SetImage (const ImageType *_arg) |
virtual const ImageType * | GetImage () const |
Public Member Functions inherited from itk::SingleValuedCostFunction | |
virtual void | GetValueAndDerivative (const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexceptoverride |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
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 flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = ImageType::ImageDimension |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
SingleImageCostFunction () | |
~SingleImageCostFunction () override | |
Protected Member Functions inherited from itk::SingleValuedCostFunction | |
SingleValuedCostFunction ()=default | |
~SingleValuedCostFunction () override | |
Protected Member Functions inherited from itk::CostFunctionTemplate< TInternalComputationValueType > | |
CostFunctionTemplate ()=default | |
~CostFunctionTemplate () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Attributes | |
GradientImageFunctionType::Pointer | m_GradientImageFunction |
ImageConstPointer | m_Image |
InterpolatorType::Pointer | m_Interpolator |
ImagePixelType | m_OutsideValue |
Additional Inherited Members | |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
using itk::SingleImageCostFunction< TImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 62 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::ContinuousIndexType = ContinuousIndex< CoordRepType, ImageDimension > |
Definition at line 96 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::CoordRepType = Superclass::ParametersValueType |
Type used for representing point components
Definition at line 91 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::DefaultInterpolatorType = LinearInterpolateImageFunction< ImageType, CoordRepType > |
Definition at line 100 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::DerivativeType = typename Superclass::DerivativeType |
DerivativeType type alias. It defines a type used to return the cost function derivative.
Definition at line 76 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::GradientImageFunctionType = PhysicalCentralDifferenceImageFunction< ImageType, CoordRepType > |
Type of the GradientImageFunction class
Definition at line 103 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::ImageConstPointer = typename ImageType::ConstPointer |
Definition at line 85 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::ImagePixelType = typename TImage::PixelType |
Definition at line 84 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::ImageType = TImage |
Type of the Image.
Definition at line 83 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::IndexType = Index< ImageDimension > |
Type for locations
Definition at line 94 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::InterpolatorType = InterpolateImageFunction< ImageType, CoordRepType > |
Type of the Interpolator class
Definition at line 99 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::MeasureType = typename Superclass::MeasureType |
MeasureType type alias. It defines a type used to return the cost function value.
Definition at line 72 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::ParametersType = typename Superclass::ParametersType |
ParametersType type alias. It defines a position in the optimization search space.
Definition at line 80 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::Pointer = SmartPointer<Self> |
Definition at line 61 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::PointType = Point< CoordRepType, ImageDimension > |
Definition at line 95 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::Self = SingleImageCostFunction |
Standard class type alias.
Definition at line 59 of file itkSingleImageCostFunction.h.
using itk::SingleImageCostFunction< TImage >::Superclass = SingleValuedCostFunction |
Definition at line 60 of file itkSingleImageCostFunction.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 145 of file itkSingleImageCostFunction.h.
|
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.
|
overridevirtual |
This method returns the derivative of the cost function corresponding to the specified parameters.
Implements itk::SingleValuedCostFunction.
|
virtual |
Get/set the Image.
|
virtual |
Get/set the Interpolator.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::SingleValuedCostFunction.
|
inlineoverridevirtual |
Return the number of parameters required by the Transform
Implements itk::CostFunctionTemplate< TInternalComputationValueType >.
Definition at line 119 of file itkSingleImageCostFunction.h.
|
overridevirtual |
This method returns the value of the cost function corresponding to the specified parameters.
Implements itk::SingleValuedCostFunction.
|
virtual |
Initialize the cost function
|
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::CostFunctionTemplate< TInternalComputationValueType >.
|
virtual |
Get/set the Image.
|
virtual |
Get/set the Interpolator.
|
inline |
Definition at line 137 of file itkSingleImageCostFunction.h.
|
inline |
Definition at line 133 of file itkSingleImageCostFunction.h.
|
static |
Constant for the image dimension
Definition at line 88 of file itkSingleImageCostFunction.h.
|
private |
Definition at line 151 of file itkSingleImageCostFunction.h.
|
private |
Definition at line 149 of file itkSingleImageCostFunction.h.
|
private |
Definition at line 150 of file itkSingleImageCostFunction.h.
|
private |
Used to define the value outside the image buffer. Important when path points are on the edge of an image
Definition at line 154 of file itkSingleImageCostFunction.h.