About installing Color Inspector

5 Ansichten (letzte 30 Tage)
Mikhail Chobanu
Mikhail Chobanu am 11 Apr. 2016
Beantwortet: Yair Altman am 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 - ...
_% First open your classpath <file:_>
% C:\Program Files\MATLAB\R2013a\toolbox\local\classpath.txt
_% for editing. Then add the following lines as new lines to your classpath <file:_>
% 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.

Akzeptierte Antwort

Yair Altman
Yair Altman am 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:

Weitere Antworten (1)

Image Analyst
Image Analyst am 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 Kommentare
Mikhail Chobanu
Mikhail Chobanu am 12 Apr. 2016
Ok, thank you.
Is there any chance that you might make it working again?
Image Analyst
Image Analyst am 12 Apr. 2016
Possibly, though I had our "Java guy" at work try to help and he couldn't figure it out either.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Introduction to Installation and Licensing 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!

Translated by