reading jpg image

B

biplab

Hi all,

s it possible to read a jpg image in C language??and after reading the
image,can I perform some manipulations on the pixel values to perform
some image processing tasks and the output the new modified image??

Thanks in advance.

biplab
 
O

osmium

biplab said:
s it possible to read a jpg image in C language??and after reading the
image,can I perform some manipulations on the pixel values to perform
some image processing tasks and the output the new modified image??

Yes, you can do that. Be sure to open both files in binary mode. You
wouldn't *have to* in Unix but I think it is a good practice to follow
anyway.
 
B

bartc

biplab said:
Hi all,

s it possible to read a jpg image in C language??and after reading the
image,can I perform some manipulations on the pixel values to perform
some image processing tasks and the output the new modified image??

Sure. But jpg format is quite complicated and normally you'd use an existing
library to do the work of reading jpg and writing it out again.

(I used one very good library for Windows, Intel's IJL, supplied as DLL
files and some C headers, but I think Intel has withdrawn that product and
you might only come across it bundled with the odd application. But there
should be other libraries out there supplied as sources.)
 

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,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top