EmbDev.net

Forum: FPGA, VHDL & Verilog VHDL Img processing with 4 bits


von Alex (Guest)


Rate this post
0 useful
not useful
Hi Everyone ,
So basically , I wrote a VHDL file where I could read a bitmap image 
with 24 bits per pixel .

You can check it out here
https://gist.githubusercontent.com/GhassenJamoussi99/f6f82cd6e31c0189803abd643ee553a6/raw/4ddf0c1a3e367567b3e6986870ad648acff336ec/Readbmp

The problem right now is that I want to read a VHDL file with 4 bits per 
pixel .
Due to the lack of documenation of the 4 bits per pixel .
I couldn't manage to modify my code to a 4 bit system .

in 24bit map we know that  the  type header in the bitmap24-bit is 54 .
But no idea concerning the 4bits per pixel

I appreciate any ideas , solutions or any fixes in how to read 4 bitmap 
image or how to change my code

von Michael D. (Guest)


Rate this post
0 useful
not useful
Alex wrote:
> read a bitmap image with 24 bits per pixel .
> Due to the lack of documenation of the 4 bits per pixel .

There are many graphics formats which contain "bitmaps". The question is 
which of them do you use? You could start with the file extension of the 
"bitmap" files or the application which produces them.

Information about the ".BMP" format can be found here, but without more 
information, is it unclear which format you use:
https://en.wikipedia.org/wiki/BMP_file_format

 Michael

von User (Guest)


Rate this post
0 useful
not useful
for images you can use NETPBM
https://en.wikipedia.org/wiki/Netpbm_format
it is well documented and GIMP or ImageMagic can write/read the files.

von Alex (Guest)


Attached files:

Rate this post
0 useful
not useful
This is the format that I used to write my VHDL program .

von Alex (Guest)


Rate this post
0 useful
not useful
If there is a table like this but with 4bit format or you know the 
characteristics of it . I would really appreciate it .

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig