How to get 2D matrix of pixels from visionhdl.frame2pixels to operate with blocks?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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).
Antworten (2)
Walter Roberson
am 2 Apr. 2016
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 Kommentare
Walter Roberson
am 2 Apr. 2016
You work with it by converting back to a 2D array. Or you fake a 2D array using linear indexing.
Brian Ogilvie
am 4 Apr. 2016
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 Kommentare
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!