Help me on MagickColorMatrixImage
Posted: 2017-05-11T04:14:26-07:00
Anyone please show me one example about MagickColorMatrixImage method in C. I'm using Version: ImageMagick 7.0.5-5 Q16 x86_64
Method definition https://www.imagemagick.org/api/magick- ... atrixImage.
I need to pass colour matrix in the form of KernelInfo, I stuck over there. I have given some useful links below about KernelInfo.
https://imagemagick.org/api/MagickCore/ ... tml#l00102
https://imagemagick.org/api/MagickCore/ ... lInfo.html
for example I have below command. How can I pass the color-matrix parameter in MagickColorMatrixImage method ?
Method definition https://www.imagemagick.org/api/magick- ... atrixImage.
Code: Select all
MagickBooleanType MagickColorMatrixImage(MagickWand *wand, const KernelInfo *color_matrix)
https://imagemagick.org/api/MagickCore/ ... tml#l00102
https://imagemagick.org/api/MagickCore/ ... lInfo.html
for example I have below command. How can I pass the color-matrix parameter in MagickColorMatrixImage method ?
Code: Select all
convert rose: -color-matrix
' 0 0 1
0 1 0
1 0 0 ' matrix_red_blue_swap.png