APImage Class Reference

#include <APImage.h>

List of all members.

Public Member Functions

 APImage (string p)
void convolute (int *kernel, int dim1, int dim2, double scale)
string getPath ()
int getWidth ()
int getWidthBW ()
int getHeight ()
int getHeightBW ()
int getPixel (int x, int y)
int getIntegralPixel (int x, int y)
void scale (double factor)
APImagegetCopy ()
void drawCircle (int x, int y, int radius)
void drawLine (int x1, int y1, int x2, int y2)
void drawRectangle (int x, int y, int radius)
void smooth ()
void integrate ()
 Calculates the integral image.
int getRegionSum (int x1, int y1, int x2, int y2)
bool open ()
void show ()
void test ()
template<class SrcIterator, class SrcAccessor, class BackInsertable>
void _cannyEdgelList1 (vigra::triple< SrcIterator, SrcIterator, SrcAccessor > src, BackInsertable &edgels, double scale, vector< int > *p)

Public Attributes

vigra::BImage * imgBW

Private Member Functions

int _getValue4Integral (int x, int y)
template<class SrcIterator, class SrcAccessor, class BackInsertable>
void _cannyEdgelList (SrcIterator ul, SrcIterator lr, SrcAccessor src, BackInsertable &edgels, double scale, vector< int > *point)
template<class Image1, class Image2, class BackInsertable>
void _internalCannyFindEdgels (Image1 const &gx, Image1 const &gy, Image2 const &magnitude, BackInsertable &edgels, vector< int > *p)

Private Attributes

vector< vector< int > > convolution
 Holds the convolution of the image.
vector< vector< int > > integral
 Holds the values of the integral image.
string path


Constructor & Destructor Documentation

APImage::APImage string  p  ) 
 

Definition at line 28 of file APImage.cpp.

References path.

Referenced by getCopy().


Member Function Documentation

template<class SrcIterator, class SrcAccessor, class BackInsertable>
void APImage::_cannyEdgelList SrcIterator  ul,
SrcIterator  lr,
SrcAccessor  src,
BackInsertable &  edgels,
double  scale,
vector< int > *  point
[inline, private]
 

Definition at line 307 of file APImage.cpp.

References vigra_ext::destImage(), vigra::internalCannyFindEdgels(), vigra_ext::srcImage(), and vigra_ext::srcImageRange().

Referenced by _cannyEdgelList1().

template<class SrcIterator, class SrcAccessor, class BackInsertable>
void APImage::_cannyEdgelList1 vigra::triple< SrcIterator, SrcIterator, SrcAccessor >  src,
BackInsertable &  edgels,
double  scale,
vector< int > *  p
 

Definition at line 300 of file APImage.cpp.

References _cannyEdgelList().

int APImage::_getValue4Integral int  x,
int  y
[private]
 

Definition at line 272 of file APImage.cpp.

References integral.

Referenced by integrate().

template<class Image1, class Image2, class BackInsertable>
void APImage::_internalCannyFindEdgels Image1 const &  gx,
Image1 const &  gy,
Image2 const &  magnitude,
BackInsertable &  edgels,
vector< int > *  p
[private]
 

Definition at line 340 of file APImage.cpp.

References M_PI, vigra::Edgel::orientation, vigra::Edgel::strength, vigra::Edgel::x, and vigra::Edgel::y.

void APImage::convolute int *  kernel,
int  dim1,
int  dim2,
double  scale
 

Definition at line 103 of file APImage.cpp.

void APImage::drawCircle int  x,
int  y,
int  radius
 

Definition at line 203 of file APImage.cpp.

Referenced by main(), and HessianDetector::printPoints().

void APImage::drawLine int  x1,
int  y1,
int  x2,
int  y2
 

Definition at line 226 of file APImage.cpp.

void APImage::drawRectangle int  x,
int  y,
int  radius
 

Definition at line 222 of file APImage.cpp.

APImage * APImage::getCopy  ) 
 

Definition at line 177 of file APImage.cpp.

References APImage().

int APImage::getHeight  ) 
 

Definition at line 171 of file APImage.cpp.

References imgBW.

Referenced by HessianDetector::_slidingWDetect(), and Descriptor::generateAutopanoXML().

int APImage::getHeightBW  ) 
 

Definition at line 174 of file APImage.cpp.

References imgBW.

Referenced by HessianDetector::_boxFilterDetect(), HessianDetector::_slidingWDetect(), Descriptor::createDescriptors(), getRegionSum(), HessianDetector::HessianDetector(), and integrate().

int APImage::getIntegralPixel int  x,
int  y
 

Definition at line 276 of file APImage.cpp.

References integral.

string APImage::getPath  ) 
 

Definition at line 290 of file APImage.cpp.

Referenced by Descriptor::generateAutopanoXML().

int APImage::getPixel int  x,
int  y
 

Definition at line 156 of file APImage.cpp.

References imgBW.

Referenced by Descriptor::_GaborResponse(), HessianDetector::_slidingWDetect(), and integrate().

int APImage::getRegionSum int  x1,
int  y1,
int  x2,
int  y2
 

Definition at line 279 of file APImage.cpp.

References getHeightBW(), getWidthBW(), and integral.

Referenced by HessianDetector::_convolutePixel().

int APImage::getWidth  ) 
 

Definition at line 165 of file APImage.cpp.

References imgBW.

Referenced by HessianDetector::_slidingWDetect(), and Descriptor::generateAutopanoXML().

int APImage::getWidthBW  ) 
 

Definition at line 168 of file APImage.cpp.

References imgBW.

Referenced by HessianDetector::_boxFilterDetect(), HessianDetector::_slidingWDetect(), Descriptor::createDescriptors(), getRegionSum(), HessianDetector::HessianDetector(), and integrate().

void APImage::integrate  ) 
 

Calculates the integral image.

Definition at line 240 of file APImage.cpp.

References _getValue4Integral(), getHeightBW(), getPixel(), getWidthBW(), and integral.

Referenced by main().

bool APImage::open  ) 
 

Definition at line 32 of file APImage.cpp.

References vigra_ext::destImage(), imgBW, celeste::info(), and hugin_utils::round().

Referenced by main().

void APImage::scale double  factor  ) 
 

Definition at line 180 of file APImage.cpp.

Referenced by HessianDetector::_slidingWDetect().

void APImage::show  ) 
 

Definition at line 187 of file APImage.cpp.

References cout, and vigra_ext::srcImageRange().

Referenced by main(), and HessianDetector::printPoints().

void APImage::smooth  ) 
 

Definition at line 234 of file APImage.cpp.

void APImage::test  ) 
 

Definition at line 402 of file APImage.cpp.


Member Data Documentation

vector<vector<int> > APImage::convolution [private]
 

Holds the convolution of the image.

Definition at line 97 of file APImage.h.

vigra::BImage* APImage::imgBW
 

Definition at line 87 of file APImage.h.

Referenced by Descriptor::createDescriptors(), getHeight(), getHeightBW(), getPixel(), getWidth(), getWidthBW(), and open().

vector<vector<int> > APImage::integral [private]
 

Holds the values of the integral image.

Definition at line 101 of file APImage.h.

Referenced by _getValue4Integral(), getIntegralPixel(), getRegionSum(), and integrate().

string APImage::path [private]
 

Definition at line 102 of file APImage.h.

Referenced by APImage().


The documentation for this class was generated from the following files:
Generated on Mon Sep 9 01:25:47 2013 for Hugintrunk by  doxygen 1.3.9.1