An effective algorithm for automatic measurement of vessel calibre in retinal fundus images