Need help to do image processing for an image captured by Terasic 5M pixel camera connectd to Altera Cyclone II FPGA.

1 回表示 (過去 30 日間)
My code to capture and display image is in Verilog. I have to do image enhancement and edge detection.How can i do this in Matlab and convert it into Verilog file so that i can import it in Quartus.

採用された回答

Tim McBrayer
Tim McBrayer 2011 年 7 月 11 日
Once you have designed and tested your algorithm in Simulink, you can use Simulink HDL Coder to convert your Simulink model into either Verilog or VHDL. You will even be able to incorporate your existing Verilog code into your Simulink simulation using EDA Simulator Link.
  2 件のコメント
Vasavi Ch
Vasavi Ch 2011 年 7 月 12 日
Thanks Tim. I have gone through the Simulink HDL coder.Do you have any idea on how to create a Simulink model using Embedded matlab function. My input image is RGB data and i need to give the input as RGB data and then convert it into grayscale to apply my algorithm. After that i convert this file into Verilog then i need to display the output image from my algorithm on LCD using FPGA.
Tim McBrayer
Tim McBrayer 2011 年 7 月 12 日
The MATLAB Function Block is supported for HDL code generation. The coding style can seem a bit unusual if you require your MATLAB code to contain state, so I recommend examining the representative code in the "Hardware Design Patterns Using the MATLAB Function Block" demo, which ships with Simulink HDL Coder.

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

その他の回答 (1 件)

Harsha Vardhan Rao  Avunoori
Harsha Vardhan Rao Avunoori 2011 年 7 月 12 日
Hello Vasavi,
There is an inbuilt block in Simulink which actually allows the user to convert between various formats.As far as I remember it has a RGB to Intensity option which you can use inorder to convert it into grayscale or else you can use an embedded matlab function to convert between RGB and Gray formats.
  1 件のコメント
Vasavi Ch
Vasavi Ch 2011 年 7 月 12 日
I have tried the ColourSpace Conversion block but the problem with that block is I have to give the input in Double value for RGB. My inputs are coming from a wire in Verilog with 12 bits of data. So when I use the conversion block to convert the RGB data and generate verlog code its creating data types of Real and verilog wont accept real data type.

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

Community Treasure Hunt

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

Start Hunting!

Translated by