how to generate hdl code for edge detection block in simulink

11 views (last 30 days)

Accepted Answer

Walter Roberson
Walter Roberson on 7 Feb 2016
  2 Comments
Walter Roberson
Walter Roberson on 7 Feb 2016
If I understand correctly, there is one Edge Detection Block that can be configured for different detectors including Sobel and Canny. The link above shows an example of using a Serialize block to pass an array in to an Edge Detector block, and a Deserialize block to decode.
Unfortunately I do not have that product so I cannot open the models to find out exactly which blocks they used.

Sign in to comment.

More Answers (1)

Bharath Venkataraman
Bharath Venkataraman on 8 Feb 2016
The Vision HDL Toolbox has an Edge Detection block that is suitable for HDL code generation. That block takes in serial input, much like you would expect the FPGA or ASIC to do. I suggest using that block instead of the one from Computer Vision System Toolbox.

Community Treasure Hunt

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

Start Hunting!