28#include "SupremoUtils.h"
Definition: CorrespondenceModel.h:31
Definition: ObjectiveFunction.h:43
void SetSurrogateSignals(const SurrogateSignalType &surrSignalsIn)
Definition: ObjectiveFunction.cpp:146
unsigned int GetNumberOfParameters()
Definition: ObjectiveFunction.cpp:434
ObjectiveFunction()
Definition: ObjectiveFunction.cpp:30
std::vector< nifti_image * > dynamicImages
Vector holding all pointers to the dynamic images.
Definition: ObjectiveFunction.h:141
std::shared_ptr< ImageSimilarity > imageSimilarity
Object that measures the similarity between two images.
Definition: ObjectiveFunction.h:138
std::shared_ptr< CorrespondenceModel > correspondenceModel
Object that represents the correspondence model. Able to generate a transformation.
Definition: ObjectiveFunction.h:137
void SetReferenceStateImage(nifti_image *refStateImgIn)
Definition: ObjectiveFunction.cpp:112
std::vector< std::vector< PrecisionType > > SurrogateSignalType
Definition: ObjectiveFunction.h:47
nifti_image * referenceStateImage
Nifti image structure with all.
Definition: ObjectiveFunction.h:140
void SetCorrespondenceModel(const std::shared_ptr< CorrespondenceModel > &correspondenceModelIn)
Definition: ObjectiveFunction.cpp:97
PrecisionType GetMaxStepSize()
Definition: ObjectiveFunction.cpp:52
PrecisionType similarityWeight
Similarity weight.
Definition: ObjectiveFunction.h:142
std::vector< nifti_image * > GetGradientAsImage(const PrecisionType *parametersIn, bool normaliseGradient=false)
Definition: ObjectiveFunction.cpp:381
float PrecisionType
Definition: ObjectiveFunction.h:46
~ObjectiveFunction()
Definition: ObjectiveFunction.cpp:43
void SetDynamicImages(const std::vector< nifti_image * > &dynamicImagesIn)
Definition: ObjectiveFunction.cpp:123
void SetSimilarityMeasure(const std::shared_ptr< ImageSimilarity > &imageSimilarityIn)
Definition: ObjectiveFunction.cpp:157
PrecisionType GetValue(const PrecisionType *parametersIn)
Definition: ObjectiveFunction.cpp:168
void SetImageAcquisition(const std::shared_ptr< ImageAcquisition > &imageAcquisitionIn)
Definition: ObjectiveFunction.cpp:134
SurrogateSignalType surrogateSignals
All surrogate signals.
Definition: ObjectiveFunction.h:139
void GetGradient(const PrecisionType *parametersIn, PrecisionType *gradientOut, bool normaliseGradient=false)
Definition: ObjectiveFunction.cpp:229
std::shared_ptr< ImageAcquisition > imageAcquisition
The object simulating acquisition and calculating the adjoint of the image acquisition procedure.
Definition: ObjectiveFunction.h:143