improve pohe and fbf

speed up the pohe and fbf and integrate them with the opencv's integral
function