diff --git a/Modules/Filtering/Statistics/test/otbStreamingMinMaxImageFilter.cxx b/Modules/Filtering/Statistics/test/otbStreamingMinMaxImageFilter.cxx index c893a9afa1c80faf20c9507933b45f362bd1acb5..b207e0f9b1cb2d6e70e31c0dcf362077e480479d 100644 --- a/Modules/Filtering/Statistics/test/otbStreamingMinMaxImageFilter.cxx +++ b/Modules/Filtering/Statistics/test/otbStreamingMinMaxImageFilter.cxx @@ -47,7 +47,7 @@ int otbStreamingMinMaxImageFilter(int itkNotUsed(argc), char * argv[]) filter->GetStreamer()->SetNumberOfLinesStrippedStreaming( 10 ); filter->SetInput(reader->GetOutput()); - otb::StandardFilterWatcher watcher(filter, "Min Max Computation"); + otb::StandardFilterWatcher watcher(filter->GetStreamer(), "Min Max Computation"); filter->Update(); std::ofstream file;