From 4bf389af3b0b5e42f823fbadb9972527adc3e3a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr> Date: Tue, 24 Sep 2019 12:59:37 +0200 Subject: [PATCH] COMP: replace multi dimensional variable length array by vector of vector --- include/otbSARTemporalCorrelationGridImageFilter.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/otbSARTemporalCorrelationGridImageFilter.txx b/include/otbSARTemporalCorrelationGridImageFilter.txx index 3819129..a7ec555 100644 --- a/include/otbSARTemporalCorrelationGridImageFilter.txx +++ b/include/otbSARTemporalCorrelationGridImageFilter.txx @@ -494,7 +494,7 @@ namespace otb int nbLinesSlave = slavePtr->GetLargestPossibleRegion().GetSize()[1]; // Array to store correlation rate for each pixel and each shift - double arrayRate [2*m_WinAround_ShiftAzi+1][2*m_WinAround_ShiftRan+1]; + std::vector< std::vector<double> > arrayRate (2*m_WinAround_ShiftAzi+1, std::vector<double>(2*m_WinAround_ShiftRan+1)); float arrayPic[3][3]; float dx, dy, VAL_MAX; -- GitLab