| ARX 1.0 The next-generation open source augmented reality toolkit.

Loading...
Searching...
No Matches
kpmPrivate.h
Go to the documentation of this file.
1/*
2 * kpmPrivate.h
3 * artoolkitX
4 *
5 * This file is part of artoolkitX.
6 *
7 * artoolkitX is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * artoolkitX is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with artoolkitX. If not, see <http://www.gnu.org/licenses/>.
19 *
20 * As a special exception, the copyright holders of this library give you
21 * permission to link this library with independent modules to produce an
22 * executable, regardless of the license terms of these independent modules, and to
23 * copy and distribute the resulting executable under terms of your choice,
24 * provided that you also meet, for each linked independent module, the terms and
25 * conditions of the license of that module. An independent module is a module
26 * which is neither derived from nor based on this library. If you modify this
27 * library, you may extend this exception to your version of the library, but you
28 * are not obligated to do so. If you do not wish to do so, delete this exception
29 * statement from your version.
30 *
31 * Copyright 2015 Daqri, LLC. All rights reserved.
32 * Author(s): Philip Lamb
33 *
34 */
35
36#ifndef __kpmPrivate_h__
37#define __kpmPrivate_h__
38
39#if BINARY_FEATURE
40#include <facade/visual_database_facade.h>
41#else
42#include <ARX/KPM/surfSub.h>
43#endif
44#define DB_IMAGE_MAX 1024
45#if !BINARY_FEATURE
46 typedef struct {
47 SurfSubSkipRegion *region;
48 int regionNum;
49 int regionMax;
50} KpmSkipRegionSet;
51
52 typedef struct {
53 void *ann;
54 int *annCoordIndex;
55 int pageID;
56 int imageID;
57} KpmAnnInfo;
58#endif
59
60 struct _KpmHandle {
61#if !BINARY_FEATURE
62 SurfSubHandleT *surfHandle;
63 void *ann2;
64#else
65 vision::VisualDatabaseFacade *freakMatcher;
66#endif
67
68 ARParamLT *cparamLT;
69 int poseMode;
70 int xsize, ysize;
71 KPM_PROC_MODE procMode;
72 int detectedMaxFeature;
73#if !BINARY_FEATURE
74 int surfThreadNum;
75#endif
76
77 KpmRefDataSet refDataSet;
78 KpmInputDataSet inDataSet;
79#if !BINARY_FEATURE
80 KpmMatchResult preRANSAC;
81 KpmMatchResult aftRANSAC;
82#endif
83
84#if !BINARY_FEATURE
85 KpmSkipRegionSet skipRegion;
86#endif
87
88 KpmResult *result;
89 int resultNum;
90 int pageIDs[DB_IMAGE_MAX];
91};
92
93#endif // !__kpmPrivate_h__
KPM_PROC_MODE
KPM_PROC_MODE
Definition: kpm.h:76
DB_IMAGE_MAX
#define DB_IMAGE_MAX
Definition: kpmPrivate.h:44
_KpmHandle
Definition: kpmPrivate.h:60
_KpmHandle::surfHandle
SurfSubHandleT * surfHandle
Definition: kpmPrivate.h:62
_KpmHandle::ysize
int ysize
Definition: kpmPrivate.h:70
_KpmHandle::result
KpmResult * result
Definition: kpmPrivate.h:88
_KpmHandle::procMode
KPM_PROC_MODE procMode
Definition: kpmPrivate.h:71
_KpmHandle::cparamLT
ARParamLT * cparamLT
Definition: kpmPrivate.h:68
_KpmHandle::ann2
void * ann2
Definition: kpmPrivate.h:63
_KpmHandle::pageIDs
int pageIDs[DB_IMAGE_MAX]
Definition: kpmPrivate.h:90
_KpmHandle::skipRegion
KpmSkipRegionSet skipRegion
Definition: kpmPrivate.h:85
_KpmHandle::surfThreadNum
int surfThreadNum
Definition: kpmPrivate.h:74
_KpmHandle::refDataSet
KpmRefDataSet refDataSet
Definition: kpmPrivate.h:77
_KpmHandle::preRANSAC
KpmMatchResult preRANSAC
Definition: kpmPrivate.h:80
_KpmHandle::xsize
int xsize
Definition: kpmPrivate.h:70
_KpmHandle::aftRANSAC
KpmMatchResult aftRANSAC
Definition: kpmPrivate.h:81
_KpmHandle::detectedMaxFeature
int detectedMaxFeature
Definition: kpmPrivate.h:72
_KpmHandle::poseMode
int poseMode
Definition: kpmPrivate.h:69
_KpmHandle::inDataSet
KpmInputDataSet inDataSet
Definition: kpmPrivate.h:78
_KpmHandle::resultNum
int resultNum
Definition: kpmPrivate.h:89
ARParamLT
Structure holding camera parameters, in lookup table form.
Definition: param.h:151
KpmAnnInfo
Definition: kpmPrivate.h:52
KpmAnnInfo::annCoordIndex
int * annCoordIndex
Definition: kpmPrivate.h:54
KpmAnnInfo::ann
void * ann
Definition: kpmPrivate.h:53
KpmAnnInfo::imageID
int imageID
Definition: kpmPrivate.h:56
KpmAnnInfo::pageID
int pageID
Definition: kpmPrivate.h:55
KpmInputDataSet
Definition: kpm.h:148
KpmRefDataSet
Definition: kpm.h:131
KpmResult
Definition: kpm.h:165
KpmSkipRegionSet
Definition: kpmPrivate.h:46
KpmSkipRegionSet::regionNum
int regionNum
Definition: kpmPrivate.h:48
KpmSkipRegionSet::regionMax
int regionMax
Definition: kpmPrivate.h:49
KpmSkipRegionSet::region
SurfSubSkipRegion * region
Definition: kpmPrivate.h:47