Skip to content
Snippets Groups Projects
Commit 48909af1 authored by Aurélien Bricier's avatar Aurélien Bricier
Browse files

TEST: added tests for background value support in StreamingStatisticsImageFilter

parent 375a8b47
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,11 @@ int otbStreamingStatisticsImageFilter(int argc, char * argv[])
{
const char * infname = argv[1];
const char * outfname = argv[2];
float userIgnoredValue = 0.;
if (argc>3)
{
userIgnoredValue = atof(argv[3]);
}
const unsigned int Dimension = 2;
typedef double PixelType;
......@@ -44,6 +49,11 @@ int otbStreamingStatisticsImageFilter(int argc, char * argv[])
filter->GetStreamer()->SetNumberOfLinesStrippedStreaming( 10 );
filter->SetInput(reader->GetOutput());
if (argc>3)
{
filter->SetIgnoreUserDefinedValue(true);
filter->SetUserIgnoredValue(userIgnoredValue);
}
filter->Update();
std::ofstream file;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment