1. An apparatus for detecting a feature in an image, the apparatus comprising: one or more processors; and a memory coupled to the one or more processors and comprising computer readable code executable by the one or more processors to: receive at least part of an image in the form of image data comprising a plurality of non-border pixels of the image, wherein each non-border pixel is not located on any edge of the image; associate a feature probability value to each non-border pixel, wherein the feature probability value indicates a probability that the pixel is at least part of a feature; determine at least one local extremum among the feature probability values by comparing the feature probability value of a first non-border pixel with different subsets of neighboring pixels, where each neighboring pixel is directly adjacent to the non-border pixel; and finally associate the determined local extremum with the feature.