Search found 28 matches
- 2013-11-02T12:32:58-07:00
- Forum: Magick++
- Topic: FFT with Magick++
- Replies: 9
- Views: 17504
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++.
- 2013-11-02T12:02:16-07:00
- Forum: Magick++
- Topic: FFT with Magick++
- Replies: 9
- Views: 17504
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...
- 2013-10-29T14:16:12-07:00
- Forum: Users
- Topic: 3x3 convolution kernel to IM ftt convolution
- Replies: 3
- Views: 3570
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...
- 2013-10-25T06:16:09-07:00
- Forum: Users
- Topic: 3x3 convolution kernel to IM ftt convolution
- Replies: 3
- Views: 3570
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...
- 2013-05-23T00:52:13-07:00
- Forum: Magick++
- Topic: ColorRGB values
- Replies: 5
- Views: 17050
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...
- 2013-05-21T21:21:04-07:00
- Forum: Magick++
- Topic: ColorRGB values
- Replies: 5
- Views: 17050
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...
- 2013-05-21T13:49:44-07:00
- Forum: Magick++
- Topic: ColorRGB values
- Replies: 5
- Views: 17050
Re: ColorRGB values
Where can i find sources to compile 8 bit version?
- 2013-05-21T13:15:39-07:00
- Forum: Magick++
- Topic: ColorRGB values
- Replies: 5
- Views: 17050
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...
- 2013-05-21T10:29:49-07:00
- Forum: Magick++
- Topic: Can not read image correctly
- Replies: 1
- Views: 7460
Re: Can not read image correctly
Can you show a code ?
- 2013-05-20T07:31:37-07:00
- Forum: Magick++
- Topic: Getting pixels to byte array[]
- Replies: 0
- Views: 8280
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...
- 2013-05-20T07:22:00-07:00
- Forum: Magick++
- Topic: problem: Install Magick on Visual studio 2010 - MFC
- Replies: 3
- Views: 13320
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 ...
- 2013-05-18T09:31:30-07:00
- Forum: Users
- Topic: Distort Perspective
- Replies: 7
- Views: 9677
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
Anyway thanks a lot
- 2013-05-17T09:32:01-07:00
- Forum: Users
- Topic: Distort Perspective
- Replies: 7
- Views: 9677
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...