Can you tell me the color matrix of all the image filters effects like:
- GaussianBlur
- Sharpen
- Smooth
- EdgeDetectQuick
- EdgeDetectConvolution
- EdgeEnhance
- OutLine
- Sepia
- Solarize
- Sobel
I can change my images easily by using pointers in C#, but that is unsafe, so I'm avoiding it. The o开发者_StackOverflow中文版ther way to change the pixel data is color matrix. Can you help me?
There is not a unique matrix for each image processing.
They usually depend from some parameter (like σ for Gaussian Blur Matrix) and should be generated before using them to processing image.
For some matrix examples and explanation look at this Link
Anyway, there are some description also on Wikipedia:
- Gaussian Blur Matrix
- Sobel Operator
The easiest way is to use color matrix. You can change each pixel, but it will take too much time for high quality pictures.
I hope this link is useful. It was for me!
http://www.codeproject.com/KB/GDI-plus/ImageProcessing2.aspx
This one is a little bit more complicated: http://www.codeproject.com/KB/GDI-plus/Image_Processing_Lab.aspx
精彩评论