From dfc9e948de91ce66bcb80138e1dfa48f5ba3dd0b Mon Sep 17 00:00:00 2001
From: Julien Malik <julien.malik@c-s.fr>
Date: Mon, 21 Feb 2011 16:00:36 +0100
Subject: [PATCH] ENH: use PixelType instead of hard coded double

---
 Testing/otbUnConstrainedLeastSquareImageFilter.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Testing/otbUnConstrainedLeastSquareImageFilter.cxx b/Testing/otbUnConstrainedLeastSquareImageFilter.cxx
index 512c6b3a35..ddb85f161e 100644
--- a/Testing/otbUnConstrainedLeastSquareImageFilter.cxx
+++ b/Testing/otbUnConstrainedLeastSquareImageFilter.cxx
@@ -55,7 +55,7 @@ int otbUnConstrainedLeastSquareImageFilterTest(int argc, char * argv[])
 
   typedef VectorImageToMatrixImageFilterType::MatrixType MatrixType;
   MatrixType endMembers = endMember2Matrix->GetMatrix();
-  MatrixType pinv = vnl_matrix_inverse<double>(endMembers);
+  MatrixType pinv = vnl_matrix_inverse<PixelType>(endMembers);
 
   UnConstrainedLeastSquareSolverType::Pointer unmixer = \
       UnConstrainedLeastSquareSolverType::New();
-- 
GitLab