@Namespace(value="cv::quality") @NoOffset @Properties(inherit=opencv_quality.class) public class QualityBRISQUE extends QualityBase
BRISQUE computes a score based on extracting Natural Scene Statistics (https://en.wikipedia.org/wiki/Scene_statistics) and calculating feature vectors. See Mittal et al. \cite Mittal2 for original paper and original implementation \cite Mittal2_software .
A trained model is provided in the /samples/ directory and is trained on the LIVE-R2 database \cite Sheikh as in the original implementation. When evaluated against the TID2008 database \cite Ponomarenko , the SROCC is -0.8424 versus the SROCC of -0.8354 in the original implementation. C++ code for the BRISQUE LIVE-R2 trainer and TID2008 evaluator are also provided in the /samples/ directory.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
QualityBRISQUE(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Scalar |
compute(GpuMat img) |
static Scalar |
compute(GpuMat img,
BytePointer model_file_path,
BytePointer range_file_path) |
static Scalar |
compute(GpuMat img,
String model_file_path,
String range_file_path) |
Scalar |
compute(Mat img)
\brief Computes BRISQUE quality score for input image
|
static Scalar |
compute(Mat img,
BytePointer model_file_path,
BytePointer range_file_path)
\brief static method for computing quality
|
static Scalar |
compute(Mat img,
String model_file_path,
String range_file_path) |
Scalar |
compute(UMat img) |
static Scalar |
compute(UMat img,
BytePointer model_file_path,
BytePointer range_file_path) |
static Scalar |
compute(UMat img,
String model_file_path,
String range_file_path) |
static void |
computeFeatures(GpuMat img,
GpuMat features) |
static void |
computeFeatures(Mat img,
Mat features)
\brief static method for computing image features used by the BRISQUE algorithm
|
static void |
computeFeatures(UMat img,
UMat features) |
static QualityBRISQUE |
create(BytePointer model_file_path,
BytePointer range_file_path)
\brief Create an object which calculates quality
|
static QualityBRISQUE |
create(String model_file_path,
String range_file_path) |
static QualityBRISQUE |
create(SVM model,
Mat range)
\brief Create an object which calculates quality
|
clear, empty, 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 QualityBRISQUE(Pointer p)
Pointer.Pointer(Pointer)
.@ByVal public Scalar compute(@ByVal Mat img)
compute
in class QualityBase
img
- Image for which to compute quality@opencv_core.Ptr public static QualityBRISQUE create(@opencv_core.Str BytePointer model_file_path, @opencv_core.Str BytePointer range_file_path)
model_file_path
- cv::String which contains a path to the BRISQUE model data, eg. /path/to/brisque_model_live.ymlrange_file_path
- cv::String which contains a path to the BRISQUE range data, eg. /path/to/brisque_range_live.yml@opencv_core.Ptr public static QualityBRISQUE create(@opencv_core.Str String model_file_path, @opencv_core.Str String range_file_path)
@opencv_core.Ptr public static QualityBRISQUE create(@opencv_core.Ptr SVM model, @Const @ByRef Mat range)
model
- cv::Ptrrange
- cv::Mat which contains BRISQUE range data@ByVal public static Scalar compute(@ByVal Mat img, @opencv_core.Str BytePointer model_file_path, @opencv_core.Str BytePointer range_file_path)
img
- image for which to compute qualitymodel_file_path
- cv::String which contains a path to the BRISQUE model data, eg. /path/to/brisque_model_live.ymlrange_file_path
- cv::String which contains a path to the BRISQUE range data, eg. /path/to/brisque_range_live.yml@ByVal public static Scalar compute(@ByVal Mat img, @opencv_core.Str String model_file_path, @opencv_core.Str String range_file_path)
@ByVal public static Scalar compute(@ByVal UMat img, @opencv_core.Str String model_file_path, @opencv_core.Str String range_file_path)
@ByVal public static Scalar compute(@ByVal UMat img, @opencv_core.Str BytePointer model_file_path, @opencv_core.Str BytePointer range_file_path)
@ByVal public static Scalar compute(@ByVal GpuMat img, @opencv_core.Str BytePointer model_file_path, @opencv_core.Str BytePointer range_file_path)
@ByVal public static Scalar compute(@ByVal GpuMat img, @opencv_core.Str String model_file_path, @opencv_core.Str String range_file_path)
public static void computeFeatures(@ByVal Mat img, @ByVal Mat features)
img
- image (BGR(A) or grayscale) for which to compute featuresfeatures
- output row vector of features to cv::Mat or cv::UMatCopyright © 2020. All rights reserved.