Skip to content

Commit

Permalink
Fill buffer of itk image to zero in ImageContainerByITKImage.ih
Browse files Browse the repository at this point in the history
  • Loading branch information
phcerdan committed Feb 8, 2018
1 parent 601e494 commit 78d860c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
- Viewer3D: fix bad light source move according X/Y mouse move and new Key_Z to
move away/closer the light source.
(Bertrand Kerautret, [#1262](https://github.com/DGtal-team/DGtal/pull/1262))
- Fix ImageContainerByITKImage, fill the itk image buffer with 0 when using the
domain constructor.
(Pablo Hernandez, [#1307](https://github.com/DGtal-team/DGtal/pull/1307))

- *Kernel Package*
- Fix testBasicPointFunctor. (Bertrand Kerautret
Expand Down
1 change: 1 addition & 0 deletions src/DGtal/images/ImageContainerByITKImage.ih
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ namespace DGtal

myITKImagePointer->SetRegions(region);
myITKImagePointer->Allocate();
myITKImagePointer->FillBuffer(0);
}

template <typename TDomain, typename TValue>
Expand Down

0 comments on commit 78d860c

Please sign in to comment.