how i can divide this following images in stages ?

T
THENGANE · Feb 21, 2022 · 1.9K views
Question
Hi all, I want to ask for help, I have a picture as had been upload in the link provided below. From the picture, there are 6 tomato pictures with small differences in color. I need to divide that picture into stages ripening. I am new to MATLAB and still learning about this image processing. Hopefully can get feedback from you all. Thank you. Link to the image:  
Expert Answer
Profile picture of Prashant Kumar
Prashant Kumar PhD Expert
Answered Aug 24, 2026

You might take a look at colorcloud() to see how the 3-D color gamut moves as the ripeness changes. Assuming it moves somewhat "linearly" from the -a side to the +a side, I'd consider just getting the mean a value from the a image within the mask

 

labImage = rgb2lab(rgbImage);
lImage = labImage(:, :, 1);
aImage = labImage(:, :, 2);
mask = lImage > 0.1; % Or whatever works.
meanA = mean(aImage(mask));

 

Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!