Skip to content
Snippets Groups Projects
Commit c4c8b400 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

Solution exemple hybrid

parent af75dd24
No related branches found
No related tags found
No related merge requests found
SUBDIRS(Common BasicFilters IO ChangeDetection FeatureExtraction
Learning Visu Segmentation)
Learning Visu)
......@@ -12,4 +12,5 @@ SUBDIRS(
Visu
Learning
Classification
Segmentation
)
......@@ -2,10 +2,10 @@ PROJECT(PatentedExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$")
#ADD_EXECUTABLE(FuzzyConnectednessImageFilter FuzzyConnectednessImageFilter.cxx )
#TARGET_LINK_LIBRARIES(FuzzyConnectednessImageFilter OTBIO OTBCommon ITKNumerics ITKIO)
ADD_EXECUTABLE(FuzzyConnectednessImageFilter FuzzyConnectednessImageFilter.cxx )
TARGET_LINK_LIBRARIES(FuzzyConnectednessImageFilter OTBIO OTBCommon ITKNumerics ITKIO)
#ADD_EXECUTABLE(HybridSegmentationFuzzyVoronoi HybridSegmentationFuzzyVoronoi.cxx )
#TARGET_LINK_LIBRARIES(HybridSegmentationFuzzyVoronoi OTBIO OTBCommon ITKNumerics ITKIO)
ADD_EXECUTABLE(HybridSegmentationFuzzyVoronoi HybridSegmentationFuzzyVoronoi.cxx )
TARGET_LINK_LIBRARIES(HybridSegmentationFuzzyVoronoi OTBIO OTBCommon ITKNumerics ITKIO)
......@@ -53,7 +53,7 @@
// Software Guide : EndCodeSnippet
#include "itkImage.h"
#include "otbImage.h"
#include "otbImageFileReader.h"
#include "otbImageFileWriter.h"
......@@ -83,7 +83,7 @@ int main( int argc, char *argv[] )
// Software Guide : BeginCodeSnippet
typedef float InputPixelType;
const unsigned int Dimension = 2;
typedef itk::Image< InputPixelType, Dimension > InputImageType;
typedef otb::Image< InputPixelType, Dimension > InputImageType;
// Software Guide : EndCodeSnippet
......@@ -103,7 +103,7 @@ int main( int argc, char *argv[] )
// Software Guide : BeginCodeSnippet
typedef unsigned char BinaryPixelType;
typedef itk::Image< BinaryPixelType, Dimension > BinaryImageType;
typedef otb::Image< BinaryPixelType, Dimension > BinaryImageType;
// Software Guide : EndCodeSnippet
......@@ -154,7 +154,7 @@ int main( int argc, char *argv[] )
// Software Guide : BeginCodeSnippet
typedef unsigned char OutputPixelType;
typedef itk::Image< OutputPixelType, Dimension > OutputImageType;
typedef otb::Image< OutputPixelType, Dimension > OutputImageType;
// Software Guide : EndCodeSnippet
......
......@@ -219,7 +219,7 @@ void
VoronoiSegmentationImageFilter <TInputImage,TOutputImage,TBinaryPriorImage>
::PrintSelf(std::ostream& os, Indent indent) const
{
Superclass::PrintSelf(os, indent);
//Superclass::PrintSelf(os, indent); // comment for OTB
os << indent << "Mean = " << m_Mean << std::endl;
os << indent << "MeanTolerance = " << m_MeanTolerance << std::endl;
......
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