Stitcher類

opencv中對於圖像拼接的類。class Stitcher

High level image stitcher. It’s possible to use this class without being aware of the entire stitching pipeline. However, to be able to achieve higher stitching stability and quality of the final images at least being familiar with the theory is recommended

基本介紹

  • 中文名:Stitcher類

opencv中對於圖像拼接等提供的現有的類。
函式有:
Stitcher::createDefault
Creates a stitcher with the default parameters.
  • C++:StitcherStitcher::createDefault(booltry_use_gpu=false)
Parameters:
try_use_gpu– Flag indicating whether GPU should be used whenever it’s possible.
Returns:
Stitcher class instance.
    Stitcher::composePanorama
    These functions try to compose the given images (or images stored internally from the other function calls) into the final pano under the assumption that the image transformations were estimated before.
    Note
    Use the functions only if you’re aware of the stitching pipeline, otherwise useStitcher::stitch().
    • C++:StatusStitcher::composePanorama(OutputArraypano)
    • C++:StatusStitcher::composePanorama(InputArrayimages, OutputArraypano)
    Parameters:
    Returns:
    Status code.
    • images– Input images.
    • pano– Final pano.
    Stitcher::stitch
    These functions try to stitch the given images.
    • C++:StatusStitcher::stitch(InputArrayimages, OutputArraypano)
    • C++:StatusStitcher::stitch(InputArrayimages, const std::vector<std::vector<Rect>>&rois, OutputArraypano)
    Parameters:
    Returns:
    Status code.
    • images– Input images.
    • rois– Region of interest rectangles.
    • pano– Final pano.
    WarperCreator
    • classWarperCreator
    Image warper factories base class.
    class WarperCreator{public: virtual ~WarperCreator() {} virtual Ptr<detail::RotationWarper> create(float scale) const = 0;};
    PlaneWarper
    • classPlaneWarper:publicWarperCreator
    Plane warper factory class.
    class PlaneWarper : public WarperCreator{public: Ptr<detail::RotationWarper> create(float scale) const { return new detail::PlaneWarper(scale); }};
    See also
    detail::PlaneWarper
    CylindricalWarper
    • classCylindricalWarper:publicWarperCreator
    Cylindrical warper factory class.
    class CylindricalWarper: public WarperCreator{public: Ptr<detail::RotationWarper> create(float scale) const { return new detail::CylindricalWarper(scale); }};
    See also
    detail::CylindricalWarper
    SphericalWarper
    • classSphericalWarper:publicWarperCreator
    Spherical warper factory class.
    class SphericalWarper: public WarperCreator{public: Ptr<detail::RotationWarper> create(float scale) const { return new detail::SphericalWarper(scale); }};

    相關詞條

    熱門詞條

    聯絡我們