フィルターのクリア

Loading an image using coder

1 回表示 (過去 30 日間)
Katsmeat
Katsmeat 2015 年 4 月 29 日
コメント済み: Walter Roberson 2015 年 5 月 13 日
I've got a simple function that processes a sequence of about 100-300 numbered jpegs to derive a single numerical value from each, and save the resulting 300 values in a csv file. I want to use the coder to translate it into c++ and compile it a stand-alone exe.
I've been through the code, taking out all the functions that don't feature on the list of those supported by the coder. But I'm stuck with imread . There seems to be no coder compatible equivalent available. I'm know I'm missing something as a substantial range of image processing functions have been implemented. And they surely must work on something .
Failing that, the solution seems to be to dust off my C skills and edit the coder-generated source by hand to load jpegs. But that surely isn't the way one's supposed to do it

回答 (1 件)

Vignesh
Vignesh 2015 年 5 月 13 日
imread doesn't support code generation. Consider writing C code to use libjpeg library to load jpg files. Alternatively, if you make an avi file out of their image files, vision.VideoFileReader generates standalone C code which relies on shared libraries. This means that the generated code will run only on platforms that MATLAB supports (think windows, linux, mac).
  1 件のコメント
Walter Roberson
Walter Roberson 2015 年 5 月 13 日
You might want to use a call to coder.extrinsic possibly

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by