How Can I convert m- file or any command in Matlab to "C language" or "C++ language"??
Show older comments
Dear Sir,
I would like to know "How can I convert m-file to C- file (language) or C++ (language) file?? From another side, I would like to know "How can I convert the commands (functions) from Computer Vision toolbox (in Matlab) such as "Vision.Videoplayer", "Vision. ForegroundDetector", "ConfigureKalmanFilter", "Vision.KalmanFilter", " Vision.VideoFileReader" and so on to C language or C++ language?
Thank you very much
Have Great and Fantastic Day
Answers (1)
Sean de Wolski
on 6 Mar 2013
0 votes
5 Comments
Walter Roberson
on 6 Mar 2013
Note, though, that standard C and C++ have no graphics or video capacities, so you may not be able to compile them. You might, however, be able to compile them for specific target devices, especially if you are using Simulink.
Mohamed Elwakdy
on 7 Mar 2013
Walter Roberson
on 7 Mar 2013
shows that not much of Computer Vision is supported. However, there is another list that needs to be taken into consideration:
which includes Vision.DeployableVideoPlayer which is able to generate C code (and the regular video player is not able to generate C code). However,
This object only works on Windows platforms
So it appears you can get video output on MS Windows systems -- it must generate C calls into MS Windows video facilities. This would not be usable for generating video for a DSP or embedded system.
Mohamed Elwakdy
on 8 Mar 2013
Walter Roberson
on 8 Mar 2013
Vision.DeployableVideoPlayer generates MS Windows-specific code. It cannot be used to create code for other systems such as embedded systems (such as a refrigerator with a display, such as LG makes), and it cannot be used to create code for DSP (Digital Signal Processor) or any other system. Only for MS Windows running Intel-type processors.
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!