Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends
sdet_region Class Reference

#include <sdet_region.h>

Inheritance diagram for sdet_region:
Inheritance graph
[legend]

List of all members.

Classes

struct  compare

Public Types

enum  vsol_spatial_object_2d_type
enum  vsol_region_2d_type

Public Member Functions

 sdet_region ()
 sdet_region (int npts, const float *xp, const float *yp, const unsigned short *pix)
 sdet_region (vdgl_digital_region const &reg)
 ~sdet_region ()
void set_label (const unsigned int label)
 accessors.
unsigned int label () const
void set_boundary (vsol_polygon_2d_sptr const &boundary)
vsol_polygon_2d_sptr boundary ()
vdgl_digital_regioncast_to_digital_region ()
bool compute_boundary ()
 utilities.
void ResetPixelData ()
void IncrementMeans (float x, float y, unsigned short pix)
void InitPixelArrays ()
void InsertInPixelArrays (float x, float y, unsigned short pix)
float const * Xj () const
float const * Yj () const
unsigned short const * Ij () const
unsigned int Npix () const
void set_pixel_size (float pixel_size)
float get_pixel_size () const
float get_min () const
float get_max () const
void reset () const
bool next () const
float X () const
float Y () const
unsigned short I () const
void set_X (float x)
void set_Y (float y)
void set_I (unsigned short I)
float Xo () const
float Yo () const
float Io () const
float Io_sd () const
float ComputeIntensityStdev ()
double X2 () const
double Y2 () const
double XY () const
double I2 () const
double XI () const
double YI () const
float Diameter () const
float AspectRatio () const
virtual double area () const
virtual vsol_point_2d_sptr centroid () const
bool transform (vnl_float_3x3 const &t)
vcl_vector< unsigned int > histogram (int nbins)
vcl_vector< unsigned int > residual_histogram (int nbins, float *min=0, float *max=0)
virtual bool is_convex () const
void PrincipalOrientation (vnl_float_2 &major_axis)
double Ix () const
double Iy () const
double Var () const
float Ir () const
void DoPlaneFit () const
void PrintFit () const
virtual vsol_spatial_object_2dclone () const
vcl_string is_a () const
vsol_spatial_object_2d_type spatial_type (void) const
virtual vsol_region_2dcast_to_region (void)
virtual vsol_region_2d const * cast_to_region (void) const
virtual vsol_polygon_2dcast_to_polygon (void)
virtual vsol_polygon_2d const * cast_to_polygon (void) const
virtual vsol_poly_set_2dcast_to_poly_set (void)
virtual vsol_poly_set_2d const * cast_to_poly_set (void) const
virtual bool is_class (const vcl_string &cls) const
const char * get_name () const
void un_protect ()
short version () const
virtual void b_write (vsl_b_ostream &os) const
virtual void b_read (vsl_b_istream &is)
virtual void print (vcl_ostream &strm=vcl_cout) const
virtual void describe (vcl_ostream &=vcl_cout, int=0) const
virtual bool operator== (vsol_spatial_object_2d const &obj) const
bool operator!= (vsol_spatial_object_2d const &obj)
vsol_box_2d_sptr get_bounding_box () const
double get_min_x () const
double get_max_x () const
double get_min_y () const
double get_max_y () const
virtual vsol_spatial_object_2dcast_to_spatial_object ()
virtual vsol_spatial_object_2d
const * 
cast_to_spatial_object () const
virtual vtol_topology_objectcast_to_topology_object ()
virtual vtol_topology_object
const * 
cast_to_topology_object () const
virtual vsol_spatial_object_2dcast_to_vsol_spatial_object ()
virtual vsol_spatial_object_2d
const * 
cast_to_vsol_spatial_object () const
virtual vsol_point_2dcast_to_point ()
virtual vsol_point_2d const * cast_to_point () const
virtual vsol_curve_2dcast_to_curve ()
virtual vsol_curve_2d const * cast_to_curve () const
virtual vsol_group_2dcast_to_group ()
virtual vsol_group_2d const * cast_to_group () const
int get_id () const
void set_id (int i)
void set_user_flag (unsigned int flag)
bool get_user_flag (unsigned int flag)
void unset_user_flag (unsigned int flag)
void set_tagged_union_flag ()
bool get_tagged_union_flag ()
void unset_tagged_union_flag ()
int get_tag_id ()
void set_tag_id (int id)
void touch ()
unsigned long get_time_stamp () const
bool older (vul_timestamp const &t) const
bool older (vul_timestamp const *t) const
void ref ()
void unref ()
int get_references () const
bool is_referenced () const

Public Attributes

 SPATIAL_NO_TYPE
 TOPOLOGYOBJECT
 POINT
 CURVE
 REGION
 SPATIALGROUP
 VOLUME
 NUM_SPATIALOBJECT_TYPES
 REGION_NO_TYPE
 POLYGON
 POLYGON_SET
 NUM_REGION_TYPES

Static Public Attributes

static const char * SpatialTypes []
static const float eps

Protected Member Functions

void ComputeScatterMatrix () const
void IncrByXYI (double x, double y, int intens) const
double ComputeSampleResidual () const
virtual vsol_region_2d_type region_type (void) const
void not_applicable (vcl_string const &message) const
void empty_bounding_box () const
void set_bounding_box (vsol_box_2d_sptr const &box) const
void set_bounding_box (double x, double y) const
void add_to_bounding_box (double x, double y) const
void add_to_bounding_box (vsol_box_2d_sptr const &box) const
void grow_minmax_bounds (vsol_box_2d_sptr const &b) const
virtual void compute_bounding_box () const
void check_update_bounding_box () const

Protected Attributes

unsigned int region_label_
bool boundary_valid_
vsol_polygon_2d_sptr boundary_
unsigned int npts_
float pixel_size_
float * xp_
float * yp_
unsigned short * pix_
float max_
float min_
float xo_
float yo_
float io_
float io_stdev_
int pix_index_
bool fit_valid_
bool scatter_matrix_valid_
double Ix_
double Iy_
double X2_
double Y2_
double I2_
double XY_
double XI_
double YI_
double error_
double sigma_sq_
vnl_double_3x3 Si_
unsigned int tag_
int id_
unsigned long timestamp_

Static Protected Attributes

static int tagcount_

Friends

friend vcl_ostream & operator<< (vcl_ostream &, vsol_spatial_object_2d const &)
friend vcl_ostream & operator<< (vcl_ostream &, vsol_spatial_object_2d const *)

Detailed Description

Definition at line 20 of file sdet_region.h.


Constructor & Destructor Documentation

sdet_region::sdet_region ( )

Definition at line 11 of file sdet_region.cxx.

sdet_region::sdet_region ( int  npts,
const float *  xp,
const float *  yp,
const unsigned short *  pix 
)

Definition at line 17 of file sdet_region.cxx.

sdet_region::sdet_region ( vdgl_digital_region const &  reg)

Definition at line 25 of file sdet_region.cxx.

sdet_region::~sdet_region ( ) [inline]

Definition at line 27 of file sdet_region.h.


Member Function Documentation

vsol_polygon_2d_sptr sdet_region::boundary ( )

Definition at line 52 of file sdet_region.cxx.

vdgl_digital_region* sdet_region::cast_to_digital_region ( ) [inline]

Definition at line 35 of file sdet_region.h.

bool sdet_region::compute_boundary ( )

utilities.

Definition at line 32 of file sdet_region.cxx.

unsigned int sdet_region::label ( ) const [inline]

Definition at line 30 of file sdet_region.h.

void sdet_region::set_boundary ( vsol_polygon_2d_sptr const &  boundary) [inline]

Definition at line 32 of file sdet_region.h.

void sdet_region::set_label ( const unsigned int  label) [inline]

accessors.

Definition at line 29 of file sdet_region.h.


Member Data Documentation

Definition at line 53 of file sdet_region.h.

bool sdet_region::boundary_valid_ [protected]

Definition at line 52 of file sdet_region.h.

unsigned int sdet_region::region_label_ [protected]

Definition at line 51 of file sdet_region.h.


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