3
$\begingroup$

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?

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

I'm creating with a random image ...

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

enter image description here

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 ...

enter image description here

| improve this answer | | | | |
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.