contrast stretching using opencv

Preprocessing is one of the main step in any image processing task, in this post we need to get the foreground region and remove the background (because not contains information) why retinal image analysis…?: by using just retinal images we can detect many abnormality (non invasive method) like diabetes ,neural diseases (like early stage of Alzheimer’s ( https://www.youtube.com/watch?v=B9BV0v8jb2A ), retinal tumor (retinoblastoma) and it also help’s a medical practitioner to diagnose more patients (think about a region where there are no big diagnostic lab’s and hospitals in such scenario a smartphone attachable fundus camera with good algorithm do the magic. It also reduces cost of medical diagnosis It’s been a while since I have been working on some image processing based projects, one of the project which I am working on, is an algorithm to detect some kind of retinal abnormality from retinal fundus images. Most of the time I use MATLAB for image processing but no...