필터 지우기
필터 지우기

Alternatives to entrinsic functions such as imread and other functions during code generation in MATLAB

조회 수: 5 (최근 30일)
As you may know, entrinsic functions are not outputted during the code generation process. Are there alternatives to these functions/ and or solutions to this problem? My code generation error report is shown below :
I am surprised that I can't output size and rgb2gray either. Since these are essential to my program, I cannot avoid them.
Help will be much appreciated!

답변 (1개)

Image Analyst
Image Analyst 2015년 4월 21일
I guess you will need to write them yourself. I'm not sure why they exclude those particular functions though.
  댓글 수: 2
Sharan Duggirala
Sharan Duggirala 2015년 4월 21일
I understand that I may be able to implement rgb2gray and size , but imread seems like a behemoth of a task to implement. Is there anyone who has already worked on this?
Image Analyst
Image Analyst 2015년 4월 21일
You're right, for arbitrary images of any possible format. However if you know the format and it's simple, then you can probably use fread() to read in a 2D array. You could then convert it to color if needed.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by