Method of extracting the optic disc of a retinal image, comprising at least the following steps: - a step of finding the approximate location of the optic disc in which an area comprising at least part of the optic disc is defined, and - a step of segmenting the optic disc in which the contour of the region comprising the optic disc is obtained based on the area defined in the step of finding the approximate location, where said area is adapted to or approximates the morphology of the optic disc, wherein - the step of finding the approximate location of the optic disc comprises at least the following sub-steps: ▪ generating an image in CIE color space in which the RGB retinal image is converted to the CIE color space; ▪ classifying the pixels of the CIE image in n categories depending on the color similarity of said pixels; ▪ selecting at least one of the categories of pixels that is considered to comprise at least part of the pixels of the optic disc based on - calculating the representative color of each category; - converting said representative colors to the RGB space; and - selecting at least the category the representative color of which has the maximum value of the green channel; ▪ generating a combined binary image or a different binary image for each of the selected categories of pixels, in which the pixels of the selected category are one color, preferably white, and the rest of the pixels are another color, preferably black; ▪ extracting connected components based on the binary image or images in which the pixels of the selected category connected to one another are clustered; ▪ selecting the candidate connected component taking into account different parameters such as shape, size and position, for example; ▪ obtaining the center and the radius of the candidate connected component; and ▪ defining the candidate area to being the optic disc with a center in the center of the candidate connected component and a radius proportional to the radius of the candidate connected component. - a step of finding the approximate location of the optic disc in which an area comprising at least part of the optic disc is defined, and - a step of segmenting the optic disc in which the contour of the region comprising the optic disc is obtained based on the area defined in the step of finding the approximate location, where said area is adapted to or approximates the morphology of the optic disc, wherein - the step of finding the approximate location of the optic disc comprises at least the following sub-steps: ▪ generating an image in CIE color space in which the RGB retinal image is converted to the CIE color space; ▪ classifying the pixels of the CIE image in n categories depending on the color similarity of said pixels; ▪ selecting at least one of the categories of pixels that is considered to comprise at least part of the pixels of the optic disc based on - calculating the representative color of each category; - converting said representative colors to the RGB space; and - selecting at least the category the representative color of which has the maximum value of the green channel; ▪ generating a combined binary image or a different binary image for each of the selected categories of pixels, in which the pixels of the selected category are one color, preferably white, and the rest of the pixels are another color, preferably black; ▪ extracting connected components based on the binary image or images in which the pixels of the selected category connected to one another are clustered; ▪ selecting the candidate connected component taking into account different parameters such as shape, size and position, for example; ▪ obtaining the center and the radius of the candidate connected component; and ▪ defining the candidate area to being the optic disc with a center in the center of the candidate connected component and a radius proportional to the radius of the candidate connected component. ▪ generating an image in CIE color space in which the RGB retinal image is converted to the CIE color space; ▪ classifying the pixels of the CIE image in n categories depending on the color similarity of said pixels; ▪ selecting at least one of the categories of pixels that is considered to comprise at least part of the pixels of the optic disc based on - calculating the representative color of each category; - converting said representative colors to the RGB space; and - selecting at least the category the representative color of which has the maximum value of the green channel; - calculating the representative color of each category; - converting said representative colors to the RGB space; and - selecting at least the category the representative color of which has the maximum value of the green channel; ▪ generating a combined binary image or a different binary image for each of the selected categories of pixels, in which the pixels of the selected category are one color, preferably white, and the rest of the pixels are another color, preferably black; ▪ extracting connected components based on the binary image or images in which the pixels of the selected category connected to one another are clustered; ▪ selecting the candidate connected component taking into account different parameters such as shape, size and position, for example; ▪ obtaining the center and the radius of the candidate connected component; and ▪ defining the candidate area to being the optic disc with a center in the center of the candidate connected component and a radius proportional to the radius of the candidate connected component.