Search found 28 matches

by smajler
2013-11-02T12:32:58-07:00
Forum: Magick++
Topic: FFT with Magick++
Replies: 9
Views: 17210

Re: FFT with Magick++

I have compiled 8bit with HDRI. FFTW included. In cmd all FFT/IFT scripts work, now i'd like to use it in c++.
by smajler
2013-11-02T12:02:16-07:00
Forum: Magick++
Topic: FFT with Magick++
Replies: 9
Views: 17210

FFT with Magick++

Hi i'm trying to do convolution/deconvolution in Magick++ according to scripts at http://www.imagemagick.org/Usage/fourier/fft_math/ . Now i'm stuck on FFT, in Magick++ there is a function: Magick::forwardFourierTransformImage and i'm trying to use it with: Magick::Image images[2]; Magick::forwardFo...
by smajler
2013-10-29T14:16:12-07:00
Forum: Users
Topic: 3x3 convolution kernel to IM ftt convolution
Replies: 3
Views: 3532

Re: 3x3 convolution kernel to IM ftt convolution

i've compiled IM to Quantum 8 bit ( i need 8 bit), set define to use HDRI 1, and add #define MAGICKCORE_FFTW_DELEGATE. This configuration should be ok i think. I need so small kernel, becouse i'm developing application where user sets a kernel 3x3 or 5x5 manually and then with this kernel i'd like t...
by smajler
2013-10-25T06:16:09-07:00
Forum: Users
Topic: 3x3 convolution kernel to IM ftt convolution
Replies: 3
Views: 3532

3x3 convolution kernel to IM ftt convolution

Hi there i'm wondering is there any way to convert simple 3x3 convolution kernel like: [1,2,1] [2,4,2] [1,2,1] to ImageMagick FTT convolution/deconvolution. In IM ftt i saw that there authors for kernel use image with the same size as input image with circle filled of solid white color or white tone...
by smajler
2013-05-23T00:52:13-07:00
Forum: Magick++
Topic: ColorRGB values
Replies: 5
Views: 16824

Re: ColorRGB values

SOLVED. I have compiled IM do 8 bit with #define MAGICKCORE_QUANTUM_DEPTH 8 Now code: Magick::ColorRGB color( 255 , 128 , 64 ); cout<<256-color.red()*255<<" "; cout<<256-color.green()*255<<" "; cout<<256-color.blue()*255<<" "; Does exacly what i wanted, output is 255, 1...
by smajler
2013-05-21T21:21:04-07:00
Forum: Magick++
Topic: ColorRGB values
Replies: 5
Views: 16824

Re: ColorRGB values

i'm using windows with visual2010. Anyway don't you see that red green blue values are very close to each other and dividing by 256 returns ~255 is it correct? I think they should be different. EDIT: Found in VisualMagick\ configure.exe button to edit "magick-baseconfig.h" and there is a d...
by smajler
2013-05-21T13:49:44-07:00
Forum: Magick++
Topic: ColorRGB values
Replies: 5
Views: 16824

Re: ColorRGB values

Where can i find sources to compile 8 bit version?
by smajler
2013-05-21T13:15:39-07:00
Forum: Magick++
Topic: ColorRGB values
Replies: 5
Views: 16824

ColorRGB values

Hi can anybody explain me why this code: Magick::ColorRGB color( 255 , 128 , 64 ); cout<<color.red()<<" "; cout<<color.redQuantum()<<endl; cout<<color.green()<<" "; cout<<color.greenQuantum()<<endl; cout<<color.blue()<<" "; cout<<color.blueQuantum()<<endl; outputs value...
by smajler
2013-05-21T10:29:49-07:00
Forum: Magick++
Topic: Can not read image correctly
Replies: 1
Views: 7428

Re: Can not read image correctly

Can you show a code ?
by smajler
2013-05-20T07:31:37-07:00
Forum: Magick++
Topic: Getting pixels to byte array[]
Replies: 0
Views: 8250

Getting pixels to byte array[]

Hi i'd like create function which gets as parametr byte array with all image data like: :BlueGreenRedAlpha:BlueGreenRedAlpha:BlueGreenRedAlpha:BlueGreenRedAlpha:BlueGreenRedAlpha Blue is byte, Green is Byte etc. Width and Height is known. Now how can i convert byte array such like this to PixelPacke...
by smajler
2013-05-20T07:22:00-07:00
Forum: Magick++
Topic: problem: Install Magick on Visual studio 2010 - MFC
Replies: 3
Views: 13247

Re: problem: Install Magick on Visual studio 2010 - MFC

Week ago i've installed Magick++ on Visual C++ 2010 express. Step1. Go to VisualMagick\configure and start configure.exe. Use default options and start to build solution. Open generated solution from VisualMagick folder and build it for Debug and Release. Step2. Create new solution (console app for ...
by smajler
2013-05-18T09:31:30-07:00
Forum: Users
Topic: Distort Perspective
Replies: 7
Views: 9573

Re: Distort Perspective

witch +distort Perspective i've achived in 90% what i wanted. Output image is resized but ImageMagick adds a 2 pixel width border, so output image is 102x152px instead of 100x150. Do you know how it would be in Magick++ (C++) diffrence between -distort and +distort ?

Anyway thanks a lot :)
by smajler
2013-05-17T09:32:01-07:00
Forum: Users
Topic: Distort Perspective
Replies: 7
Views: 9573

Distort Perspective

Hi everyone i have a question like is there any way to do Perspective distortion which resizes image? Example: Original image size : 100x100px Now i'd like to do Perspective distortion to get image with size 100x150px: 0,0,0,0 0,100,0,100 100,0,100,0 100,100,100, 150 When i'm using points like above...