freeimage

imageio: How to increase quality of output gifs?

主宰稳场 提交于 2021-02-08 14:10:23
问题 I have a list of .png (PIL) images I want to string together into an animated gif To do this, I am currently using the imageio library However, I cannot find a way to do this to produce good quality gifs As far as I know, there are two types of settings I can change. The imageio.imread() settings for reading .pngs, and the imageio.mimwrite() settings for writing gifs. According to imageio.help() , imageio.imread() has one read paramter only for PNG-PIL , ignoregamma which takes a boolean.

Getting FreeImage to work with Visual Studio 2010

£可爱£侵袭症+ 提交于 2020-01-05 03:08:06
问题 I was advised by some of you not to long ago to use FreeImage as a library for image processing in C++. I now have some trouble in getting the library to work (still relatively new here). I've tried loading the various vcxproj and sln tiles and they gave me a blank project. Since there isn't any installation instructions provided for that, I gave up on making it a visual studio solution. I next tried the old-fashion way of compiling the source code using the Makefile and then adding

c++ - FreeImage+OpenCV - 16bit image get distorted

人盡茶涼 提交于 2019-12-31 06:41:46
问题 I'm trying to load an image because I have to apply an algorithm on it. If I load an 8 bit-per-channel image there are no problems, but if I load a 16bpc image then it get "ruined". Unfortunatly, since I don't have enough reputation I can't uplad images. Those are the links to them: Either the source and the 8bpc processing result http://postimg.org/image/gc0zf2lp5/ ..result if I process the same image saved as 16bpc http://postimg.org/image/5nnwee7df/ And this is the code: FreeImage

Copy OpenCV IplImage or Mat into Freeimage FIBITMAP

为君一笑 提交于 2019-12-25 07:48:43
问题 I need to exchange data between FreeImage (FIBITMAP) and OpenCV format (IplImage and/or Mat). I'm fine with getting data from a FIBITMAP into an IplImage or Mat since FreeImage gives you a function FreeImage_GetScanLine which you can set the OPenCV imageData ptr equal to. However, I'm stuck on how to do the reverse, i.e. once I have an OpenCV image, how do I get its data into a FreeImage image? 回答1: You have to be a little careful just copying the data pointer, a lot of image formats have

FreeImage on C#

雨燕双飞 提交于 2019-12-25 05:14:50
问题 I've downloaded the latest compiled version of FreeImage, then build FreeImageNet wrapper. Put FreeImage.dll and FreeImageNet.dll on the same folder as my executable (the sample code). But everytime I run it, it says freeimage.dll is missing. I modified the code on FreeImageWrapper.cs and remove the exception handler public static bool IsAvailable() { /*try {*/ // Call a static fast executing function Version nativeVersion = new Version(GetVersion()); Version wrapperVersion =

FreeImage on C#

核能气质少年 提交于 2019-12-25 05:14:02
问题 I've downloaded the latest compiled version of FreeImage, then build FreeImageNet wrapper. Put FreeImage.dll and FreeImageNet.dll on the same folder as my executable (the sample code). But everytime I run it, it says freeimage.dll is missing. I modified the code on FreeImageWrapper.cs and remove the exception handler public static bool IsAvailable() { /*try {*/ // Call a static fast executing function Version nativeVersion = new Version(GetVersion()); Version wrapperVersion =

load tiff using FreeImage

情到浓时终转凉″ 提交于 2019-12-24 09:36:55
问题 I tried this code with FreeImage to load my tif, and i get no error, but also no output. It works just fine if the input is a jpg. My tiff input is 16-bit greyscale. public void OpenRotateSave() { // load image, 16-bit tif FIBITMAP dib = FreeImage.Load(FREE_IMAGE_FORMAT.FIF_TIFF, "Mytif.tif",FREE_IMAGE_LOAD_FLAGS.DEFAULT); // save image FreeImage.SaveEx(dib, "MyTifOut.jpg"); // unload bitmap FreeImage.UnloadEx(ref dib); } I tried to Load without the modifiers, using just the filename, the

FreeImage_GetFileType not working in Android NDK

旧城冷巷雨未停 提交于 2019-12-24 09:05:39
问题 I am currently trying to create a multiplatform application (targets are Windows and Android via ndk). So the problem is in textures (as in topic of this post). It works great on windows, but in Android FreeImage_GetFileType returns FIF_UNKNOWN , despite the fact that I can read part of .png file manually from same file path (only PNG file magic, beceause then it contains some null bytes). I use them this way (only part connected to this issue): Texture::Texture(std::string fpath) :Resource

Building & Linking FreeImage with Visual Studio Express 2013

房东的猫 提交于 2019-12-23 00:50:09
问题 I'm having a lot of trouble linking my project with FreeImage library with VSE 2013 I've followed this answer for VS2010 to no avail: Linking FreeImage as a static library in VS2010? I am getting LNK2019 errors when calling FreeImage functions. I've linked the library just as I would any library. Below are the following steps I made: Download FreeImage Source. Open the 2008 Solution (converted to 2013) and changed Code Generation to /MDd for all projects Attempted to build project but for

How do I load textures to OpenGL using FreeImage library?

风流意气都作罢 提交于 2019-12-20 10:44:07
问题 I'm learning OpenGL in C++ using NeHe tutorials, but I'm trying to do them with FreeImage library, instead of Glaux or SOIL. The good point I see in using FreeImage is thar it's last update was in October last year, while SOIL hasn't been updated in 5 years. The problem I have is that I'm not able to load textures correctly. Here is my code: static GLuint texture = 0; if (texture == 0) { FIBITMAP* bitmap = FreeImage_Load( FreeImage_GetFileType("textures/test/nehe_06.png", 0), "textures/test