Info

This question is closed. Reopen it to edit or answer.

i want to get the size of image that can be capable for code generation

4 views (last 30 days)
i am working on fpga and i want to get the size of image input which is capable of generating code for fpga i found imread and size command are not sysntesis command in fpga so what is the next procedure.
Here i want matlab function independent code which can generate hdl code
Thanks in advance

Answers (1)

Tim McBrayer
Tim McBrayer on 19 Jan 2015
Behavioral functions like imread are not supported for HDL code generation. How can a FPGA read a file from disk? You will have to consider where the image will be coming from in your actual hardware. Will it be stored in RAM? Will it be streaming of some sort of interconnect to your FPGA? If so, what sort of interconnect?
Then, you need to decide how much of the image do you need in the FPGA at once. Are you operating on the image on a pixel by pixel basis? Or, do you need a full raster line, or even a set of lines? This all depends upon what you want to do with the image. This will guide your decisions on how to obtain portions of the image to process, and how much internal buffering you may need. These choices will also be driven by the specific FPGA that you choose. There is no explicit restriction on image size, but these characteristics of your design and of the FPGA you choose may provide restrictions.
There are several excellent examples that ship with HDL Coder that show image processing techniques, including data streaming and line buffering. I suggest you examine them for techniques and design styles that will make your task easier.

Tags

Products

Community Treasure Hunt

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

Start Hunting!