HDRI and Q32 tif-image processing under Vista64
Posted: 2008-12-02T14:28:08-07:00
Hello friends of imagemagick,
For a scientific program, i'd like to set some calculated pixel in a 32-bit-tif image (pixel intensity represent current flow).
These values are floating point and need more range than 16-bit.
Only grayscales are needed, so I work with only one channel.
I work with ImageMagick-6.4.2-4 with the common Q16 depth (magick-config.h) under Visual Studio 2008 (Vista64).
Image my_image(Geometry(800,600), Color(MaxRGB,MaxRGB,MaxRGB,0));
my_image.pixelColor(posX,posY,Color((Quantum)70000.123,(Quantum)70000.123,(Quantum)70000.123));
//..do write_Image
Afterwards I check the Image due to correct pixel values.
The experience is: 1. no floating point and 2. no number>16Bit in the image.
But I can not change the #define MAGICKCORE_QUANTUM_DEPTH 16 to 32 or #define/#undef MAGICKCORE_HDRI_SUPPORT because afterwards Visual Studio does not compile.
error LNK2019: unresolved external symbol ""public: __thiscall Magick::Color::Color(float,float,float)" (??0Color@Magick@@QAE@MMM@Z)".
error LNK2001: unresolved external symbol ""public: __thiscall Magick::Color::Color(float,float,float,float)" (??0Color@Magick@@QAE@MMMM@Z)".
I copied some *.dll's from a Q16 windows binaries folder into the VisualMagick workspace and since now (now I need more than 16 bit and float) everything worked well.
But now I stuck in the end of my scientific calculations.
Are there Q32 binaries?..or other functions to set pixel bigger than 16-bit?
I have no idea where exactly the problem is.
I am happy about every idea!
Thanks in advance.
For a scientific program, i'd like to set some calculated pixel in a 32-bit-tif image (pixel intensity represent current flow).
These values are floating point and need more range than 16-bit.
Only grayscales are needed, so I work with only one channel.
I work with ImageMagick-6.4.2-4 with the common Q16 depth (magick-config.h) under Visual Studio 2008 (Vista64).
Image my_image(Geometry(800,600), Color(MaxRGB,MaxRGB,MaxRGB,0));
my_image.pixelColor(posX,posY,Color((Quantum)70000.123,(Quantum)70000.123,(Quantum)70000.123));
//..do write_Image
Afterwards I check the Image due to correct pixel values.
The experience is: 1. no floating point and 2. no number>16Bit in the image.
But I can not change the #define MAGICKCORE_QUANTUM_DEPTH 16 to 32 or #define/#undef MAGICKCORE_HDRI_SUPPORT because afterwards Visual Studio does not compile.
error LNK2019: unresolved external symbol ""public: __thiscall Magick::Color::Color(float,float,float)" (??0Color@Magick@@QAE@MMM@Z)".
error LNK2001: unresolved external symbol ""public: __thiscall Magick::Color::Color(float,float,float,float)" (??0Color@Magick@@QAE@MMMM@Z)".
I copied some *.dll's from a Q16 windows binaries folder into the VisualMagick workspace and since now (now I need more than 16 bit and float) everything worked well.
But now I stuck in the end of my scientific calculations.
Are there Q32 binaries?..or other functions to set pixel bigger than 16-bit?
I have no idea where exactly the problem is.
I am happy about every idea!
Thanks in advance.