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.

Calculate histogram of grascale image en FPGA- VHDL code & show on VGA

Status
Not open for further replies.

ser_su

Newbie level 2
Joined
Oct 28, 2015
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
25
I'm doing a school proyect that I need to finish pls help!
I need to calculate the histogram en code VHDL of an grayscale image 128*128.
The input image is received via RS-232 from Matlab to FPGA Spartan 3E(xilinx), and must be stored in BRAM ipcore or 2d-ram (can be an external SRAM also i hear from the board).
The histogram obtained is shown on the computer monitor (VGA640x480).
Pls help me with this project I just started with course so I am a beginner.
Thanx in advance...
 

I'm doing a school proyect that I need to finish pls help!
.....
Pls help me with this project I just started with course so I am a beginner.
Thanx in advance...

Be more specific on what problems you are having...otherwise this just read as: "Can you please do my homework for me?"
 

So I have my image grayscale 128*128 already in matlab prepared, color image converts with simple code rgb2grascale. I made de module to receive image through serial port rs232 in my fpga en have VGA controlers already 640_60&800_60 .
I dont know how to convert pixel(8bit) in memory(RAM) to bin intervals and then show histogram on monitor.
I hope that you could understand me, any ideas pls.
 

read data (pixels) check against the ranges for the bins, increment the bin count (another memory) that has a range that matches the pixel, display the resulting counts on the monitor.

Of course this is probably what you were supposed to "design" (i.e. figure out on your own).
 

You understand the design requirement...
You understand you need a uart block, a vga block

However you are fuzzy about the processing block.

so...you need to store and array(or block ram) the pixels . Storage is one aspect.
You need to process the stored data. Comparison is another aspect.
You need to collect data into blocks. Storage 2


From a psudeo code point of view
type : x_axis is array (1 to ??) of integer

x_axis(1) is implemented when pixel(7downto0) = condition

I hope this is food for thought
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top