ImFusion SDK 4.3
PointCorrespondencesVisualGuide Class Reference

#include <ImFusion/GL/PointCorrespondencesVisualGuide.h>

This class calculates visual guides to assist in identifying corresponding points between different modalities. More...

Detailed Description

This class calculates visual guides to assist in identifying corresponding points between different modalities.

The likely region for the new point in the suspect data is estimated by analyzing the distances between points in both modalities. Specifically, for each pixel in the visual guide, we compare its distance to existing points in the suspect data. A pixel is considered a likely candidate for the new point if its distances to the existing suspect points closely match the distances between the corresponding trusted point and the other points in the trusted data. Here, suspect data refers to the data for which the visual guide is displayed, and trusted data refers to the data used as reference for the distances.

Public Types

enum  DataSelection { None = 0x0 , First = 0x1 , Second = 0x2 , Both = 0x3 }
 Enum to define for which data the visual guide should be shown.
 

Public Member Functions

 PointCorrespondencesVisualGuide (PointCorrespondences *correspondences, PointsOnDataManipulator *first, PointsOnDataManipulator *second)
 Constructor for PointCorrespondencesVisualGuide.
 
void update (int suspectDataIndex)
 Updates the visual guide.
 
void hide ()
 Hides the visual guide.
 
void setShowForData (DataSelection dataSelection)
 Updates for which data the visual guide should be shown.
 
DataSelection supportedDataSelection () const
 Returns the data selection that is available.
 
const SharedImageSetvisualGuideImage (int dataIndex) const
 Returns the visual guide image for the specified data.
 

Constructor & Destructor Documentation

◆ PointCorrespondencesVisualGuide()

Constructor for PointCorrespondencesVisualGuide.

Parameters
correspondencesThe point correspondences for which the visual guide is created
firstThe first PointsOnDataManipulator for the point correspondences
secondThe other PointsOnDataManipulator for the point correspondences
Exceptions
std::runtime_errorif correspondences or manipulator elements are nullptr, or if the shader could not be compiled.

Member Function Documentation

◆ update()

void update ( int suspectDataIndex)

Updates the visual guide.

Parameters
suspectDataIndexThe index which specifies the suspect data

◆ setShowForData()

void setShowForData ( DataSelection dataSelection)

Updates for which data the visual guide should be shown.

Parameters
dataSelectionSpecifies the data for which the visual guide should be shown.

◆ visualGuideImage()

const SharedImageSet * visualGuideImage ( int dataIndex) const

Returns the visual guide image for the specified data.

Parameters
dataIndexThe index of the data for which the visual guide should be returned

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close