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
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" );
}