How can I convert MATLAB image processing codes into C codes to load them in microcontroller? Actually it is a part of my Final year project so please help

Actually I am doing a project of image processing using MATLAB whose output is to be displayed by using microcontroller . So in order to load HEX file on controller, I need to convert the MATLAB code to C .So please help....

 Akzeptierte Antwort

Friedrich
Friedrich am 18 Jun. 2013
Bearbeitet: Friedrich am 18 Jun. 2013
Hi,
basically MATLAB Coder is designed for that task. However only a limited subset of functions and language feature are supported for code generation:
So it might be that you need to rewrite/redesign certain parts of your code. Maybe also implement some toolbox functions your self.

4 Kommentare

Yes, only some limited functions in the Image Processing Toolbox such as connectivity calculations are supported for code generation; anything else would have to be recoded.
Hi thanks for your reply,can u please tell me how can we give output of a MATLAB program to the RS232 or a USB port of a PC? Actually I want to connect my microcontroller to the program anyhow.
The easiest way is that you should skip the use of the micro-controller altogether. Use one of the output ports of your system to transfer processed data directly to your system. This basically means that instead of using the micro-controller to receive - process and transmit you should receive the data into your computer use matlab code on teh computer to process and send the processed data in a serial/parallel way (depending on your system) to the ports to which you have a circuit connected to power/control the actuators/or whatever it is that you are controlling.
I know this post is quite old - but if you need help with that - just drop me a message and I will help you out with developing IO-OBJECTS in the matlab environment.
Good Luck.
Hi Ashar, I have a Matlab code written for image processing, it involves edge detection, hough transform and some enhancement techniques, I want to implement this code in hardware.Please help me in this regard. Thank you.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Gefragt:

am 18 Jun. 2013

Kommentiert:

am 7 Jan. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by