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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
David Youssefi
otb
Commits
d6b5a149
Commit
d6b5a149
authored
18 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
oubli
parent
e53567af
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Testing/Code/Common/otbDrawPathFilterNew.cxx
+51
-0
51 additions, 0 deletions
Testing/Code/Common/otbDrawPathFilterNew.cxx
with
51 additions
and
0 deletions
Testing/Code/Common/otbDrawPathFilterNew.cxx
0 → 100644
+
51
−
0
View file @
d6b5a149
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include
"itkExceptionObject.h"
#include
"otbDrawPathFilter.h"
#include
"otbImageFileWriter.h"
#include
"otbImage.h"
#include
"itkPolyLineParametricPath.h"
int
otbDrawPathFilterNew
(
int
argc
,
char
*
argv
[])
{
try
{
const
unsigned
int
Dimension
=
2
;
typedef
unsigned
char
PixelType
;
typedef
otb
::
Image
<
PixelType
,
Dimension
>
ImageType
;
typedef
itk
::
PolyLineParametricPath
<
Dimension
>
PathType
;
typedef
otb
::
DrawPathFilter
<
ImageType
,
PathType
,
ImageType
>
DrawPathFilterType
;
DrawPathFilterType
::
Pointer
filter
=
DrawPathFilterType
::
New
();
}
catch
(
itk
::
ExceptionObject
&
err
)
{
std
::
cout
<<
"Exception itk::ExceptionObject thrown !"
<<
std
::
endl
;
std
::
cout
<<
err
<<
std
::
endl
;
return
EXIT_FAILURE
;
}
catch
(
...
)
{
std
::
cout
<<
"Unknown exception thrown !"
<<
std
::
endl
;
return
EXIT_FAILURE
;
}
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