Basic Image AlgorithmS Library
2.8.0
|
contains all atribute info and values of e.g. a file. More...
#include <Base/Image/ImageAttributes.hh>
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
int | GetFieldOfViewDegree (double &x, double &y) |
compute field of view in degree More... | |
int | GetFocalLengthMeter (double &fm) |
compute focallength in meters More... | |
int | GetFocalLengthXPixel (double &fp) |
compute focallength in pixels More... | |
int | GetFocalLengthYPixel (double &fp) |
compute focallength in pixels More... | |
int | GetHardwareName (std::string &Make, std::string &Model) |
look up camera make and model More... | |
std::string | GetIdentifier () |
combine Make, Model and focallength to one special identifier More... | |
int | GetImageDimensions (int &width, int &height) |
get width and height of image More... | |
int | GetPixelSizeXMeter (double &p) |
compute pixel size in meter More... | |
int | GetPixelSizeYMeter (double &p) |
compute pixel size in meter More... | |
int | GetPrincipalPoint (double &x, double &y) |
look up principal point More... | |
ImageAttributes () | |
void | InitExifTags () |
initialize me vector with all known EXIF tags More... | |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
std::ostream & | Print (std::ostream &os=std::cout, const bool printAll=false) const |
print the content of this to os More... | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
int | Read (const std::string &filename) |
main entry routine to read all EXIF tags from the header of image file. More... | |
int | ReadMagickPP (const std::string &filename) |
int | ReadMagickPP (Magick::Image &img) |
direct interface to Magick::IMage to be able to read the XIF tags of an already opened image. More... | |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
~ImageAttributes () | |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static void | SetGlobalDebugLevel (long int lev) |
Public Attributes | |
T | elements |
STL member. More... | |
Protected Member Functions | |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
bool | GetRational_ (const std::string &key, double &value) |
bool | GetShort_ (const std::string &key, int &value) |
bool | GetString_ (const std::string &key, std::string &value) |
Protected Attributes | |
long int | _liDebugLevel |
long int | _liNextDebugLevel |
new concept, debuglevel are managed here in the debug class More... | |
std::map< std::string, long int > | _String2Debuglevel |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
contains all atribute info and values of e.g. a file.
Definition at line 33 of file ImageAttributes.hh.
|
inline |
Definition at line 37 of file ImageAttributes.hh.
|
inline |
Definition at line 38 of file ImageAttributes.hh.
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
int ImageAttributes::GetFieldOfViewDegree | ( | double & | x, |
double & | y | ||
) |
compute field of view in degree
Definition at line 378 of file ImageAttributes.cpp.
int ImageAttributes::GetFocalLengthMeter | ( | double & | fm | ) |
compute focallength in meters
Definition at line 304 of file ImageAttributes.cpp.
int ImageAttributes::GetFocalLengthXPixel | ( | double & | fp | ) |
compute focallength in pixels
Definition at line 313 of file ImageAttributes.cpp.
Referenced by BIAS::ProjectionParametersIO::ReadFromEXIF().
int ImageAttributes::GetFocalLengthYPixel | ( | double & | fp | ) |
compute focallength in pixels
Definition at line 324 of file ImageAttributes.cpp.
|
inlinestaticinherited |
int ImageAttributes::GetHardwareName | ( | std::string & | Make, |
std::string & | Model | ||
) |
look up camera make and model
Definition at line 414 of file ImageAttributes.cpp.
Referenced by BIAS::ProjectionParametersIO::ReadFromEXIF().
std::string ImageAttributes::GetIdentifier | ( | ) |
combine Make, Model and focallength to one special identifier
Definition at line 424 of file ImageAttributes.cpp.
Referenced by BIAS::VideoSource_Disk::OpenDevice().
int ImageAttributes::GetImageDimensions | ( | int & | width, |
int & | height | ||
) |
get width and height of image
Definition at line 391 of file ImageAttributes.cpp.
Referenced by BIAS::ProjectionParametersIO::ReadFromEXIF().
int ImageAttributes::GetPixelSizeXMeter | ( | double & | p | ) |
compute pixel size in meter
Definition at line 335 of file ImageAttributes.cpp.
Referenced by BIAS::ProjectionParametersIO::ReadFromEXIF().
int ImageAttributes::GetPixelSizeYMeter | ( | double & | p | ) |
compute pixel size in meter
Definition at line 355 of file ImageAttributes.cpp.
Referenced by BIAS::ProjectionParametersIO::ReadFromEXIF().
int ImageAttributes::GetPrincipalPoint | ( | double & | x, |
double & | y | ||
) |
look up principal point
Definition at line 406 of file ImageAttributes.cpp.
Referenced by BIAS::ProjectionParametersIO::ReadFromEXIF().
|
protected |
Definition at line 275 of file ImageAttributes.cpp.
|
protected |
Definition at line 288 of file ImageAttributes.cpp.
|
protected |
Definition at line 264 of file ImageAttributes.cpp.
void ImageAttributes::InitExifTags | ( | ) |
initialize me vector with all known EXIF tags
weblinks:
http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif/focalplaneresolutionunit.html
http://www.stefanheymann.de/homegallery/exif-felder.htm
http://www.exif.org/specifications.html
Definition at line 148 of file ImageAttributes.cpp.
Referenced by BIAS::VideoSource_Disk::OpenDevice(), and BIAS::ProjectionParametersIO::ReadFromEXIF().
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
std::ostream & ImageAttributes::Print | ( | std::ostream & | os = std::cout , |
const bool | printAll = false |
||
) | const |
print the content of this to os
printAll | true prints all tags, false only those whose value is not empty. |
Definition at line 241 of file ImageAttributes.cpp.
|
inlineinherited |
int ImageAttributes::Read | ( | const std::string & | filename | ) |
main entry routine to read all EXIF tags from the header of image file.
filename | image to ping and read header from. |
Definition at line 169 of file ImageAttributes.cpp.
Referenced by BIAS::VideoSource_Disk::OpenDevice(), and BIAS::ProjectionParametersIO::ReadFromEXIF().
int ImageAttributes::ReadMagickPP | ( | const std::string & | filename | ) |
@return BIAS_IMAGEATTRIBUTES_SUCCESS if reading was OK, negative number in case of error.
filename | image file to read attributes form header. |
Definition at line 175 of file ImageAttributes.cpp.
References BIAS::FileHandling::Extension().
int ImageAttributes::ReadMagickPP | ( | Magick::Image & | img | ) |
direct interface to Magick::IMage to be able to read the XIF tags of an already opened image.
filename | image to ping and read header from. |
Definition at line 207 of file ImageAttributes.cpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlineinherited |
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
inherited |
STL member.
|
staticprotectedinherited |