#include <HomgInterestPointSet.h>
Public Member Functions | |
HomgInterestPointSet () | |
Construct an empty corner set. | |
HomgInterestPointSet (const HomgMetric &) | |
Construct an empty corner set which will use the given conditioner to convert from image to homogeneous coordinates. | |
HomgInterestPointSet (const char *filename, const HomgMetric &=0) | |
Load corners from ASCII disk file. | |
HomgInterestPointSet (const vcl_vector< HomgPoint2D > &, ImageMetric *conditioner) | |
Construct corner set from container of HomgPoint2D, and set the conditioner. | |
HomgInterestPointSet (vcl_vector< vgl_homg_point_2d< double > > const &, ImageMetric *conditioner) | |
Construct corner set from container of vgl_homg_point_2d<double>, and set the conditioner. | |
HomgInterestPointSet (const HomgInterestPointSet &that) | |
~HomgInterestPointSet () | |
Destructor. | |
HomgInterestPointSet & | operator= (const HomgInterestPointSet &that) |
unsigned | size () const |
Return the number of corners in the set. | |
const HomgPoint2D & | operator[] (int i) const |
Return i'th interest pt. | |
HomgInterestPoint & | get (int i) |
HomgInterestPoint const & | get (int i) const |
Return a reference to the i'th corner structure. | |
vnl_double_2 const & | get_2d (int i) const |
Return the i'th corner as a 2D point. | |
vnl_vector_fixed< int, 2 > const & | get_int (int i) const |
Return the i'th corner as a 2D point. | |
HomgPoint2D const & | get_homg (int i) const |
Return the i'th corner as a HomgPoint2D. | |
vgl_homg_point_2d< double > | homg_point (int i) const |
Return the i'th corner as a vgl_homg_point_2d<double>. | |
float | get_mean_intensity (int i) const |
Return the i'th mean intensity. | |
vcl_vector< HomgPoint2D > const & | get_homg_points () const |
vcl_vector< vgl_homg_point_2d < double > > | homg_points () const |
const ImageMetric * | get_conditioner () const |
void | set_conditioner (const HomgMetric &c) |
Set conditioner. | |
bool | add (double x, double y) |
Add corner (x, y), using ImageMetric to convert to homogeneous. | |
bool | add (const HomgPoint2D &) |
bool | add (vgl_homg_point_2d< double > const &) |
Add a corner to the end of the list. | |
bool | add (const HomgInterestPoint &) |
bool | add_preconditioned (const HomgPoint2D &) |
bool | add_preconditioned (vgl_homg_point_2d< double > const &) |
Add a corner which has already been preconditioned by this cornerset's imagemetric. | |
void | set_image (vil1_image const &image) |
void | clear () |
Clear corner set. | |
bool | read (const char *filename, const HomgMetric &c=0) |
Load a corner set from a simple ASCII file of x y pairs. | |
bool | read (const char *filename, vil1_image const &src, const HomgMetric &c=0) |
Load a corner set from a simple ASCII file of x y pairs, and use vil1_image src to compute mean_intensities. | |
bool | write (const char *filename) const |
Save a corner set as a simple ASCII file of x y pairs. | |
bool | read (vcl_istream &f, const ImageMetric *c) |
bool | write (vcl_ostream &f, const ImageMetric *c) const |
Protected Member Functions | |
void | init_conditioner (const HomgMetric &c=0) |
void | delete_conditioner () |
Private Attributes | |
HomgInterestPointSetData * | data_ |
HomgMetric | conditioner_ |
Definition at line 39 of file HomgInterestPointSet.h.
HomgInterestPointSet::HomgInterestPointSet | ( | ) |
Construct an empty corner set.
Definition at line 31 of file HomgInterestPointSet.cxx.
HomgInterestPointSet::HomgInterestPointSet | ( | const HomgMetric & | c | ) |
Construct an empty corner set which will use the given conditioner to convert from image to homogeneous coordinates.
Definition at line 39 of file HomgInterestPointSet.cxx.
HomgInterestPointSet::HomgInterestPointSet | ( | const char * | filename, |
const HomgMetric & | c = 0 |
||
) |
Load corners from ASCII disk file.
Definition at line 47 of file HomgInterestPointSet.cxx.
HomgInterestPointSet::HomgInterestPointSet | ( | const vcl_vector< HomgPoint2D > & | points, |
ImageMetric * | conditioner | ||
) |
Construct corner set from container of HomgPoint2D, and set the conditioner.
The HomgPoint2Ds are assumed to already be in conditioned coordinates.
Definition at line 72 of file HomgInterestPointSet.cxx.
HomgInterestPointSet::HomgInterestPointSet | ( | vcl_vector< vgl_homg_point_2d< double > > const & | points, |
ImageMetric * | conditioner | ||
) |
Construct corner set from container of vgl_homg_point_2d<double>, and set the conditioner.
The vgl_homg_point_2ds are assumed to already be in conditioned coordinates.
Definition at line 56 of file HomgInterestPointSet.cxx.
HomgInterestPointSet::HomgInterestPointSet | ( | const HomgInterestPointSet & | that | ) |
Definition at line 87 of file HomgInterestPointSet.cxx.
HomgInterestPointSet::~HomgInterestPointSet | ( | ) |
Destructor.
Definition at line 143 of file HomgInterestPointSet.cxx.
bool HomgInterestPointSet::add | ( | double | x, |
double | y | ||
) |
Add corner (x, y), using ImageMetric to convert to homogeneous.
Definition at line 167 of file HomgInterestPointSet.cxx.
bool HomgInterestPointSet::add | ( | const HomgPoint2D & | c | ) |
Definition at line 155 of file HomgInterestPointSet.cxx.
bool HomgInterestPointSet::add | ( | vgl_homg_point_2d< double > const & | c | ) |
Add a corner to the end of the list.
Definition at line 151 of file HomgInterestPointSet.cxx.
bool HomgInterestPointSet::add | ( | const HomgInterestPoint & | c | ) |
Definition at line 161 of file HomgInterestPointSet.cxx.
bool HomgInterestPointSet::add_preconditioned | ( | const HomgPoint2D & | h | ) |
Definition at line 180 of file HomgInterestPointSet.cxx.
bool HomgInterestPointSet::add_preconditioned | ( | vgl_homg_point_2d< double > const & | h | ) |
Add a corner which has already been preconditioned by this cornerset's imagemetric.
Definition at line 174 of file HomgInterestPointSet.cxx.
void HomgInterestPointSet::clear | ( | ) |
Clear corner set.
Definition at line 135 of file HomgInterestPointSet.cxx.
void HomgInterestPointSet::delete_conditioner | ( | ) | [protected] |
Definition at line 130 of file HomgInterestPointSet.cxx.
HomgInterestPoint & HomgInterestPointSet::get | ( | int | i | ) |
Definition at line 201 of file HomgInterestPointSet.cxx.
const HomgInterestPoint & HomgInterestPointSet::get | ( | int | i | ) | const |
Return a reference to the i'th corner structure.
Definition at line 196 of file HomgInterestPointSet.cxx.
vnl_double_2 const & HomgInterestPointSet::get_2d | ( | int | i | ) | const |
Return the i'th corner as a 2D point.
Definition at line 207 of file HomgInterestPointSet.cxx.
const ImageMetric* HomgInterestPointSet::get_conditioner | ( | ) | const [inline] |
Definition at line 78 of file HomgInterestPointSet.h.
const HomgPoint2D & HomgInterestPointSet::get_homg | ( | int | i | ) | const |
Return the i'th corner as a HomgPoint2D.
Definition at line 227 of file HomgInterestPointSet.cxx.
vcl_vector<HomgPoint2D> const& HomgInterestPointSet::get_homg_points | ( | ) | const |
vnl_vector_fixed< int, 2 > const & HomgInterestPointSet::get_int | ( | int | i | ) | const |
Return the i'th corner as a 2D point.
Definition at line 213 of file HomgInterestPointSet.cxx.
float HomgInterestPointSet::get_mean_intensity | ( | int | i | ) | const |
Return the i'th mean intensity.
Definition at line 234 of file HomgInterestPointSet.cxx.
vgl_homg_point_2d< double > HomgInterestPointSet::homg_point | ( | int | i | ) | const |
Return the i'th corner as a vgl_homg_point_2d<double>.
Definition at line 219 of file HomgInterestPointSet.cxx.
vcl_vector<vgl_homg_point_2d<double> > HomgInterestPointSet::homg_points | ( | ) | const |
void HomgInterestPointSet::init_conditioner | ( | const HomgMetric & | c = 0 | ) | [protected] |
Definition at line 125 of file HomgInterestPointSet.cxx.
HomgInterestPointSet & HomgInterestPointSet::operator= | ( | const HomgInterestPointSet & | that | ) |
Definition at line 103 of file HomgInterestPointSet.cxx.
const HomgPoint2D& HomgInterestPointSet::operator[] | ( | int | i | ) | const [inline] |
Return i'th interest pt.
Definition at line 65 of file HomgInterestPointSet.h.
bool HomgInterestPointSet::read | ( | const char * | filename, |
const HomgMetric & | c = 0 |
||
) |
Load a corner set from a simple ASCII file of x y pairs.
If ImageMetric is supplied, it is used to convert image coordinates to homogeneous form.
Definition at line 251 of file HomgInterestPointSet.cxx.
bool HomgInterestPointSet::read | ( | const char * | filename, |
vil1_image const & | src, | ||
const HomgMetric & | c = 0 |
||
) |
Load a corner set from a simple ASCII file of x y pairs, and use vil1_image src to compute mean_intensities.
If ImageMetric is supplied, it is used to convert image coordinates to homogeneous form. NOT YET IMPLEMENTED
Definition at line 282 of file HomgInterestPointSet.cxx.
bool HomgInterestPointSet::read | ( | vcl_istream & | f, |
const ImageMetric * | c | ||
) |
Definition at line 262 of file HomgInterestPointSet.cxx.
void HomgInterestPointSet::set_conditioner | ( | const HomgMetric & | c | ) |
Set conditioner.
Definition at line 119 of file HomgInterestPointSet.cxx.
void HomgInterestPointSet::set_image | ( | vil1_image const & | image | ) |
unsigned HomgInterestPointSet::size | ( | ) | const |
Return the number of corners in the set.
Definition at line 188 of file HomgInterestPointSet.cxx.
bool HomgInterestPointSet::write | ( | const char * | filename | ) | const |
Save a corner set as a simple ASCII file of x y pairs.
Definition at line 306 of file HomgInterestPointSet.cxx.
bool HomgInterestPointSet::write | ( | vcl_ostream & | f, |
const ImageMetric * | c | ||
) | const |
Definition at line 317 of file HomgInterestPointSet.cxx.
HomgMetric HomgInterestPointSet::conditioner_ [private] |
Definition at line 43 of file HomgInterestPointSet.h.
Definition at line 42 of file HomgInterestPointSet.h.