How to get 2D matrix of pixels from visionhdl.frame2pixels to operate with blocks?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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).
Respuestas (2)
Walter Roberson
el 2 de Abr. de 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 comentarios
Walter Roberson
el 2 de Abr. de 2016
You work with it by converting back to a 2D array. Or you fake a 2D array using linear indexing.
Brian Ogilvie
el 4 de Abr. de 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 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!