I researched the subject and I'm studying opencv for android because I think this is the way to detect objects in images (in my case the disease stains). You can close the question and when I'm at an earlier stage I'll come back here if I have questions. Anyway Thanks to all for the interest.