Search found 28 matches

by smajler
2013-12-06T01:02:07-07:00
Forum: Magick++
Topic: -flatten
Replies: 3
Views: 14872

Re: -flatten

yes there is flattenImages but how to use it? It takes few images but i have one.

Code: Select all

- clone 1,3 -compose subtract -composite -background gray50 -flatten
First i subtract image 3 from 1, then i adds background50 to image 1(subtracted) and what about flatten. It flats image 1(subtracted) with image 3?
by smajler
2013-12-04T03:41:21-07:00
Forum: Magick++
Topic: -flatten
Replies: 3
Views: 14872

-flatten

Can anybody tell me how to do -flatten and -background in Magick++:

Code: Select all

-background gray50 -flatten
I was looking in MagickCore::CompositeOperator but i didn't find flatten operator. Something like backgorund i found, but how to do gray50?
by smajler
2013-12-02T05:23:00-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 46709

Re: -fx in Magick++

Can anybody tell me how to write this line in cpp?

Code: Select all

-clone 1,3 -compose subtract -background gray50 -flatten
I can to a subtract:

Code: Select all

Image img1;
Image img2;
img1.composite(img2,0,0,ModulusSubtractCompositeOp);
but how to do a rest o line:

Code: Select all

-background gray50 -flatten
by smajler
2013-11-20T06:13:09-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 46709

Re: -fx in Magick++

noise=1 convert convolve_kernel.png -roll -64-64 -fft ( -clone 0 -crop 1x1+64+64 +repage -scale 128x128 -clone 0 -compose divide -composite ) -swap 0 +delete ( cameraman_convolve_2.png -fft ) ( -clone 0 -evaluate add noise -clone 2 - compose divide -composite ) ( -clone 1,3 -compose subtract ...
by smajler
2013-11-20T03:21:51-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 46709

Re: -fx in Magick++

I'm trying to do as you said using composite, 50% of script is done, now i have a problem with adding noise. I've found there is function:

Code: Select all

Image.addNoise(MagickCore::NoiseType)
but i'd like to add my own noise like noise=1. Is there any function to add specified noise?
by smajler
2013-11-14T08:55:07-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 46709

Re: -fx in Magick++

Next problems, now i need to divide by center pixel like:
/ p{64,64} ' \) \
but composite gets whole image not a value of pixel, and also what is the function for mod:
to do something like this:
mod(u + v + 0.5, 1.0), u, v are my images
by smajler
2013-11-07T01:05:28-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 46709

Re: -fx in Magick++

convert image1 image2 -fx 'u*v ' result.png in command to the same as: Magick::Image test("test.png"); Magick::Image kernel("kernel.png"); test.composite(kernel,0,0,MultiplyCompositeOp); test.write("result.png"); But i found that there is no division composite operator for division.
by smajler
2013-11-06T14:05:56-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 46709

Re: -fx in Magick++

still stuck on this images multiply. Don't know how to change command expression to c++ code
by smajler
2013-11-05T14:33:01-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 46709

Re: -fx in Magick++

QuantumOperator doesnt work, it looks i need to use image.fx bu how to set std::string as parameter. I need this to rewrite FFT multiply command line script to c++ Magick++ app.
by smajler
2013-11-05T07:57:22-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 46709

Re: -fx in Magick++

I have compiled with HDRI and quantum 8bit. I'll try it at home, thanks.
by smajler
2013-11-05T05:59:59-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 46709

Re: -fx in Magick++

Code: Select all

convert finalImage -fx 'firstImage * secondImage /1.00 ' .
I think something like that
by smajler
2013-11-05T02:20:03-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 46709

-fx in Magick++

Hi would anybody explain me how in Magick++ do multiply and division like this line: -fx 'u*v / p{64,64} ' u,v are Images and p{64,64} is a number. In my code i have: Magick::Image u;//somewhere filled with data Magick::Image v;//filled with data double p=1;//this is p{64,64}; Magick::Image result ...
by smajler
2013-11-03T14:13:26-07:00
Forum: Magick++
Topic: FFT with Magick++
Replies: 9
Views: 18208

Re: FFT with Magick++

I've used std::list<Magick::Image> images; but when i try to build app i'm getting linking errors: I have added fftw directories to my project but it doesn't help. FFT works in console. 1>main.obj : error LNK2001: unresolved external symbol __imp__DestroyExceptionInfo 1>main.obj : error LNK2001 ...
by smajler
2013-11-03T13:25:30-07:00
Forum: Magick++
Topic: FFT with Magick++
Replies: 9
Views: 18208

Re: FFT with Magick++

I've used std::list<Magick::Image> images; but when i try to build app i'm getting linking errors: I have added fftw directories to my project but it doesn't help. FFT works in console. 1>main.obj : error LNK2001: unresolved external symbol __imp__DestroyExceptionInfo 1>main.obj : error LNK2001 ...
by smajler
2013-11-02T13:09:33-07:00
Forum: Magick++
Topic: FFT with Magick++
Replies: 9
Views: 18208

Re: FFT with Magick++

do not work