diff options
-rw-r--r-- | html/en/history.html | 6 | ||||
-rw-r--r-- | src/lua5/imlua_process.c | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/html/en/history.html b/html/en/history.html index 4814980..55fe535 100644 --- a/html/en/history.html +++ b/html/en/history.html @@ -49,6 +49,12 @@ style="color: #000000"> <span class="hist_fixed">Fixed:</span> im.<strong>ProcessAddMargins</strong> in Lua to accept sizes greater or equal than the source size.</span></span></li> + <li dir="ltr"><span style="color: #008000"> + <span + style="color: #000000"> + <span class="hist_fixed">Fixed:</span> im.<strong>ProcessUniformErrThreshold</strong>, + im.<strong>ProcessMinMaxThreshold</strong> and im.<strong>ProcessPercentThreshold</strong> + return value in Lua.</span></span></li> </ul> <h3 dir="ltr"> <a href="http://sourceforge.net/projects/imtoolkit/files/3.6.3/">Version diff --git a/src/lua5/imlua_process.c b/src/lua5/imlua_process.c index bb81512..1e31617 100644 --- a/src/lua5/imlua_process.c +++ b/src/lua5/imlua_process.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_process.c,v 1.14 2011/05/02 19:23:57 scuri Exp $ + * $Id: imlua_process.c,v 1.15 2011/08/29 16:21:31 scuri Exp $ */ #include <memory.h> @@ -2766,7 +2766,7 @@ static int imluaProcessUniformErrThreshold (lua_State *L) imlua_checkcolorspace(L, 2, dst_image, IM_BINARY); imlua_matchsize(L, src_image, dst_image); - lua_pushboolean(L, imProcessUniformErrThreshold(src_image, dst_image)); + lua_pushinteger(L, imProcessUniformErrThreshold(src_image, dst_image)); return 1; } @@ -2801,7 +2801,7 @@ static int imluaProcessPercentThreshold (lua_State *L) imlua_checkcolorspace(L, 2, dst_image, IM_BINARY); imlua_matchsize(L, src_image, dst_image); - lua_pushboolean(L, imProcessPercentThreshold(src_image, dst_image, percent)); + lua_pushinteger(L, imProcessPercentThreshold(src_image, dst_image, percent)); return 1; } @@ -2817,7 +2817,7 @@ static int imluaProcessOtsuThreshold (lua_State *L) imlua_checkcolorspace(L, 2, dst_image, IM_BINARY); imlua_matchsize(L, src_image, dst_image); - lua_pushnumber(L, imProcessOtsuThreshold(src_image, dst_image)); + lua_pushinteger(L, imProcessOtsuThreshold(src_image, dst_image)); return 1; } @@ -2834,7 +2834,7 @@ static int imluaProcessMinMaxThreshold (lua_State *L) imlua_checkcolorspace(L, 2, dst_image, IM_BINARY); imlua_matchsize(L, src_image, dst_image); - lua_pushboolean(L, imProcessMinMaxThreshold(src_image, dst_image)); + lua_pushinteger(L, imProcessMinMaxThreshold(src_image, dst_image)); return 1; } |