Skip to content

BRISQUE: empty don't works as expected  #2548

Open
@Nuzhny007

Description

@Nuzhny007
System information (version)
  • OpenCV => 4.3
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Visual Studio 2017
Detailed description

When I create QualityBRISQUE with wrong path to the range file the QualityBRISQUE::create returns a valid pointer. Ho can I check that all data was loaded correctly? I call QualityBase::empty - but it always returns true: https://github.com/opencv/opencv_contrib/blob/master/modules/quality/include/opencv2/quality/qualitybase.hpp#L49

May be it can add overloaded method empty to the QualityBRISQUE? And if model or range was not loaded correctly than it will return true:
CV_WRAP bool empty() const CV_OVERRIDE { return _range.empty() || _model.empty(); }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions