Commit d399d82b authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

BUG: bug in range of a for loop and better log

No related merge requests found
Showing with 13 additions and 4 deletions
+13 -4
...@@ -451,13 +451,22 @@ private: ...@@ -451,13 +451,22 @@ private:
void LogInfo() void LogInfo()
{ {
std::ostringstream oss; std::ostringstream oss;
oss << "The application has been launch with the following parameters :" oss << "The application has been launched with the following parameters :"
<<std::endl; <<std::endl;
oss << "- number of bins : " << GetParameterInt("bins")<<std::endl; oss << "- number of bins : " << GetParameterInt("bins") << std::endl;
if ( HasValue("hfact") )
{
oss << "- contrast limtaition factor : "
<< GetParameterFloat("hfact") << std::endl;
}
else
{
oss << "- no contrast limitation factor" << std::endl;
}
oss << "- spatial parameters : " << m_SpatialMode ; oss << "- spatial parameters : " << m_SpatialMode ;
if ( m_SpatialMode == "local" ) if ( m_SpatialMode == "local" )
{ {
oss<< " with a thumbnail of " <<m_ThumbSize[0]<<" X "<<m_ThumbSize[1]; oss<< " with a thumbnail of " << m_ThumbSize[0] <<" X "<< m_ThumbSize[1] ;
} }
oss << std::endl << "- equalisation of "; oss << std::endl << "- equalisation of ";
if ( m_EqMode == "each" ) if ( m_EqMode == "each" )
...@@ -817,7 +826,7 @@ private: ...@@ -817,7 +826,7 @@ private:
void Threshold( HistoPersistentFilterType::HistogramListType * histoList , void Threshold( HistoPersistentFilterType::HistogramListType * histoList ,
unsigned int nbBin ) unsigned int nbBin )
{ {
for ( unsigned int j = 0 ; j < m_Histogram.size() ; j++ ) for ( unsigned int j = 0 ; j < histoList->Size() ; j++ )
{ {
unsigned int rest(0) , height ( static_cast<unsigned int>( unsigned int rest(0) , height ( static_cast<unsigned int>(
GetParameterFloat( "hfact" ) * GetParameterFloat( "hfact" ) *
......
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