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 Center および File ExchangeTroubleshooting 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