@Namespace(value="cv::detail") @Properties(inherit=opencv_stitching.class) public class Blender extends Pointer
/** \brief Base class for all blenders.
Simple blender which puts one image over another
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
FEATHER
enum cv::detail::Blender::
|
static int |
MULTI_BAND
enum cv::detail::Blender::
|
static int |
NO
enum cv::detail::Blender::
|
Constructor and Description |
---|
Blender()
Default native constructor.
|
Blender(long size)
Native array allocator.
|
Blender(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
blend(GpuMat dst,
GpuMat dst_mask) |
void |
blend(Mat dst,
Mat dst_mask)
\brief Blends and returns the final pano.
|
void |
blend(UMat dst,
UMat dst_mask) |
static Blender |
createDefault(int type) |
static Blender |
createDefault(int type,
boolean try_gpu) |
void |
feed(GpuMat img,
GpuMat mask,
Point tl) |
void |
feed(Mat img,
Mat mask,
Point tl)
\brief Processes the image.
|
void |
feed(UMat img,
UMat mask,
Point tl) |
Blender |
position(long position) |
void |
prepare(PointVector corners,
SizeVector sizes)
\brief Prepares the blender for blending.
|
void |
prepare(Rect dst_roi)
\overload
|
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 int NO
public static final int FEATHER
public static final int MULTI_BAND
public Blender()
public Blender(long size)
Pointer.position(long)
.public Blender(Pointer p)
Pointer.Pointer(Pointer)
.@opencv_core.Ptr public static Blender createDefault(int type, @Cast(value="bool") boolean try_gpu)
@opencv_core.Ptr public static Blender createDefault(int type)
public void prepare(@Const @ByRef PointVector corners, @Const @ByRef SizeVector sizes)
corners
- Source images top-left cornerssizes
- Source image sizespublic void feed(@ByVal Mat img, @ByVal Mat mask, @ByVal Point tl)
img
- Source imagemask
- Source image masktl
- Source image top-left cornerspublic void blend(@ByVal Mat dst, @ByVal Mat dst_mask)
dst
- Final panodst_mask
- Final pano maskCopyright © 2020. All rights reserved.