@Namespace(value="cv::quality") @NoOffset @Properties(inherit=opencv_quality.class) public class QualityPSNR extends QualityBase
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static double |
MAX_PIXEL_VALUE_DEFAULT |
Constructor and Description |
---|
QualityPSNR(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
\brief Implements Algorithm::clear()
|
Scalar |
compute(GpuMat cmp) |
static Scalar |
compute(GpuMat ref,
GpuMat cmp,
GpuMat qualityMap) |
static Scalar |
compute(GpuMat ref,
GpuMat cmp,
GpuMat qualityMap,
double maxPixelValue) |
Scalar |
compute(Mat cmp)
\brief Compute the PSNR
|
static Scalar |
compute(Mat ref,
Mat cmp,
Mat qualityMap) |
static Scalar |
compute(Mat ref,
Mat cmp,
Mat qualityMap,
double maxPixelValue)
\brief static method for computing quality
|
Scalar |
compute(UMat cmp) |
static Scalar |
compute(UMat ref,
UMat cmp,
UMat qualityMap) |
static Scalar |
compute(UMat ref,
UMat cmp,
UMat qualityMap,
double maxPixelValue) |
static QualityPSNR |
create(GpuMat ref) |
static QualityPSNR |
create(GpuMat ref,
double maxPixelValue) |
static QualityPSNR |
create(Mat ref) |
static QualityPSNR |
create(Mat ref,
double maxPixelValue)
\brief Create an object which calculates quality
|
static QualityPSNR |
create(UMat ref) |
static QualityPSNR |
create(UMat ref,
double maxPixelValue) |
boolean |
empty()
\brief Implements Algorithm::empty()
|
double |
getMaxPixelValue()
\brief return the maximum pixel value used for PSNR computation
|
static double |
MAX_PIXEL_VALUE_DEFAULT()
\brief Default maximum pixel value
|
void |
setMaxPixelValue(double val)
\brief sets the maximum pixel value used for PSNR computation
|
getQualityMap, getQualityMap, getQualityMap
getDefaultName, position, read, save, save, write, write, write
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 QualityPSNR(Pointer p)
Pointer.Pointer(Pointer)
.@MemberGetter public static double MAX_PIXEL_VALUE_DEFAULT()
@opencv_core.Ptr public static QualityPSNR create(@ByVal Mat ref, double maxPixelValue)
ref
- input image to use as the source for comparisonmaxPixelValue
- maximum per-channel value for any individual pixel; eg 255 for uint8 image@opencv_core.Ptr public static QualityPSNR create(@ByVal Mat ref)
@opencv_core.Ptr public static QualityPSNR create(@ByVal UMat ref, double maxPixelValue)
@opencv_core.Ptr public static QualityPSNR create(@ByVal UMat ref)
@opencv_core.Ptr public static QualityPSNR create(@ByVal GpuMat ref, double maxPixelValue)
@opencv_core.Ptr public static QualityPSNR create(@ByVal GpuMat ref)
@ByVal public Scalar compute(@ByVal Mat cmp)
compute
in class QualityBase
cmp
- Comparison image@Cast(value="bool") public boolean empty()
empty
in class QualityBase
public void clear()
clear
in class QualityBase
@ByVal public static Scalar compute(@ByVal Mat ref, @ByVal Mat cmp, @ByVal Mat qualityMap, double maxPixelValue)
ref
- reference imagecmp
- comparison imagequalityMap
- output quality map, or cv::noArray()maxPixelValue
- maximum per-channel value for any individual pixel; eg 255 for uint8 image@ByVal public static Scalar compute(@ByVal UMat ref, @ByVal UMat cmp, @ByVal UMat qualityMap, double maxPixelValue)
@ByVal public static Scalar compute(@ByVal UMat ref, @ByVal UMat cmp, @ByVal UMat qualityMap)
@ByVal public static Scalar compute(@ByVal GpuMat ref, @ByVal GpuMat cmp, @ByVal GpuMat qualityMap, double maxPixelValue)
@ByVal public static Scalar compute(@ByVal GpuMat ref, @ByVal GpuMat cmp, @ByVal GpuMat qualityMap)
public double getMaxPixelValue()
public void setMaxPixelValue(double val)
val
- Maximum pixel valueCopyright © 2020. All rights reserved.