what are the steps to use Phil Sallee's JPEG toolbox for MATLAB?

조회 수: 2 (최근 30일)
Budoor Salem
Budoor Salem 2016년 11월 22일
댓글: negar zamani 2019년 8월 8일
I don't know how to integrate Phil Sallee's JPEG toolbox with MATLAB to start using it what are the right steps to be able to use the JPEG toolbox?
thanks
  댓글 수: 2
Walter Roberson
Walter Roberson 2016년 11월 23일
The download link for the toolbox appears to be at http://dde.binghamton.edu/download/feature_extractors/ at the end of the "Note: All JPEG domain extractors require" paragraph.
Budoor Salem
Budoor Salem 2016년 11월 25일
Thank you ...I appreciate the help

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

채택된 답변

Walter Roberson
Walter Roberson 2016년 11월 23일
The download link provides pre-built files for 64 bit Linux, old 32 bit MATLAB for MS Windows, newer 32 bit MATLAB for MS Windows, and 64 bit MATLAB for MS Windows. It misses out on 32 bit Linux and on 32 bit or 64 bit for OS-X.
If you are using a system that the binaries are not already provided for, then install a relevant compiler for your system, then in MATLAB use
mex -setup C
to configure use of that compiler. Then in MATLAB cd to the directory you loaded into and command
mex jpeg_read.c
mex jpeg_write.c
after that if everything worked then you can add the directory on to your MATLAB path and proceed to call upon jpeg_read and jpeg_write in your code as if they were built-in functions.
  댓글 수: 3
Govindraj Chittapur
Govindraj Chittapur 2018년 6월 16일
편집: Walter Roberson 2019년 8월 8일
No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit http://www.mathworks.com/support/compilers/R2017a/.
Walter Roberson
Walter Roberson 2018년 6월 16일
When I checked before, it provided Windows x64 binaries and probably would not need to be recompiled. But if you do need to recompile for some reason, then for R2017a see https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2017a_SupportedCompilers.pdf .
Your choices for R2017a for Windows were effectively:
  1. one of the commercial Visual Studio releases (none of the free ones were supported); or
  2. SDK 7.1 (works fine for Windows 7, a small detour to install properly for Windows 8, somewhat of a pain to install properly for Windows 10)
  3. MingW 5.3; see https://www.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c++-compiler

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

추가 답변 (1개)

Jan
Jan 2016년 11월 22일
If you have downloaded it and have pre-compiled files for your Matlab version, all you have to do is storing them in a folder, which belongs to you Matlab path, see addpath. Then you can use the functions. If you have any problems with this, please explain them in detail.
  댓글 수: 2
Budoor Salem
Budoor Salem 2016년 11월 23일
Thank you Mr. Jan for the answer..yes the steps sound clear one thing is that I don't know how to pre-compile files for my Matlab version ..would you please explain how to compile them thank you
negar zamani
negar zamani 2019년 8월 8일
i have a problem with jpeg_read and write. i have a 64 bit system and matlab 2018a.os is windows 7. I did these steps:
1.download MinGW for matlab from add on.
2. to sure about rigth installing, test mex yprime.c and it worked correcly.
3 .download jpegtoolbox from here
4 . extracted it and move them to my project directory in matlab and add this path from set path.
5 . by using three above command these error happened:
error2.png
so try other
i did every steps saied here the part that start whit 1. Get MinGW with MSYS
jpeg_read run correctly and i have a Structure about jpegpic like by below:
write error.JPG
but when i try to jpeg_write error that you see in this picture, happened.
i'm very cofused .please help me.

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

Community Treasure Hunt

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

Start Hunting!

Translated by