image algo in hdl coder

5 views (last 30 days)
Gaurav
Gaurav on 26 Oct 2013
Answered: Tim McBrayer on 28 Oct 2013
Since we are not able to use 'imread' command in hdl coder, then how would we read an image to perform some set of operations to that image. Also how would I know that some set of functions are not supported in hdl coder.

Answers (1)

Tim McBrayer
Tim McBrayer on 28 Oct 2013
The list of MATLAB functions supported by HDL Coder are clearly listed in the documentation at http://www.mathworks.com/help/hdlcoder/ug/fixed-point-run-time-library-support.html.
The act of reading in an image needs to occur outside the hardware portion of your design. Your FPGA will not have external storage, a file system, etc., all of which would be required to support imread. You will need to:
  • Read the image into MATLAB memory in our testbench
  • Figure out how to transfer the data into the hardware DUT (Design Under Test) without using too many IO pins
  • Reassemble a portion of the data in the DUT into the form you need it to be to process the data
  • Perform your image processing
  • Transfer the data out of the DUT to its final destination

Categories

Find more on Code Generation in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!