Continue to Site

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.

Image Conversion To Hex Format

Status
Not open for further replies.

sameem_shabbir

Advanced Member level 4
Joined
Jan 5, 2008
Messages
104
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
Pakistan
Activity points
1,946
How should i convert imags into hex format for downloading into SDRAM

I have one downloadable file which has a format like
+10 00000 FB AC ..................................
+10 00001 10 23 ...................................
............................................................

I had a netpbm software which can do this but it is giving some problems.
 

I need to see more detail of the file and more lines, but it looks like something you could make short work of with a pearl script. (or python script) I have never seen an image converter specifically for something like this.
 

Yes you are right

There is a pearl .pl file given for conversion
The pearl file requires netpbm software (and in specific jpegtomn.exe file)
 

Hi,

The image file format will be 24bit, each representing a pixel. Each pixel can be read out as 3 bytes. Depending on the SDRAM width you can store them.

Carefully you have to read out contents from the image file, like you have to omit first 24 bytes.

If you need more details contact me.

Regards,

N.Muralidhara

CRL-BEL

Added after 2 hours 58 minutes:

Hi,

Write one small piece of code in Matlab to read the image, in the byte by byte format. And store them as a array in the Matlab in the .hex format. No other conversion techniques are required.

If you need more information, don't hesitate to contact me.

Regards,

N.Muralidhara
CRL-BEL
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top