double core::ObjectDataBox::CompareTo |
( |
ObjectDataPtr |
obj | ) |
const |
|
overridevirtual |
Compares this object with the given object.
- Parameters
-
obj | A pointer to the object to compare this object to |
- Returns
- A double value indicating the comparison result
Reimplemented from core::ObjectData2D.
ObjectDataPtr core::ObjectDataBox::Interpolate |
( |
ObjectDataPtr |
obj, |
|
|
double |
fraction |
|
) |
| const |
|
overridevirtual |
Linearly interpolates between this and the given object. Creates a new object to fit between the two objects.
- Parameters
-
obj | A pointer to the target object |
fraction | Describes where the interpolation should be done. A fraction of zero is a clone of this object, a fraction of one is a clone of the target object. |
- Returns
- The interpolated object
Reimplemented from core::ObjectData2D.
void core::ObjectDataBox::Visualize |
( |
cv::Mat & |
image, |
|
|
cv::Scalar & |
color |
|
) |
| const |
|
overridevirtual |
Visualizes the object in the given image with the given color. This method does nothing, it needs to be overwritten to visualize something.
- Parameters
-
image | The image to write into |
color | The color to use |
Reimplemented from core::ObjectData2D.
The documentation for this class was generated from the following files: