Skip to content
Snippets Groups Projects
Commit 1b9353a2 authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

COMP: PolyLineImageConstIterator modifying test rename testing file

parent d21a54a7
Branches
Tags
No related merge requests found
......@@ -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
otbPolyLineImageConstIteratorNew.cxx
otbPolyLineImageConstIterator.cxx
otbPolyLineImageIterator.cxx
otbDrawPathFilterNew.cxx
otbDrawPathFilter.cxx
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment