473,511 Members | 17,017 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

tiff image conversion

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

Oct 15 '07 #1
5 3014
ma*******@gmail.com wrote:
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.

--
Tor <torust [at] online [dot] no>

C-FAQ: http://c-faq.com/
Oct 15 '07 #2
On Oct 15, 9:58 am, massim...@gmail.com wrote:
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?

Oct 15 '07 #3
On Oct 15, 9:58 am, massim...@gmail.com wrote:
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?

Oct 15 '07 #4
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"
Oct 16 '07 #5
On Oct 16, 5:33 am, Keith Thompson <ks...@mib.orgwrote:
massim...@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).
Or sci.image.processing.

Oct 16 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3018
by: alastair | last post by:
Hi, I need to convert a 24-bit RGB TIFF image to an 8-bit RGB TIFF image. I've tried using PIL and the convert() method - this allowed me to convert to an 8-bit grayscale image, close but not...
0
17844
by: Nicolas Guilhot | last post by:
Hi all ! I have a multi-page Tiff image file that I want to convert to PDF. To do so I am using iText library. The conversion is working, but the code execution is very different according to...
1
12277
by: Maurice Mertens | last post by:
Hello, I'm having troubles with saving a tiff-file with a certain compression and colordepth. This is the code I use: ----------------------------------------------------------------------...
2
1525
by: wayne | last post by:
Hi, May I know how to use VC++ to write a program that can read a TIFF image file? thanks alot --
3
5856
by: T. Davis | last post by:
In C#, I am able to successfully stream a TIFF image that comes from a BLOB field in a database, save it to file, then convert the pages within TIFF file into jpegs (using GDI+) and display on the...
2
3565
by: Al Reid | last post by:
Is it possible to display an image that is stored on the server as a TIFF image, on an ASP.Net page without the use of an add-in viewer? If so, could someone tell me how to do it? TIA -- Al...
10
11027
by: rtilley | last post by:
Hope it's not inappropriate to post this here. Could someone critique my code? I have no Python programmers in my office to show this to. The script works OK, but should I do it differently? I...
7
3769
by: Ben | last post by:
Hi We are looking for a component that offers that offers the below for Tiff files: Image clean-up (deskew, despeckle) Printing capabilities from VB The ability to add text to image, e.g....
2
4963
by: mndprasad | last post by:
hi all i am doing a project in java where i need to convert 10 jpeg images into a single tiff image..conversion of single jpeg image to single tiff is happening but embedding all the 10 jpeg images...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.