incorporate ellipse region checking into histogram computation