Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,557 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,931 people online right now. Registration is fast and FREE... Join Now!




Pixel values of an image to a matrix of arrays - using C

 
Reply to this topicStart new topic

Pixel values of an image to a matrix of arrays - using C, read the image, get pixel values and store them in arrays

lakshmun
28 Apr, 2008 - 05:38 AM
Post #1

New D.I.C Head
*

Joined: 28 Apr, 2008
Posts: 4


My Contributions
Hi all,

I have a project on this image handling and my only hope is this place, as i have searched the internet upside down.

my necessity is to read an image of size 256*256 or 512*512. and store the pixel values of the image in an array matrix of respective dimensions
.

Then i need to do some matrix multiplication.

My problem is reading the pixels, and rooting them to the array matrix. and all this using only C.

There are other programming languages which has in built functions but, i need to do this in C as i need to work this on hardware also

I dont know if i am clear to u. but i am online on yahoo, bol and skype . id: lakshmun
please contact

kindly help

Thank u
Lakshman

This post has been edited by lakshmun: 28 Apr, 2008 - 06:06 AM
User is offlineProfile CardPM
+Quote Post

lakshmun
RE: Pixel Values Of An Image To A Matrix Of Arrays - Using C
30 Apr, 2008 - 09:39 AM
Post #2

New D.I.C Head
*

Joined: 28 Apr, 2008
Posts: 4


My Contributions
hi again

do i have no option of doing this coding. i have seen some problems being answered in no time, but i didnot get any.

hope i have to wait

thankyou
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Pixel Values Of An Image To A Matrix Of Arrays - Using C
7 May, 2008 - 05:37 AM
Post #3

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,226



Thanked: 39 times
Dream Kudos: 25
My Contributions
What portion is giving you problems? you should be able to open the file with fopen(), read with fgetc() until you hit the EOF, and put the data into an array as you go. Is it the file handling that you require aid with? Or putting the data into matrices?
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 11:27PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month