1. A computer-implemented method comprising: receiving an image of a region of interest; receiving an input corresponding to a plurality of scales; for each of the plurality of scales: determining a segmentation pattern to divide the image into a plurality of segments, each segment including a boundary containing a plurality of adjacent pixels, wherein the step of determining a segmentation pattern is performed based on at least one characteristic of pixels of the image and the particular scale; and generating a segmentation pattern for each of the plurality of scales.