/usr/include/x86_64-linux-gnu/visp3/me/vpMeTracker.h is in libvisp-me-dev 3.0.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | /****************************************************************************
*
* This file is part of the ViSP software.
* Copyright (C) 2005 - 2015 by Inria. All rights reserved.
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* ("GPL") version 2 as published by the Free Software Foundation.
* See the file LICENSE.txt at the root directory of this source
* distribution for additional information about the GNU GPL.
*
* For using ViSP with software that can not be combined with the GNU
* GPL, please contact Inria about acquiring a ViSP Professional
* Edition License.
*
* See http://visp.inria.fr for more information.
*
* This software was developed at:
* Inria Rennes - Bretagne Atlantique
* Campus Universitaire de Beaulieu
* 35042 Rennes Cedex
* France
*
* If you have questions regarding the use of this file, please contact
* Inria at visp@inria.fr
*
* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
* WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* Description:
* Moving edges.
*
* Authors:
* Andrew Comport
* Aurelien Yol
*
*****************************************************************************/
/*!
\file vpMeTracker.h
\brief Contains abstract elements for a Distance to Feature type feature.
*/
#ifndef vpMeTracker_HH
#define vpMeTracker_HH
#include <visp3/core/vpColVector.h>
#include <visp3/me/vpMeSite.h>
#include <visp3/me/vpMe.h>
#include <visp3/core/vpTracker.h>
#include <math.h>
#include <iostream>
#include <list>
/*!
\class vpMeTracker
\ingroup module_me
\brief Contains abstract elements for a Distance to Feature type feature.
2D state = list of points, 3D state = feature
*/
class VISP_EXPORT vpMeTracker : public vpTracker
{
#ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
public:
#else
protected:
#endif
//! Tracking dependent variables/functions
//! List of tracked moving edges points.
std::list<vpMeSite> list ;
//! Moving edges initialisation parameters
vpMe *me ;
unsigned int init_range;
int nGoodElement;
protected:
vpMeSite::vpMeSiteDisplayType selectDisplay ;
public:
// Constructor/Destructor
vpMeTracker() ;
vpMeTracker(const vpMeTracker& meTracker) ;
virtual ~vpMeTracker() ;
void init() ;
void initTracking(const vpImage<unsigned char>& I);
//! Track sampled pixels.
void track(const vpImage<unsigned char>& I);
unsigned int numberOfSignal() ;
unsigned int totalNumberOfSignal() ;
virtual void display(const vpImage<unsigned char> &I, vpColor col)=0;
virtual void display(const vpImage<unsigned char>& I);
void display(const vpImage<unsigned char>& I, vpColVector &w, unsigned int &index_w);
void setDisplay(vpMeSite::vpMeSiteDisplayType select) {
selectDisplay = select ;
}
vpMeTracker& operator =(vpMeTracker& f);
int outOfImage( int i , int j , int half , int rows , int cols) ;
int outOfImage( vpImagePoint iP , int half , int rows , int cols) ;
void reset();
//!Sample pixels at a given interval
virtual void sample(const vpImage<unsigned char> &image)=0;
/*!
Set the initial range.
\param r : initial range.
*/
void setInitRange(const unsigned int &r) { init_range = r; }
/*!
Return the initial range.
\return Value of init_range.
*/
inline unsigned int getInitRange() { return init_range; }
/*!
Set the moving edges initialisation parameters
\param p_me : Moving Edges.
*/
void setMe(vpMe *p_me) { this->me = p_me ; }
/*!
Return the moving edges initialisation parameters
\return Moving Edges.
*/
inline vpMe* getMe(){ return me; }
/*!
Set the list of moving edges
\param l : list of Moving Edges.
*/
void setMeList(const std::list<vpMeSite> &l) { list = l; }
/*!
Return the list of moving edges
\return List of Moving Edges.
*/
inline std::list<vpMeSite>& getMeList() { return list; }
inline std::list<vpMeSite> getMeList() const { return list; }
/*!
Return the number of points that has not been suppressed.
\return Number of good points.
*/
inline int getNbPoints() const { return nGoodElement; }
#ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
public:
int query_range;
bool display_point;// if 1 (TRUE) displays the line that is being tracked
#endif
};
#endif
|