tiff image conversion

M

massimoal

Hi all,

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?


Thanks in advance
 
T

Tor Rustad

Hi all,

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?

In the standard C library, you can use fread() to read image file, just
open the file in binary mode.

For conversion, you might want to use a graphics library, which is
off-topic.
 
U

user923005

Hi all,

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?

Have you tried SourceForge?
 
U

user923005

Hi all,

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?

Have you tried SourceForge?
 
K

Keith Thompson

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.
 
P

Procrastinx

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).
Or sci.image.processing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top