help need filter like Cimg convolve
Posted: 2014-09-29T18:40:52-07:00
Hi all!
I'm using last console version of IM on Windows.
I'm looking for filter in imagemagick which will transform image like
Cimg.get_convolve method:
To turn this:

into this:

I tried
convert -median 7x7 in.png out.png
convert -convolve "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" in.png out.png
convert -mean-shift 7x7+10% in.png out.png
and some others, but it didn't help
Which is type of transformation, mask that i need to apply to accomplish that??
Thanks in advance!!!!
I'm using last console version of IM on Windows.
I'm looking for filter in imagemagick which will transform image like
Cimg.get_convolve method:
Code: Select all
CImg<uint8_t> src;
src.load(file);
// create 7x7 matrix with 3 channels, filled with 1
CImg<float> meanfilter(7,7,1,3,1);
CImg<float> img;
img = src. get_convolve(meanfilter);
img.save_jpeg("D:\\meanfilter.jpg");

into this:

I tried
convert -median 7x7 in.png out.png
convert -convolve "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" in.png out.png
convert -mean-shift 7x7+10% in.png out.png
and some others, but it didn't help
Which is type of transformation, mask that i need to apply to accomplish that??
Thanks in advance!!!!