From 40d11892750681c518678472f6e635a46373084d Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sun, 6 Jan 2019 22:37:15 +0000 Subject: [PATCH] Add quality metrics units --- lib/CalypFrame.cpp | 9 +++++++++ lib/CalypFrame.h | 1 + 2 files changed, 10 insertions(+) diff --git a/lib/CalypFrame.cpp b/lib/CalypFrame.cpp index e55d452..6024c2e 100644 --- a/lib/CalypFrame.cpp +++ b/lib/CalypFrame.cpp @@ -1154,6 +1154,15 @@ std::vector CalypFrame::supportedQualityMetricsList() }; } +std::vector CalypFrame::supportedQualityMetricsUnitsList() +{ + return std::vector{ + "dB", + "", + "", + }; +} + double CalypFrame::getQuality( int Metric, CalypFrame* Org, unsigned int component ) { if( component >= getNumberChannels() ) diff --git a/lib/CalypFrame.h b/lib/CalypFrame.h index 3dc65ed..c9ff227 100644 --- a/lib/CalypFrame.h +++ b/lib/CalypFrame.h @@ -357,6 +357,7 @@ public: }; static std::vector supportedQualityMetricsList(); + static std::vector supportedQualityMetricsUnitsList(); double getQuality( int Metric, CalypFrame* Org, unsigned int component ); double getMSE( CalypFrame* Org, unsigned int component ); double getPSNR( CalypFrame* Org, unsigned int component );