Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends
sdet_image_mesh Class Reference

#include <sdet_image_mesh.h>

Inheritance diagram for sdet_image_mesh:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 sdet_image_mesh (sdet_image_mesh_params &imp)
 ~sdet_image_mesh ()
void set_image (vil_image_resource_sptr const &resource)
bool compute_mesh ()
imesh_mesh & get_mesh ()
bool mesh_valid () const
bool SanityCheck ()
 Checks that parameters are within acceptable bounds.
void ref ()
void unref ()
int get_references () const
bool is_referenced () const

Public Attributes

float smooth_
 Gaussian sigma for edge detection.
float thresh_
 Edge detection threshold.
int min_fit_length_
 the shortest curve to fit a line
double rms_distance_
 the max rms distance error for the fit
double step_half_width_
 half the step transition width (in pixels)
vcl_vector< vgl_point_2d
< double > > 
anchor_points_
 additional anchor points to generate 2d mesh

Protected Member Functions

bool step_boundary (vgl_line_segment_2d< double > const &parent, vgl_line_segment_2d< double > &child0, vgl_line_segment_2d< double > &child1)
void set_anchor_points (imesh_mesh &mesh, vil_image_view< float > dt_img)
bool compute_line_segments (vil_image_resource_sptr const &resc, vcl_vector< vgl_line_segment_2d< double > > &segs)
void InitParams (float smooth, float thresh, int min_fit_length, double rms_distance, double step_half_width)

Protected Attributes

bool mesh_valid_
vil_image_resource_sptr resc_
imesh_mesh mesh_

Friends

vcl_ostream & operator<< (vcl_ostream &os, const sdet_image_mesh_params &imp)

Detailed Description

Definition at line 28 of file sdet_image_mesh.h.


Constructor & Destructor Documentation

sdet_image_mesh::sdet_image_mesh ( sdet_image_mesh_params imp)

Definition at line 66 of file sdet_image_mesh.cxx.

sdet_image_mesh::~sdet_image_mesh ( )

Definition at line 72 of file sdet_image_mesh.cxx.


Member Function Documentation

bool sdet_image_mesh::compute_line_segments ( vil_image_resource_sptr const &  resc,
vcl_vector< vgl_line_segment_2d< double > > &  segs 
) [protected]

Definition at line 76 of file sdet_image_mesh.cxx.

bool sdet_image_mesh::compute_mesh ( )

Definition at line 111 of file sdet_image_mesh.cxx.

imesh_mesh& sdet_image_mesh::get_mesh ( ) [inline]

Definition at line 40 of file sdet_image_mesh.h.

void sdet_image_mesh_params::InitParams ( float  smooth,
float  thresh,
int  min_fit_length,
double  rms_distance,
double  step_half_width 
) [protected, inherited]

Definition at line 33 of file sdet_image_mesh_params.cxx.

bool sdet_image_mesh::mesh_valid ( ) const [inline]

Definition at line 41 of file sdet_image_mesh.h.

bool sdet_image_mesh_params::SanityCheck ( ) [inherited]

Checks that parameters are within acceptable bounds.

Definition at line 48 of file sdet_image_mesh_params.cxx.

void sdet_image_mesh::set_anchor_points ( imesh_mesh &  mesh,
vil_image_view< float >  dt_img 
) [protected]

Definition at line 252 of file sdet_image_mesh.cxx.

void sdet_image_mesh::set_image ( vil_image_resource_sptr const &  resource)

Definition at line 307 of file sdet_image_mesh.cxx.

bool sdet_image_mesh::step_boundary ( vgl_line_segment_2d< double > const &  parent,
vgl_line_segment_2d< double > &  child0,
vgl_line_segment_2d< double > &  child1 
) [protected]

Definition at line 34 of file sdet_image_mesh.cxx.


Friends And Related Function Documentation

vcl_ostream& operator<< ( vcl_ostream &  os,
const sdet_image_mesh_params imp 
) [friend, inherited]

Definition at line 87 of file sdet_image_mesh_params.cxx.


Member Data Documentation

vcl_vector<vgl_point_2d<double> > sdet_image_mesh_params::anchor_points_ [inherited]

additional anchor points to generate 2d mesh

Definition at line 43 of file sdet_image_mesh_params.h.

imesh_mesh sdet_image_mesh::mesh_ [protected]

Definition at line 55 of file sdet_image_mesh.h.

bool sdet_image_mesh::mesh_valid_ [protected]

Definition at line 53 of file sdet_image_mesh.h.

the shortest curve to fit a line

Definition at line 40 of file sdet_image_mesh_params.h.

Definition at line 54 of file sdet_image_mesh.h.

the max rms distance error for the fit

Definition at line 41 of file sdet_image_mesh_params.h.

Gaussian sigma for edge detection.

Definition at line 38 of file sdet_image_mesh_params.h.

half the step transition width (in pixels)

Definition at line 42 of file sdet_image_mesh_params.h.

Edge detection threshold.

Definition at line 39 of file sdet_image_mesh_params.h.


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