image algo in hdl coder

5 Ansichten (letzte 30 Tage)
Gaurav
Gaurav am 26 Okt. 2013
Beantwortet: Tim McBrayer am 28 Okt. 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.

Antworten (1)

Tim McBrayer
Tim McBrayer am 28 Okt. 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

Kategorien

Mehr zu Code Generation finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by