ScArucoDictionary.h
Go to the documentation of this file.
1 
10 #ifndef SC_ARUCO_DICTIONARY_H
11 #define SC_ARUCO_DICTIONARY_H
12 
13 #include <Scandit/ScConfig.h>
14 
15 SC_EXTERN_C_BEGIN
16 
20 typedef enum {
21  SC_ARUCO_DICTIONARY_PRESET_4X4_250 = 2,
22  SC_ARUCO_DICTIONARY_PRESET_5X5_50 = 4,
23  SC_ARUCO_DICTIONARY_PRESET_5X5_100 = 5,
24  SC_ARUCO_DICTIONARY_PRESET_5X5_250 = 6,
25  SC_ARUCO_DICTIONARY_PRESET_5X5_1000 = 7,
26  SC_ARUCO_DICTIONARY_PRESET_5X5_1023 = 16, // From original ArUco paper
27  SC_ARUCO_DICTIONARY_PRESET_6X6_250 = 10,
29 
37 typedef struct ScOpaqueArucoDictionary ScArucoDictionary;
40 
50 SC_EXPORT
52 
61 SC_EXPORT
63 
74 SC_EXPORT
76 
86 SC_EXPORT
87 ScArucoDictionary *sc_aruco_dictionary_new(uint32_t marker_size);
88 
105 SC_EXPORT
107  uint8_t *marker_bits,
108  uint32_t marker_size);
109 
110 SC_EXTERN_C_END
111 
112 #endif
ArUco Symbology Dictionary.
ScArucoDictionary * sc_aruco_dictionary_new(uint32_t marker_size)
creates a new aruco dictionary with the specified marker size
void sc_aruco_dictionary_release(ScArucoDictionary *dictionary)
Decrease reference count of an Aruco dictionary by one.
ScArucoDictionaryPreset
Predefined dictionaries compatible with OpenCV.
Definition: ScArucoDictionary.h:20
void sc_aruco_dictionary_retain(ScArucoDictionary *dictionary)
Increase reference count of an Aruco dictionary by one.
ScBool sc_aruco_dictionary_add_marker(ScArucoDictionary *dictionary, uint8_t *marker_bits, uint32_t marker_size)
adds an aruco marker to a dictionary. Serialization of dictionaries created or modified using this fu...
Common definitions used throughout the ScanditSDK API.
ScArucoDictionary * sc_aruco_dictionary_from_preset(ScArucoDictionaryPreset preset)
creates a constant prefilled dictionary
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition: ScConfig.h:148