Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtschump committed Oct 11, 2024
1 parent b9d89a8 commit ec56795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions CImg.h
Original file line number Diff line number Diff line change
Expand Up @@ -32224,8 +32224,7 @@ namespace cimg_library {
const CImg<T>& SVD(CImg<t>& U, CImg<t>& S, CImg<t>& V, const bool sorting=true,
const unsigned int max_iteration=40, const float lambda=0) const {
typedef _cimg_Ttfloat Ttfloat;
const Ttfloat eps = (Ttfloat)1e-25;

const Ttfloat eps = (Ttfloat)1e-15;
if (is_empty()) { U.assign(); S.assign(); V.assign(); }
else if (_depth!=1 || _spectrum!=1)
throw CImgInstanceException(_cimg_instance
Expand Down
2 changes: 2 additions & 0 deletions examples/dtmri_view3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ int main(int argc,char **argv) {
x,y,z);
}
}

float voxw = 1, voxh = 1, voxd = 1;
std::sscanf(vsize,"%f%*c%f%*c%f",&voxw,&voxh,&voxd);

Expand Down Expand Up @@ -361,6 +362,7 @@ int main(int argc,char **argv) {
coloredFA(x,y,z,2) = (unsigned char)b;
}
tensors.assign();

std::fprintf(stderr,"\n- Maximum diffusivity = %g, Maximum FA = %g",eigmax,eigen.get_shared_channel(12).max());
if (normalize) {
std::fprintf(stderr,"\n- Normalize tensors.");
Expand Down

0 comments on commit ec56795

Please sign in to comment.