why JPEG toolbox is not working with matlab R2017b?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Budoor Salem
el 16 de Nov. de 2017
Comentada: Budoor Salem
el 18 de Nov. de 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 comentario
Walter Roberson
el 16 de Nov. de 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.
Respuesta aceptada
Walter Roberson
el 16 de Nov. de 2017
Use pathtool in MATLAB to ensure that the jpeg_read function is on your MATLAB path.
4 comentarios
Walter Roberson
el 16 de Nov. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Troubleshooting in MATLAB Compiler SDK en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!