for each layor, do a 'largestRectangleHistgram'