5454
5555// Set version number of the library.
5656#ifndef cimg_version
57- #define cimg_version 373
57+ #define cimg_version 374
5858
5959/*-----------------------------------------------------------
6060 #
@@ -28038,7 +28038,7 @@ namespace cimg_library {
2803828038 if (mp.is_fill && img._data==mp.imgout._data) {
2803928039 cimg::mutex(6,0);
2804028040 throw CImgArgumentException("[" cimg_appname "_math_parser] CImg<%s>: Function 'resize()': "
28041- "Cannot both fill and resize image (%u,%u,%u,%u) "
28041+ "Cannot both fill/eval and resize image (%u,%u,%u,%u) "
2804228042 "to new dimensions (%u,%u,%u,%u).",
2804328043 img.pixel_type(),img._width,img._height,img._depth,img._spectrum,w,h,d,s);
2804428044 }
@@ -28124,7 +28124,7 @@ namespace cimg_library {
2812428124 st.move_to(mp.list_stats[ind]);
2812528125 cimg::mutex(13,0);
2812628126 }
28127- return mp.list_stats(ind,k);
28127+ return mp.list_stats[ind].is_empty()?cimg::type<double>::nan():mp.list_stats (ind,k);
2812828128 }
2812928129
2813028130 static double mp_image_std_static(_cimg_math_parser& mp) {
@@ -28140,7 +28140,7 @@ namespace cimg_library {
2814028140 st.move_to(mp.list_stats[ind]);
2814128141 cimg::mutex(13,0);
2814228142 }
28143- return std::sqrt(mp.list_stats(ind,3));
28143+ return mp.list_stats[ind].is_empty()?cimg::type<double>::nan(): std::sqrt(mp.list_stats(ind,3));
2814428144 }
2814528145
2814628146 static double mp_image_swap(_cimg_math_parser& mp) {
0 commit comments