Skip to content
Snippets Groups Projects
Commit 2ce4fa90 authored by Julien Malik's avatar Julien Malik
Browse files

TEST: remove unneeded Update call and inverse computation

parent e683b56b
Branches
Tags
No related merge requests found
......@@ -56,7 +56,6 @@ int otbUnConstrainedLeastSquareImageFilterTest(int argc, char * argv[])
typedef VectorImageToMatrixImageFilterType::MatrixType MatrixType;
MatrixType endMembers = endMember2Matrix->GetMatrix();
MatrixType pinv = vnl_matrix_inverse<PixelType>(endMembers);
UnConstrainedLeastSquareSolverType::Pointer unmixer = \
UnConstrainedLeastSquareSolverType::New();
......@@ -64,8 +63,6 @@ int otbUnConstrainedLeastSquareImageFilterTest(int argc, char * argv[])
unmixer->SetInput(readerImage->GetOutput());
unmixer->SetMatrix(endMember2Matrix->GetMatrix());
unmixer->Update();
WriterType::Pointer writer = WriterType::New();
writer->SetFileName(outputImage);
writer->SetInput(unmixer->GetOutput());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment