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

WRG : fix a warning message due to comparison between signed and unsigned

DOC : improve doc of CLAHE class
No related merge requests found
Showing with 10 additions and 5 deletions
+10 -5
......@@ -34,7 +34,12 @@ namespace otb
{
/** \class CLHistogramEqualizationFilter
* \brief
* \brief Implement CLAHE algorithm
*
* This class implement CLAHE algorithm. It is a composite filter that gathers
* the 3 filters (ComputeHisto, ComputeGainLut, ApplyGain) and pipes them with
* additional filters (InPlacePass and StreamingImage) in order to make
* streaming available.
* \ingroup OTBContrast
*/
......
......@@ -29,10 +29,10 @@ namespace otb
{
/** \class ComputeHistoFilter
* \brief Compute local histogram with several parameter
* \brief Compute local histogram with several parameters
*
* This class implements the first part of the CLAHE algorithm. It's aim
* is to compute local histogram with several input parameters such as
* This class implements the first part of the CLAHE algorithm. It aims
* to compute local histogram with several input parameters such as
* nodata value, threshold, thumbnail size and number of bin. Mandatory parameters are min
* and max value as it will be used in the histogram computation.
*
......
......@@ -298,7 +298,7 @@ void ComputeHistoFilter < TInputImage , TOutputImage >
for( unsigned int i = 0 ; i < m_NbBin ; i++ )
{
if ( oit.Get()[i] > height )
if ( static_cast<unsigned int>( oit.Get()[i] ) > height )
{
rest += oit.Get()[i] - height ;
oit.Get()[i] = height ;
......
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