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

#include <sdet_region_proc.h>

Inheritance diagram for sdet_region_proc:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 sdet_region_proc (sdet_region_proc_params &rpp)
 constructor from a parameter block (the only way).
 ~sdet_region_proc ()
 Default Destructor.
void set_image (vil1_image const &image, vsol_box_2d_sptr const &box=vsol_box_2d_sptr())
 Set the image to be processed (vil1 type image).
void set_image_resource (vil_image_resource_sptr const &image, vsol_box_2d_sptr const &box=vsol_box_2d_sptr())
 Set the image to be processed (vil type image).
vcl_vector
< vtol_intensity_face_sptr > & 
get_regions ()
void extract_regions ()
 extract a set of vtol_intensity_face(s).
void clear ()
 Clear internal storage.
vil1_image get_residual_image ()
 Use a linear approximation to intensity to predict region data.
vil_image_view< float > get_residual_image_view ()
 Use a linear approximation to intensity to predict region data.
vil1_image get_edge_image () const
vil_image_view< unsigned char > get_edge_image_view ()
vil_image_resource_sptr get_edge_image_resource ()
 Returns a vil_image_resource_sptr of the edge image.
bool SanityCheck ()
 Checks that parameters are within acceptable bounds.

Public Attributes

int array_scale_
 resolution of label arrays
bool debug_
 Carry out debug processing.
bool verbose_
 Print detailed output.
sdet_detector_params dp_
 parameters associated with step and fold detection

Protected Member Functions

bool set_detector_image_vil (sdet_detector &d)
bool set_detector_image_vil1 (sdet_detector &d)
void InitParams (const sdet_detector_params &dp, bool verbose, bool debug, int array_scale)

Protected Attributes

bool regions_valid_
bool use_vil_image_
vil1_image image_
vil_image_resource_sptr vimage_
brip_roi_sptr roi_
vil1_image clip_
vil_image_resource_sptr vclip_
vil1_image edge_image_
vcl_vector
< vtol_intensity_face_sptr
regions_

Friends

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

Detailed Description

Definition at line 28 of file sdet_region_proc.h.


Constructor & Destructor Documentation

sdet_region_proc::sdet_region_proc ( sdet_region_proc_params rpp)

constructor from a parameter block (the only way).

Definition at line 23 of file sdet_region_proc.cxx.

sdet_region_proc::~sdet_region_proc ( )

Default Destructor.

Definition at line 34 of file sdet_region_proc.cxx.


Member Function Documentation

void sdet_region_proc::clear ( )

Clear internal storage.

Definition at line 181 of file sdet_region_proc.cxx.

void sdet_region_proc::extract_regions ( )

extract a set of vtol_intensity_face(s).

Definition at line 133 of file sdet_region_proc.cxx.

vil1_image sdet_region_proc::get_edge_image ( ) const [inline]

Definition at line 53 of file sdet_region_proc.h.

vil_image_resource_sptr sdet_region_proc::get_edge_image_resource ( )

Returns a vil_image_resource_sptr of the edge image.

Definition at line 250 of file sdet_region_proc.cxx.

vil_image_view<unsigned char> sdet_region_proc::get_edge_image_view ( )
vcl_vector<vtol_intensity_face_sptr>& sdet_region_proc::get_regions ( ) [inline]

Definition at line 43 of file sdet_region_proc.h.

vil1_image sdet_region_proc::get_residual_image ( )

Use a linear approximation to intensity to predict region data.

Return the residual error

Definition at line 189 of file sdet_region_proc.cxx.

vil_image_view< float > sdet_region_proc::get_residual_image_view ( )

Use a linear approximation to intensity to predict region data.

Return the residual error

Definition at line 226 of file sdet_region_proc.cxx.

void sdet_region_proc_params::InitParams ( const sdet_detector_params dp,
bool  verbose,
bool  debug,
int  array_scale 
) [protected, inherited]

Definition at line 36 of file sdet_region_proc_params.cxx.

bool sdet_region_proc_params::SanityCheck ( ) [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.

Definition at line 53 of file sdet_region_proc_params.cxx.

bool sdet_region_proc::set_detector_image_vil ( sdet_detector d) [protected]

Definition at line 112 of file sdet_region_proc.cxx.

bool sdet_region_proc::set_detector_image_vil1 ( sdet_detector d) [protected]

Definition at line 92 of file sdet_region_proc.cxx.

void sdet_region_proc::set_image ( vil1_image const &  image,
vsol_box_2d_sptr const &  box = vsol_box_2d_sptr() 
)

Set the image to be processed (vil1 type image).

Definition at line 41 of file sdet_region_proc.cxx.

void sdet_region_proc::set_image_resource ( vil_image_resource_sptr const &  image,
vsol_box_2d_sptr const &  box = vsol_box_2d_sptr() 
)

Set the image to be processed (vil type image).

Definition at line 66 of file sdet_region_proc.cxx.


Friends And Related Function Documentation

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

Definition at line 71 of file sdet_region_proc_params.cxx.


Member Data Documentation

resolution of label arrays

Definition at line 40 of file sdet_region_proc_params.h.

vil1_image sdet_region_proc::clip_ [protected]

Definition at line 67 of file sdet_region_proc.h.

Carry out debug processing.

Definition at line 41 of file sdet_region_proc_params.h.

parameters associated with step and fold detection

Definition at line 43 of file sdet_region_proc_params.h.

vil1_image sdet_region_proc::edge_image_ [protected]

Definition at line 69 of file sdet_region_proc.h.

vil1_image sdet_region_proc::image_ [protected]

Definition at line 64 of file sdet_region_proc.h.

Definition at line 70 of file sdet_region_proc.h.

Definition at line 62 of file sdet_region_proc.h.

Definition at line 66 of file sdet_region_proc.h.

Definition at line 63 of file sdet_region_proc.h.

Definition at line 68 of file sdet_region_proc.h.

Print detailed output.

Definition at line 42 of file sdet_region_proc_params.h.

Definition at line 65 of file sdet_region_proc.h.


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