73#pragma omp parallel for schedule(dynamic)
78 vigra::Rect2D c=vigra::Rect2D(img.getSize());
83 unsigned int frequency=std::min<unsigned int>(
steps,std::min<unsigned int>(c.width(),c.height()));
97 vigra::Point2D p(
xc,
yc);
174 for (UIntSet::const_iterator
it = img.begin();
it != img.end(); ++
it)
definitions of classes to calculate overlap between different images
std::vector< PTools::Transform * > m_transform
virtual ~CalculateImageOverlap()
destructor
double getOverlap(unsigned int i, unsigned int j) const
returns the overlap for 2 images with number i and j
std::vector< std::vector< double > > m_overlap
void calculate(unsigned int steps)
does the calculation, for each image steps*steps points are extracted and tested with all other image...
CalculateImageOverlap(const PanoramaData *pano)
constructor
const PanoramaData * m_pano
UIntSet getOverlapForImage(unsigned int i) const
returns a set of images which overlap with given image number
std::vector< PTools::Transform * > m_invTransform
std::vector< unsigned int > m_testImages
void limitToImages(UIntSet img)
limits the calculation of the overlap to given image numbers
virtual const PanoramaOptions & getOptions() const =0
returns the options for this panorama
virtual const SrcPanoImage & getImage(std::size_t nr) const =0
get a panorama image, counting starts with 0
virtual std::size_t getNrOfImages() const =0
number of images.
All variables of a source image.
bool isInside(vigra::Point2D p, bool ignoreMasks=false) const
check if a coordinate is inside the source image
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
std::set< unsigned int > UIntSet
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.