How to get 2D matrix of pixels from visionhdl.frame2pixels to operate with blocks?
1 次查看(过去 30 天)
显示 更早的评论
I would like to operate with pixels around the center with radius of 7. But frame2pixels interface gives only 1D vector of pixels and control signals. I would like to know how such thing is made in Edge Detector or Image Filter (Vision HDL toolbox).
回答(2 个)
Walter Roberson
2016-4-2
You need frametopixels or the equivalent in order to pass an array of pixels through an I/O interface, as those have a limited number of pins. However, on the other side of the I/O interface, you can convert back to frames for 2D work.
2 个评论
Walter Roberson
2016-4-2
You work with it by converting back to a 2D array. Or you fake a 2D array using linear indexing.
Brian Ogilvie
2016-4-4
Hi Vladislav
The output of the Vision HDL Toolbox is a pixel stream that can be realized in an FPGA or ASIC using VHDL or Verilog with HDL Coder. The way to use a 7 by 7 image kernel is by using the Vision HDL Toolbox block or system object called Image Filter. This will allow you to specify a 7x7 kernel for two dimensional filtering on the stream data.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!