Color Segmentation by Delta E color difference help (manually inputing values)
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dimitri
am 29 Jan. 2013
Kommentiert: hamed abdulaziz
am 18 Jan. 2014
So wasn't really sure where to ask this, but using the code that Image Analyst has written (guess this is mainly directed towards him), is there a way to input the values for the colors you would like to find manually? Im having trouble finding out how to do this, as I am somewhat new to MATLAB. The reason I ask is because I originally used the code by Image Analyst to find the "orange" color in turtle shells, but since I'm doing it for thousands of images I think it might be better to have a standard set of colors I am looking for rather than drawing a region (which could differ every time). Any help would be very much appreciated, thanks!
ohh and the link to the his code is: http://www.mathworks.com/matlabcentral/fileexchange/31118-color-segmentation-by-delta-e-color-difference/content/DeltaE.m
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 29 Jan. 2013
There is a line in the code that says:
% Get the average lab color value.
[LMean, aMean, bMean] = GetMeanLABValues(LChannel, aChannel, bChannel, mask);
It gets the mean L, A, and B color from the mask region you drew. But you don't have to do it that way. You can have some text file with standard LAB values in it and just read those values from the text file if you want.
18 Kommentare
Image Analyst
am 18 Jan. 2014
I don't know how to guide you. I gave you a full demo that is heavily commented. You just have to replace the file name with yours. If you want any more help then start your own thread, post your code and image, and be more specific about how else you need to adapt the demo to your situation.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Neuroimaging 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!