Blind contrast enhancement assessment by gradient ratioing at visible edges