Image diagnosis algorithm of diseased wheat.