Particle Identification and Tracking
|
Wrapper class for dealing with data from Peter Lu's code. More...
#include <wrapper_i_plu.h>
Public Member Functions | |
void | add_frame_data (Ipp32f[][9], int frame, int num) |
adds a pointer to data_ More... | |
int | get_num_entries (unsigned int j) const |
Return the number of entries the specified frame. More... | |
int | get_num_entries () const |
Return the total number of entries in the wrapper. More... | |
void | print () const |
int | get_value (int &out, int ind, utilities::D_TYPE type, int frame) const |
Returns the value of the type specified from the particle selected. More... | |
float | get_value (float &out, int ind, utilities::D_TYPE type, int frame) const |
Returns the value of the type specified from the particle selected. More... | |
std::complex< float > | get_value (std::complex< float > &out, int ind, utilities::D_TYPE type, int frame) const |
Returns the value of the type specified from the particle selected. More... | |
void | set_dims (const utilities::Tuple< float, 2 > &) |
Wrapper_i_plu (int, utilities::Tuple< float, 2 >) | |
Wrapper_i_plu (int) | |
virtual | ~Wrapper_i_plu () |
bool | contains_type (utilities::D_TYPE) const |
Returns if the wrapper contains the specified data type. More... | |
int | get_num_frames () const |
Return the number of frames. More... | |
std::set< utilities::D_TYPE > | get_data_types () const |
Returns a set of the data types. More... | |
utilities::Tuple< float, 2 > | get_dims () const |
Returns the dimension of each 'frame' of the data in the wrapper. More... | |
Meta data handling functions | |
const Md_store * | get_Md_store (unsigned int j) const |
Returns a pointer to plane j's meta data store. More... | |
Md_store * | get_Md_store (unsigned int j) |
Returns a pointer to plane j's meta data store. More... | |
void | set_Md_store (unsigned int j, Md_store *in) |
Sets the Md_store for plane j. More... | |
void | set_Md_store_size (unsigned int j) |
Sets the size of the md_stores_ vector. More... | |
unsigned int | get_Md_store_size () |
Gets the size of the md_stores_ vector. More... | |
void | clear_Md_store (unsigned int j) |
Deletes plane j's Md_store. More... | |
Protected Attributes | |
std::set< utilities::D_TYPE > | data_types_ |
A map between the data types and a posistion in the data structure. More... | |
utilities::Data_map | data_map_ |
object for fast lookup More... | |
int | count_ |
count of particles added More... | |
utilities::Tuple< float, 2 > | dims_ |
dimensions of the images being shoved in More... | |
Private Attributes | |
std::vector< Ipp32f(*)[9]> | data_ |
vectors of pointers to data The wrapper owns these pointers More... | |
std::vector< int > | frame_count_ |
Static Private Attributes | |
static const int | cols = 9 |
Wrapper class for dealing with data from Peter Lu's code.
iden::Wrapper_i_plu::Wrapper_i_plu | ( | int | , |
utilities::Tuple< float, 2 > | |||
) |
Wrapper_i_plu::Wrapper_i_plu | ( | int | frames) |
|
virtual |
References data_.
void Wrapper_i_plu::add_frame_data | ( | Ipp32f | data[][9], |
int | frame, | ||
int | num | ||
) |
adds a pointer to data_
References count_, data_, and frame_count_.
Referenced by iden::Iden::fill_wrapper(), iden::Iden::fill_wrapper_avg(), and iden::Iden::process_frame().
|
inherited |
Deletes plane j's Md_store.
References utilities::Wrapper_in::md_stores_.
|
virtual |
Returns if the wrapper contains the specified data type.
Implements utilities::Wrapper_in.
References data_types_.
|
inlinevirtual |
Returns a set of the data types.
Use the other version
Implements utilities::Wrapper_in.
References data_types_.
Referenced by main().
|
virtual |
Returns the dimension of each 'frame' of the data in the wrapper.
Implements utilities::Wrapper_in.
References dims_.
Referenced by main().
|
inherited |
Returns a pointer to plane j's meta data store.
Const version
References utilities::Wrapper_in::md_stores_.
Referenced by tracking::Master_box::get_Md_store(), and tracking::hash_case::init().
|
inherited |
Returns a pointer to plane j's meta data store.
Const version
References utilities::Wrapper_in::md_stores_.
|
inherited |
Gets the size of the md_stores_ vector.
References utilities::Wrapper_in::md_stores_.
|
virtual |
Return the number of entries the specified frame.
Implements utilities::Wrapper_in.
References frame_count_.
Referenced by main().
|
virtual |
Return the total number of entries in the wrapper.
Implements utilities::Wrapper_in.
References count_.
|
inlinevirtual |
Return the number of frames.
Implements utilities::Wrapper_in.
References frame_count_.
Referenced by main().
|
virtual |
Returns the value of the type specified from the particle selected.
out | [out] the value |
ind | [in] the index of the particle |
type | [in] the D_TYPE |
frame | [in] the frame the particle is in |
Implements utilities::Wrapper_in.
Referenced by iden::Iden::fill_wrapper_avg().
|
virtual |
Returns the value of the type specified from the particle selected.
out | [out] the value |
ind | [in] the index of the particle |
type | [in] the D_TYPE |
frame | [in] the frame the particle is in |
Implements utilities::Wrapper_in.
|
inlinevirtual |
Returns the value of the type specified from the particle selected.
out | [out] the value |
ind | [in] the index of the particle |
type | [in] the D_TYPE |
frame | [in] the frame the particle is in |
Implements utilities::Wrapper_in.
void Wrapper_i_plu::set_dims | ( | const utilities::Tuple< float, 2 > & | ) |
References dims_.
|
inherited |
Sets the Md_store for plane j.
When the pointer is assigned the wrapper takes ownership of the pointer and will clean it up.
References utilities::Wrapper_in::md_stores_.
Referenced by iden::Iden::fill_wrapper(), iden::Iden::fill_wrapper_avg(), main(), utilities::Wrapper_i_hdf::priv_init(), and iden::Iden::process_frame().
|
inherited |
Sets the size of the md_stores_ vector.
References utilities::Wrapper_in::md_stores_.
Referenced by iden::Iden::fill_wrapper(), iden::Iden::fill_wrapper_avg(), main(), utilities::Wrapper_i_hdf::priv_init(), and Wrapper_i_plu().
|
staticprivate |
|
protected |
count of particles added
Referenced by add_frame_data(), get_num_entries(), and print().
|
private |
vectors of pointers to data The wrapper owns these pointers
Referenced by add_frame_data(), print(), and ~Wrapper_i_plu().
|
protected |
object for fast lookup
Referenced by Wrapper_i_plu().
|
protected |
A map between the data types and a posistion in the data structure.
This orginally had been burried down in the derived classes, but I couldn't think of a data structure for storing particle data where this sort of thing wasn't uesful. Thus, it has been dragged up to the top level.
Referenced by contains_type(), get_data_types(), and Wrapper_i_plu().
|
protected |
dimensions of the images being shoved in
Referenced by get_dims(), and set_dims().
|
private |
Referenced by add_frame_data(), get_num_entries(), and get_num_frames().