42template <
class TRANSFORM>
47 vigra::BImage & alpha,
86 radius2 = std::min(
src.getCropRect().width()/2.0,
src.getCropRect().height()/2.0);
97 transf.transformImgCoord(
sx,
sy, x/scale, y/scale);
133 alpha.resize(img.size());
137 vigra::discDilation(vigra::srcImageRange(img),
138 vigra::destImage(alpha), 1);
173 img.upperLeft()+
destRect.lowerRight(),
189 lr.x = (
lr.x+1)/scale;
190 lr.y = (
lr.y+1)/scale;
206template <
class TRANSFORM>
229 std::vector<vigra::Rect2D> res;
230 for (UIntSet::const_iterator
it = images.begin();
231 it != images.end(); ++
it)
Contains functions to transform whole images.
static std::vector< vigra::Rect2D > computeROIS(const PanoramaData &panorama, const PanoramaOptions &opts, const UIntSet &images)
virtual SrcPanoImage getSrcImage(unsigned imgNr) const =0
get a complete description of a source image
All variables of a source image.
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
void estimateImageRect(const SrcPanoImage &src, const PanoramaOptions &dest, TRANSFORM &transf, vigra::Rect2D &imgRect, double maxLength=180.0)
calculate the outline of the image
void estimateImageAlpha(const SrcPanoImage &src, const PanoramaOptions &dest, TRANSFORM &transf, vigra::Rect2D &imgRect, vigra::BImage &alpha, double &scale, double maxLength=180.0)
calculate the outline of the image
vigra::Rect2D estimateOutputROI(const PanoramaData &pano, const PanoramaOptions &opts, unsigned i, const double maxLength)
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.