image algo to vhdl conversion

I am unable to convert a simple image code into vhdl using hdl coder. Please help

FUNCTION:

TESTBENCH:

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

The function you wish to generate HDL for contains two function calls (imread and im2bw), and neither function is supported for HDL code generation. imread reads a file from disk and decodes the binary format; in this case, JPEG. I’m not sure what hardware you expect HDL Coder to build for such a function call; in any case, HDL coder does not support it.

The reason that HDL Coder does not support im2bw is that it operates on a frame buffer. The entire image is processed at once, as an image. As written, HDL Coder has no idea even how large the image is.

In general, hardware processing of images or video needs to be performed in a streaming fashion. I could envision remodeling this design so that:

  • The image size is fixed and defined
  • The image is streamed, one pixel at a time, into the hardware design
  • The incoming data stream is processed, pixel by pixel, performing the transform
  • The transformed data is streamed out of the hardware portion back into an image buffer

This of course is one approach. It is so simple because the filter you wish to use is a simple pixel-level filter.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.