Public Types | Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | Private Attributes
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.

Public Types

enum  process_data_type

Public Member Functions

 strk_snippet_extractor_process ()
 ~strk_snippet_extractor_process ()
virtual process_data_type get_output_type () const
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 () const
int frame_index () const
int get_N_input_images () const
vil1_image get_input_image (unsigned int i)
vil1_image get_output_image ()
int get_N_input_spat_objs () const
vcl_vector
< vsol_spatial_object_2d_sptr >
const & 
get_input_spatial_objects ()
int get_N_input_topo_objs () const
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 () const
void set_graph (vcl_vector< float > const &graph)
vcl_vector< float > graph () const
unsigned int start_frame () const
unsigned int end_frame () const
virtual process_data_type get_input_type () const
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_image > input_images_
vcl_vector
< vsol_spatial_object_2d_sptr
input_spat_objs_
vcl_vector
< vtol_topology_object_sptr
input_topo_objs_
vil1_image output_image_
vcl_vector
< vtol_topology_object_sptr
output_topo_objs_
vcl_vector
< vsol_spatial_object_2d_sptr
output_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_image > tracked_snippets_

Detailed Description

Definition at line 21 of file strk_snippet_extractor_process.h.


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 ( ) const [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

Definition at line 42 of file strk_snippet_extractor_process.h.

Definition at line 43 of file strk_snippet_extractor_process.h.

Definition at line 46 of file strk_snippet_extractor_process.h.

Definition at line 45 of file strk_snippet_extractor_process.h.

Definition at line 44 of file strk_snippet_extractor_process.h.

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: