1. A method performed by an electronic device, comprising: generating a plurality of bounding regions based on an image; determining a subset of the plurality of bounding regions based on at least one criterion and a selected area in the image; and processing the image based on the subset of the plurality of bounding regions.