matrix display

Hello,

I wanted to know if there was a way for me to display the RGB, GRAYSCALE, etc. values of a texture. I need this operation because I want to use a convolution mask on my image. I would like to see the before and after matrix.

any help would be great

Vivek