Class FractalMarkerSet
Defined in File fractalmarkerset.h
Class Documentation
-
class FractalMarkerSet
Public Types
Public Functions
-
void create(std::vector<std::pair<int, int>> regionsConfig, float pixSize)
create
create set of markers
- Parameters:
regionsConfig – {N(f1),K(f1)}{N(f2):K(f2)}…{N(fn):K(fn)}
pixSize –
-
cv::Mat configureMat(int nVal, int kVal, int maxIter = 10000)
configureMat
configure bits of inner marker
- Parameters:
nVal – N region
kVal – K region
maxIter – Number of iteration
- Returns:
Mat configurated marker
-
int dstMarker(const cv::Mat m)
-
int dstMarkerToMarker(const cv::Mat m1, const cv::Mat m2)
-
int dstMarkerToFractalDict(cv::Mat m)
-
void saveToFile(cv::FileStorage &fs)
-
inline bool isExpressedInMeters() const
Indicates if the corners are expressed in meters
-
inline bool isExpressedInPixels() const
Indicates if the corners are expressed in meters
-
inline bool isNormalize() const
Indicates if the corners are normalized. -1..1 external marker
-
FractalMarkerSet normalize()
-
FractalMarkerSet convertToMeters(float fractalSize_meters)
-
inline float getFractalSize() const
-
inline int nBits() const
-
bool isFractalMarker(cv::Mat &m, int nbits, int &id)
-
std::map<int, std::vector<cv::Point3f>> getInnerCorners()
-
cv::Mat getFractalMarkerImage(int pixSize, bool border = false)
Public Members
-
std::map<int, FractalMarker> fractalMarkerCollection
-
std::map<int, std::vector<int>> nbits_fractalMarkerIDs
-
int mInfoType
Public Static Functions
-
static void _toStream(FractalMarkerSet &configuration, std::ostream &str)
-
static void _fromStream(FractalMarkerSet &configuration, std::istream &str)
-
static bool isPredefinedConfigurationString(std::string str)
-
static std::string getTypeString(FractalMarkerSet::CONF_TYPES t)
-
static CONF_TYPES getTypeFromString(std::string str)
-
static FractalMarkerSet load(std::string info)
-
static FractalMarkerSet loadPredefined(std::string info)
-
static FractalMarkerSet loadPredefined(CONF_TYPES info)
-
static FractalMarkerSet readFromFile(std::string path)
-
static std::vector<std::string> getConfigurations()
-
void create(std::vector<std::pair<int, int>> regionsConfig, float pixSize)