- read in and display image
- call drawfreehand()
- convert your image to lab with rgb2lab()
- separate your lab image to 3 separate monochrome images: lImage, aImage, bImage
- use the mask from drawfreehand() to get the means
create L*a*b coordinates and save them in MAT file .
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Oana Popescu
am 26 Jul. 2020
Beantwortet: Image Analyst
am 26 Jul. 2020
How can I set region coordinate as sample regions. I want to create something like file regioncoordinates made by MATLAB.
I need to create a matrix of sample coordinates saved in a MAT file. And these region coordinates to be used with roipoly function for creating sample regions. and then to calculate the average color of the each sample in L*a*b space
I found an example 'Color-based Segmentation Using the L*a*b Color Space' but this example use their regioncoordinates file.
I have no idea how to do that.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 26 Jul. 2020
Not sure what you're asking, but I think you might want to follow these steps
meanL = lImage(mask);
meanA = aImage(mask);
meanB = bImage(mask);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!