Click here to Skip to main content
14,331,896 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi!

I'd like to know how the ColorMatrix works in C#.
I need the algorithm of it, because of I want to write it to CUDA graphic card.
I searched for it, but I didn't find nothing, only the class of ColorMatrix.

Thank You for helping me!

Zollie
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Hi,

in this CP Article the transformation of RGBA values is well described, it should be clear how to write it in C (for CUDA), but it's not a weekend project.
You can also P/Invoke CUDA functions to use in .NET.

ColorMatrix Basics - Simple Image Color Adjustment[^]

With Best Regards
   
Comments
El_Codero 16-Apr-12 10:04am
   
Please consider about accepting answer if this solution fits to you. Best Regards

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100