KudanCV
Marker Class Reference

Public Member Functions

bool isFlowRecoverable (bool globalSetting)
 
void allowFlowRecovery ()
 
void forceFlowRecovery ()
 
void prohibitFlowRecovery ()
 
 Marker (cv::Mat input, bool doAutoCrop=false)
 
bool process ()
 
void resize (int maxDimension)
 
bool autoCropRequired (cv::Rect &cropRectangle)
 
void autoCrop (int maxDimension, cv::Rect cropRectangle)
 
unsigned getNumberOfFeatures ()
 
float getVirtualWidth ()
 
float getVirtualHeight ()
 
void write (FILE *fp)
 
bool read (FILE *fp)
 
size_t read (const unsigned char *data, size_t len)
 
bool isMarkerValid ()
 
bool checkForNewKeyframe (cv::Mat currentImage, std::vector< cv::Mat > &currentPyramid, cv::Mat markerHomography, std::vector< cv::Point2f > currentPoints, int &worstKeyframeId, cv::Mat &smallImage)
 
int createFlowKeyframe (cv::Mat currentImage, std::vector< cv::Mat > currentPyramid, cv::Mat markerHomography, std::vector< cv::Point2f > currentPoints, cv::Mat smallImage)
 
void removeFlowKeyframeIfNecessary (int kfId)
 
cv::Mat localiseByFlowKeyframes (cv::Mat currentImage)
 
void setExtensible (bool ext)
 
bool isExtensible ()
 
bool isExtended ()
 
bool isExtension ()
 
bool canBeExtended ()
 
void clearExtendedMarkers ()
 
bool isAutoCropped ()
 
bool setVirtualBoundary (cv::Point corner, cv::Size size)
 
bool resetVirtualBoundary ()
 

Public Attributes

cv::Mat image
 
std::string name
 
std::vector< cv::KeyPoint > keypoints
 
std::vector< float > keypointOrientations
 
cv::Mat descriptors
 
cv::Size originalImageSize
 
std::vector< MarkerImage > trackingImages
 
std::vector< cv::Point2f > trackedBoundary
 
std::vector< cv::Point2f > virtualBoundary
 
std::vector< cv::Point2f > displayBoundary
 
bool wasAutoCropped
 
std::vector< FlowKeyframe > flowKeyframes
 === Flow Recovery ===
 
float flowPercentCheckSum
 
int flowPercentCheckCount
 
int minimumPossibleComparisons
 
int totalFrameComparisons
 
int totalFramesToCompare
 
bool extendedMarkersOn
 
cv::Mat extensionHomography
 
std::shared_ptr< MarkerextendedMarker
 
std::shared_ptr< MarkerextensionParent
 
std::shared_ptr< MarkerextensionRoot
 
bool toBeRemoved
 

Member Function Documentation

◆ canBeExtended()

bool Marker::canBeExtended ( )

Query whether this marker can be extended now, i.e. it is extensible but not already done

◆ isAutoCropped()

bool Marker::isAutoCropped ( )

Query whether this marker was actually auto-cropped (if it was requested, and actually done)

◆ isExtended()

bool Marker::isExtended ( )

Query whether this marker has already been extended

◆ isExtensible()

bool Marker::isExtensible ( )

Query whether this marker is involved in extended markers at all

◆ isExtension()

bool Marker::isExtension ( )

Query whether this marker is itself an extension of something

◆ setExtensible()

void Marker::setExtensible ( bool  ext)

Set whether this marker should be able to use extended markers or not


The documentation for this class was generated from the following files: