469,133 Members | 1,417 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

Compare Bytes

I need to compare to byte values, but one of them may differ from the
other by let's say 5%, and they still should count as same.
I need a fast method, because i am going to compare a set of about 1
000 000 with other set of 1 000 000 bytes. This should go in below 1
sec.

Can't figure the algorithm

What I try to achive is to compare two bitmaps, which may have some of
theit pixles in different RGB values. I need to check if those values
are in specified range, if so i want to condsider the two images as
indentical.
I iterate through all pixels of the each image and then compare it's
color value by getting separate values for R, G and B components, which
are represented as bytes.
A lot of calculations :-(

Maybe their is a faster method.

Nov 21 '05 #1
0 1121

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

122 posts views Thread by Einar | last post: by
1 post views Thread by Sunit Joshi | last post: by
3 posts views Thread by NathanV | last post: by
2 posts views Thread by SP | last post: by
5 posts views Thread by sjoshi | last post: by
5 posts views Thread by | last post: by
5 posts views Thread by Oleg Subachev | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.