-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
258 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...itOpticalTracking/include/WebARKitTrackers/WebARKitOpticalTracking/TrackerVisualization.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* TrackerVisualization.h | ||
* artoolkitX | ||
* | ||
* This file is part of artoolkitX. | ||
* | ||
* artoolkitX is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* artoolkitX is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with artoolkitX. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* As a special exception, the copyright holders of this library give you | ||
* permission to link this library with independent modules to produce an | ||
* executable, regardless of the license terms of these independent modules, and to | ||
* copy and distribute the resulting executable under terms of your choice, | ||
* provided that you also meet, for each linked independent module, the terms and | ||
* conditions of the license of that module. An independent module is a module | ||
* which is neither derived from nor based on this library. If you modify this | ||
* library, you may extend this exception to your version of the library, but you | ||
* are not obligated to do so. If you do not wish to do so, delete this exception | ||
* statement from your version. | ||
* | ||
* Copyright 2024 Eden Networks Ltd. | ||
* | ||
* Author(s): Philip Lamb. | ||
* | ||
*/ | ||
|
||
#ifndef TRACKER_VISUALIZATION_H | ||
#define TRACKER_VISUALIZATION_H | ||
|
||
#include <opencv2/core.hpp> | ||
|
||
class TrackerVisualization | ||
{ | ||
public: | ||
int id; | ||
float bounds[4][2]; | ||
std::vector<cv::Point2f> opticalFlowTrackablePoints; | ||
std::vector<cv::Point2f> opticalFlowTrackedPoints; | ||
bool opticalFlowOK; | ||
struct templateMatching { | ||
int templateMatchingCandidateCount; | ||
int failedBoundsTestCount; | ||
int failedROIInFrameTestCount; | ||
int failedGotHomogTestCount; | ||
int failedSearchROIInFrameTestCount; | ||
int failedTemplateBigEnoughTestCount; | ||
int failedTemplateMatchCount; | ||
int failedTemplateMinimumCorrelationCount; | ||
bool templateMatchingOK; | ||
}; | ||
templateMatching templateMatching; | ||
}; | ||
|
||
#endif // TRACKER_VISUALIZATION_H |