Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

strk_snippet_extractor_process Class Reference

#include <strk_snippet_extractor_process.h>

Inheritance diagram for strk_snippet_extractor_process:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 21 of file strk_snippet_extractor_process.h.

Public Types

enum  process_data_type

Public Member Functions

 strk_snippet_extractor_process ()
 ~strk_snippet_extractor_process ()
virtual process_data_type get_output_type ()
virtual bool execute ()
 track to next frame.
virtual bool finish ()
 output the snippets.
bool set_input_file (vcl_string const &track_file_name)
 track input filename.
void set_snippet_directory (vcl_string const &snip_dir)
 snippet directory.
void set_margin_fraction (const double margin_fraction)
 fractional margin for snippet roi around the tracked object.
void clear_input ()
void clear_output ()
void set_n_frames (int n_frames)
void set_frame_index (int index)
void add_input_image (vil1_image const &im)
void add_input_spatial_object (vsol_spatial_object_2d_sptr const &so)
void add_input_spatial_objects (vcl_vector< vsol_spatial_object_2d_sptr > const &spat_objs)
void add_input_topology_object (vtol_topology_object_sptr const &to)
void add_input_topology (vcl_vector< vtol_topology_object_sptr > const &topo_objs)
int n_frames ()
int frame_index ()
int get_N_input_images ()
vil1_image get_input_image (unsigned int i)
vil1_image get_output_image ()
int get_N_input_spat_objs ()
vcl_vector< vsol_spatial_object_2d_sptr
> const & 
get_input_spatial_objects ()
int get_N_input_topo_objs ()
vcl_vector< vtol_topology_object_sptr
> const & 
get_input_topology ()
virtual vcl_vector< vsol_spatial_object_2d_sptr
> const & 
get_output_spatial_objects ()
virtual vcl_vector< vtol_topology_object_sptr
> const & 
get_output_topology ()
void set_graph_flag ()
void clear_graph_flag ()
bool graph_flag ()
void set_graph (vcl_vector< float > const &graph)
vcl_vector< float > graph ()
unsigned int start_frame ()
unsigned int end_frame ()
virtual process_data_type get_input_type ()
void ref ()
void unref ()
int get_references () const
bool is_referenced () const

Public Attributes

 NOTYPE
 IMAGE
 SPATIAL_OBJECT
 TOPOLOGY
 IMAGE_SPATIAL_OBJECT

Protected Attributes

int frame_index_
int n_frames_
unsigned int start_frame_
unsigned int end_frame_
vcl_vector< vil1_imageinput_images_
vcl_vector< vsol_spatial_object_2d_sptrinput_spat_objs_
vcl_vector< vtol_topology_object_sptrinput_topo_objs_
vil1_image output_image_
vcl_vector< vtol_topology_object_sptroutput_topo_objs_
vcl_vector< vsol_spatial_object_2d_sptroutput_spat_objs_
bool graph_flag_
vcl_vector< float > graph_

Private Member Functions

bool extract_rois (vcl_vector< vtol_face_2d_sptr > const &tracked_faces)

Private Attributes

bool failure_
bool first_frame_
vcl_string track_file_
vcl_string snippet_directory_
double margin_frac_
vcl_vector< brip_roi_sptrtracked_rois_
vcl_vector< vil1_imagetracked_snippets_


Constructor & Destructor Documentation

strk_snippet_extractor_process::strk_snippet_extractor_process  ) 
 

Definition at line 17 of file strk_snippet_extractor_process.cxx.

strk_snippet_extractor_process::~strk_snippet_extractor_process  ) 
 

Definition at line 26 of file strk_snippet_extractor_process.cxx.


Member Function Documentation

bool strk_snippet_extractor_process::execute  )  [virtual]
 

track to next frame.

Implements vpro_video_process.

Definition at line 30 of file strk_snippet_extractor_process.cxx.

bool strk_snippet_extractor_process::extract_rois vcl_vector< vtol_face_2d_sptr > const &  tracked_faces  )  [private]
 

Definition at line 65 of file strk_snippet_extractor_process.cxx.

bool strk_snippet_extractor_process::finish  )  [virtual]
 

output the snippets.

Implements vpro_video_process.

Definition at line 117 of file strk_snippet_extractor_process.cxx.

virtual process_data_type strk_snippet_extractor_process::get_output_type  )  [inline, virtual]
 

Reimplemented from vpro_video_process.

Definition at line 26 of file strk_snippet_extractor_process.h.

bool strk_snippet_extractor_process::set_input_file vcl_string const &  track_file_name  ) 
 

track input filename.

Definition at line 82 of file strk_snippet_extractor_process.cxx.

void strk_snippet_extractor_process::set_margin_fraction const double  margin_fraction  )  [inline]
 

fractional margin for snippet roi around the tracked object.

Definition at line 37 of file strk_snippet_extractor_process.h.

void strk_snippet_extractor_process::set_snippet_directory vcl_string const &  snip_dir  ) 
 

snippet directory.

Definition at line 112 of file strk_snippet_extractor_process.cxx.


Member Data Documentation

bool strk_snippet_extractor_process::failure_ [private]
 

Definition at line 42 of file strk_snippet_extractor_process.h.

bool strk_snippet_extractor_process::first_frame_ [private]
 

Definition at line 43 of file strk_snippet_extractor_process.h.

double strk_snippet_extractor_process::margin_frac_ [private]
 

Definition at line 46 of file strk_snippet_extractor_process.h.

vcl_string strk_snippet_extractor_process::snippet_directory_ [private]
 

Definition at line 45 of file strk_snippet_extractor_process.h.

vcl_string strk_snippet_extractor_process::track_file_ [private]
 

Definition at line 44 of file strk_snippet_extractor_process.h.

vcl_vector<brip_roi_sptr> strk_snippet_extractor_process::tracked_rois_ [private]
 

Definition at line 47 of file strk_snippet_extractor_process.h.

vcl_vector<vil1_image> strk_snippet_extractor_process::tracked_snippets_ [private]
 

Definition at line 48 of file strk_snippet_extractor_process.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 14:53:22 2008 for contrib/brl/bseg/strk by  doxygen 1.4.4