HDL coder on image processing

6 views (last 30 days)
prathap soma
prathap soma on 16 Jun 2017
Using HDL coder can I convert my matlab code which is on image processing side. if yes, then how would i give testbench file to coder. can any one help because am new to HDL code generator.

Answers (1)

Bharath Venkataraman
Bharath Venkataraman on 16 Jun 2017
You can use Vision HDL Toolbox blocks to design your system and generate HDL code. When you design this system, the inputs and outputs to the subsystem that you design for HDL will be used to form the Testbench. Here is an example that deals with gamma correction .
  2 Comments
prathap soma
prathap soma on 17 Jun 2017
Edited: prathap soma on 17 Jun 2017
Thank you sir for positive reply. actually I have my own MATLAB code related to image processing. Now what I want to do is converting it to VHDL. For programming into the FPGA.
here the inputs are accepted by HDL coder, MxN matrix type only. but my Image is of 3-dimensional how should i design and how should I give testbench.
Bharath Venkataraman
Bharath Venkataraman on 26 Jun 2017
As you can see in the gamma correction example I pointed out, you should not be sending the entire image in at a time, but instead serialize it using Frame To Pixels and send it 3 pixels at a time.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!