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

nomsg

parent 0d7f99d2
Branches
Tags
No related merge requests found
/*=========================================================================
Programme : OTB (ORFEO ToolBox)
Auteurs : CS - C.Ruffel
Language : C++
Date : 09 mars 2006
Version :
Role : Test du filtre de detection de contours (instanciation)
$Id$
=========================================================================*/
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#define MAIN
#include "itkExceptionObject.h"
#include "itkImage.h"
#include <iostream>
#include "otbTouziEdgeDetector.h"
int otbTouziEdgeDetectorNew( int argc, char* argv[] )
{
try
{
typedef unsigned char InputPixelType;
typedef double OutputPixelType;
const unsigned int Dimension = 2;
typedef itk::Image< InputPixelType, Dimension > InputImageType;
typedef itk::Image< OutputPixelType, Dimension > OutputImageType;
typedef otb::TouziEdgeDetector< InputImageType,OutputImageType > FilterType;
FilterType::Pointer filtreTouzi = FilterType::New();
}
catch( itk::ExceptionObject & err )
{
std::cout << "Exception itk::ExceptionObject levee !" << std::endl;
std::cout << err << std::endl;
return EXIT_FAILURE;
}
catch( ... )
{
std::cout << "Exception levee inconnue !" << std::endl;
return EXIT_FAILURE;
}
// Software Guide : EndCodeSnippet
//#endif
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment