I've tried several different methods and parameters now.
but the code:
Image image( "100x100", "white" );
image.read("test.jpg");
image.blur(6.0, 1.5);
image.write( "test123.jpg" );
doesn't change the image at all.
what am i doing wrong?
thanks in advance
Blur
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
- Contact:
Re: Blur
I don't know much about the Magick++ API, so your problem may be with how you are coding it.
However, try leaving the radius=0 and just change the sigma. IM will compute the appropriate radius. note the radius that it computes will be about 3x sigma
However, try leaving the radius=0 and just change the sigma. IM will compute the appropriate radius. note the radius that it computes will be about 3x sigma
Re: Blur
Works for us. We're using ImageMagick 6.7.3-6 and this code:
Code: Select all
// g++ `Magick++-config --cxxflags --cppflags` -O2 -Wall -o magick magick.cpp `Magick++-config --ldflags --libs`
#include <Magick++.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
using namespace Magick;
int main(int argc, char **argv)
{
Image image( "100x100", "white" );
image.read("test.jpg");
image.blur(6.0, 1.5);
image.write( "test123.jpg" );
}Re: Blur
well i don't get it to work.
is the blur effect then directly written into the image? so writing the image should write the blurred image to disc right?
is the blur effect then directly written into the image? so writing the image should write the blurred image to disc right?
Re: Blur
actually i don't. it looks the same as the original image. but binary data is different
Re: Blur
could you provide me you prebuilt lib? just in case i did something wrong with compiling it myself. i still don't get a blurred image, and shadow doesn't work neither.
Who is online
Users browsing this forum: No registered users and 18 guests