1 #ifndef _IMAGEATTRIBUTES_H_INCLUDED_
2 #define _IMAGEATTRIBUTES_H_INCLUDED_
3 #include <Base/Common/BIASpragmaStart.hh>
5 #include <bias_config.h>
8 #include <Base/Debug/Debug.hh>
18 #define BIAS_IMAGEATTRIBUTES_SUCCESS 0
22 #ifdef BIAS_HAVE_IMAGEMAGICKLIB
23 # include <Magick++.h>
44 int Read(
const std::string & filename);
50 int ReadMagickPP(
const std::string & filename);
52 #ifdef BIAS_HAVE_IMAGEMAGICKLIB
57 int ReadMagickPP(Magick::Image & img);
67 std::ostream& Print(std::ostream& os=std::cout,
68 const bool printAll=
false)
const;
73 int GetFocalLengthMeter(
double &fm);
78 int GetFocalLengthXPixel(
double &fp);
83 int GetFocalLengthYPixel(
double &fp);
88 int GetPixelSizeXMeter(
double &p);
93 int GetPixelSizeYMeter(
double &p);
98 int GetFieldOfViewDegree(
double &x,
double& y);
103 int GetImageDimensions(
int& width,
int& height);
108 int GetPrincipalPoint(
double& x,
double& y);
113 int GetHardwareName(std::string& Make, std::string& Model);
116 std::string GetIdentifier();
119 bool GetString_(
const std::string& key, std::string& value);
120 bool GetRational_(
const std::string& key,
double& value);
121 bool GetShort_(
const std::string& key,
int& value);
124 std::map<std::string, unsigned int> mapValidTags_;
134 BIASImageBase_EXPORT std::ostream&
operator<<(std::ostream& os,
138 #include <Base/Common/BIASpragmaEnd.hh>
std::ostream & operator<<(std::ostream &os, const AppData &ad)
contains all atribute info and values of e.g. a file.