why JPEG toolbox is not working with matlab R2017b?

조회 수: 2 (최근 30일)
Budoor Salem
Budoor Salem 2017년 11월 16일
댓글: Budoor Salem 2017년 11월 18일
I just download a trial version of MATLAB R2017b and I wanted to check if I can read an image using "jpeg_read()" from Phill sallee jpeg toolbox..however matlab stated "Undefined function or variable 'jpeg_read'." knowing that the jpeg_read function is located in the same folder I am reading the image from
could please anyone help in that .. thanks
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 11월 16일
jpeg_read is available from http://dde.binghamton.edu/download/feature_extractors/ near the very bottom of the screen. The original website is no longer available, but the above site has authorized copies of the code.

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

채택된 답변

Walter Roberson
Walter Roberson 2017년 11월 16일
Use pathtool in MATLAB to ensure that the jpeg_read function is on your MATLAB path.
  댓글 수: 4
Walter Roberson
Walter Roberson 2017년 11월 16일
jpeg_read is not a .m file. You need to have a version of the .c source compiled for your system, and the appropriate .mex* file needs to be on your MATLAB path. pathtool is a MATLAB command that allows you to use graphic tools to adjust your MATLAB path. Normally the current directory is part of the MATLAB path so if the appropriate .mex* file is in your current directory then normally it would be usable.
The binghamptom link I posted in the comment above arrives with pre-compiled versions for Windows 32, Windows 64, and Linux 64 bit, but not precompiled for Mac. If you are using Mac, it would be necessary to use the MATLAB mex command to compile the code.
Note: if you are using Mac, then you would need to install a version of XCode appropriate for your MATLAB version, and if you are using a very recent OS-X version you might need to edit a setup file for the mex command to be able to find your compiler.
Budoor Salem
Budoor Salem 2017년 11월 18일
thank you so much for the answer

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by