68 catch(std::bad_alloc&)
111 for(UIntSet::const_iterator
it=stack.begin();
it!=stack.end();++
it)
152 for (
unsigned s=0;
s <
stacks.size();
s++)
332#ifdef PRINT_DEBUG_VALUES
352#ifdef PRINT_DEBUG_VALUES
362#ifdef PRINT_DEBUG_VALUES
390 return vigra::Rect2D();
404 opts.
setROI(vigra::Rect2D(vigra::Point2D(0, 0), opts.
getSize()));
declaration of functions to handle stacks and layers
virtual vigra::Rect2D getResultOptimalROI()
returns the found crop rect
bool CalcOutsideCrop(PanoramaData &pano, AppBase::ProgressDisplay *progress)
the main crop finding algorithm
std::map< unsigned int, PTools::Transform * > transfMap
bool calcOptimalROI(PanoramaData &panorama)
vigra::Size2D o_optimalSize
bool CheckRectCoversPano(const vigra::Rect2D &rect)
check if given rect covers the whole pano
void setStacks(std::vector< UIntSet > hdr_stacks)
sets the stack vector
std::vector< bool > pixels
void AddCheckingRects(std::list< vigra::Rect2D > &testingRects, const vigra::Rect2D &rect, const long maxvalue)
add new rect to list of rects to be check, do some checks before
std::vector< bool > testedPixels
void nonreccheck(const vigra::Rect2D &rect, int acc, int searchStrategy, long &maxvalue)
bool stackPixel(int i, int j, UIntSet &stack)
bool imgPixel(int i, int j)
std::vector< UIntSet > stacks
virtual bool hasRunSuccessfully()
PanoramaData & o_panorama
virtual const PanoramaOptions & getOptions() const =0
returns the options for this panorama
virtual UIntSet getActiveImages() const =0
get active images
virtual const SrcPanoImage & getImage(std::size_t nr) const =0
get a panorama image, counting starts with 0
void setROI(const vigra::Rect2D &val)
vigra::Size2D getSize() const
get size of output image
All variables of a source image.
bool isInside(vigra::Point2D p, bool ignoreMasks=false) const
check if a coordinate is inside the source image
virtual AppBase::ProgressDisplay * getProgressDisplay() const
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
vigra::Rect2D estimateOutputROI(const PanoramaData &pano, const PanoramaOptions &opts, unsigned i, const double maxLength)
vigra::Rect2D ModifyRect(const vigra::Rect2D &rect, long deltaLeft, long deltaTop, long deltaRight, long deltaBottom)
UIntSet getImagesinROI(const PanoramaData &pano, const UIntSet activeImages)
returns set of images which are visible in output ROI
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.