Figure 3: Steps of the algorithm. This figure shows how an original picture, taken by a digital camera, is processed using the Matlab routine. (a) First, the brain was identified within the picture, and a mask was created to reduce the background noise. (b) Then, the blue layer of the picture was analyzed, and the intensity scale was adjusted. (c) The four squares were chosen, and the target to background ratio was calculated.