visual_object Class Reference
[Visual objects retrieval]

Entry for an object database. More...

#include <visual_database.h>

Inheritance diagram for visual_object:

Inheritance graph
[legend]
Collaboration diagram for visual_object:

Collaboration graph
[legend]

List of all members.

Classes

struct  annotation
struct  correspondence

Public Types

enum  { VERIFY_HOMOGRAPHY = 1, VERIFY_FMAT = 2 }
typedef std::multiset
< db_keypoint
db_keypoint_vector
typedef std::vector
< correspondence
correspondence_vector
typedef std::vector< annotationannotations_vector
typedef
annotations_vector::const_iterator 
annotation_iterator

Public Member Functions

 visual_object (visual_database *, sqlite3_int64 id, const char *comment="", int flags=0)
virtual ~visual_object ()
void prepare ()
void find (unsigned id, db_keypoint_vector::iterator &start, db_keypoint_vector::iterator &end)
db_keypointadd_keypoint (pyr_keypoint *p, img_id img)
unsigned add_frame (pyr_frame *frame)
void add (db_keypoint &p)
unsigned get_total () const
float get_correspondences (pyr_frame *frame, correspondence_vector &corresp)
float get_correspondences_std (pyr_frame *frame, correspondence_vector &corresp)
float verify (pyr_frame *frame, correspondence_vector &corresp)
const std::string & get_comment () const
int get_flags () const
unsigned long get_id ()
void add_annotation (float x, float y, int type, const std::string &text)
unsigned get_annotations_count () const
annotation_iterator annotation_begin () const
annotation_iterator annotation_end () const
const annotationget_annotation (unsigned id) const
int nb_points () const

Public Attributes

img_id representative_image
CvMat * M
visual_databasevdb

Protected Attributes

annotations_vector annotations
bool sorted
db_keypoint_vector points
sqlite3_int64 obj_id
std::string comment
int flags

Friends

class visual_database


Detailed Description

Entry for an object database.

Each frame or group of frames representing an object is stored in the database as a histogram of the cluster ids of its keypoints. The histogram itself is in the parent class: id_cluster.

Definition at line 55 of file visual_database.h.


Member Typedef Documentation

typedef annotations_vector::const_iterator visual_object::annotation_iterator

Definition at line 104 of file visual_database.h.

Definition at line 103 of file visual_database.h.

Definition at line 83 of file visual_database.h.

Definition at line 59 of file visual_database.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
VERIFY_HOMOGRAPHY 
VERIFY_FMAT 

Definition at line 90 of file visual_database.h.


Constructor & Destructor Documentation

visual_object::visual_object ( visual_database vdb,
sqlite3_int64  id,
const char *  comment = "",
int  flags = 0 
)

Definition at line 26 of file visual_database.cpp.

References M.

visual_object::~visual_object (  )  [virtual]

Definition at line 32 of file visual_database.cpp.

References M.


Member Function Documentation

void visual_object::add ( db_keypoint p  ) 

Definition at line 36 of file visual_database.cpp.

References pyr_keypoint::cid, and points.

Referenced by visual_database::connect_to_db().

void visual_object::add_annotation ( float  x,
float  y,
int  type,
const std::string &  text 
)

unsigned visual_object::add_frame ( pyr_frame frame  ) 

db_keypoint * visual_object::add_keypoint ( pyr_keypoint p,
img_id  img 
)

annotation_iterator visual_object::annotation_begin (  )  const [inline]

Definition at line 110 of file visual_database.h.

References annotations.

annotation_iterator visual_object::annotation_end (  )  const [inline]

Definition at line 111 of file visual_database.h.

References annotations.

void visual_object::find ( unsigned  id,
db_keypoint_vector::iterator &  start,
db_keypoint_vector::iterator &  end 
)

Definition at line 56 of file visual_database.cpp.

References points, and prepare().

Referenced by get_correspondences(), and get_correspondences_std().

const annotation& visual_object::get_annotation ( unsigned  id  )  const [inline]

Definition at line 112 of file visual_database.h.

References annotations.

unsigned visual_object::get_annotations_count (  )  const [inline]

Definition at line 109 of file visual_database.h.

References annotations.

const std::string& visual_object::get_comment (  )  const [inline]

Definition at line 88 of file visual_database.h.

References comment.

Referenced by VSView::script_exec(), and VSView::timerEvent().

float visual_object::get_correspondences ( pyr_frame frame,
correspondence_vector corresp 
)

Definition at line 536 of file visual_database.cpp.

References flags, get_correspondences_std(), verify(), VERIFY_FMAT, and VERIFY_HOMOGRAPHY.

Referenced by VSView::timerEvent().

float visual_object::get_correspondences_std ( pyr_frame frame,
correspondence_vector corresp 
)

int visual_object::get_flags (  )  const [inline]

Definition at line 91 of file visual_database.h.

References flags.

Referenced by vobj_tracker::incremental_learning(), and vobj_tracker::verify().

unsigned long visual_object::get_id (  )  [inline]

Definition at line 92 of file visual_database.h.

References obj_id.

unsigned visual_object::get_total (  )  const [inline]

Definition at line 74 of file visual_database.h.

References id_cluster::total.

Referenced by VSView::paintGL().

int visual_object::nb_points (  )  const [inline]

Definition at line 125 of file visual_database.h.

References points.

Referenced by vobj_tracker::incremental_learning(), and vobj_tracker::verify().

void visual_object::prepare (  ) 

Definition at line 46 of file visual_database.cpp.

Referenced by visual_database::connect_to_db(), and find().

float visual_object::verify ( pyr_frame frame,
correspondence_vector corresp 
)

Definition at line 618 of file visual_database.cpp.

References flags, M, VERIFY_FMAT, and VERIFY_HOMOGRAPHY.

Referenced by get_correspondences().


Friends And Related Function Documentation

friend class visual_database [friend]

Definition at line 132 of file visual_database.h.


Member Data Documentation

std::string visual_object::comment [protected]

Definition at line 129 of file visual_database.h.

Referenced by get_comment().

int visual_object::flags [protected]

Definition at line 130 of file visual_database.h.

Referenced by get_correspondences(), get_flags(), and verify().

Definition at line 115 of file visual_database.h.

Referenced by vobj_tracker::verify(), verify(), visual_object(), and ~visual_object().

sqlite3_int64 visual_object::obj_id [protected]

Definition at line 120 of file visual_database.h.

Referenced by add(), add_keypoint(), find(), and nb_points().

bool visual_object::sorted [protected]

Definition at line 118 of file visual_database.h.


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

Generated on Tue Mar 30 15:53:26 2010 for Polyora by  doxygen 1.5.9