About installing Color Inspector
2 views (last 30 days)
Show older comments
Mikhail Chobanu
on 11 Apr 2016
Answered: Yair Altman
on 12 Apr 2016
Hello, Image Analyst,
In this link http://www.mathworks.com/matlabcentral/answers/84068-lab-vs-rgb-vs-hsv-color-spaces-for-color-detection you give a way to work with Color_Inspector from inside Matlab.
Unfortunately I could not properly edit the file classpath.txt as you suggested there.
Looks like this description - ...
% C:\Program Files\MATLAB\R2013a\toolbox\local\classpath.txt
% C:/Program Files/ImageJ/ij.jar
% C:\Program Files (x86)\ImageJ\plugins\Color\Color_Inspector_3D.jar
... is somehow NOT full.
At least when I run the line
color_inspector(fullFileName)
I get the answer from Matlab -
Undefined function 'color_inspector' for input arguments of type 'char'.
Error
color_inspector(fullFileName)
What is wrong?
Before that everything works nicely - I find the file C:\Program Files (x86)\ImageJ\plugins\Color\Color_Inspector_3D.jar
The lines in classpath.txt look like:
# Java classpath entries for 3p/animatedtransitions$matlabroot/java/jarext/AnimatedTransitions.jar
Possibly I also should add at the end not simply something like
% C:\Program Files (x86)\ImageJ\plugins\Color\Color_Inspector_3D.jar
?
M.
0 Comments
Accepted Answer
Yair Altman
on 12 Apr 2016
The "%" character was only placed by IA in order to be a comment in the Matlab function... What IA basically said is that your classpath.txt file (or the javaclasspath.txt file) should contain lines such as:
# This is a classpath.txt comment line, you can write anything here...
C:/Program Files/ImageJ/ij.jar
C:/Program Files/ImageJ/plugins/Color/Color_Inspector_3D.jar
Of course, you will need to modify the folder paths if your ImageJ is installed in some other disk folder. After you update your classpath.txt (or javaclasspath.txt) file, you will need to restart Matlab, since these files are only loaded into Matlab memory when Matlab starts.
Related information in case you still encounter problems:
0 Comments
More Answers (1)
Image Analyst
on 11 Apr 2016
I'm still trying to figure out how to work. It quit working a few versions ago and I haven't figure out how to get it working again. Sorry.
2 Comments
Image Analyst
on 12 Apr 2016
Possibly, though I had our "Java guy" at work try to help and he couldn't figure it out either.
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!