why JPEG toolbox is not working with matlab R2017b?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Budoor Salem
am 16 Nov. 2017
Kommentiert: Budoor Salem
am 18 Nov. 2017
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 Kommentar
Walter Roberson
am 16 Nov. 2017
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.
Akzeptierte Antwort
Walter Roberson
am 16 Nov. 2017
Use pathtool in MATLAB to ensure that the jpeg_read function is on your MATLAB path.
4 Kommentare
Walter Roberson
am 16 Nov. 2017
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Troubleshooting in MATLAB Compiler SDK finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!