i want to apply correlation method between two images; so i have to make some mathematical calculations on them.
after reading images from a file like this:
Image b = Image.FromFile( "c:\\standard\\test1.bmp" );
Bitmap bb = (Bitmap)b;
the problem is how can i deal with images using operators like -, /, XOR.....
I try to convert them to byte at first like this:
MemoryStream ms =
new MemoryStream();bb.Save(ms, ImageFormat .Bmp);
byte[] s = ms.GetBuffer();But that does not work!!!
thanx
Replies
Know the answer? Post it — somebody with the same question will find it here.