|
-
November 8th, 2002, 11:12 AM
#1
reading bimaps
Hi there,
I would like to know how to read a bitmap file as input to a
program. Can you for example use the string handling functions
fgetc() and fgets() or would you use fread()?
I need to be able to compare two bitmaps and return a bool result to indicate that they are identical or non-identical.
In essence how would you go about comparing bitmaps ?
would you be comparing the numerical data for each pixel,
pixel by pixel ?
Help ....,
regards,
steve M
-
November 8th, 2002, 12:01 PM
#2
I think the best way to compare bitmaps take the hash of the both the bitmaps & then compare the the hash.
Vinod
-
November 11th, 2002, 04:29 AM
#3
Dear Vinodp,
I 'm sorry, but I do not understand your reply.
What do you mean by removing the hash ??
Can you please elaborate further,
Thanks,
Steven Matthews
-
November 11th, 2002, 09:07 AM
#4
take a look at BITMAPFILEHEADER in MSDN
that should give you a starting point for reading in the structure
Hope this helps,
Steven Roelants
-
November 11th, 2002, 01:13 PM
#5
smatthews,
Hashing is cryptographic term.
A hash is simply a "summary", or "tag", which is generated from a digital document using a mathematical rule or algorithm.
Hashing algorithm takes as input a message of arbitrary length and produces as output as fixed length(e.g. 128 bit ) "fingerprint" or "message digest" of the input.
Most importantly, it's very difficult to find two documents that have the same hash.
Its not related to bitmaps its generic cryptographic term. But using this u can easily compare the bitmaps.
Vinod
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|