From 82b93c07c3115caf774c1c1a92269415377d9bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Tschumperl=C3=A9?= <david.tschumperle@gmail.com> Date: Thu, 21 Jun 2018 09:32:46 +0200 Subject: [PATCH] . --- CImg.h | 6 +++--- examples/use_skeleton.cpp | 2 +- html/header.html | 2 +- html/header_reference.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CImg.h b/CImg.h index 78d0c8e..788f4c1 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 023d166..7004b1f 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 5976e6a..8d953e3 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 85b2aa5..56b2ce8 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> -- GitLab