Skip to content

Commit

Permalink
Merge pull request #1297 from rolanddenis/fix_1296
Browse files Browse the repository at this point in the history
Fixing #1296 : invalid cell coordinates in ctopo-fillContours.cpp
  • Loading branch information
dcoeurjo committed Nov 18, 2017
2 parents 04640f9 + c893115 commit 295b98e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
- Fix SternBrocot and variants static instanciations. (Jacques-Olivier Lachaud
[#1293](https://github.com/DGtal-team/DGtal/pull/1293))

- *Topology Package*
- Fix invalid KhalimskyCell coordinates in ctopo-fillContours.cpp example.
(Roland Denis, [#1296](https://github.com/DGtal-team/DGtal/pull/1296))

- *Documentation*
- Add import with functors in GenericReader in the main default reader.
(mainly motivated to show documentation of specialized version of
Expand Down
6 changes: 3 additions & 3 deletions examples/topology/ctopo-fillContours.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ int main( int /*argc*/, char** /*argv*/ )
interiorCellImage, 1, false);
//! [ctopoFillContoursFillRegion]

aBoard << CustomStyle(K.uSpel(Z2i::Point(0,0)).className(), new CustomColors(DGtal::Color::None, Color(200, 200, 200)) );
aBoard << CustomStyle(K.lowerCell().className(), new CustomColors(DGtal::Color::None, Color(200, 200, 200)) );
for(BoolImage2D::Domain::ConstIterator it = interiorCellImage.domain().begin();
it!=interiorCellImage.domain().end(); it++){
if(interiorCellImage(*it)){
Expand All @@ -137,15 +137,15 @@ int main( int /*argc*/, char** /*argv*/ )
exteriorCellHoleImage, 1, false);
//! [ctopoFillContoursFillRegionHoles]

aBoard2 << CustomStyle(K.uSpel(Z2i::Point(0,0)).className(),
aBoard2 << CustomStyle(K.lowerCell().className(),
new CustomColors(DGtal::Color::None, Color(200, 200, 200)) );
for(BoolImage2D::Domain::ConstIterator it = interiorCellHoleImage.domain().begin();
it!=interiorCellHoleImage.domain().end(); it++){
if(interiorCellHoleImage(*it)){
aBoard2 << K.uSpel(*it);
}
}
aBoard2 << CustomStyle(K.uSpel(Z2i::Point(0,0)).className(),
aBoard2 << CustomStyle(K.lowerCell().className(),
new CustomColors(DGtal::Color::None, Color(100, 100, 100)) );
for(BoolImage2D::Domain::ConstIterator it = exteriorCellHoleImage.domain().begin();
it!=exteriorCellHoleImage.domain().end(); it++){
Expand Down

0 comments on commit 295b98e

Please sign in to comment.