VAT  3.0
Video Analysis Tool
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ReliabilityPatchTrackingModel Class Reference
Inheritance diagram for ReliabilityPatchTrackingModel:
ReliabilitySingleModelInterface

Classes

class  CentroidBuffer
 
class  ReliabilityPatch
 
class  ReliabilityPatchBuffer
 
class  ReliabilityPatchTracking
 

Public Types

enum  Bound { B_LEFT, B_RIGHT, B_TOP, B_BOTTOM }
 

Public Member Functions

 ReliabilityPatchTrackingModel (int buffer_size)
 
virtual void initInstanceAttributes ()
 
virtual void initDynamicsAttributes ()
 
virtual void copy (SpReliabilitySingleModelInterface)
 
virtual void copy_structure (SpReliabilitySingleModelInterface)
 
virtual void setParameters (QDomNode &i_parameters)
 
virtual void activate (BoundingBox &)
 
virtual void init ()
 
virtual bool updateInstance (BoundingBox &, std::set< SpRMMHypothesis, hypothesesOrderedByBestProbabilityOperator > &)
 
virtual void updateSingleInstance (BoundingBox &)
 
virtual void updateModelDynamics ()
 
virtual void setProbabilityAndReliability ()
 
virtual void setForwardInterface ()
 
virtual bool draw (QPainter &painter)
 
virtual bool draw (QPainter &painter, int r, int g, int b)
 
virtual BoundingBox getEstimator (double &R)
 
bool projectBoundingBox (BoundingBox &bbox)
 
getSegmentation getResegmentPointer (QString segAlternative, int &threshold)
 
void printPatches ()
 
bool getStrongPosition (int ix, int iy, int &ox, int &oy, cv::KeyPoint &op)
 
bool refillStrongPosition (int ix, int iy, cv::KeyPoint &op)
 
void initAttribute (ReliabilityDynamicsAttribute &d, AttributeDupletValue &i)
 
void updateAttribute (const QString &name, ReliabilityDynamicsAttribute &d)
 
double getAttributeEstimate (ReliabilityDynamicsAttribute &d, double time_diff)
 
void updateAttributeDynamics (double data, double RData, double acuity, double estimate, double currentCooling, AttributeTripletValue &att)
 
void updateAttributeDynamicsNoData (double estimate, double acuity, double currentCooling, AttributeTripletValue &att)
 
double projectAttributeValue (ReliabilityDynamicsAttribute &, double &R)
 
void initLeftPatches (BoundingBox &boundingBox)
 
void initRightPatches (BoundingBox &boundingBox)
 
void initBottomPatches (BoundingBox &boundingBox)
 
void initTopPatches (BoundingBox &boundingBox)
 
void refillLeftPatches (BoundingBox &b)
 
void refillRightPatches (BoundingBox &b)
 
void refillBottomPatches (BoundingBox &b)
 
void refillTopPatches (BoundingBox &b)
 
void insertPatch (BoundingBox &bbox, enum Bound bound, int row, int col)
 
void refillPatch (BoundingBox &bbox, enum Bound bound, int row, int col)
 
void setCentroid (BoundingBox &roi)
 
void setInitialCentroid (BoundingBox &roi)
 
void preparePatches ()
 
bool distantToExistingPatches (int x, int y, float response, bool &worst, int &wx, int &wy)
 
bool distantToExistingPatches (int x, int y, double distance)
 
bool distantToExistingPatches (int x, int y)
 
void getFREAKDescriptors ()
 
void refillFREAKDescriptors (Bound bound)
 
void setTrackedPatches (BoundingBox &roi)
 
void computeFreak (std::vector< cv::KeyPoint > &points, cv::Mat &descriptors)
 
void setHistograms (ReliabilityPatch &p)
 
double illuminationReliability (uchar Y)
 
double BhattacharyyaDistance (cv::Mat &h1, cv::Mat &h2)
 
void completePatch (ReliabilityPatch &p)
 
double globalPatchDistance (ReliabilityPatch &p1, ReliabilityPatch &p2)
 
bool adjustBoundingBoxDimensions (BoundingBox &b)
 
double displacementCoherenceReliability (double distance)
 
void saveWeakReliabilityPatches (BoundingBox &b)
 
void deleteWeakPatches ()
 
void addNewPatches (BoundingBox &roi)
 
void setHighlyReliablePatches ()
 
void setWeakPatches ()
 
void removeEquallyConverged ()
 
void setInstancesDisplacement ()
 
void moveProjectedBoxToLowestDisplacementAndHighestCoveragePosition (BoundingBox &p, BoundingBox &roi)
 
double contrastGaussianMean (int x, int y, QImage &cn)
 
double contrastGaussianMeanFG (int x, int y, QImage *cn, QImage *fg)
 
void printTrackedPatches ()
 
void printTrackedPatch (unsigned int id)
 
- Public Member Functions inherited from ReliabilitySingleModelInterface
 ReliabilitySingleModelInterface (int buffer_size)
 
virtual void printInstances ()
 
virtual void printDynamics ()
 
virtual void printGeneral ()
 
virtual void printGeneral (std::ostream &out)
 
virtual bool draw (QImage *image)
 
void updateDynamics ()
 
virtual void setTrajectory2D (double &, double &, double &)
 
void initFromXML (Datapool *i_data, int bsize, QString name)
 
void general_copy (SpReliabilitySingleModelInterface)
 
void copy_general_structure (SpReliabilitySingleModelInterface)
 
void addCurrentClassInfo ()
 
void addCurrentClassInfo (ModelInstanceGeneralPack &gpack)
 
void updateCurrentGeneralInfo ()
 
SpRMMMobileObject generateCurrentMobile (BoundingBox &bbox)
 
SpRMMMobileObject generateNewMobile (BoundingBox &bbox)
 
SpRMMHypothesis generateNewHypothesis ()
 

Public Attributes

std::map< int, std::map< int, ReliabilityPatch > > patches
 
std::deque< ReliabilityPatch * > new_patches
 
std::vector< cv::KeyPoint > new_keypoints
 
std::map< uchar, cv::Mat > new_segmentations
 
std::deque< ReliabilityPatchTrackingtracked_patches
 
std::vector< ReliabilityPatchTracking * > reliable_patches
 
int m_patchSize
 
int m_generationStep
 
int m_topPatchesSize
 
int m_maxDimensionChange
 
int m_histoBins
 
int m_ill_alpha
 
int m_ill_beta
 
int m_ill_gamma
 
double m_minimalPatchReliability
 
int m_refillDistance
 
QString m_auxSegmentation
 
bool showText
 
bool por_aca
 
int patches_initial_count
 
double refPatchesRate
 
unsigned int tracked_patch_id
 
std::vector< int > gdx
 
std::vector< int > gdy
 
CentroidBuffer centroids
 
BoundingBox current_bbox
 
cv::Mat current_map
 
cv::Mat current_fg
 
cv::Mat current_fg_eroded
 
cv::Mat eelement
 
double m_minimalAttributeVelocityReliability
 
double m_minimalAttributeAccelerationReliability
 
double m_minimalWidth
 
double m_minimalHeight
 
int m_pixelAcuity
 
bool m_useReliability
 
bool m_useFeatureMap
 
int * GF
 
double GFactor
 
bool m_showId
 
bool m_blackId
 
bool m_build2DBoundReliabilityImage
 
bool m_activateProjectedBlobCorrection
 
double localMaxBound
 
cv::Ptr< cv::xfeatures2d::FREAK > freak
 
- Public Attributes inherited from ReliabilitySingleModelInterface
QString name
 
QString model_name
 
Datapoolm_data
 
bool active
 
double P
 
double R_forward
 
double R_backward
 
std::set< ObjectType > dclasses
 
std::set< ObjectType > cclasses
 
std::map< ObjectType, double > rclasses
 
RMMMobileObjectm_mobile
 
ModelBuffer instances
 
ModelInstanceGeneralPack integratedInfo
 
ModelInstanceDataPack instanceTemplate
 
ModelDynamicsDataPack prior_dynamics
 
ModelDynamicsDataPack post_dynamics
 
BoundingBox binterface_in
 
BoundingBox binterface_out
 
int dependence
 
std::vector< int > dependants
 
std::set< SpRMMHypothesis, hypothesesOrderedByBestProbabilityOperatorgenerated_hypotheses
 
std::set< SpRMMHypothesis, hypothesesOrderedByBestProbabilityOperatorhypotheses
 

Static Public Attributes

static const double R_MIN = 0.00001
 
static const bool USE_GAUSSIAN = true
 
static const int GAUSSIAN_SIZE = 7
 
static const bool USE_FG = true
 
static const bool USE_SQUARE_DISTANCE = true
 
static const bool USE_MAX = false
 
static const bool USE_MEAN = false
 
static const bool USE_MAX_WEIGHTED = false
 
static const bool USE_MEAN_WEIGHTED = false
 
static const int GF7 []
 
static const int GF5 []
 
static const int GF3 []
 
static getSegmentation m_seg = NULL
 
static bool availableSeg = false
 
static int m_referenceThreshold = 0
 
- Static Public Attributes inherited from ReliabilitySingleModelInterface
static ReliabilityMultiModelTemplatem_template = NULL
 
static RMMTrackerm_tracker = NULL
 

Additional Inherited Members

- Static Public Member Functions inherited from ReliabilitySingleModelInterface
static void addCurrentClassInfo (ModelInstanceGeneralPack &gpack1, ModelInstanceGeneralPack &gpack2)
 
static double normalisedSigmaCoherenceReliability (double sigma, double acuity)
 normalisedSigmaCoherenceReliability More...
 

Member Data Documentation

const int ReliabilityPatchTrackingModel::GF3
static
Initial value:
= {
1, 2, 1,
2, 4, 2,
1, 2, 1 }
const int ReliabilityPatchTrackingModel::GF5
static
Initial value:
= {
1, 4, 6, 4, 1,
4, 16, 24, 16, 4,
6, 24, 36, 24, 6,
4, 16, 24, 16, 4,
1, 4, 6, 4, 1 }
const int ReliabilityPatchTrackingModel::GF7
static
Initial value:
= {
0, 0, 1, 2, 1, 0, 0,
0, 3, 13, 22, 13, 3, 0,
1, 13, 59, 97, 59, 13, 1,
2, 22, 97, 159, 97, 22, 2,
1, 13, 59, 97, 59, 13, 1,
0, 3, 13, 22, 13, 3, 0,
0, 0, 1, 2, 1, 0, 0 }

The documentation for this class was generated from the following files: