Fix visual studio error

This commit is contained in:
jfmcarreira committed 2018-03-15 23:09:57 +00:00
1 parent b5d97c1831
commit 3a43289fa1
2 files changed
+8 -1

No files matched your search

+7 -1
View File
@@ -138,6 +138,12 @@ int CalypTools::Open( int argc, char* argv[] )
{
int iRet = 0;
// check requirements
if( CalypPixel::getMaxNumberOfComponents() > MAX_NUMBER_CHANNELS )
{
log( CLP_LOG_ERROR, "Cannot parse the maximum number of components!" );
return 1;
}
if( ( iRet = parseToolsArgs( argc, argv ) ) > 0 )
{
return iRet;
@@ -424,7 +430,7 @@ int CalypTools::QualityOperation()
const char* pchQualityMetricName = CalypFrame::supportedQualityMetricsList()[m_uiQualityMetric].c_str();
CalypFrame* apcCurrFrame[MAX_NUMBER_INPUTS];
bool abEOF[MAX_NUMBER_INPUTS];
double adAverageQuality[MAX_NUMBER_INPUTS - 1][CalypPixel::getMaxNumberOfComponents()];
double adAverageQuality[MAX_NUMBER_INPUTS - 1][MAX_NUMBER_CHANNELS];
double dQuality;
ClpString metric_fmt = " ";