ImFusion C++ SDK 4.4.0
ImFusion::SimilarityMeasureNGF_GL Class Reference
Inheritance diagram for ImFusion::SimilarityMeasureNGF_GL:

Public Member Functions

 SimilarityMeasureNGF_GL (SharedImage *img1, SharedImage *img2)
Public Member Functions inherited from ImFusion::SimilarityMeasurePixelWise_GL
 SimilarityMeasurePixelWise_GL (SharedImage *img1, SharedImage *img2, int mode, const char *program=nullptr)
double compute (const ImageTransformer *t, size_t *overlap=nullptr) override
 Computes and returns the similarity measure.
double mean1 () const
 Return mean intensity of first image in overlap area from last NCC computation.
double mean2 () const
 Return mean intensity of second image in overlap area from last NCC computation.
double sDev1 () const
double sDev2 () const
bool supportsWeights () const override
 Queries the capability whether this similarity measure supports pixel-wise weights.
void setWeights (const SharedImage *weights1, const SharedImage *weights2) override
 Sets the images to use as weights for the similarity metric.
Public Member Functions inherited from ImFusion::SimilarityMeasureImplPixelWise
 SimilarityMeasureImplPixelWise (SharedImage *img1, SharedImage *img2, int mode)
void configure (const Properties *p) override
 Set one or multiple properties.
void configuration (Properties *p) const override
 Retrieve the properties of this object.
Public Member Functions inherited from ImFusion::SimilarityMeasureImpl
 SimilarityMeasureImpl (SharedImage *img1, SharedImage *img2)
 Sets the two images that should be compared. Does not transfer ownership.
virtual bool setImage1 (SharedImage *img1)
 Replaces the image1 that was set in the constructor with the given image.
virtual bool setImage2 (SharedImage *img2)
 Replaces the image2 that was set in the constructor with the given image.
virtual SharedImageimage1 () const
virtual SharedImageimage2 () const
void enableImage1Mask (bool enable)
 Specify whether a mask on the first image shall be used if available (true by default).
void enableImage2Mask (bool enable)
 Specify whether a mask on the second image shall be used if available (true by default).
bool image1MaskEnabled () const
 Return the flag for using the mask of the first image.
bool image2MaskEnabled () const
 Return the flag for using the mask of the second image.
Public Member Functions inherited from ImFusion::Configurable
virtual void configureDefaults ()
 Retrieve the properties of this object, replaces values with their defaults and sets it again.
void registerParameter (ParameterBase *param)
 Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
void unregisterParameter (const ParameterBase *param)
 Remove the given Parameter or SubProperty from the list of registered parameters.
 Configurable (const Configurable &rhs)
 Configurable (Configurable &&rhs) noexcept
Configurable & operator= (const Configurable &)
Configurable & operator= (Configurable &&) noexcept

Additional Inherited Members

Static Public Member Functions inherited from ImFusion::SimilarityMeasureImpl
static void defaultConfiguration (Properties *p)
 Retrieve the default properties of this class.
Public Attributes inherited from ImFusion::Configurable
Signal signalParametersChanged
 Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.
Protected Member Functions inherited from ImFusion::SimilarityMeasureImpl
template<typename T>
double callTyped (T *obj, const MemImage &img1, const MemImage &img2, const ImageTransformer *t, size_t *overlap=nullptr)
 Helper method to transform the MemImages to TypedImages.
void setMaskIncludeArguments (GL::Program *program)
 Sets all uniforms for SimilarityMeasureMask.glh.
void initMaskInclude (GL::Program *program)
 Initializes the code for the SimilarityMeasureMask.glh code.
std::string glDefines (bool patchBased) const
 Return shared GL program defines for patch-based and weights, used in LNCC and LC2 OpenGL subclasses.
Protected Attributes inherited from ImFusion::SimilarityMeasureImplPixelWise
int m_mode
 0: SAD, 1: SSD, 2: NCC
bool m_absoluteNCC
Protected Attributes inherited from ImFusion::SimilarityMeasureImpl
SharedImagem_img1
SharedImagem_img2
bool m_useImg1Mask
bool m_useImg2Mask
std::shared_ptr< GlMask::MultiIncludeTypem_maskImg1
std::shared_ptr< GlMask::MultiIncludeTypem_maskImg2
const SharedImagem_weights1
const SharedImagem_weights2
Protected Attributes inherited from ImFusion::Configurable
std::vector< Paramm_params
 List of all registered Parameter and SubProperty instances.

The documentation for this class was generated from the following file:
  • ImFusion/Reg/SimilarityMeasurePixelWise.h
Search Tab / S to search, Esc to close