hello all...i'm recently new to android and image processing..
i have a project that related with image processing and color detection.
the first thing that i want to know is how to crop an image based on it's color, the image was captured by my camera and then crop it.
for example i capture leaf color chart image and i just want to process the color chart but because i capture with phone camera so there are some part or background that i don't need to process..

what the best algorithm that i may used and how can i implement it in android ?
thanks all for your responds and sorry for my bad english...
gbu