Image Processing .m Code to HDL CODE

8 ビュー (過去 30 日間)
Amal
Amal 2012 年 2 月 28 日
回答済み: Bharath Venkataraman 2015 年 4 月 15 日
I am working on an image processing noise removal code and I would like to transfer this code to HDL.
Is it supported by Embedded Matlab function or Code Generator?
If yes, what are the steps that are to be taken to go from .m to HDL? (needed in detail)
The more the links, the merrier as I am extremely confused.
P.S. My noise removal code is working perfectly.
  1 件のコメント
Kiran Kintali
Kiran Kintali 2012 年 3 月 24 日
Hi Amal,
Please check out the new demos in HDL Coder, particularly those related to our new MATLAB to HDL workflow.
The MATLAB to HDL workflow now helps you convert your floating-point MATLAB code to fixed-point and then generate optimized HDL.
We do not support Image Processing Toolbox but you can easily roll your own custom noise removal algorithm using the subset of MATLAB we support for HDL code generation.
Let me know if you need more information.

サインインしてコメントする。

回答 (2 件)

Tim McBrayer
Tim McBrayer 2012 年 2 月 28 日
You have made a pretty tall request here. The general answer is yes, you can do what you have proposed. You can use the MATLAB Function Block to generate HDL code from MATLAB code. Whether this will work for any particular MATLAB code depends on whether the code conforms to the supported language subset, and the best way to know is to try it out. If your code conforms to the embedded subset, and if your code is in a hardware-friendly design (for example: streaming pixels through the design and not operating on a full frame at once) then it can be as easy as calling your code from a MATLAB Function block.
There are a large set of demos that will help you walk through the basics of using Simulink HDL Coder; many of them use the MATLAB Function block, and there are several that use the block to implement various image processing algorithms. These are all available with the installed documentation, but one in particular that appears appropriate for your is on the MathWorks website at http://www.mathworks.com/products/slhdlcoder/demos.html?file=/products/demos/shipping/hdlcoder/hdlcoderrecon2_m.html.
  1 件のコメント
krishna amar
krishna amar 2015 年 2 月 5 日
Hi, I am unable to gernerate the VHDL test bench for the example code given On RGB to YUV convertion. Mtlab is running for long time but I am not getting the Output. I have got the VHDL code but unable to generate Test bench.Please help me with this...................

サインインしてコメントする。


Bharath Venkataraman
Bharath Venkataraman 2015 年 4 月 15 日
Is this an error or is it taking a long time? For the latter issue, reduce the amount of time you are running the simulation and see if the test bench generation completes.

Community Treasure Hunt

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

Start Hunting!

Translated by