Skip to content
Snippets Groups Projects
Commit 6ccc3a89 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

MRG

parents 7326cdcf 512242d5
No related branches found
No related tags found
No related merge requests found
......@@ -254,11 +254,7 @@ private:
/** General info about the image*/
std::string m_PlaceName;//FIXME the call should be done by a more general method outside of the layer
std::string m_CountryName;//which would also handle the dependance
//to curl
/** Max list sample size */
unsigned int m_MaxListSampleSize;
std::string m_CountryName;//which would also handle the dependance to curl
}; // end class
} // end namespace otb
......
......@@ -18,7 +18,7 @@
#ifndef __otbImageLayer_txx
#define __otbImageLayer_txx
#include "itkImageRandomNonRepeatingConstIteratorWithIndex.h"
#include "itkImageRegionConstIterator.h"
#include "otbMacro.h"
#include "otbI18n.h"
#include "itkTimeProbe.h"
......@@ -37,7 +37,7 @@ template <class TImage, class TOutputImage>
ImageLayer<TImage,TOutputImage>
::ImageLayer() : m_Quicklook(), m_Image(), m_ListSample(), m_ListSampleProvided(false), m_RenderingFunction(),
m_QuicklookRenderingFilter(), m_ExtractRenderingFilter(), m_ScaledExtractRenderingFilter(),
m_ExtractFilter(), m_ScaledExtractFilter(), m_MaxListSampleSize(2000)
m_ExtractFilter(), m_ScaledExtractFilter()
{
// Rendering filters
m_QuicklookRenderingFilter = RenderingFilterType::New();
......@@ -214,7 +214,7 @@ ImageLayer<TImage,TOutputImage>
histogramSource->Update();
// Iterate on the image
itk::ImageRandomNonRepeatingConstIteratorWithIndex<ImageType> it(histogramSource,histogramSource->GetBufferedRegion());
itk::ImageRegionConstIterator<ImageType> it(histogramSource,histogramSource->GetBufferedRegion());
// declare a list to store the samples
m_ListSample->Clear();
......@@ -224,7 +224,7 @@ ImageLayer<TImage,TOutputImage>
// Fill the samples list
it.GoToBegin();
while(!it.IsAtEnd() && m_ListSample->Size() < m_MaxListSampleSize)
while(!it.IsAtEnd())
{
SampleType sample(sampleSize);
VisualizationPixelTraits::Convert( it.Get(), sample );
......
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