Scale-adaptive model for detection and grading of age-related macular degeneration from color retinal fundus images