Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

reading image data in C or C++

Status
Not open for further replies.

mo_ya630

Newbie level 3
Joined
Feb 3, 2008
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
hello
i want to read image data in c
please help me and get me c or c++ source code.
my project is image processing with c language and i first need to read gray level image matrix in c .
 

jhbbunch

Full Member level 4
Joined
Feb 21, 2006
Messages
199
Helped
17
Reputation
34
Reaction score
3
Trophy points
1,298
Activity points
2,902
would just creating an image object in java or .net and loading the gfx file into it and reading the pixel values help?
in .net it's just:

Image img = new Image("C:\mybitmap.bmp");

for (i = 0; i < img.Width, i++)
for(j = 0; j < img.Height, j++)
d[j] = img.GetPointAt(i,j);

Or something close to that.

Anyway, this book may be of help to you:

Compressed Image File Formats: JPEG, PNG, GIF, XBM, BMP (ACM Press)
http://rapidshare.com/files/23472861/compimgff.rar.html
 

mo_ya630

Newbie level 3
Joined
Feb 3, 2008
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
i should use only with c or c++ because of its speed
matlab is too slow.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top