Skip to content
Snippets Groups Projects
Commit c7b5db63 authored by Caroline Ruffel's avatar Caroline Ruffel
Browse files

nomsg

parent ed44c759
Branches
Tags
No related merge requests found
......@@ -50,12 +50,12 @@ int otbLineRatioDetector( int argc, char* argv[] )
typedef otb::ImageFileWriter< OutputImageType > WriterType;
typedef itk::LinearInterpolateImageFunction< InputImageType, double > InterpolatorType;
typedef otb::TupinEdgeDetector< InputImageType, OutputImageType, InterpolatorType > FilterType;
typedef otb::LineRatioDetector< InputImageType, OutputImageType, InterpolatorType > FilterType;
FilterType::Pointer filtreTupin = FilterType::New();
FilterType::Pointer FilterLineRatio = FilterType::New();
filtreTupin->SetWidthLine( WidthLine );
filtreTupin->SetLengthLine( LengthLine );
FilterLineRatio->SetWidthLine( WidthLine );
FilterLineRatio->SetLengthLine( LengthLine );
ReaderType::Pointer reader = ReaderType::New();
WriterType::Pointer writer = WriterType::New();
......@@ -63,8 +63,8 @@ int otbLineRatioDetector( int argc, char* argv[] )
reader->SetFileName( inputFilename );
writer->SetFileName( outputFilename );
filtreTupin->SetInput( reader->GetOutput() );
writer->SetInput( filtreTupin->GetOutput() );
FilterLineRatio->SetInput( reader->GetOutput() );
writer->SetInput( FilterLineRatio->GetOutput() );
writer->Update();
......
......@@ -34,9 +34,9 @@ int otbLineRatioDetectorNew( int argc, char* argv[] )
typedef itk::Image< InputPixelType, Dimension > InputImageType;
typedef itk::Image< OutputPixelType, Dimension > OutputImageType;
typedef otb::TupinEdgeDetector< InputImageType, OutputImageType> FilterType;
typedef otb::LineRatioEdgeDetector< InputImageType, OutputImageType> FilterType;
FilterType::Pointer filtreTupin = FilterType::New();
FilterType::Pointer FilterLineRatio = FilterType::New();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment