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

#include <gevd_region_proc.h>

Inheritance diagram for gevd_region_proc:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 gevd_region_proc ()
 constructor from a parameter block (the only way).
 ~gevd_region_proc ()
 Default Destructor.
void set_image (vil1_image &image)
 Set the image to be processed.
vcl_vector
< vdgl_digital_region * > & 
get_regions ()
void extract_regions ()
 extract a set of vdgl_poly_intensity_face(s).
void clear ()
 Clear internal storage.
void set_expand_scale (float scale)
void set_debug ()
void clear_debug ()
bool SanityCheck ()
 Checks that parameters are within acceptable bounds.
bool Valid () const
const char * GetErrorMsg () const
void SetErrorMsg (const char *msg)
 Set the error message for this parameter block.

Public Attributes

bool verbose_
 Print detailed output.
gevd_detector_params dp_
 parameters associated with step and fold detection

Protected Member Functions

gevd_bufferxyget_image_buffer (vil1_image &image)
 Extract the region of interest from image_ as a BufferXY.
gevd_bufferxyget_float_buffer (gevd_bufferxy *b)
 Convert buf to a floating point buffer.
gevd_bufferxyput_float_buffer (gevd_bufferxy *fbuf)
vil1_image buffer_to_image (gevd_bufferxy *buf)
void restore_image_rois ()
void InitParams (float expand_scale, float burt_adelson_factor, bool debug, bool verbose, const gevd_detector_params &dp)

Protected Attributes

bool debug_
 Carry out debug processing.
bool regions_valid_
float expand_scale_
 the scale factor for image expansion
float burt_adelson_factor_
 the "sigma" of the interpolating kernel
vil1_image image_
gevd_bufferxybuf_
vcl_vector< vdgl_digital_region * > regions_

Friends

vcl_ostream & operator<< (vcl_ostream &, const gevd_region_proc_params &rpp)

Detailed Description

Definition at line 30 of file gevd_region_proc.h.


Constructor & Destructor Documentation

gevd_region_proc::gevd_region_proc ( )

constructor from a parameter block (the only way).

Definition at line 19 of file gevd_region_proc.cxx.

gevd_region_proc::~gevd_region_proc ( )

Default Destructor.

Definition at line 28 of file gevd_region_proc.cxx.


Member Function Documentation

vil1_image gevd_region_proc::buffer_to_image ( gevd_bufferxy buf) [protected]
void gevd_region_proc::clear ( )

Clear internal storage.

Definition at line 257 of file gevd_region_proc.cxx.

void gevd_region_proc::clear_debug ( ) [inline]

Definition at line 52 of file gevd_region_proc.h.

void gevd_region_proc::extract_regions ( )

extract a set of vdgl_poly_intensity_face(s).

Definition at line 144 of file gevd_region_proc.cxx.

gevd_bufferxy * gevd_region_proc::get_float_buffer ( gevd_bufferxy b) [protected]

Convert buf to a floating point buffer.

Definition at line 54 of file gevd_region_proc.cxx.

gevd_bufferxy * gevd_region_proc::get_image_buffer ( vil1_image &  image) [protected]

Extract the region of interest from image_ as a BufferXY.

Definition at line 36 of file gevd_region_proc.cxx.

vcl_vector<vdgl_digital_region *>& gevd_region_proc::get_regions ( ) [inline]

Definition at line 42 of file gevd_region_proc.h.

const char* gevd_param_mixin::GetErrorMsg ( ) const [inline, inherited]

Definition at line 50 of file gevd_param_mixin.h.

void gevd_region_proc_params::InitParams ( float  expand_scale,
float  burt_adelson_factor,
bool  debug,
bool  verbose,
const gevd_detector_params dp 
) [protected, inherited]

Definition at line 37 of file gevd_region_proc_params.cxx.

gevd_bufferxy * gevd_region_proc::put_float_buffer ( gevd_bufferxy fbuf) [protected]

Definition at line 69 of file gevd_region_proc.cxx.

void gevd_region_proc::restore_image_rois ( ) [protected]
bool gevd_region_proc_params::SanityCheck ( ) [virtual, inherited]

Checks that parameters are within acceptable bounds.

Note that msg << ends seems to restart the string and erase the previous string. We should only use it as the last call, use vcl_endl otherwise.

Reimplemented from gevd_param_mixin.

Definition at line 56 of file gevd_region_proc_params.cxx.

void gevd_region_proc::set_debug ( ) [inline]

Definition at line 51 of file gevd_region_proc.h.

void gevd_region_proc::set_expand_scale ( float  scale) [inline]

Definition at line 48 of file gevd_region_proc.h.

void gevd_region_proc::set_image ( vil1_image &  image)

Set the image to be processed.

Definition at line 81 of file gevd_region_proc.cxx.

void gevd_param_mixin::SetErrorMsg ( const char *  msg) [inherited]

Set the error message for this parameter block.

If the message is not empty, this sets the valid flag to be false. An empty message resets the valid flag to be true.

Definition at line 47 of file gevd_param_mixin.cxx.

bool gevd_param_mixin::Valid ( ) const [inline, inherited]

Definition at line 49 of file gevd_param_mixin.h.


Friends And Related Function Documentation

vcl_ostream& operator<< ( vcl_ostream &  ,
const gevd_region_proc_params rpp 
) [friend, inherited]

Definition at line 78 of file gevd_region_proc_params.cxx.


Member Data Documentation

Definition at line 67 of file gevd_region_proc.h.

the "sigma" of the interpolating kernel

Reimplemented from gevd_region_proc_params.

Definition at line 65 of file gevd_region_proc.h.

bool gevd_region_proc::debug_ [protected]

Carry out debug processing.

Reimplemented from gevd_region_proc_params.

Definition at line 62 of file gevd_region_proc.h.

parameters associated with step and fold detection

Definition at line 47 of file gevd_region_proc_params.h.

the scale factor for image expansion

Reimplemented from gevd_region_proc_params.

Definition at line 64 of file gevd_region_proc.h.

vil1_image gevd_region_proc::image_ [protected]

Definition at line 66 of file gevd_region_proc.h.

Definition at line 70 of file gevd_region_proc.h.

Definition at line 63 of file gevd_region_proc.h.

Print detailed output.

Definition at line 46 of file gevd_region_proc_params.h.


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