ma*******@gmail.com writes:
I need to convert a tif image, grabbed by a pixelink industrial
camera, to a text file (1024x768 elements) but I really don't know
how.
Surfing the net I found that there are a lot of methods to write a
tiff image but how can I understand which is the one used in mine?
Can you suggest me some example of code I can use to read the image?
This isn't really a C question. comp.graphics.algorithms *might* be a
better place to ask, but first browse the newsgroup (and its FAQ, if
it has one).
But first, you need to define exactly what kind of conversion you're
looking for. I can convert a tif image to a text file by writing a
text file containing the line "This is a converted tif image.", but I
presume that doesn't satisfy your actual requirements. Do you want an
encoding from which the image can be recovered? Do you want the text
file, when displayed, to look like the image? Are you assuming that
the tif image is a picture of a printed page?
Please note that I'm not asking you to answer these questions here;
these are questions you'll need to answer for yourself so you can ask
an appropriate question in an appropriate forum.
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"