Commit 345a1eb3 authored by remi cresson's avatar remi cresson
Browse files

ENH: display progress of statistics and histogram computing. Remote empty...

ENH: display progress of statistics and histogram computing. Remote empty logging in CheckValidity()
No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
......@@ -426,8 +426,8 @@ private:
"in comparison with the number of bin. Histogram may not have much sens. "
"For better result enlarge thumbnail size or reduce number of bin."
<<std::endl;
otbAppLogINFO( << oss.str() );
}
otbAppLogINFO( << oss.str() );
}
// Compute min max from a vector image
......@@ -451,6 +451,7 @@ private:
statFilter->SetUserIgnoredValue( GetParameterFloat("nodata") );
}
statFilter->SetInput( inImage );
AddProcess(statFilter->GetStreamer(), "Computing statistics");
statFilter->Update();
min = statFilter->GetMinimum();
max = statFilter->GetMaximum();
......@@ -671,6 +672,7 @@ private:
histoPersistent->GetFilter()->SetHistogramMin(pixel);
pixel = max + 0.5 * step;
histoPersistent->GetFilter()->SetHistogramMax(pixel);
AddProcess(histoPersistent->GetStreamer(), "Computing histogram");
histoPersistent->Update();
HistoPersistentFilterType::HistogramListType * histoList =
histoPersistent->GetHistogramList();
......@@ -834,4 +836,4 @@ private:
} //End namespace Wrapper
} //End namespace otb
OTB_APPLICATION_EXPORT(otb::Wrapper::ContrastEnhancement)
\ No newline at end of file
OTB_APPLICATION_EXPORT(otb::Wrapper::ContrastEnhancement)
Supports Markdown
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