# Quantifying intensity of brown color in camera images of apples [closed]

I need help, I have images of apples and I would like to tell differences of browning color using Mathematica -- I am a just raw amateur with the software. How do I go about this challenge?

## closed as off-topic by MarcoB, m_goldberg, J. M. is away♦Jul 27 '17 at 1:21

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – MarcoB, m_goldberg, J. M. is away
If this question can be reworded to fit the rules in the help center, please edit the question.

• How about posting a sample picture and show us how you are approaching the problem? – Sumit Jul 25 '17 at 15:59
• Can we use this image as an example? – LCarvalho Jul 25 '17 at 17:30

I'm creating with a random image ...

img = Import["C:\\Users\\Desktop\\Apple Shades of Brown.png"]


The variable pixels is to capture the positions of the pixels. And the PixelValue function is to get the corresponding RGB color.

pixels = {{100, 240}, {296, 240}, {98, 90}, {295, 90}};
PixelValue[img, pixels[[#]]] & /@ Range[4]


$\left( \begin{array}{cccc} 0.270588 & 0.180392 & 0.0588235 & 1. \\ 0.533333 & 0.329412 & 0.0431373 & 1. \\ 0.521569 & 0.403922 & 0.262745 & 1. \\ 0.780392 & 0.552941 & 0.231373 & 1. \\ \end{array} \right)$

In this site (Shades of Brown), you will find the brown level classification that these apples fit ...