image algo in hdl coder

3 visualizaciones (últimos 30 días)
Gaurav
Gaurav el 26 de Oct. de 2013
Respondida: Tim McBrayer el 28 de Oct. de 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.

Respuestas (1)

Tim McBrayer
Tim McBrayer el 28 de Oct. de 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

Categorías

Más información sobre Code Generation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by