-
Hi
First, the fast second time loading is done by the OS, and you cannot count on it. I for one have observed sometimes slower load and more HDD scratching, the second time, for big images (10000x10000+)
About the loading. Internally FI uses libtif, so in general it will be as fast as libtiff loading is. Considering that tiff is complicated format there not may (any?) alternatives to it. I...
2009-10-07 14:38:33 UTC in FreeImage
-
Yea, it was the convention.
Simply adding DLL_CALLCONV solved it :
DLL_CALLCONV void (*ptr) (FIBITMAP*);
ptr = &FreeImage_Unload;
works fine, thanks.
2009-10-07 13:38:58 UTC in FreeImage
-
May be an embarrassment to ask, but I have problems creating a function pointer to FreeImage_* functions:
void (*ptr) (FIBITMAP*);
ptr = &FreeImage_Unload;
results in:
error: invalid conversion from 'void (*)(FIBITMAP*)' to 'void (*)(FIBITMAP*)'
And this is for all functions (and the correct pointers)
Any ideas? Probably language specific thing, Im not aware of?
Thanks...
2009-10-06 17:45:43 UTC in FreeImage
-
I have not thought of any concrete implementation, just, if they change only when the image changes, they should not be computed if its not changed...seams to be The Right Thing.
The easiest way to do this, is, of course, to let the user pass them as parameters to the tone mapping func. (side by side with the image itself). This however burdens the user with additional management, and can also...
2009-08-26 11:44:05 UTC in FreeImage
-
Oh, I have missed that! I now see its even in the docs!
Sorry, my mistake.
2009-08-26 11:18:08 UTC in FreeImage
-
Thanks for the interest.
Its a bit hard for me to respond to your comment, so I will just answer line by line.
"your formula for 8-bit 16-bit conversion seems to be wrong"
I dont do any 'bit conversions', just use the new function (which preserves bit depth) to make it possible the old conversion functions to work with more formats...
"Can you give me the list of conversions you...
2009-08-24 09:10:41 UTC in FreeImage
-
Thanks for the interest.
I just wanted to add that if we pay the prize of adding a new function (Ex)
we *should* make it possible to cache/pass-as-params the algo. prerequisites (Llav and Cav), because, as I said, they are expensive and do not change.
2009-08-24 08:46:37 UTC in FreeImage
-
I have implemented a general function for converting RGB images to monochrome.
It works with all RGB FI pixel formats, except palletized and packed (16bit)
Read the patch description for more info:
https://sourceforge.net/tracker/?func=detail&aid=2839609&group_id=11504&atid=311504
enjoy
MihailNaydenov.
2009-08-18 14:38:14 UTC in FreeImage
-
There is already (an old) Qt plug-in, listed in the main FreeImage page (http://freeimage.sourceforge.net/sourcecode.html)
May be you could check the way it is packaged.
Also, can you elaborate more on what the plug-in does and what allows you to do?
Im a Qt user also, and right now
It cannot be easier to use Fi with Qt!
Because both store images on compatible alignment (I guess...
2009-08-18 13:57:14 UTC in FreeImage
-
In my attempt to make ConvertToStandardType work also with RGB(A)16 and RGB(A)F images
I implemented a general function, for transforming an rgb image to monohrome one.
It is 'general' because R,G,B contributions to the final image are variable (including negative values),
in the end the function work exactly as Channel Mixer in PS (with monochrome checked)
The important part is that the...
2009-08-18 13:21:47 UTC in FreeImage