Magick::Image u;//somewhere filled with data
Magick::Image v;//filled with data
double p=1;//this is p{64,64};
Magick::Image result;
How can do fx? I found there is a function Image.fx but it gets std::string as parameter which is a mathematical function what to do. Can anybody help me ?
Try image->quantumOperator() with DivideEvaluateOperator or MultiplyEvaluateOperator. You'll need a HDRI-enabled version of ImageMagick to avoid clamping @ [ 0 .. 65535 ].
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.
I found there is a function Image.fx but it gets std::string as parameter which is a mathematical function what to do.
The string parameter is just the formula that was specified in the command line version "u*v / p{64,64}"
fx also takes a second parameter which is the channels which are affected. This might default to all channels if it isn't specified
- I'm not familiar with C++.
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Would either of those help? Again, I'm not familiar with C++/Magick++ so I don't know how to apply these to a Magick++ program.
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
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