From 4a013642065c1b25500034bf6e4752274525e991 Mon Sep 17 00:00:00 2001 From: Patrick Imbo <patrick.imbo@c-s.fr> Date: Thu, 24 Aug 2006 14:11:34 +0000 Subject: [PATCH] =?UTF-8?q?Visu=20Apprentissage=20:=20MAJ=20des=20classes?= =?UTF-8?q?=20de=20visu=20+=20m=C3=A9thodes=20de=20Learn()=20et=20Classif(?= =?UTF-8?q?)=20=20de=20la=20classe=20otbPrincipalImageViewAS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/Visu/otbGLVectorImageViewClick.h | 4 ++-- Code/Visu/otbGLVectorImageViewClick.txx | 18 ++++++++++++++++++ Code/Visu/otbPrincipalImageViewAS.txx | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Code/Visu/otbGLVectorImageViewClick.h b/Code/Visu/otbGLVectorImageViewClick.h index f4001a8cc5..0d04851a68 100755 --- a/Code/Visu/otbGLVectorImageViewClick.h +++ b/Code/Visu/otbGLVectorImageViewClick.h @@ -290,10 +290,10 @@ public: const OverlayPointer & GetInputOverlay(void) const; /*! Return a pointer to the overlay data for the Red Class*/ - const OverlayPointer & GetInputOverlayRed(void) const; + const OverlayPointer & GetInputOverlayClassRed(void) const; /*! Return a pointer to the overlay data for the Blue Class*/ - const OverlayPointer & GetInputOverlayBlue(void) const; + const OverlayPointer & GetInputOverlayClassBlue(void) const; /*! Turn on/off the viewing of the overlay */ void ViewOverlayData(bool newViewOverlayData); diff --git a/Code/Visu/otbGLVectorImageViewClick.txx b/Code/Visu/otbGLVectorImageViewClick.txx index 66d51aec04..e061249303 100755 --- a/Code/Visu/otbGLVectorImageViewClick.txx +++ b/Code/Visu/otbGLVectorImageViewClick.txx @@ -840,6 +840,24 @@ GLVectorImageViewClick<TPixel, TPixelOverlay> { return this->cOverlayData; } + + template <class TPixel, class TPixelOverlay> + const typename GLVectorImageViewClick<TPixel, + TPixelOverlay>::OverlayPointer & + GLVectorImageViewClick<TPixel, TPixelOverlay>::GetInputOverlayClassRed( void ) + const + { + return this->cOverlayDataClassRed; + } + + template <class TPixel, class TPixelOverlay> + const typename GLVectorImageViewClick<TPixel, + TPixelOverlay>::OverlayPointer & + GLVectorImageViewClick<TPixel, TPixelOverlay>::GetInputOverlayClassBlue( void ) + const + { + return this->cOverlayDataClassBlue; + } template <class TPixel, class TPixelOverlay> void diff --git a/Code/Visu/otbPrincipalImageViewAS.txx b/Code/Visu/otbPrincipalImageViewAS.txx index 96308ea6f3..455a3d4a83 100755 --- a/Code/Visu/otbPrincipalImageViewAS.txx +++ b/Code/Visu/otbPrincipalImageViewAS.txx @@ -541,7 +541,7 @@ PrincipalImageViewAS<TPixel, TPixelOverlay>::ClassificationStep() } // cOverlayData .... - this->SetInputOverlay(outputImage,ImageClassRed, ImageClassBlue); + this->SetInputOverlay(outputImage,ImageClassRed, ImageClassBlue ); //ViewOverlayData(true); std::cout << "End Classif" << std::endl; -- GitLab