Commit 1fd3fa1a authored by Guillaume Pasero's avatar Guillaume Pasero

TEST: don't allocate input image in test

parent aade2328
......@@ -64,11 +64,12 @@ int otbOGRDataToClassStatisticsFilter(int argc, char* argv[])
InputImageType::Pointer inputImage = InputImageType::New();
inputImage->SetNumberOfComponentsPerPixel(3);
inputImage->SetRegions(region);
inputImage->SetLargestPossibleRegion(region);
inputImage->SetOrigin(origin);
inputImage->SetSpacing(spacing);
inputImage->Allocate();
inputImage->FillBuffer(pixel);
// Don't allocate the input image, the filter should not need it
//inputImage->Allocate();
//inputImage->FillBuffer(pixel);
MaskImageType::Pointer mask = MaskImageType::New();
mask->SetRegions(region);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment