![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GL/PointCorrespondencesVisualGuide.h>
This class calculates visual guides to assist in identifying corresponding points between different modalities. More...
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 SharedImageSet * | visualGuideImage (int dataIndex) const |
| Returns the visual guide image for the specified data. | |
| PointCorrespondencesVisualGuide | ( | PointCorrespondences * | correspondences, |
| PointsOnDataManipulator * | first, | ||
| PointsOnDataManipulator * | second ) |
Constructor for PointCorrespondencesVisualGuide.
| correspondences | The point correspondences for which the visual guide is created |
| first | The first PointsOnDataManipulator for the point correspondences |
| second | The other PointsOnDataManipulator for the point correspondences |
| std::runtime_error | if correspondences or manipulator elements are nullptr, or if the shader could not be compiled. |
| void update | ( | int | suspectDataIndex | ) |
Updates the visual guide.
| suspectDataIndex | The index which specifies the suspect data |
| void setShowForData | ( | DataSelection | dataSelection | ) |
Updates for which data the visual guide should be shown.
| dataSelection | Specifies the data for which the visual guide should be shown. |
| const SharedImageSet * visualGuideImage | ( | int | dataIndex | ) | const |
Returns the visual guide image for the specified data.
| dataIndex | The index of the data for which the visual guide should be returned |