From 0d3a30dd0ff65288d8242a848530146543c5e0d1 Mon Sep 17 00:00:00 2001
From: Thomas Feuvrier <thomas.feuvrier@c-s.fr>
Date: Thu, 29 Jun 2006 07:42:27 +0000
Subject: [PATCH] MAJ (provisoire) pour compilation avec des "itk::Image"

---
 Examples/Patented/CMakeLists.txt                     |  4 ++--
 Examples/Patented/FuzzyConnectednessImageFilter.cxx  |  4 ++--
 Examples/Patented/HybridSegmentationFuzzyVoronoi.cxx | 12 ++++++------
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/Examples/Patented/CMakeLists.txt b/Examples/Patented/CMakeLists.txt
index 26cb3757ef..d12b8cbf6d 100644
--- a/Examples/Patented/CMakeLists.txt
+++ b/Examples/Patented/CMakeLists.txt
@@ -3,9 +3,9 @@ INCLUDE_REGULAR_EXPRESSION("^.*$")
 
 
 ADD_EXECUTABLE(FuzzyConnectednessImageFilter FuzzyConnectednessImageFilter.cxx )
-TARGET_LINK_LIBRARIES(FuzzyConnectednessImageFilter ITKNumerics ITKIO)
+TARGET_LINK_LIBRARIES(FuzzyConnectednessImageFilter OTBIO OTBCommon ITKNumerics ITKIO)
 
 ADD_EXECUTABLE(HybridSegmentationFuzzyVoronoi HybridSegmentationFuzzyVoronoi.cxx )
-TARGET_LINK_LIBRARIES(HybridSegmentationFuzzyVoronoi ITKNumerics ITKIO)
+TARGET_LINK_LIBRARIES(HybridSegmentationFuzzyVoronoi OTBIO OTBCommon ITKNumerics ITKIO)
 
 
diff --git a/Examples/Patented/FuzzyConnectednessImageFilter.cxx b/Examples/Patented/FuzzyConnectednessImageFilter.cxx
index 8ef0b50f8f..d1b2dbf194 100644
--- a/Examples/Patented/FuzzyConnectednessImageFilter.cxx
+++ b/Examples/Patented/FuzzyConnectednessImageFilter.cxx
@@ -84,7 +84,7 @@ int main( int argc, char *argv[] )
   // Software Guide : BeginCodeSnippet
   typedef  float            InputPixelType;
   const    unsigned int     Dimension = 2;
-  typedef otb::Image< InputPixelType, Dimension >  InputImageType;
+  typedef itk::Image< InputPixelType, Dimension >  InputImageType;
   // Software Guide : EndCodeSnippet
 
   //  Software Guide : BeginLatex
@@ -97,7 +97,7 @@ int main( int argc, char *argv[] )
 
   // Software Guide : BeginCodeSnippet
   typedef   unsigned char   BinaryPixelType;
-  typedef otb::Image< BinaryPixelType, Dimension >      BinaryImageType;
+  typedef itk::Image< BinaryPixelType, Dimension >      BinaryImageType;
   // Software Guide : EndCodeSnippet
 
 
diff --git a/Examples/Patented/HybridSegmentationFuzzyVoronoi.cxx b/Examples/Patented/HybridSegmentationFuzzyVoronoi.cxx
index 90381111ab..a19834e817 100644
--- a/Examples/Patented/HybridSegmentationFuzzyVoronoi.cxx
+++ b/Examples/Patented/HybridSegmentationFuzzyVoronoi.cxx
@@ -51,7 +51,7 @@
 // Software Guide : EndCodeSnippet
 
 
-#include "otbImage.h"
+#include "itkImage.h"
 #include "otbImageFileReader.h"
 #include "otbImageFileWriter.h"
 
@@ -81,7 +81,7 @@ int main( int argc, char *argv[] )
   // Software Guide : BeginCodeSnippet
   typedef  float     InputPixelType;
   const    unsigned int      Dimension = 2;
-  typedef otb::Image< InputPixelType, Dimension >  InputImageType;
+  typedef itk::Image< InputPixelType, Dimension >  InputImageType;
   // Software Guide : EndCodeSnippet
 
 
@@ -101,7 +101,7 @@ int main( int argc, char *argv[] )
 
   // Software Guide : BeginCodeSnippet
   typedef unsigned char      BinaryPixelType;
-  typedef otb::Image< BinaryPixelType, Dimension >      BinaryImageType;
+  typedef itk::Image< BinaryPixelType, Dimension >      BinaryImageType;
   // Software Guide : EndCodeSnippet
 
 
@@ -152,7 +152,7 @@ int main( int argc, char *argv[] )
 
   // Software Guide : BeginCodeSnippet
   typedef unsigned char OutputPixelType;
-  typedef otb::Image< OutputPixelType, Dimension > OutputImageType;
+  typedef itk::Image< OutputPixelType, Dimension > OutputImageType;
   // Software Guide : EndCodeSnippet
                         
 
@@ -389,7 +389,7 @@ int main( int argc, char *argv[] )
   //  \small
   //  \begin{verbatim}
   //HybridSegmentationFuzzyVoronoi QB_Suburb.png Output.png
-                                             140 125 140 25 0.2 2.0
+  //                                           140 125 140 25 0.2 2.0
   //  \end{verbatim}
   //  \normalsize
   //
@@ -408,7 +408,7 @@ int main( int argc, char *argv[] )
   //  \small
   //  \begin{verbatim}
   //HybridSegmentationFuzzyVoronoi QB_Suburb.png Output.png
-					       80 200 140 300 0.3 3.0
+  //					       80 200 140 300 0.3 3.0
   //  \end{verbatim}
   //  \normalsize
   //
-- 
GitLab