diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lua5/imlua_process.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |