From 750ede2b47c20178f00b8f8645128bc3334567fa Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@c-s.fr> Date: Thu, 15 May 2008 09:31:41 +0000 Subject: [PATCH] erreur de compilation visual --- Code/Markov/otbMarkovRandomFieldFilter.h | 3 +++ Code/Markov/otbMarkovRandomFieldFilter.txx | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Code/Markov/otbMarkovRandomFieldFilter.h b/Code/Markov/otbMarkovRandomFieldFilter.h index b1d5266191..cb0369c1d5 100644 --- a/Code/Markov/otbMarkovRandomFieldFilter.h +++ b/Code/Markov/otbMarkovRandomFieldFilter.h @@ -108,6 +108,9 @@ public itk::ImageToImageFilter<TInputImage,TClassifiedImage> /** Type definition for the input image region iterator */ typedef itk::ImageRegionIterator<TClassifiedImage> LabelledImageRegionIterator; + + typedef itk::ImageRegionConstIterator<TClassifiedImage> + LabelledImageRegionConstIterator; /** Labelled Image dimension */ itkStaticConstMacro(ClassifiedImageDimension, unsigned int, diff --git a/Code/Markov/otbMarkovRandomFieldFilter.txx b/Code/Markov/otbMarkovRandomFieldFilter.txx index 4c721697a8..e8251e3c4c 100644 --- a/Code/Markov/otbMarkovRandomFieldFilter.txx +++ b/Code/Markov/otbMarkovRandomFieldFilter.txx @@ -295,8 +295,8 @@ MarkovRandomFieldFilter<TInputImage, TClassifiedImage> if (m_ExternalClassificationSet) { - TrainingImagePointer trainingImage = this->GetTrainingInput(); - LabelledImageRegionIterator + typename TrainingImageType::ConstPointer trainingImage = this->GetTrainingInput(); + LabelledImageRegionConstIterator trainingImageIt( trainingImage, outputPtr->GetRequestedRegion() ); while ( !outImageIt.IsAtEnd() ) -- GitLab