Basic Image AlgorithmS Library
2.8.0
|
this is a chunk of metadata, also see MetaData More...
#include <Base/Image/MetaData.hh>
Public Types | |
enum | TAppData { MD_PMatrix =0, MD_Orientation =1, MD_TimeStamp =2, MD_PTU_Data =3, MD_Inertial_Sensor =4, MD_ASCII_DATA =5, MD_RMatrix =6, MD_KMatrix =7, MD_CVector =8, MD_HomgPoint2D =9, MD_Invalid =10, MD_UUID =11, MD_USE_ASCII =12, MD_Focal_Length =14, MD_GPS_Data =15, MD_Projection = 16, MD_RefUUID =17, MD_PMD_DataDesc =18 } |
Type of AppData. More... | |
Public Member Functions | |
AppData () | |
AppData (const AppData &app) | |
int | CheckFormat () |
checks if stag and sdata have the correct format More... | |
void | Clear () |
Resets all members. More... | |
AppData & | operator= (const AppData &app) |
~AppData () | |
Public Attributes | |
char * | data |
pointer to block of data More... | |
int | length |
number of bytes used by the data block More... | |
std::string | sdata |
the data as given in ascii meta data More... | |
std::string | stag |
the tag as given in ascii meta data More... | |
enum TAppData | tag |
The tag defines the type of data, e.g. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &os, const AppData &ad) |
std::istream & | operator>> (std::istream &is, AppData &ta) |
this is a chunk of metadata, also see MetaData
AppData can hold the meta datum either in ascii format (in this case AppData.tag is set to AppData::MD_USE_ASCII) or in binary format (in this case AppData.tag is set to anything except AppData::MD_USE_ASCII or AppData::MD_Invalid)
Basic operators for reading, writing and assignig exist
Definition at line 49 of file MetaData.hh.
Type of AppData.
If set to MD_USE_ASCII, AppData.tag, AppData.length and AppData.data are invalid. AppData.stag and AppData.sdata should be used.
If set to anything else except MD_Invalid, AppData.tag, AppData.length and AppData.data are valid. AppData.stag and AppData.sdata should not be used in this case.
The string tag AppData.stag can be generated from the enum id by removing 'MD_', substituting underscores with blanks and bracketing with '#[' and ']'.
For example tag=MD_Inertial_Sensor evolves to stag="#[Inertial Sensor]".
!! MD_ASCII_DATA is deprecated and should no longer be used. !! It is keept her for compatibility reasons.
Definition at line 72 of file MetaData.hh.
AppData::AppData | ( | ) |
Definition at line 40 of file MetaData.cpp.
AppData::~AppData | ( | ) |
Definition at line 46 of file MetaData.cpp.
AppData::AppData | ( | const AppData & | app | ) |
Definition at line 51 of file MetaData.cpp.
int AppData::CheckFormat | ( | ) |
checks if stag and sdata have the correct format
Definition at line 81 of file MetaData.cpp.
Referenced by BIAS::MetaData::Add().
void AppData::Clear | ( | ) |
Resets all members.
Definition at line 72 of file MetaData.cpp.
Referenced by BIAS::MetaData::Add(), and BIAS::MetaData::Find().
|
related |
|
related |
char* BIAS::AppData::data |
pointer to block of data
Definition at line 98 of file MetaData.hh.
Referenced by BIAS::MetaData::Add(), BIAS::VideoSource_PMD::CalcAmplitudesFromSourceData(), BIAS::VideoSource_PMD::CalcDistancesFromSourceData(), BIAS::VideoSource_PMD::CalcIntensitiesFromSourceData(), BIAS::IOUtils::GetProjection(), operator=(), and BIAS::Camera< StorageType >::ParseMetaData().
int BIAS::AppData::length |
number of bytes used by the data block
Definition at line 96 of file MetaData.hh.
Referenced by BIAS::MetaData::Add(), BIAS::VideoSource_PMD::CalcAmplitudesFromSourceData(), BIAS::VideoSource_PMD::CalcDistancesFromSourceData(), BIAS::VideoSource_PMD::CalcIntensitiesFromSourceData(), BIAS::IOUtils::GetProjection(), operator=(), and BIAS::Camera< StorageType >::ParseMetaData().
std::string BIAS::AppData::sdata |
the data as given in ascii meta data
Definition at line 102 of file MetaData.hh.
Referenced by BIAS::MetaData::Add(), BIAS::IOUtils::GetProjection(), BIAS::ImageIO::ImportImage(), operator=(), and BIAS::Camera< StorageType >::ParseMetaData().
std::string BIAS::AppData::stag |
the tag as given in ascii meta data
Definition at line 100 of file MetaData.hh.
Referenced by BIAS::MetaData::Add(), and operator=().
enum TAppData BIAS::AppData::tag |
The tag defines the type of data, e.g.
MD_PMatrix is set to MD_USE_ASCII if ascii data is used. See TAppData.
Definition at line 94 of file MetaData.hh.
Referenced by BIAS::MetaData::Add(), BIAS::IOUtils::GetProjection(), BIAS::ImageIO::ImportImage(), operator=(), and BIAS::Camera< StorageType >::ParseMetaData().