. . . "The histogram generator 153 sets a m???m pixel area (where m is a value smaller than the shortest side of the input surface 17) centered on the position of the fingertip OF detected by the fingertip position detector 152 as a detection area R1, and differentiates luminance values of the pixels in the set detection area R1 with respect to X, Y-directions to generate a differential histogram." .