1. A method comprising: determining a ratio of pixels having a predetermined attribute in one or more rotationally figures included an image; determining whether a predetermined pattern can exist in the vicinity of the figure, based on a determined ratio; and detecting the predetermined pattern in the vicinity of the figure when it is determined that the predetermined pattern can exist.