34 #include <Image/LogPolarMapping.hh>
35 #include <Base/Image/ImageIO.hh>
36 #include <Base/Debug/TimeMeasure.hh>
37 #include <Utils/Param.hh>
43 int main(
int argc,
char *argv[])
50 "Absolute path to the source Image",
60 BIASERR(argv[0]<<
" -i<image-file>");
67 BIASERR(
"error loading "<<sourceImage);
78 cout<<
"ROI of source image is "<<*im.
GetROI()
79 <<
" while image size is "<<width<<
" x "<<height<<endl;
84 cout<<
"timing ..."<<endl<<flush;
93 BIASERR(
"error image");
96 cout <<
"Trilinear mapping took "
Maps cartesian source coordinates to log-polar sink coordinates.
void SetColorModel(EColorModel Model)
void SetImageCenter(const int &x, const int &y)
set your image center before calling Map().
unsigned int GetWidth() const
int ParseCommandLine(int &argc, char *argv[])
scan command line arguments for valid parameters
ROI * GetROI()
Returns a pointer to the roi object.
std::string * GetParamString(const std::string &name) const
unsigned int GetChannelCount() const
returns the number of Color channels, e.g.
unsigned int GetHeight() const
int Map(const Image< InputStorageType > &src, Image< OutputStorageType > &sink, InterpolationMethod=MapTrilinear, bool newSink=false, double SuperSampling=1.0)
backward mapping with various interpolations
static int Save(const std::string &filename, const ImageBase &img, const enum TFileFormat FileFormat=FF_auto, const bool sync=BIAS_DEFAULT_SYNC, const int c_jpeg_quality=BIAS_DEFAULT_IMAGE_QUALITY, const bool forceNewID=BIAS_DEFAULT_FORCENEWID, const bool &writeMetaData=true)
Export image as file using extrnal libs.
enum EColorModel GetColorModel() const
This class Param provides generic support for parameters.
static int Load(const std::string &FileName, ImageBase &img)
first tries a call to Read MIP image and if that fails, tries to Import Image with all other availabl...
std::string * AddParamString(const std::string &name, const std::string &help, std::string deflt="", char cmdshort=0, int Group=GRP_NOSHOW)
double GetUserTime() const
return user time (=system usage time) in msec JW For Win32: user-time is the sum over all processes o...
class TimeMeasure contains functions for timing real time and cpu time.