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
1b9353a2
Commit
1b9353a2
authored
16 years ago
by
Thomas Feuvrier
Browse files
Options
Downloads
Patches
Plain Diff
COMP: PolyLineImageConstIterator modifying test rename testing file
parent
d21a54a7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Testing/Code/Common/CMakeLists.txt
+5
-2
5 additions, 2 deletions
Testing/Code/Common/CMakeLists.txt
Testing/Code/Common/otbPolyLineImageConstIterator.cxx
+2
-10
2 additions, 10 deletions
Testing/Code/Common/otbPolyLineImageConstIterator.cxx
with
7 additions
and
12 deletions
Testing/Code/Common/CMakeLists.txt
+
5
−
2
View file @
1b9353a2
...
...
@@ -441,8 +441,11 @@ ADD_TEST(coTvPolygon ${COMMON_TESTS6}
#-------- otb::PolyLineImageIterator -----------------------------------------
ADD_TEST
(
coTvPolyLineImageConstIterator
${
COMMON_TESTS6
}
--compare-ascii
${
TOL
}
${
BASELINE_FILES
}
/coTvPolyLineImageConstIterator.txt
${
TEMP
}
/coTvPolyLineImageConstIterator.txt
otbPolyLineImageConstIterator
10 10 35
512 512 20
${
TEMP
}
/coTvPolyLineImageConstIterator.txt
)
...
...
@@ -756,7 +759,7 @@ otbArcSpatialObjectNew.cxx
otbPathListToPathListFilterNew.cxx
)
SET
(
BasicCommon_SRCS6
otbPolyLineImageConstIterator
New
.cxx
otbPolyLineImageConstIterator.cxx
otbPolyLineImageIterator.cxx
otbDrawPathFilterNew.cxx
otbDrawPathFilter.cxx
...
...
This diff is collapsed.
Click to expand it.
Testing/Code/Common/otbPolyLineImageConstIterator
New
.cxx
→
Testing/Code/Common/otbPolyLineImageConstIterator.cxx
+
2
−
10
View file @
1b9353a2
...
...
@@ -55,7 +55,7 @@ int otbPolyLineImageConstIterator(int argc, char * argv[])
ImageType
::
Pointer
image
=
ImageType
::
New
();
image
->
SetRegions
(
region
);
image
->
Allocate
();
image
->
FillBuffer
(
0
);
image
->
FillBuffer
(
255
);
PathType
::
Pointer
path
=
PathType
::
New
();
...
...
@@ -80,14 +80,6 @@ int otbPolyLineImageConstIterator(int argc, char * argv[])
path
->
AddVertex
(
vertex2
);
}
IteratorType
it
(
image
,
path
);
for
(
it
.
GoToBegin
();
!
it
.
IsAtEnd
();
++
it
)
{
it
.
Set
(
255
);
// std::cout<<it.GetIndex()<<std::endl;
}
image
->
Update
();
ConstIteratorType
cit
((
const
ImageType
*
)
image
,(
const
PathType
*
)
path
);
...
...
@@ -96,7 +88,7 @@ int otbPolyLineImageConstIterator(int argc, char * argv[])
for
(
cit
.
GoToBegin
();
!
cit
.
IsAtEnd
();
++
cit
)
{
flux
<<
cit
.
GetIndex
()
<<
": "
<<
cit
.
Get
()
<<
std
::
endl
;
flux
<<
cit
.
GetIndex
()
<<
std
::
endl
;
}
flux
.
close
();
...
...
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