摘要 |
A method to crop image from an irregularly shaped region. A top-left corner of the best cropping rectangle are determined by sequentially scanning the rows of the irregularly shaped region to find out the largest bounding area. By rolling back the largest bonding area from the x or y direction, the bottom-right corner is determined.
|