This document presents an algorithm for detecting macular edema from optical coherence tomography (OCT) images, utilizing methods such as image filtering, graph theory for segmentation, and support vector machine (SVM) classification. The algorithm achieved a classification accuracy of 95% with a sensitivity of 100%, demonstrating its potential for early diagnosis of macular edema in ophthalmology. The study highlights the preprocessing steps of the OCT images, feature extraction techniques, and the successful evaluation of the retinal layers' thickness and area.