摘要 |
PROBLEM TO BE SOLVED: To provide a detector, a detection method, and a detection program capable of more quickly detecting a vanishing point and/or a linear line.SOLUTION: The detector includes: an input unit 11 for accepting image data of an input image; and a detection unit for detecting at least one of a vanishing point and a linear line on the basis of a spherical surface gradient vector gof an edge point pon a projection image of a linear line in the image data accepted by the input unit. The spherical surface gradient vector is a gradient vector of edge points on a spherical surface image formed by projection of the image data on a spherical surface. The detection unit, in detecting a vanishing point, detects the vanishing point on the basis of a relation between a position vector of the vanishing point to be detected on the spherical surface image and the spherical surface gradient vector of the edge points and, in detecting a linear line, detects the linear line on the basis of a relation between a normal vector of a great circle containing a projection image of the linear line to be detected on the spherical surface image and the spherical surface gradient vector of the edge points. |