Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vol2slice #439

Merged
merged 3 commits into from
Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
- heightfield2shading: new option to add a matcap rendering (from normal
direction interpreted as HSV vector)
(Bertrand Kerautret [#399](https://github.com/DGtal-team/DGtalTools/pull/399))

- vol2slice: fix infinite slices extraction.
(Bertrand Kerautret [#439](https://github.com/DGtal-team/DGtalTools/pull/439))

- *build*
- New cmake option (DGTAL_RANDOMIZED_BUILD_THRESHOLD) to set the
(approximated) % of tools build
Expand Down
2 changes: 1 addition & 1 deletion converters/vol2slice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ int main( int argc, char** argv )
DGtal::int64_t rescaleInputMin {0};
DGtal::int64_t rescaleInputMax {255};
int userStartSlice {0};
int userEndSlice;
int userEndSlice {0};
unsigned int sliceOrientation {2};


Expand Down
6 changes: 3 additions & 3 deletions volumetric/criticalKernelsThinning3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ int main(int argc, char* const argv[]){
}
trace.beginBlock("Reading input");
using Domain = Z3i::Domain ;

#ifdef WITH_ITK
using Image = ImageSelector < Z3i::Domain, unsigned char, ITKIMAGEDATA_CONTAINER_I>::Type ;
using Image = ImageSelector < Z3i::Domain, unsigned char, ITKIMAGEDATA_CONTAINER_I>::Type ;
#else
using Image = ImageSelector < Z3i::Domain, unsigned char>::Type ;
using Image = ImageSelector < Z3i::Domain, unsigned char>::Type ;
#endif



Image image = GenericReader<Image>::import(inputFileName);
trace.endBlock();
Expand Down