Not really a C# question, but here goes anyway:
1. Assume the pixels to be zero
2. Assume the pixels to be the same as the real edge pixel
3. Mirror the two 'real' edge pixels
4. Use the two pixels from the other side of the image (assume image wraps
around).
5. Don't process the pixel unless the entire matrix 'sees' real pixels.
6. Probably a whole bunch of other things to do...
There is no *right* way to do it - it depends on what your matrix is, what
your image is, and what you're trying to do.
Hilton
"MrPolite" <kd**************@msn.com> wrote in message
news:TC*****************@twister.socal.rr.com...
I'm using a 5x5 convolution matrix to do some image processing. (I don't
really know much about image processing). I lose 2 pixels from the edges
of the image. When I apply any 5x5 matrix in photoshop however, it doesn't
lose any pixels around the edges. So I'm wondering what is usually done with
the edge pixels when using a convolution matrix???