freeimage

Add FreeImage .NET to solution

别等时光非礼了梦想. 提交于 2019-12-19 09:44:06
问题 I have followed the posts on this, but i am still not getting a few steps. I am new to C#, and that is probably the issue. I would love a little help (I have been banging on this all day). I can open the FreeImage.NET solution (Win7 64 bit machine btw) in Visual Studio. This post says i need to Build it to get the C# dll. When i build it, i get hundreds of errors "type or namespace 'Name' could not be found". Does it need the C++ DDL added first? I dragged and dropped it onto the solution,

Convert FreeImage FIBITMAP format to OpenCV Mat

梦想与她 提交于 2019-12-18 07:23:19
问题 I've been searching on an answer but all I can find is the inverse of what I need (Mat to FIBITMAP). I have a short code that loads images as FIBITMAP objects. I need FreeImage because OpenCV doesn't allow me to load pfm and some other extension files. What I'm trying to do is convert the FIBTMAP image into an OpenCV Mat so that I can use this in a much longer code I already have. How do I do? 回答1: The funtion FI2MAT will perform the conversion from FreeImage to OpenCV Mat. I cannot

Why FreeImage loads image in BGR format?

青春壹個敷衍的年華 提交于 2019-12-13 12:16:17
问题 I write game using Android NDK and FreeImage library to load images into my game. It loads images in BGR format. It is possible to load in RGB format? Or I need to swap R and B components manualy? Edited My device is Samsung Galaxy S4(armv7 archtecture). Here is code` FIMEMORY* fiStream = FreeImage_OpenMemory((BYTE*)data, size); FREE_IMAGE_FORMAT fif = FreeImage_GetFileTypeFromMemory(fiStream); if (FreeImage_FIFSupportsReading(fif)) { dib = FreeImage_LoadFromMemory(fif, fiStream, 0); } if (

Fail to static linking FreeImage 3.15.4 on MingW

丶灬走出姿态 提交于 2019-12-12 00:29:22
问题 I can't static lingking FreeImage 3.15.4 on MingW (either using .lib nor .a). I always receive error "undefined reference to" all FreeImage method. While I successfully dynamic linking the library. Then I try build from the source, it's the same. I also try using 3.15.3, both static and dynamic is success. But there's a bug in those version (opening some JPEG). Need help with this. My code only 1 file, purge.cpp #define FREEIMAGE_LIB #include "FreeImage.h" #include <iostream> #include

Distributing ruby script with image conversion

≡放荡痞女 提交于 2019-12-11 16:49:19
问题 I would like to distribute an executable for Mac/Windows of a Ruby script that (besides other things) will be doing a conversion from/to common image formats to .xpm / X PixMap (wikipedia) I know about the following gems that act as a wrapper around pre-installed libraries (mostly ImageMagick): RMagick, Mini magick, Image science, Magickly, Devil, Im magick, Free-image, etc. The problem boils down to, from what I understand, the following: Imagemagick and Freeimage need to be installed on the

Convert floating point RGBA bitmap to standard Dotnet Bitmap

北慕城南 提交于 2019-12-11 10:33:21
问题 I'm trying to use the FreeImage.Net library to open the image and convert it to a standard bitmap, but either there must be a step I'm missing, or FreeImage simply can not convert floating point RGBA to 32BPP RGBA: FreeImageBitmap fib = new FreeImageBitmap("C:\\test.exr"); Console.WriteLine(fib.ImageType); //FIT_RGBAF fib.ConvertType(FREE_IMAGE_TYPE.FIT_BITMAP, true); //returns False Conversion fails: Can not convert from type 12 to type 1; No such conversion exists. I need this as a 32BPP

#include <FreeImage.h> not found

亡梦爱人 提交于 2019-12-11 09:25:18
问题 I have compiled FreeImage from source and installed it. When I run sudo make install in installs the following files on my system /usr/local/include/FreeImage.h /usr/local/lib/libfreeimage-3.10.0.dylib /usr/local/lib/libfreeimage.a However in my C++ program it says error file not found when I do this: #include <FreeImage.h> I have tried adding this to my system path file: sudo vi /etc/paths #FreeImage /usr/local/include /usr/local/lib But C++ still cannot find my #include inside Xcode or with

Linker errors with external NDK library that needs 'cpufeatures'

纵饮孤独 提交于 2019-12-10 19:57:01
问题 I'm trying to build and link freeimage to an android project. I'm close but I'm tripping up on some linker errors from that library. I'm using this repo: https://github.com/jamcar23/FreeImage-Android/blob/master/jni/freeimage/Android.mk Freeimage uses the internal NDK library 'cpufeatures' to use xeon chipset features. In the project's 'android.mk', there's a reference to the cpufeatures library: LOCAL_STATIC_LIBRARIES := cpufeatures and my library, which statically links to this one, also

TIFF with JPEG-compression much larger than original JPEG

落爺英雄遲暮 提交于 2019-12-10 10:54:44
问题 I am trying to convert JPEGs to TIFFs with JPEG-compression using FreeImage.Net and C#. This works fine, however, for low-quality JPGES the TIFF-files are a lot larger than the original. I assume the TIFF-size does not depend on the original JPEG-Quality, because the output-images were always about the same size. For example (converting a screenshot): 2065kb JPEG (quality: 100%) --> 1282kb TIFF 379kb JPEG (quality: 50%) --> 1200kb TIFF This increase in size is not acceptable for our company,

How to compile FreeImage on Mac OS X 10.8?

独自空忆成欢 提交于 2019-12-07 13:27:20
问题 When trying to build FreeImage 3.1.5.4 on Mac OS X 10.8 with make make the following error g++-4.0: No such file or directory occurs. There is something wrong with the makefile regarding the compiler configuration. How to fix this? 回答1: The makefile.osx of FreeImage 3.1.5.4 is outdated for OS X versions > 10.6. See the bottom of this post for a modified version. In addition to address the issue described at FreeImage issue tracker you need to add a line to Source/OpenEXR/IlmImf/ImfAutoArray.h