@Namespace(value="cv") @Properties(inherit=opencv_stitching.class) public class Stitcher extends Pointer
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.
\note - A basic example on image stitching can be found at opencv_source_code/samples/cpp/stitching.cpp - A basic example on image stitching in Python can be found at opencv_source_code/samples/python/stitching.py - A detailed example on image stitching can be found at opencv_source_code/samples/cpp/stitching_detailed.cpp
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
ERR_CAMERA_PARAMS_ADJUST_FAIL
enum cv::Stitcher::Status
|
static int |
ERR_HOMOGRAPHY_EST_FAIL
enum cv::Stitcher::Status
|
static int |
ERR_NEED_MORE_IMGS
enum cv::Stitcher::Status
|
static int |
OK
enum cv::Stitcher::Status
|
static double |
ORIG_RESOL |
static int |
PANORAMA
enum cv::Stitcher::Mode
|
static int |
SCANS
enum cv::Stitcher::Mode
|
Constructor and Description |
---|
Stitcher()
Default native constructor.
|
Stitcher(long size)
Native array allocator.
|
Stitcher(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Blender |
blender() |
BundleAdjusterBase |
bundleAdjuster() |
CameraParams |
cameras() |
IntPointer |
component() |
int |
composePanorama(GpuMat pano) |
int |
composePanorama(GpuMatVector images,
GpuMat pano) |
int |
composePanorama(GpuMatVector images,
Mat pano) |
int |
composePanorama(GpuMatVector images,
UMat pano) |
int |
composePanorama(Mat pano)
\overload
|
int |
composePanorama(MatVector images,
GpuMat pano) |
int |
composePanorama(MatVector images,
Mat pano)
\brief 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.
|
int |
composePanorama(MatVector images,
UMat pano) |
int |
composePanorama(UMat pano) |
int |
composePanorama(UMatVector images,
GpuMat pano) |
int |
composePanorama(UMatVector images,
Mat pano) |
int |
composePanorama(UMatVector images,
UMat pano) |
double |
compositingResol() |
static Stitcher |
create() |
static Stitcher |
create(int mode)
\brief Creates a Stitcher configured in one of the stitching modes.
|
int |
estimateTransform(GpuMatVector images) |
int |
estimateTransform(GpuMatVector images,
GpuMatVector masks) |
int |
estimateTransform(MatVector images) |
int |
estimateTransform(MatVector images,
MatVector masks)
\brief These functions try to match the given images and to estimate rotations of each camera.
|
int |
estimateTransform(UMatVector images) |
int |
estimateTransform(UMatVector images,
UMatVector masks) |
Estimator |
estimator() |
ExposureCompensator |
exposureCompensator() |
Feature2D |
featuresFinder() |
FeaturesMatcher |
featuresMatcher() |
int |
interpolationFlags() |
UMat |
matchingMask() |
static double |
ORIG_RESOL()
When setting a resolution for stitching, this values is a placeholder
for preserving the original resolution.
|
double |
panoConfidenceThresh() |
Stitcher |
position(long position) |
double |
registrationResol() |
UMat |
resultMask() |
double |
seamEstimationResol() |
SeamFinder |
seamFinder() |
void |
setBlender(Blender b) |
void |
setBundleAdjuster(BundleAdjusterBase bundle_adjuster) |
void |
setCompositingResol(double resol_mpx) |
void |
setEstimator(Estimator estimator) |
void |
setExposureCompensator(ExposureCompensator exposure_comp) |
void |
setFeaturesFinder(Feature2D features_finder) |
void |
setFeaturesMatcher(FeaturesMatcher features_matcher) |
void |
setInterpolationFlags(int interp_flags) |
void |
setMatchingMask(UMat mask) |
void |
setPanoConfidenceThresh(double conf_thresh) |
void |
setRegistrationResol(double resol_mpx) |
void |
setSeamEstimationResol(double resol_mpx) |
void |
setSeamFinder(SeamFinder seam_finder) |
void |
setWarper(WarperCreator creator) |
void |
setWaveCorrection(boolean flag) |
void |
setWaveCorrectKind(int kind) |
int |
stitch(GpuMatVector images,
GpuMat pano) |
int |
stitch(GpuMatVector images,
GpuMatVector masks,
GpuMat pano) |
int |
stitch(GpuMatVector images,
GpuMatVector masks,
Mat pano) |
int |
stitch(GpuMatVector images,
GpuMatVector masks,
UMat pano) |
int |
stitch(GpuMatVector images,
Mat pano) |
int |
stitch(GpuMatVector images,
UMat pano) |
int |
stitch(MatVector images,
GpuMat pano) |
int |
stitch(MatVector images,
Mat pano)
\overload
|
int |
stitch(MatVector images,
MatVector masks,
GpuMat pano) |
int |
stitch(MatVector images,
MatVector masks,
Mat pano)
\brief These functions try to stitch the given images.
|
int |
stitch(MatVector images,
MatVector masks,
UMat pano) |
int |
stitch(MatVector images,
UMat pano) |
int |
stitch(UMatVector images,
GpuMat pano) |
int |
stitch(UMatVector images,
Mat pano) |
int |
stitch(UMatVector images,
UMat pano) |
int |
stitch(UMatVector images,
UMatVector masks,
GpuMat pano) |
int |
stitch(UMatVector images,
UMatVector masks,
Mat pano) |
int |
stitch(UMatVector images,
UMatVector masks,
UMat pano) |
WarperCreator |
warper() |
boolean |
waveCorrection() |
int |
waveCorrectKind() |
double |
workScale() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public static final double ORIG_RESOL
public static final int OK
public static final int ERR_NEED_MORE_IMGS
public static final int ERR_HOMOGRAPHY_EST_FAIL
public static final int ERR_CAMERA_PARAMS_ADJUST_FAIL
public static final int PANORAMA
public static final int SCANS
public Stitcher()
public Stitcher(long size)
Pointer.position(long)
.public Stitcher(Pointer p)
Pointer.Pointer(Pointer)
.@MemberGetter public static double ORIG_RESOL()
@opencv_core.Ptr public static Stitcher create(@Cast(value="cv::Stitcher::Mode") int mode)
mode
- Scenario for stitcher operation. This is usually determined by source of images
to stitch and their transformation. Default parameters will be chosen for operation in given
scenario.@opencv_core.Ptr public static Stitcher create()
public double registrationResol()
public void setRegistrationResol(double resol_mpx)
public double seamEstimationResol()
public void setSeamEstimationResol(double resol_mpx)
public double compositingResol()
public void setCompositingResol(double resol_mpx)
public double panoConfidenceThresh()
public void setPanoConfidenceThresh(double conf_thresh)
public void setInterpolationFlags(@Cast(value="cv::InterpolationFlags") int interp_flags)
public void setWaveCorrectKind(@Cast(value="cv::detail::WaveCorrectKind") int kind)
@opencv_core.Ptr public Feature2D featuresFinder()
public void setFeaturesFinder(@opencv_core.Ptr Feature2D features_finder)
@opencv_core.Ptr public FeaturesMatcher featuresMatcher()
public void setFeaturesMatcher(@opencv_core.Ptr FeaturesMatcher features_matcher)
@opencv_core.Ptr public BundleAdjusterBase bundleAdjuster()
public void setBundleAdjuster(@opencv_core.Ptr BundleAdjusterBase bundle_adjuster)
@opencv_core.Ptr public Estimator estimator()
public void setEstimator(@opencv_core.Ptr Estimator estimator)
@opencv_core.Ptr public WarperCreator warper()
public void setWarper(@opencv_core.Ptr WarperCreator creator)
@opencv_core.Ptr public ExposureCompensator exposureCompensator()
public void setExposureCompensator(@opencv_core.Ptr ExposureCompensator exposure_comp)
@opencv_core.Ptr public SeamFinder seamFinder()
public void setSeamFinder(@opencv_core.Ptr SeamFinder seam_finder)
@opencv_core.Ptr public Blender blender()
public void setBlender(@opencv_core.Ptr Blender b)
@Cast(value="cv::Stitcher::Status") public int estimateTransform(@ByVal MatVector images, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") MatVector masks)
\note Use the functions only if you're aware of the stitching pipeline, otherwise use Stitcher::stitch.
images
- Input images.masks
- Masks for each input image specifying where to look for keypoints (optional).@Cast(value="cv::Stitcher::Status") public int estimateTransform(@ByVal MatVector images)
@Cast(value="cv::Stitcher::Status") public int estimateTransform(@ByVal UMatVector images, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") UMatVector masks)
@Cast(value="cv::Stitcher::Status") public int estimateTransform(@ByVal UMatVector images)
@Cast(value="cv::Stitcher::Status") public int estimateTransform(@ByVal GpuMatVector images, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") GpuMatVector masks)
@Cast(value="cv::Stitcher::Status") public int estimateTransform(@ByVal GpuMatVector images)
@Cast(value="cv::Stitcher::Status") public int composePanorama(@ByVal Mat pano)
@Cast(value="cv::Stitcher::Status") public int composePanorama(@ByVal MatVector images, @ByVal Mat pano)
\note Use the functions only if you're aware of the stitching pipeline, otherwise use Stitcher::stitch.
images
- Input images.pano
- Final pano.@Cast(value="cv::Stitcher::Status") public int composePanorama(@ByVal UMatVector images, @ByVal Mat pano)
@Cast(value="cv::Stitcher::Status") public int composePanorama(@ByVal GpuMatVector images, @ByVal Mat pano)
@Cast(value="cv::Stitcher::Status") public int composePanorama(@ByVal MatVector images, @ByVal UMat pano)
@Cast(value="cv::Stitcher::Status") public int composePanorama(@ByVal UMatVector images, @ByVal UMat pano)
@Cast(value="cv::Stitcher::Status") public int composePanorama(@ByVal GpuMatVector images, @ByVal UMat pano)
@Cast(value="cv::Stitcher::Status") public int composePanorama(@ByVal MatVector images, @ByVal GpuMat pano)
@Cast(value="cv::Stitcher::Status") public int composePanorama(@ByVal UMatVector images, @ByVal GpuMat pano)
@Cast(value="cv::Stitcher::Status") public int composePanorama(@ByVal GpuMatVector images, @ByVal GpuMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal MatVector images, @ByVal Mat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal UMatVector images, @ByVal Mat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal GpuMatVector images, @ByVal Mat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal MatVector images, @ByVal UMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal UMatVector images, @ByVal UMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal GpuMatVector images, @ByVal UMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal MatVector images, @ByVal GpuMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal UMatVector images, @ByVal GpuMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal GpuMatVector images, @ByVal GpuMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal MatVector images, @ByVal MatVector masks, @ByVal Mat pano)
images
- Input images.masks
- Masks for each input image specifying where to look for keypoints (optional).pano
- Final pano.@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal UMatVector images, @ByVal UMatVector masks, @ByVal Mat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal GpuMatVector images, @ByVal GpuMatVector masks, @ByVal Mat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal MatVector images, @ByVal MatVector masks, @ByVal UMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal UMatVector images, @ByVal UMatVector masks, @ByVal UMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal GpuMatVector images, @ByVal GpuMatVector masks, @ByVal UMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal MatVector images, @ByVal MatVector masks, @ByVal GpuMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal UMatVector images, @ByVal UMatVector masks, @ByVal GpuMat pano)
@Cast(value="cv::Stitcher::Status") public int stitch(@ByVal GpuMatVector images, @ByVal GpuMatVector masks, @ByVal GpuMat pano)
@StdVector public IntPointer component()
@StdVector public CameraParams cameras()
public double workScale()
Copyright © 2020. All rights reserved.