diff --git a/CImg.h b/CImg.h index 78d0c8e1f8b9e4a56d133e2e5a1512d5786b1017..788f4c1496e7ae3e6b15c288727f5d7957230463 100644 --- a/CImg.h +++ b/CImg.h @@ -15480,7 +15480,7 @@ namespace cimg_library_suffixed { *const ss1 = ss + 1, *const ss2 = ss + 2, *const ss3 = ss + 3, *const ss4 = ss + 4, *const ss5 = ss + 5, *const ss6 = ss + 6, *const ss7 = ss + 7, *const ss8 = ss + 8, *s, *ps, *ns, *s0, *s1, *s2, *s3, sep = 0, end = 0; - double val, val1, val2; + double val = 0, val1, val2; mp_func op; // 'p_ref' is a 'unsigned int[7]' used to return a reference to an image or vector value @@ -20819,8 +20819,8 @@ namespace cimg_library_suffixed { CImg<T> color(img._spectrum,1,1,1,0); bool is_invalid_arguments = false; unsigned int i = 4; - float r1, r2, angle = 0, opacity = 1; - int x0, y0; + float r1 = 0, r2 = 0, angle = 0, opacity = 1; + int x0 = 0, y0 = 0; if (i>=i_end) is_invalid_arguments = true; else { x0 = (int)cimg::round(_mp_arg(i++)); diff --git a/examples/use_skeleton.cpp b/examples/use_skeleton.cpp index 023d166f89251b9a5326295173698d15196360f8..7004b1f8b3a1442f49fcd2777ab0d55f32d38c79 100644 --- a/examples/use_skeleton.cpp +++ b/examples/use_skeleton.cpp @@ -76,7 +76,7 @@ int main (int argc, char **argv) { const float dlt2 = cimg_option("-dlt",1.0f,"Discrete step"); // Load the image (forcing it to be scalar with 2 values { 0,1 }). - CImg<unsigned int> image0(file_i), image = image0.get_norm().quantize(2).normalize(0.0f,1.0f); + CImg<unsigned int> image0(file_i), image = image0.get_norm().quantize(2).normalize(0.0f,1.0f).round(); if (median) image.blur_median(median); if (invert) (image-=1)*=-1; if (display) (image0.get_normalize(0,255),image.get_normalize(0,255)).display("Input image - Binary image"); diff --git a/html/header.html b/html/header.html index 5976e6a0e607280add4955d767d06bfc489e2a92..8d953e3fce5458d42d1b6130539994d492c703a9 100644 --- a/html/header.html +++ b/html/header.html @@ -45,7 +45,7 @@ <a href="http://cimg.eu"><img src="http://cimg.eu/img/CImgLogo2.jpg" alt="" border="0" /></a><br/> </center> <center><font size="-1" color="#777777"> - Latest stable version: <b><a href="http://cimg.eu/files">2.2.3</a></b> + Latest stable version: <b><a href="http://cimg.eu/files">2.3.0</a></b> </font></center> </td></tr> <tr bgcolor="#FFFFFF"><td><hr noshade size="1" style="border-top: 1px solid #ccc;"/></td></tr> diff --git a/html/header_reference.html b/html/header_reference.html index 85b2aa599f4523296ad0b8be2a3d1ba4773ac386..56b2ce8850c9496b728ed40a7143735eb99cb23d 100644 --- a/html/header_reference.html +++ b/html/header_reference.html @@ -44,7 +44,7 @@ <a href="http://cimg.eu"><img src="http://cimg.eu/img/CImgLogo2.jpg" alt="" border="0" /></a><br/> </center> <center><font size="-1" color="#777777"> - Latest stable version: <b><a href="http://cimg.eu/files">2.2.3</a></b> + Latest stable version: <b><a href="http://cimg.eu/files">2.3.0</a></b> </font></center> </td></tr> <tr bgcolor="#FFFFFF"><td><hr noshade size="1" style="border-top: 1px solid #ccc;"/></td></tr>