Image Component Library (ICL)
|
FiducialDetectorPlugin for ARToolkit like markers using binary image patches as marker IDs. More...
#include <FiducialDetectorPluginART.h>
Public Member Functions | |
~FiducialDetectorPluginART () | |
Destructor. | |
virtual void | addOrRemoveMarkers (bool add, const utils::Any &which, const utils::ParamList ¶ms) |
loads markers ID's | |
virtual FiducialImpl * | classifyPatch (const core::Img8u &image, int *rot, bool returnRejectedQuads, cv::ImageRegion r) |
Identifies the given image patch using bch decoding. | |
std::string | getName (const FiducialImpl *impl) |
this method is reimplemented here; it returns the impl's file-basename | |
virtual void | getQuadRectificationParameters (utils::Size &markerSizeWithBorder, utils::Size &markerSizeWithoutBorder) |
describes the special marker image rectificatio parameters | |
virtual core::Img8u | createMarker (const utils::Any &whichOne, const utils::Size &size, const utils::ParamList ¶ms) |
creates marker image from given parameters (see FiducialDetector for more details) | |
Private Member Functions | |
FiducialDetectorPluginART () | |
only the FiducialDetector can instantiate this class | |
Private Attributes | |
Data * | data |
Internal data pointer. | |
Friends | |
class | icl::markers::FiducialDetector |
This class cannot be used. |
FiducialDetectorPlugin for ARToolkit like markers using binary image patches as marker IDs.
This is just a plugin class that is used by the FiducialDetector. Please refer the icl::markers::FiducialDetector class documentation for more details.
only the FiducialDetector can instantiate this class
virtual void icl::markers::FiducialDetectorPluginART::addOrRemoveMarkers | ( | bool | add, |
const utils::Any & | which, | ||
const utils::ParamList & | params | ||
) | [virtual] |
loads markers ID's
add | |
which | this instance of Type icl::Any can be any image filename or filename pattern Please note: internally, all loaded patterns are stored by a unique ID. The unique ID is computed from the image filename by removing the file postfix (e.g. .png) and the files folder prefix (e.g. ./patterns/) In other words, only the image files base-name is used as key. Therefore, the pattern files have to be named differently, even if they have different post-fixes and/or different folders. All image files are loaded/removed. The images are internally converted to grayscale. Every time the 'match algorithm' property is changed, all loaed patters are processed in order to optimize matching speed. If markers are removed, again, the filepattern is used to 'glob' all markers that have to be removed. The special Token '*' is used to remove all loaded markers. The parameter list params must contain the real markers 'size' in mm |
params |
Implements icl::markers::FiducialDetectorPluginForQuads.
virtual FiducialImpl* icl::markers::FiducialDetectorPluginART::classifyPatch | ( | const core::Img8u & | image, |
int * | rot, | ||
bool | returnRejectedQuads, | ||
cv::ImageRegion | r | ||
) | [virtual] |
Identifies the given image patch using bch decoding.
Implements icl::markers::FiducialDetectorPluginForQuads.
virtual core::Img8u icl::markers::FiducialDetectorPluginART::createMarker | ( | const utils::Any & | whichOne, |
const utils::Size & | size, | ||
const utils::ParamList & | params | ||
) | [virtual] |
creates marker image from given parameters (see FiducialDetector for more details)
Reimplemented from icl::markers::FiducialDetectorPlugin.
std::string icl::markers::FiducialDetectorPluginART::getName | ( | const FiducialImpl * | impl | ) | [virtual] |
this method is reimplemented here; it returns the impl's file-basename
Reimplemented from icl::markers::FiducialDetectorPlugin.
virtual void icl::markers::FiducialDetectorPluginART::getQuadRectificationParameters | ( | utils::Size & | markerSizeWithBorder, |
utils::Size & | markerSizeWithoutBorder | ||
) | [virtual] |
describes the special marker image rectificatio parameters
Implements icl::markers::FiducialDetectorPluginForQuads.
friend class icl::markers::FiducialDetector [friend] |
This class cannot be used.
Reimplemented from icl::markers::FiducialDetectorPluginForQuads.
Data* icl::markers::FiducialDetectorPluginART::data [private] |
Internal data pointer.
Reimplemented from icl::markers::FiducialDetectorPluginForQuads.