Re: [Imlab-users] Fwd: IM 3.1 compiling on ARM
A Free Experimental System for Image Processing
Brought to you by:
scuri
From: Antonio S. <sc...@te...> - 2006-07-19 18:20:53
|
At 15:03 19/7/2006, Jesse Schwartzentruber wrote: >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. That warnings should be harmless. Do not worry about them. >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. Notice that the warnings are on "im_converttype.cpp" that do not affect the color convertions in "im_convertcolor.cpp". Any warnings on that module? Best, scuri |