Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

how to read image files using C - help needed

Status
Not open for further replies.

erodeboy

Member level 5
Joined
Nov 15, 2005
Messages
81
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Location
India
Activity points
1,987
read image file in c

I want to learn image processing. how can i read a image file like jpg ad bmp using C program without using readymade libraries like "fastgraph". plz help me in this regard. its urgent coz i planned to do my final year project in image processing.
 

sbob

Member level 1
Joined
Feb 13, 2002
Messages
37
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Activity points
261
read image c

Using the fopen() and fgetc() functions. Do you know C?
 

Sathish

Member level 4
Joined
Jan 6, 2006
Messages
69
Helped
5
Reputation
10
Reaction score
3
Trophy points
1,288
Location
Chennai
Activity points
1,909
read image in c

Any image files can be read with 'fopen' or other file operating commands, i hope you know that you can not read as such the actual image data will not start at the very first read operation. any image files has headers in it, for example a .bmp file has 53(approx) bytes of header. And whatever you read will be in ASCII. So be carefull.:|
 

erodeboy

Member level 5
Joined
Nov 15, 2005
Messages
81
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Location
India
Activity points
1,987
read an image using c

the thing is that i need details about the compression used in particular image formats and details about headers so that i can decode and process it
 

Sathish

Member level 4
Joined
Jan 6, 2006
Messages
69
Helped
5
Reputation
10
Reaction score
3
Trophy points
1,288
Location
Chennai
Activity points
1,909
reads the image data from jpg image using c

All image file follows particular compression standards. for example if you take .jpg image file, it follows JPEG or JPEG2000 compression standards. Understanding a JPEG header format is very complex. If you are a beginner and want to understand the basic of compression and how a image can be compressed ,try to write c program for a Gray Scale BMP image of smaller size eg. 256X256.

My final year project is on JPEG compression. so you are well come to clarify any kind of doubts on this..(but i don't have idea of header format of a JPEG)
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top