[Imlab-users] Fwd: IM 3.1 compiling on ARM
A Free Experimental System for Image Processing
Brought to you by:
scuri
From: Jesse S. <jd...@gm...> - 2006-07-19 18:03:21
|
I am trying to use IM on an ARM platform, and I can make it compile okay, except for warnings such as the following: im_converttype.cpp im_converttype.cpp: In function `int iConvertInt2Int(int, const SRCT*, DSTT*, int, int, int) [with SRCT = imbyte, DSTT = imushort]': im_converttype.cpp:392: instantiated from here im_converttype.cpp:130: warning: comparison is always true due to limited range of data type im_converttype.cpp:130: warning: comparison is always true due to limited range of data type im_converttype.cpp: In function `int iConvertInt2Int(int, const SRCT*, DSTT*, int, int, int) [with SRCT = imbyte, DSTT = int]': im_converttype.cpp:398: instantiated from here im_converttype.cpp:130: warning: comparison is always true due to limited range of data type im_converttype.cpp:130: warning: comparison is always true due to limited range of data type I know C very well, but I don't understand the C++ code here. I don't know why these comparisons are failing. The result of using the library is that I can do some things, such as loading files and saving them in different formats, but when I try to change an RGB image to BINARY or GRAY, for example, the image comes out almost completely black, but using imlab on the desktop to convert the same image to binary works fine. -Jesse |