Skip to content

Commit

Permalink
Merge pull request #395 from kerautret/fix3dVolBoundaryViewer
Browse files Browse the repository at this point in the history
Fix 3dVolBoundaryViewer
  • Loading branch information
kerautret committed Apr 9, 2021
2 parents dda16f1 + b43081a commit 42d46af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
15 changes: 7 additions & 8 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# DGtalTools 1.2
- *global*
- Fix itk2vol and fix ITK cmake configuaration that was making wrong the ITK image read.
(Bertrand Kerautret [#393](https://github.com/DGtal-team/DGtalTools/pull/393))
<<<<<<< HEAD

- Travis: Fix old default osx_image with xcode12.2 and remove non used boost
cmake references. (Bertrand Kerautret [#394](https://github.com/DGtal-team/DGtalTools/pull/394))

- *visualisation*
- 3dVolBoundaryViewer: fix compilation issue (related to CLI11 change) when ITK is activated.
(Bertrand Kerautret [#395](https://github.com/DGtal-team/DGtalTools/pull/395))

- Fix itk2vol and fix ITK cmake configuaration that was making wrong the ITK image read.
(Bertrand Kerautret [#393](https://github.com/DGtal-team/DGtalTools/pull/393))

=======
- Travis: Fix old default osx_image with xcode12.2 and remove non used boost
cmake references. (Bertrand Kerautret [#394](https://github.com/DGtal-team/DGtalTools/pull/394))
>>>>>>> bf6f26204de31698d991a81f19627f225426d146

# DGtalTools 1.1

Expand Down
6 changes: 2 additions & 4 deletions visualisation/3dVolBoundaryViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,12 @@ int main( int argc, char** argv )
){
trace.beginBlock( "Loading image into memory." );
#ifdef WITH_ITK
int dicomMin = vm["dicomMin"].as<int>();
int dicomMax = vm["dicomMax"].as<int>();
typedef DGtal::functors::Rescaling<int ,unsigned char > RescalFCT;
Image image = extension == "dcm" ? DicomReader< Image, RescalFCT >::importDicom( inputFilename,
Image image = extension == "dcm" ? DicomReader< Image, RescalFCT >::importDicom( inputFileName,
RescalFCT(dicomMin,
dicomMax,
0, 255) ) :
GenericReader<Image>::import( inputFilename );
GenericReader<Image>::import( inputFileName );
#else
Image image = GenericReader<Image>::import (inputFileName );
#endif
Expand Down

0 comments on commit 42d46af

Please sign in to comment.