applying transformation matrixes in magickwand

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
monsters

applying transformation matrixes in magickwand

Post by monsters »

Hi there,

I am doing a project that involves synching flash image manipulations with php. I am successfully using a convolution matrix to do emboss,
eg:
MagickConvolveImage($newsource2,Array(-2,-1,0,-1,1,1,0,1,2));


but cannot find a way to apply a color matrix..
eg:
Photo Negative – a colour matrix

-1 0 0 0 256

0 -1 0 0 256

0 0 -1 0 256

0 0 0 1 0

Anyone know if this is possible? the colour matrix appears to be a standard image manipulation scheme, so i'd be surprised if it didn't exist...
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

It does not exist at this time. Also if it did it would be 'Q' dependant.

It was only recentally a reference to using color manipulation matrixes was given on the lists, and no one is doing much with them at this time.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

A color matrix feature is written, we just need to get it into the beta distribution. Perhaps in a week or two. We make it depth independent by using normalized values, typically -1.0 - 1.0.
monsters

Post by monsters »

This is the first hint I've had that the project is actually still under devlopment!!!

Well, that's very exciting, how likely is the timeline you suggest here? 2 weeks from now goes over xmas and such, so it seems to me optimistic that anything would happen then...

Great job! I wish i could help out, but my job is all consuming.

monsters.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

The project has pretty well never stopped developing. With advanced in areas like -layer animations, color quantization, new features in the -fx espresions, extenstions into user define threshold maps and posterized coloring for -ordered-dither, better interpolation color lookup for -fx, rotations, and other distortions.

On top of this there have been major breakthroughs in advanced Im usage using the power of -fx to add 2 dimentional color gradients, positional distortion maps, and just last week perspective transformations which are so powerful that it will be added to the IM core real soon.

Current work is on Affine tranformations (fixing of long term bugs), perspective transformtion, edge following path generating funtions, and of course thanks to your input, color matrix development.

Things are always improving as changes to Im examples, trying to show these improvements can attest. In that area I myself am trying to slowly build up a reference index of IM options to major examples of those options.

Busy Busy Busy...
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply