29 #include <vigra/copyimage.hxx>
41 vigra::Size2D panoSize(360*2,180*2);
52 vigra::BImage panoAlpha(panoSize.x, panoSize.y,static_cast< unsigned char >(0));
56 for (UIntSet::iterator it = activeImgs.begin(); it != activeImgs.end(); ++it) {
80 for (
int v=0; v< panoSize.y; v++) {
81 for (
int h=0;
h < panoSize.x;
h++) {
vigra::triple< ImgIter, ImgIter, ImgAcc > applyRect(vigra::Rect2D &r, vigra::triple< ImgIter, ImgIter, ImgAcc > img)
apply a roi to an image area
void setHeight(unsigned int h)
set panorama height
void setPanoImage(const SrcPanoImage &src, const PanoramaOptions &dest, vigra::Rect2D roi)
void copyImageIf(SrcImageIterator src_upperleft, SrcImageIterator src_lowerright, SrcAccessor src_acc, MaskImageIterator mask_upperleft, MaskAccessor mask_acc, DestImageIterator dest_upperleft, DestAccessor dest_acc)
static hugin_utils::FDiff2D calcFOV(const PanoramaData &panorama)
Contains functions to transform whole images.
std::set< unsigned int > UIntSet
vigra::Rect2D & boundingBox()
virtual UIntSet getActiveImages() const =0
get active images
virtual const PanoramaOptions & getOptions() const =0
returns the options for this panorama
TDiff2D< double > FDiff2D
vigra::pair< typename ROIImage< Image, Alpha >::image_traverser, typename ROIImage< Image, Alpha >::ImageAccessor > destImage(ROIImage< Image, Alpha > &img)
void setHFOV(double h, bool keepView=true)
set the horizontal field of view.
vigra::triple< typename ROIImage< Image, Alpha >::mask_const_traverser, typename ROIImage< Image, Alpha >::mask_const_traverser, typename ROIImage< Image, Alpha >::MaskConstAccessor > srcMaskRange(const ROIImage< Image, Alpha > &img)
vigra::pair< typename ROIImage< Image, Alpha >::mask_const_traverser, typename ROIImage< Image, Alpha >::MaskConstAccessor > srcMask(const ROIImage< Image, Alpha > &img)
void calcAlpha()
calculate only the alpha channel.
virtual SrcPanoImage getSrcImage(unsigned imgNr) const =0
get a complete description of a source image
virtual std::size_t getNrOfImages() const =0
number of images.
void setProjection(ProjectionFormat f)
set the Projection format and adjust the hfov/vfov if nessecary
struct to hold a image state for stitching
void setWidth(unsigned int w, bool keepView=true)
set panorama width keep the HFOV, if keepView=true