green pixel direction estimation function now looks farther: 7x7
over- and under- scaling now smoother