Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | Private Attributes
vifa_parallel Class Reference

Compute the parallel-ness of a set of line segments. More...

#include <vifa_parallel.h>

Inheritance diagram for vifa_parallel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 vifa_parallel (iface_list &faces, bool contrast_weighted, vifa_parallel_params *params=0)
 Face-based constructor.
 vifa_parallel (vcl_vector< float > &pixel_orientations, vifa_parallel_params *params=0)
 Orientation-based constructor.
 vifa_parallel (float center_angle, float std_dev)
 Constructor based on line statistics.
 ~vifa_parallel (void)
 Destructor.
void reset (void)
vifa_histogramget_raw_hist (void)
vifa_histogramget_norm_hist (void)
void map_gaussian (float &max_angle, float &std_dev, float &scale)
void remove_gaussian (float max_angle, float std_dev, float scale)
void snapshot (char *fname)
float area (void)
float bin_variance (void)
void print_info (void)
 Output contents.
virtual bool SanityCheck ()
bool Valid () const
const char * GetErrorMsg () const
void SetErrorMsg (const char *msg)
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

float min_angle
float max_angle
int nbuckets

Protected Attributes

unsigned long timestamp_

Private Member Functions

float map_x (float raw_x)
vifa_histogramnormalize_histogram (vifa_histogram *h)
float find_peak (float &max_value)
vtol_intensity_face_sptr get_adjacent_iface (vtol_intensity_face_sptr known_face, vtol_edge_2d *e)

Private Attributes

vifa_histogramraw_h_
 Raw histogram.
vifa_histogramnorm_h_
 Normalized histogram.

Detailed Description

Compute the parallel-ness of a set of line segments.

NOTE: All angles are in degrees.

Definition at line 27 of file vifa_parallel.h.


Constructor & Destructor Documentation

vifa_parallel::vifa_parallel ( iface_list faces,
bool  contrast_weighted,
vifa_parallel_params params = 0 
)

Face-based constructor.

Definition at line 24 of file vifa_parallel.cxx.

vifa_parallel::vifa_parallel ( vcl_vector< float > &  pixel_orientations,
vifa_parallel_params params = 0 
)

Orientation-based constructor.

Definition at line 104 of file vifa_parallel.cxx.

vifa_parallel::vifa_parallel ( float  center_angle,
float  std_dev 
)

Constructor based on line statistics.

Definition at line 132 of file vifa_parallel.cxx.

vifa_parallel::~vifa_parallel ( void  )

Destructor.

Definition at line 153 of file vifa_parallel.cxx.


Member Function Documentation

float vifa_parallel::area ( void  )

Definition at line 320 of file vifa_parallel.cxx.

float vifa_parallel::bin_variance ( void  )

Definition at line 334 of file vifa_parallel.cxx.

float vifa_parallel::find_peak ( float &  max_value) [private]

Definition at line 389 of file vifa_parallel.cxx.

vtol_intensity_face_sptr vifa_parallel::get_adjacent_iface ( vtol_intensity_face_sptr  known_face,
vtol_edge_2d e 
) [private]

Definition at line 416 of file vifa_parallel.cxx.

vifa_histogram * vifa_parallel::get_norm_hist ( void  )

Definition at line 172 of file vifa_parallel.cxx.

vifa_histogram * vifa_parallel::get_raw_hist ( void  )

Definition at line 166 of file vifa_parallel.cxx.

void vifa_parallel::map_gaussian ( float &  max_angle,
float &  std_dev,
float &  scale 
)

Definition at line 178 of file vifa_parallel.cxx.

float vifa_parallel::map_x ( float  raw_x) [private]

Definition at line 354 of file vifa_parallel.cxx.

vifa_histogram * vifa_parallel::normalize_histogram ( vifa_histogram h) [private]

Definition at line 371 of file vifa_parallel.cxx.

void vifa_parallel_params::print_info ( void  ) [inherited]

Output contents.

Definition at line 45 of file vifa_parallel_params.cxx.

void vifa_parallel::remove_gaussian ( float  max_angle,
float  std_dev,
float  scale 
)

Definition at line 277 of file vifa_parallel.cxx.

void vifa_parallel::reset ( void  )

Definition at line 159 of file vifa_parallel.cxx.

void vifa_parallel::snapshot ( char *  fname)

Definition at line 314 of file vifa_parallel.cxx.


Member Data Documentation

Definition at line 32 of file vifa_parallel_params.h.

Definition at line 31 of file vifa_parallel_params.h.

Definition at line 33 of file vifa_parallel_params.h.

Normalized histogram.

Definition at line 34 of file vifa_parallel.h.

Raw histogram.

Definition at line 31 of file vifa_parallel.h.


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