Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Belvire
otb
Commits
b9adefeb
Commit
b9adefeb
authored
18 years ago
by
Caroline Ruffel
Browse files
Options
Downloads
Patches
Plain Diff
nomsg
parent
205a0699
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Testing/Code/Common/otbImageToLineSpatialObjectListNew.cxx
+57
-0
57 additions, 0 deletions
Testing/Code/Common/otbImageToLineSpatialObjectListNew.cxx
with
57 additions
and
0 deletions
Testing/Code/Common/otbImageToLineSpatialObjectListNew.cxx
0 → 100755
+
57
−
0
View file @
b9adefeb
/*=========================================================================
Programme : OTB (ORFEO ToolBox)
Auteurs : CS - C.Ruffel
Language : C++
Date : 06 avril 2006
Version :
Role : Test d'instanciation de la classe otbImageToLineSpatialObjectListFilter
$Id$
=========================================================================*/
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#define MAIN
#include
"itkExceptionObject.h"
#include
"itkImage.h"
#include
<iostream>
#include
"otbImageToLineSpatialObjectListFilter.h"
int
otbImageToLineSpatialObjectListNew
(
int
argc
,
char
*
argv
[]
)
{
try
{
typedef
unsigned
char
InputPixelType
;
const
unsigned
int
Dimension
=
2
;
typedef
itk
::
Image
<
InputPixelType
,
Dimension
>
InputImageType
;
typedef
otb
::
ImageToLineSpatialObjectListFilter
<
InputImageType
>
FilterType
;
FilterType
::
Pointer
filter
=
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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment