why JPEG toolbox is not working with matlab R2017b?
2 次查看(过去 30 天)
显示 更早的评论
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
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
2017-11-16
Use pathtool in MATLAB to ensure that the jpeg_read function is on your MATLAB path.
4 个评论
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!