Introduction: Breast cancer is the second most common type of cancer in the world, being more common among women and representing 22% of all new cancer cases every year. The sooner it is diagnosed, the better the chances of a successful treatment are. Mammography is one way to detect non-palpable tumors that cause breast cancer. However, it is known that the sensitivity of this exam can vary considerably due to factors such as the specialist's experience, the patient's age and the quality of the images obtained in the exam. The use of computational techniques involving artificial intelligence and image processing has contributed more and more to support the specialists in obtaining a more precise diagnosis. Methods: This paper proposes a methodology that exclusively uses texture analysis to describe features of masses in digitized mammograms.To increase the efficiency of texture feature extraction, the diversity index's capability to detect patterns of species co-occurrence is used. For this purpose, the Gleason and Menhinick indexes are used. Finally, the extracted texture is classified using the Support Vector Machine, looking to differentiate the malignant masses from the benign. Results: The best result was obtained using the Gleason index, with 86.66% accuracy, 90% sensitivity, 83.33% specificity and an area under the ROC Curve (Az) of 0.86. Conclusion: Both indexes showed statistically similar performance; however, the Gleason index was slightly superior.