Patent ID: 8897575

Claim:
A non-transitory computer-readable medium or media comprising one or more sequences of instructions which, when executed by one or more processors, causes steps to be performed comprising: for each image patch from a set of one or more image patches from an image: generating a context region for the image patch comprising at least a portion of the image; and constructing a multi-scale feature comprising two or more of: a high-scale feature comprises one or more features extracted from the image patch at a high-resolution size; a mid-scale feature comprises one or more features extracted from the image patch at a mid-resolution size; and a low-scale feature comprises one or more features extracted from a combined image patch at a low-resolution size, the combined image patch comprising the image patch and the context region; wherein the mid-scale feature comprises a combination of the one or more features extracted from the image patch at the mid-resolution size and one or more features extracted from the context region; and wherein the one or more features extracted from the context region comprises: forming the context region into a plurality of regions; for each region from the plurality of regions that does not have a mid-resolution size, re-sizing the region to the mid-resolution size; extracting one or more features for each region of the plurality regions; and combining the one or more features from each of the regions to form the one or more features extracted from the context region.