WO2013008746A1 - 直線検出装置および直線検出方法 - Google Patents

直線検出装置および直線検出方法 Download PDF

Info

Publication number
WO2013008746A1
WO2013008746A1 PCT/JP2012/067333 JP2012067333W WO2013008746A1 WO 2013008746 A1 WO2013008746 A1 WO 2013008746A1 JP 2012067333 W JP2012067333 W JP 2012067333W WO 2013008746 A1 WO2013008746 A1 WO 2013008746A1
Authority
WO
WIPO (PCT)
Prior art keywords
straight line
target image
hough
unit
image
Prior art date
Application number
PCT/JP2012/067333
Other languages
English (en)
French (fr)
Inventor
長谷川 弘
Original Assignee
株式会社メガチップス
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2011155847A external-priority patent/JP5911122B2/ja
Priority claimed from JP2011165281A external-priority patent/JP5856401B2/ja
Application filed by 株式会社メガチップス filed Critical 株式会社メガチップス
Priority to EP12810658.0A priority Critical patent/EP2733671B1/en
Priority to US14/232,803 priority patent/US9195902B2/en
Publication of WO2013008746A1 publication Critical patent/WO2013008746A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/48Extraction of image or video features by mapping characteristic values of the pattern into a parameter space, e.g. Hough transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20048Transform domain processing
    • G06T2207/20061Hough transform

Definitions

  • the present invention relates to a technique for detecting a straight line included in an image.
  • Hough transform As a technique for detecting a straight line included in an image, Hough transform is used. A straight line passing through an arbitrary point of the image having the XY coordinate system is converted into coordinates ( ⁇ , ⁇ ) in the Hough space. The number of straight lines converted into the coordinates ( ⁇ , ⁇ ) of the Hough space is tabulated using a two-dimensional array [ ⁇ ] [ ⁇ ]. Then, a straight line in the XY coordinate system is detected from coordinates ( ⁇ , ⁇ ) having a total value exceeding a predetermined threshold in the two-dimensional array [ ⁇ ] [ ⁇ ].
  • Patent Document 1 in order to divide an image into local regions, line segments in the image are detected using Hough transform.
  • Patent Document 2 an attempt is made to optimize the sampling interval of the parameters ⁇ and ⁇ on the Hough space according to the length of the straight line.
  • Hough transform is used to detect a line segment included in an image.
  • JP-A-10-283476 Japanese Patent Laid-Open No. 11-66302 JP 2006-107034 A
  • the straight line detection method using the Hough transform pays attention to the number of points existing on the straight line in the XY coordinate system.
  • the greater the number of points existing on the same straight line the higher the possibility of being detected as a straight line. That is, whether or not it is detected as a straight line depends only on the number of points existing on the straight line.
  • the straight line detection device uses the length ⁇ of a perpendicular line dropped from the reference point of the target image to an arbitrary straight line in the target image and the angle ⁇ formed by the vertical line and the reference axis passing through the reference point.
  • a Hough transform unit that transforms a straight line passing through an arbitrary point in the target image into coordinates ( ⁇ , ⁇ ) in the Hough space by expressing an arbitrary straight line, and each coordinate ( ⁇ , ⁇ ) in the Hough space
  • a correction unit that corrects the total value for each coordinate ( ⁇ , ⁇ ) by weighting according to at least one of the values of ⁇ and ⁇ , and a correction unit that totalizes the number of times converted by the Hough conversion unit
  • a detection unit that detects a straight line in the target image by specifying coordinates ( ⁇ , ⁇ ) that exceed the first threshold.
  • the straight line detection device of the present invention it is possible to detect a straight line after performing weighting according to the distance from the origin of the straight line.
  • the straight line detection device of the present invention it is possible to detect a straight line after performing weighting according to the slope of the straight line.
  • the straight line detection apparatus of the present invention it is possible to detect a straight line after weighting according to both the distance from the origin of the straight line and the inclination of the straight line.
  • Another straight line detection device of the present invention uses a length ⁇ of a perpendicular line dropped from a reference point of the target image to an arbitrary straight line in the target image, and an angle ⁇ formed by the vertical line and a reference axis passing through the reference point.
  • a Hough transform unit that converts a straight line passing through an arbitrary point in the target image into coordinates ( ⁇ , ⁇ ) in the Hough space, and arbitrary coordinates ( ⁇ , (rho))
  • a straight line in the target image corresponding to ⁇ ) obtains an intersection where the outer periphery of the target image intersects, and calculates a distance between the intersections, and each coordinate ( ⁇ , ⁇ ) in the Hough space.
  • the number of times converted by the Hough transform unit is totaled, the total value of each coordinate ( ⁇ , ⁇ ) is normalized by the corresponding distance between the intersections, and the normalization unit that calculates the normalized total value, and the normalized total value is By specifying coordinates ( ⁇ , ⁇ ) that exceed the first threshold, Comprising a detector for detecting a straight line that, a.
  • Another straight line detection apparatus includes an aspect ratio conversion unit that generates a square image by executing an aspect ratio conversion process for converting an aspect ratio to 1: 1 on a target image, and a square image.
  • an aspect ratio conversion unit that generates a square image by executing an aspect ratio conversion process for converting an aspect ratio to 1: 1 on a target image, and a square image.
  • the Hough transform unit that transforms a straight line passing through an arbitrary point in the image into coordinates ( ⁇ , ⁇ ) in the Hough space, and the number of times the Hough transform unit transforms each coordinate ( ⁇ , ⁇ ) in the Hough space.
  • a detection unit that detects straight lines in the square image by specifying the coordinates ( ⁇ , ⁇ ) that are aggregated and the total value of each coordinate ( ⁇ , ⁇ ) exceeds the first threshold value.
  • the straight line detection device of the present invention it is possible to detect a straight line from the information subjected to the Hough transform on the same basis without depending on the direction and position of the straight line. Even if the image has an aspect ratio other than 1: 1, it is possible to solve the problem that it is difficult to detect any straight line in the vertical direction or the horizontal direction. Straight lines that exist at the four corners of the image can also prevent detection omissions.
  • the straight line detection method of the present invention uses the length ⁇ of a perpendicular drawn from a reference point of the target image to an arbitrary straight line in the target image and the angle ⁇ formed by the vertical line and a reference axis passing through the reference point.
  • a Hough transforming step for converting a straight line passing through an arbitrary point in the target image into coordinates ( ⁇ , ⁇ ) in the Hough space, and each coordinate in the Hough space ( With respect to [theta], [rho]), a totaling value for each coordinate ([theta], [rho]) is corrected by a totaling step for totalizing the number of times converted by the Hough transform unit and weighting according to at least one of the values of [rho] and [theta].
  • a correction step, and a detection step of detecting a straight line in the target image by specifying coordinates ( ⁇ , ⁇ ) for which the corrected total value exceeds the first threshold value.
  • Another straight line detection method of the present invention uses a length ⁇ of a perpendicular line dropped from a reference point of the target image to an arbitrary straight line in the target image, and an angle ⁇ formed by the vertical line and a reference axis passing through the reference point.
  • the number of times converted by the Hough transform step is totalized, the total value of each coordinate ( ⁇ , ⁇ ) is normalized by the distance between the corresponding intersections, and the normalized total value is calculated Steps and coordinates where the normalized total value exceeds the first threshold ( ⁇ , ⁇ ) by specifying a straight line in the target image.
  • Another straight line detection method of the present invention includes a conversion step of generating a square image by executing an aspect ratio conversion process for converting the aspect ratio to 1: 1 on the target image, and the square image Expressing an arbitrary straight line in the square image using a length ⁇ of a perpendicular line drawn from a reference point to an arbitrary straight line in the square image and an angle ⁇ formed by the vertical line and a reference axis passing through the reference point
  • FIG. 1 is a block diagram of a straight line detection apparatus 1 according to the first embodiment.
  • the straight line detection device 1 includes a luminance image generation unit 11, a contour extraction processing unit 12, a binary conversion unit 13, a Hough conversion unit 14, a Hough table 15, and a straight line detection unit 16.
  • the luminance image generation unit 11, the contour extraction processing unit 12, the binary conversion unit 13, the Hough conversion unit 14, and the straight line detection unit 16 are configured by hardware circuits. However, you may comprise these function parts by the software which operate
  • the luminance image generation unit 11 inputs color image data 101.
  • the color image data 101 is, for example, an image acquired by an image sensor (not shown).
  • the color image data 101 is, for example, image data in a YCbCr color space or an RGB color space.
  • the luminance image generation unit 11 generates luminance image data 102 from the color image data 101. For example, if the color image data 101 is image data in the YCbCr color space, the luminance image generation unit 11 generates the luminance image data 102 by extracting the Y signal.
  • the contour extraction processing unit 12 inputs luminance image data 102.
  • the contour extraction processing unit 12 generates contour image data 103 from the luminance image data 102.
  • the contour extraction processing unit 12 performs contour extraction processing using a Sobel filter.
  • the Sobel filter is a filter that detects an outline by a spatial first-order differential operation.
  • the contour extraction processing unit 12 outputs the absolute value of the filter output as the line segment intensity.
  • the filter to be used is not particularly limited. For example, a Laplacian filter may be used.
  • the binary conversion unit 13 inputs the contour image data 103.
  • the binary conversion unit 13 generates binary image data 104 from the contour image data 103.
  • the contour image data 103 is grayscale image data.
  • the binary conversion unit 13 converts the pixel value of each pixel of the contour image data 103 into 0 or 1 based on a preset threshold value.
  • Hough conversion unit 14 inputs binary image data 104.
  • the Hough conversion unit 14 performs Hough conversion on the binary image data 104 and writes the converted result in the Hough table 15.
  • the Hough transform unit 14 stores the converted result in a two-dimensional array [ ⁇ ] [ ⁇ ]. The contents of the Hough transform process will be described in detail later.
  • the straight line detection unit 16 includes a correction unit 161.
  • the straight line detection unit 16 detects a straight line included in the binary image data 104 by referring to the Hough table 15. Details of the processing of the straight line detection unit 16 including the correction unit 161 will be described in detail later.
  • the processing content of the Hough conversion unit 14 will be described in detail.
  • the Hough conversion unit 14 converts a straight line passing through each point into coordinates ( ⁇ , ⁇ ) in the Hough space for an arbitrary point included in the binary image data 104.
  • FIG. 2 is a diagram showing the binary image data 104.
  • an origin O and XY coordinates are defined as shown in FIG.
  • FIG. 2 illustrates some of the points 51 to 55 among the points included in the binary image data 104.
  • the point included in the binary image data 104 is a point to which a pixel value 1 is given by binary conversion.
  • a straight line 61 passing through the point 51 can be expressed as in Equation 1 using ⁇ and ⁇ .
  • Equation 1 ⁇ is the length of the perpendicular line 62 drawn from the origin to the straight line 61. ⁇ is an angle formed by the vertical line 62 and the positive direction of the X axis.
  • the points 51 to 53 are arranged on the same straight line.
  • the straight lines passing through the points 52 and 53 are also converted into coordinates ( ⁇ , ⁇ ) on a plurality of Hough spaces, respectively.
  • the straight line 61 is subjected to the Hough transform for all the points 51 to 53 and is associated with the same coordinates ( ⁇ , ⁇ ).
  • FIG. 3 is a diagram showing a Hough space.
  • the sine curves 71 to 75 show a set of points on the Hough space obtained by performing the Hough transform on the points 51 to 55, respectively.
  • the coordinates ( ⁇ 1, ⁇ 1) where the sine curves 71 to 73 intersect correspond to the straight line 61.
  • the Hough table 15 has a two-dimensional array T [ ⁇ ] [ ⁇ ]. That is, the Hough transform is performed on all the points of the binary image data 104, and the results are aggregated in the two-dimensional array T [ ⁇ ] [ ⁇ ].
  • the straight line detection unit 16 refers to the Hough table 15 and detects a straight line included in the binary image data 104.
  • the straight line detection unit 16 does not detect a straight line using the conversion result from the Hough conversion unit 14 as it is, but detects a straight line after correcting the contents of the Hough table 15.
  • the correction process is performed by the correction unit 161.
  • the correction unit 161 corrects the total value of the two-dimensional array T [ ⁇ ] [ ⁇ ] using the function f (x).
  • the function f (x) is a function that weights the total value of the two-dimensional array T [ ⁇ ] [ ⁇ ] according to the distance ⁇ .
  • the function f (x) takes ⁇ as an input value and outputs a correction coefficient f ( ⁇ ).
  • the correction coefficient f ( ⁇ ) is a coefficient that is multiplied by the total value.
  • the value of the function f (x) When the value of the function f (x) is large, the value of the aggregate value is highly evaluated. For example, even if the total value is relatively small, correction is performed to increase the possibility of being detected as a straight line. When the value of the function f (x) is small, the value of the total value is evaluated low.
  • FIG. 4 is a diagram illustrating the function f (x) according to the present embodiment.
  • Equation 2 represents the function f (x).
  • Equation 2 a, b, and c are constants that determine the characteristics of the function f (x).
  • the correction characteristics of the correction unit 161 can be freely changed by changing the values of a, b, and c.
  • values as shown in Equation 3 are set as a, b, and c.
  • Equation 3 w is the length of the binary image 104 in the horizontal direction, and h is the length of the binary image 104 in the vertical direction (see FIG. 2). That is, a indicates the length from the origin O to the four corners of the image in the binary image 104.
  • the value of the function f (x) becomes the smallest at the four corners of the binary image 104. That is, the distance from the origin O is set so that the weight is minimized with respect to a straight line that is half the diagonal of the target image (binary image). Then, as the distance from the origin O approaches, the weight for the straight line increases.
  • the correction unit 161 multiplies the total value of each coordinate ( ⁇ , ⁇ ) by the correction coefficient f ( ⁇ ) as shown in Equation 4 to obtain a corrected total value Tc [ ⁇ ] [ ⁇ ].
  • correction is performed to weight the total value according to the distance from the origin of the straight line.
  • correction is performed so that a straight line having a short distance to the origin O is highly evaluated. As a result, it is possible to detect a straight line with an emphasis on a straight line passing near the center of the image.
  • the straight line detection unit 16 performs straight line detection with reference to the Hough table 15 corrected by the correction unit 161.
  • a straight line determination threshold (first threshold) is set in advance.
  • the straight line detection unit 16 specifies coordinates ( ⁇ , ⁇ ) in which the total value exceeding the first threshold is stored in the two-dimensional array [ ⁇ ] [ ⁇ ].
  • the straight line detection unit 16 specifies a straight line included in the binary image data 104 from the specified coordinates ( ⁇ , ⁇ ).
  • the straight line detection unit 16 outputs detection information.
  • the correction unit 161 corrects the total value based on the distance ⁇ from the straight line origin. In the second embodiment, the correction unit 161 corrects the total value based on each ⁇ (see FIG. 2) that the vertical line 82 drawn straight from the origin makes the positive direction of the x-axis. In the first embodiment, the correction unit 161 corrects the total value using the function f (x) shown in FIG. In the second embodiment, the correction unit 161 corrects the total value using the function g (x) shown in FIG. The function g (x) takes ⁇ as an input value and outputs a correction coefficient g ( ⁇ ). The correction coefficient g ( ⁇ ) is a coefficient that is multiplied by the total value.
  • the function g (x) decreases as the value of x increases from d and ⁇ d, and takes the minimum value e when the x coordinate is separated from the peak position by s.
  • Equation 5 represents a function g (x).
  • another completely different function may be applied in a region where ⁇ is larger than ⁇ .
  • Equation 5 d, s, e, and k are constants that determine the characteristics of the function g (x).
  • the correction characteristics of the correction unit 161 can be freely changed by changing the values of d, s, e, and k.
  • values as shown in Equation 6 are set as d, s, e, and k.
  • the correction unit 161 multiplies the total value of each coordinate ( ⁇ , ⁇ ) by the correction coefficient g ( ⁇ ) to obtain a corrected total value Tc [ ⁇ ] [ ⁇ ] as shown in Equation 7.
  • the total value is corrected by weighting according to the slope of the straight line.
  • correction is performed so that a straight line having two types of angles is highly evaluated.
  • the angle of the straight line to be detected can be freely set.
  • the function g (x) shown in FIG. 5 and Equation 5 is an example.
  • the function g (x) can be freely set according to the purpose of detecting a straight line.
  • the straight line detection unit 16 performs straight line detection with reference to the Hough table 15 corrected by the correction unit 161.
  • a straight line determination threshold (first threshold) is set in advance.
  • the straight line detection unit 16 specifies coordinates ( ⁇ , ⁇ ) in which the total value exceeding the first threshold is stored in the two-dimensional array [ ⁇ ] [ ⁇ ].
  • the straight line detection unit 16 specifies a straight line included in the binary image data 104 from the specified coordinates ( ⁇ , ⁇ ).
  • the straight line detection unit 16 outputs detection information.
  • the configuration of the straight line detection device 1 in the third embodiment is the same as that of the first embodiment shown in FIG.
  • the correction unit 161 corrects the total value based on the distance ⁇ from the straight line origin.
  • the correction unit 161 corrects the total value based on each ⁇ formed by the perpendicular line 62 that is a straight line from the origin and the positive direction of the x-axis.
  • the third embodiment is a combination of the first embodiment and the second embodiment.
  • Equation 8 is a diagram illustrating a correction calculation method for the total value according to the third embodiment. That is, the correction unit 161 multiplies the total value of the two-dimensional array [ ⁇ ] [ ⁇ ] by correction coefficients for both f ( ⁇ ) and g ( ⁇ ). Thereby, it is possible to detect a straight line by weighting both the distance from the origin and the inclination of the straight line. For example, a straight line having a specific inclination and a specific distance from the origin can be detected with priority.
  • the distance ⁇ is corrected using the function f (x) having a peak at one location. You may correct
  • the correction is performed using the function g (x) having the peak at two positions for the angle ⁇ . Correction may be performed for the angle ⁇ using a function having one peak, such as the function f (x). Alternatively, a weighting function having three or more peaks with respect to the angle ⁇ may be used.
  • FIG. 6 is a functional block diagram of a straight line detection apparatus 1A according to the fourth embodiment.
  • the configuration of the straight line detector 1A is different from that of the straight line detector 1 of the first embodiment shown in FIG.
  • the straight line detection unit 16 of the fourth embodiment includes an inter-intersection distance calculation unit 162 and a normalization unit 163.
  • Other configurations and functions of the straight line detection device 1A are the same as those in the first embodiment. That is, the functions of the luminance image generation unit 11, the contour extraction processing unit 12, the binary conversion unit 13, the Hough conversion unit 14, and the Hough table 15 are the same as those in the first embodiment.
  • the straight line detection unit 16 includes a correction unit 161, a distance calculation unit 162 between intersections, and a normalization unit 163.
  • the straight line detection unit 16 detects a straight line included in the binary image data 104 by referring to the Hough table 15.
  • the straight line detection unit 16 does not detect a straight line using the conversion result from the Hough conversion unit 14 as it is, but detects a straight line after correcting the contents of the Hough table 15.
  • the correction process is performed by the correction unit 161 as in the first embodiment. In the present embodiment, in addition to the correction process by the correction unit 161, the correction is performed by the inter-intersection distance calculation unit 162 and the normalization unit 163. Is called.
  • FIG. 7 shows a straight line 81 included in the binary image data 104.
  • the length of the perpendicular 82 drawn from the origin O to the straight line 81 is ⁇ .
  • the angle formed by the perpendicular 82 with the positive direction of the X axis is ⁇ .
  • the binary image data 104 is rectangular image data having a length in the horizontal direction (X-axis direction) of 2w and a length in the vertical direction (Y-axis direction) of 2h.
  • An origin O is set at the center of the binary image data 104.
  • the straight line 81 intersects the outer periphery of the binary image data 104 at a point P0 (x0, y0) and a point P1 (x1, y1).
  • the straight line 81 cuts out the binary image data 104
  • the two intersections between the straight line 81 and the outer periphery of the binary image data 104 are the point P0 (x0, y0) and the point P1 (x1, y1).
  • the intersection calculation unit 161 calculates a distance between two intersections, that is, a distance between the points P0 (x0, y0) and P1 (x1, y1) (inter-intersection distance Len).
  • the distance calculation method in this embodiment will be specifically described. First, a method for determining the coordinates (x0, y0) of the point P0 and the coordinates (x1, y1) of the point P1 will be described.
  • the inter-intersection distance Len is obtained by the following method without obtaining the coordinates of the points P0 and P1 by the above method.
  • x0 When x0 is smaller than ⁇ w, x0 is set to ⁇ w as shown in Equation 15. That is, when the intersection point extends beyond the frame end of the binary image, the frame end is set as the X coordinate of the intersection point. When the X coordinate of the intersection point protrudes from the frame end of the binary image, the X coordinate is set to the frame end in all cases as shown in Equation 15. That is, when x0 is larger than w, x0 is set to w. When x1 is smaller than -w, x1 is set to -w. When x1 is larger than w, x1 is set to w.
  • the Y coordinate of the intersection protrudes from the frame end of the binary image
  • the Y coordinate is set to the frame end in all cases as shown in Equation 16. That is, when y0 is smaller than -h, y0 is set to -h. When y0 is larger than h, y0 is set to h. If y1 is less than -h, set y1 to -h. When y1 is larger than h, y1 is set to h.
  • the inter-intersection distance calculation unit 162 performs the calculation expressed by Equation 17 to obtain the inter-intersection distance. Find Len.
  • x0, x1, y0, and y1 are values calculated by Formula 11 to Formula 14 when they do not apply to Formula 15 or Formula 16, and Formula 15 or Formula 16 When the above is true, the value is set by the formula 15 or the formula 16.
  • the inter-intersection distance calculation unit 162 refers to the Huff table 15 and calculates the inter-intersection distance Len for all coordinates ( ⁇ , ⁇ ) that are straight line candidates. That is, the inter-intersection distance Len is calculated for each coordinate ( ⁇ , ⁇ ) in which one or more total values are stored in the two-dimensional array [ ⁇ ] [ ⁇ ]. Alternatively, the inter-intersection distance Len may be calculated for all the two-dimensional arrays [ ⁇ ] [ ⁇ ] including the array whose total value is zero. For example, the intersection distance Len may be calculated for all combinations ( ⁇ , ⁇ ) in advance, and Len [ ⁇ ] [ ⁇ ] may be held as a lookup table.
  • the normalization unit 163 normalizes the total value by dividing the total value of each coordinate ( ⁇ , ⁇ ) by the inter-intersection distance Len calculated for each coordinate ( ⁇ , ⁇ ).
  • the normalization unit 163 divides the total value by the inter-intersection distance Len for each coordinate ( ⁇ , ⁇ ) in which one or more total values are stored in the two-dimensional array [ ⁇ ] [ ⁇ ].
  • the inter-intersection distance Len is calculated for all the two-dimensional arrays [ ⁇ ] [ ⁇ ], and all the total values are normalized by the corresponding inter-intersection distance Len.
  • the normalization unit 163 corrects the total value of the straight lines on the binary image to a numerical value per unit length.
  • the straight line detection unit 16 executes both the correction process by the correction unit 161 described in the first embodiment and the correction process by the normalization unit 163 described above. Thereby, the total value of the two-dimensional array [ ⁇ ] [ ⁇ ] is corrected as shown in Equation 18.
  • the correction equation shown in Equation 18 is a correction process in which the correction process of the correction unit 161 according to the first embodiment and the correction process of the normalization unit 163 are combined. In other words, it has a characteristic that a straight line at a specific distance from the origin is preferentially detected, and the total value per unit length is evaluated by normalizing the total value with the inter-intersection distance Len.
  • the straight line detection unit 16 performs straight line detection with reference to the Huff table 15 corrected by the correction unit 161 and the normalization unit 163.
  • a straight line determination threshold (first threshold) is set in advance.
  • the straight line detection unit 16 specifies coordinates ( ⁇ , ⁇ ) in which the total value exceeding the first threshold is stored in the two-dimensional array [ ⁇ ] [ ⁇ ].
  • the straight line detection unit 16 specifies a straight line included in the binary image data 104 from the specified coordinates ( ⁇ , ⁇ ).
  • the straight line detection unit 16 outputs detection information.
  • the first threshold value of the present embodiment can be a value different from that in the first to third embodiments.
  • the straight line detection device 1A of the present embodiment detects a straight line after correcting the Huff table 15 by normalization. Normalization is performed by dividing the total value of the two-dimensional array [ ⁇ ] [ ⁇ ] by the inter-intersection distance Len.
  • the inter-intersection distance Len is long for a horizontal straight line and short for a vertical straight line. Accordingly, the total value stored in the two-dimensional array [ ⁇ ] [ ⁇ ] is divided by a larger value for the horizontal line than for the vertical line.
  • the problem that the straight line in the horizontal direction is easily detected and the straight line in the vertical direction is difficult to be detected does not occur.
  • the aspect ratio of the image is not 1: 1, straight lines in every direction or position in the image can be detected with the same reference.
  • the straight line can be detected with emphasis on the straight line at a specific distance from the origin.
  • Equation 19 represents a correction equation according to the fifth embodiment.
  • the total value of the two-dimensional array [ ⁇ ] [ ⁇ ] is normalized by being divided by the inter-intersection distance Len and is corrected by the function g (x).
  • the total value can be normalized by the inter-intersection distance Len, and a straight line can be detected with emphasis on a specific slope.
  • Equation 20 represents a correction equation according to the sixth embodiment.
  • the total value of the two-dimensional array [ ⁇ ] [ ⁇ ] is normalized by being divided by the inter-intersection distance Len, and is corrected by the function f (x) and the function g (x). That is, in the sixth embodiment, the total value can be normalized by the inter-intersection distance Len, and a straight line can be detected with emphasis on the distance from the origin and a specific inclination.
  • the total value of each coordinate ( ⁇ , ⁇ ) in the Hough space is divided by the distance Len between the intersections and normalized. That is, normalized total values are calculated for all straight line candidates and compared with the first threshold value.
  • straight lines whose inter-interval distance Len is less than a predetermined threshold (second threshold) are excluded from straight line detection targets.
  • a predetermined threshold second threshold
  • straight lines that exist at the four corners of the binary image data 104 and have a short intersection distance Len are excluded from detection targets.
  • the density of the points arranged on the straight line is not high, it is possible to prevent the normalized total value from being increased because the distance Len between the intersections is very small, thereby preventing erroneous recognition as a straight line.
  • the information on the four corners on the image is not so important, it is possible to detect a straight line by applying a spot near the center of the image by adjusting the second threshold value to be relatively large.
  • the inter-intersection distance Len is calculated by obtaining the coordinates of the points P0 and P1 by the method shown in Equation 11 to Equation 14.
  • the distance Ln between the intersections is calculated by setting the distance between the straight line and the origin O to zero.
  • FIG. 8 is a block diagram of a straight line detection apparatus 1B according to the ninth embodiment.
  • the straight line detection device 1B of the ninth embodiment has a luminance image generation unit 11, a contour extraction processing unit 12, a binary conversion unit 13, a Hough conversion unit 14, and A huff table 15 is provided.
  • the functions of these functional units are the same as those in the fourth to sixth embodiments.
  • the straight line detection unit 16 in the ninth embodiment does not include the inter-intersection distance calculation unit 162 and the normalization unit 163.
  • the straight line detection unit 16 detects a straight line without normalizing the Hough table 15.
  • the straight line detection device 1B includes an aspect ratio conversion unit 17.
  • the aspect ratio conversion unit 17 receives the color image 101 and converts the color image into a color square image having an aspect ratio of 1: 1. When converting the aspect ratio, it is necessary to decompress or reduce the image.
  • a method for performing the expansion is not particularly limited, and for example, the image is expanded by using linear interpolation or the like. When performing reduction, for example, image thinning may be performed. Even if the aspect ratio is converted, the straight line is converted into a straight line.
  • the luminance image generation unit 11, the contour extraction processing unit 12, the binary conversion unit 13, and the Hough conversion unit 14 execute the same processing as in the fourth to sixth embodiments. However, the process is executed for a square image whose aspect ratio is converted to 1: 1.
  • the Hough table 15 totals the coordinates ( ⁇ , ⁇ ) converted by the Hough conversion unit 14 using a two-dimensional array [ ⁇ ] [ ⁇ ].
  • the total value is corrected by the correction unit 161. Specifically, as in the fourth to sixth embodiments, the total value is corrected using weighting functions f (x), g (x), and the like.
  • the straight line detection unit 16 has a threshold for straight line determination (first threshold) set in advance.
  • the straight line detection unit 16 specifies coordinates ( ⁇ , ⁇ ) in which the total value exceeding the first threshold is stored in the two-dimensional array [ ⁇ ] [ ⁇ ].
  • the straight line detection unit 16 specifies a straight line included in the binary image data 104 from the specified coordinates ( ⁇ , ⁇ ).
  • the straight line detection unit 16 outputs detection information.
  • the first threshold value can be set to a value different from those in the fourth to sixth embodiments.
  • the straight line detection device 1B of the present embodiment performs Hough conversion after converting the aspect ratio to 1: 1. Therefore, the problem that the possibility of straight line detection differs depending on the direction in the image can be solved.
  • the aspect ratio is converted before the luminance image is generated.
  • the aspect ratio conversion process may be performed at any timing before the Hough conversion is performed.
  • the aspect ratio may be converted after the luminance image generation process, after the contour extraction process, or after the binary conversion process. Note that the straight line detected on the square image is converted into a straight line included in the color image 101 by performing an operation to restore the aspect ratio.
  • FIG. 9 is a functional block diagram of a straight line detection apparatus 1C according to the tenth embodiment.
  • the straight line detection device 1B of the ninth embodiment is similar to the straight line detection device 1A of the fourth embodiment shown in FIG. 6 in that the luminance image generation unit 11, the contour extraction processing unit 12, the binary conversion unit 13, the Hough A conversion unit 14 and a Hough table 15 are provided.
  • the functions of these functional units are the same as those in the fourth to sixth embodiments.
  • the straight line detection device 1C is different in the configuration of the straight line detection unit 16 from the straight line detection device 1A of the fourth embodiment.
  • the straight line detection unit 16 of the straight line detection device 1C includes the intersection distance calculation unit 162 and the normalization unit 163 similar to those in the fourth embodiment, but does not include the correction unit 161.
  • the correction process of the Hough table 15 is performed only by the inter-intersection distance calculation unit 162 and the normalization unit 163.
  • the inter-intersection distance calculation unit 162 refers to the Hough table 15 and calculates the inter-intersection distance Len for all coordinates ( ⁇ , ⁇ ) that are straight line candidates. . That is, the inter-intersection distance Len is calculated for each coordinate ( ⁇ , ⁇ ) in which one or more total values are stored in the two-dimensional array [ ⁇ ] [ ⁇ ]. Alternatively, the inter-intersection distance Len may be calculated for all the two-dimensional arrays [ ⁇ ] [ ⁇ ] including the array whose total value is zero. For example, the intersection distance Len may be calculated for all combinations ( ⁇ , ⁇ ) in advance, and Len [ ⁇ ] [ ⁇ ] may be held as a lookup table.
  • the normalization unit 163 normalizes the total value by dividing the total value of each coordinate ( ⁇ , ⁇ ) by the inter-intersection distance Len calculated for each coordinate ( ⁇ , ⁇ ).
  • the normalization unit 163 divides the total value by the inter-intersection distance Len for each coordinate ( ⁇ , ⁇ ) in which one or more total values are stored in the two-dimensional array [ ⁇ ] [ ⁇ ].
  • the inter-intersection distance Len is calculated for all the two-dimensional arrays [ ⁇ ] [ ⁇ ], and all the total values are normalized by the corresponding inter-intersection distance Len.
  • the normalization unit 163 corrects the total value of the straight lines on the binary image to a numerical value per unit length. Thereby, the correction process of the Hough table 15 (two-dimensional array [ ⁇ ] [ ⁇ ]) is completed.
  • the straight line detection unit 16 refers to the Huff table 15 corrected by the normalization unit 163 and performs straight line detection.
  • a straight line determination threshold (first threshold) is set in advance.
  • the straight line detection unit 16 specifies coordinates ( ⁇ , ⁇ ) in which the total value exceeding the first threshold is stored in the two-dimensional array [ ⁇ ] [ ⁇ ].
  • the straight line detection unit 16 specifies a straight line included in the binary image data 104 from the specified coordinates ( ⁇ , ⁇ ).
  • the straight line detection unit 16 outputs detection information.
  • the first threshold value of this embodiment can be set to a value different from that in the first to ninth embodiments.
  • the straight line detection device 1C of the present embodiment detects a straight line after correcting the Huff table 15 by normalization. Normalization is performed by dividing the total value of the two-dimensional array [ ⁇ ] [ ⁇ ] by the inter-intersection distance Len. In the example shown in FIG. 7, the distance L between the intersections is long for the horizontal line and short for the vertical line. Accordingly, the total value stored in the two-dimensional array [ ⁇ ] [ ⁇ ] is divided by a larger value for the horizontal line than for the vertical line.
  • the problem that the straight line in the horizontal direction is easily detected and the straight line in the vertical direction is difficult to be detected does not occur.
  • the aspect ratio of the image is not 1: 1, straight lines in every direction or position in the image can be detected with the same reference.
  • the total value of each coordinate ( ⁇ , ⁇ ) is divided by the distance Len between the intersections in the Hough space and normalized. That is, normalized total values are calculated for all straight line candidates and compared with the first threshold value.
  • straight lines whose inter-interval distance Len is less than a predetermined threshold (second threshold) are excluded from straight line detection targets.
  • a predetermined threshold second threshold
  • straight lines that exist at the four corners of the binary image data 104 and have a short intersection distance Len are excluded from detection targets.
  • the density of the points arranged on the straight line is not high, it is possible to prevent the normalized total value from being increased because the distance Len between the intersections is very small, thereby preventing erroneous recognition as a straight line.
  • the information on the four corners on the image is not so important, it is possible to detect a straight line by applying a spot near the center of the image by adjusting the second threshold value to be relatively large.
  • the inter-intersection distance Len is calculated by obtaining the coordinates of the points P0 and P1 by the method shown in Formula 11 to Formula 14.
  • the distance Ln between the intersections is calculated by setting the distance between the straight line and the origin O to zero.
  • FIG. 10 is a block diagram of a straight line detection apparatus 1D according to the thirteenth embodiment.
  • the straight line detection device 1D according to the thirteenth embodiment is similar to the straight line detection device 1 according to the tenth embodiment in the luminance image generation unit 11, the contour extraction processing unit 12, the binary conversion unit 13, the Hough conversion unit 14, and the like.
  • a huff table 15 is provided. The functions of these functional units are the same as those in the first embodiment.
  • the straight line detection unit 16 in the tenth embodiment does not include the inter-intersection distance calculation unit 162 and the normalization unit 163.
  • the straight line detection unit 16 detects a straight line without normalizing the Hough table 15.
  • the straight line detection device 1D includes an aspect ratio conversion unit 17.
  • the aspect ratio conversion unit 17 receives the color image 101 and converts the color image into a color square image having an aspect ratio of 1: 1. When converting the aspect ratio, it is necessary to decompress or reduce the image.
  • a method for performing the expansion is not particularly limited, and for example, the image is expanded by using linear interpolation or the like. When performing reduction, for example, image thinning may be performed. Even if the aspect ratio is converted, the straight line is converted into a straight line.
  • the luminance image generation unit 11, the contour extraction processing unit 12, the binary conversion unit 13, and the Hough conversion unit 14 perform the same processing as in the first embodiment. However, the process is executed for a square image whose aspect ratio is converted to 1: 1.
  • the Hough table 15 totals the coordinates ( ⁇ , ⁇ ) converted by the Hough conversion unit 14 using a two-dimensional array [ ⁇ ] [ ⁇ ].
  • a straight line determination threshold (first threshold) is set in advance.
  • the straight line detection unit 16 specifies coordinates ( ⁇ , ⁇ ) in which the total value exceeding the first threshold is stored in the two-dimensional array [ ⁇ ] [ ⁇ ].
  • the straight line detection unit 16 specifies a straight line included in the binary image data 104 from the specified coordinates ( ⁇ , ⁇ ).
  • the straight line detection unit 16 outputs detection information.
  • the first threshold value can be set to a value different from that of the tenth embodiment.
  • the straight line detection device 1D of the present embodiment performs Hough conversion after converting the aspect ratio to 1: 1. Therefore, the problem that the possibility of straight line detection differs depending on the direction in the image can be solved.
  • the aspect ratio is converted before the luminance image is generated.
  • the aspect ratio conversion process may be performed at any timing before the Hough conversion is performed.
  • the aspect ratio may be converted after the luminance image generation process, after the contour extraction process, or after the binary conversion process. Note that the straight line detected on the square image is converted into a straight line included in the color image 101 by performing an operation to restore the aspect ratio.
  • the image is binarized before the Hough transform is performed.
  • image binarization is not performed.
  • the image has, for example, multi-value pixel values such as 0 to 255.
  • the block diagram of the straight line detection device in the fourteenth embodiment is the same as that of the straight line detection device 1 or 1A to 1D shown in FIG. 1, FIG. 6, or FIG. 8 to FIG. However, the straight line detection device according to the fourteenth embodiment does not include the binary conversion unit 13.
  • the Hough transform unit 14 performs Hough transform on all points included in the contour image data 103 or 113.
  • the points included in the contour image data 103 or 113 have, for example, multivalued pixel values such as 0 to 255, and Hough transform is performed on all these points.
  • the Hough transform unit 14 stores the number of times the points included in the binary image data 104 or 114 have been subjected to the Hough transform in the two-variable array [ ⁇ ] [ ⁇ ]. In other words, if the number of times of Hough transform to a certain coordinate ( ⁇ , ⁇ ) is N, the value N is stored as a total value in the two-variable array [ ⁇ ] [ ⁇ ].
  • values corresponding to the line segment intensities of points included in the contour image data 103 or 113 are stored in the two-variable array [ ⁇ ] [ ⁇ ].
  • the pixel values are added to the two-variable array [ ⁇ ] [ ⁇ ] as they are and totaled.
  • a predetermined conversion may be performed on the pixel value, and the conversion value may be added to the two-variable array [ ⁇ ] [ ⁇ ]. That is, the number of conversions can be totaled in the two-variable array [ ⁇ ] [ ⁇ ] after weighting according to the size of the feature amount of the pixel.
  • the subsequent processing is the same as in the above embodiments.
  • the aggregate value is corrected or normalized by at least one of the weighting functions f (x) and g (x).
  • the aggregate value is corrected and normalized by at least one of the weighting functions f (x) and g (x).
  • the total value is compared with a threshold value.
  • the straight line in the binary image data 104 is expressed using ⁇ and ⁇ with the center of the binary image data 104 as the origin.
  • the origin can be set at any place in the image. Alternatively, the origin may be set outside the frame of the binary image data 104.
  • the binarization process is performed after the contour extraction process.
  • the contour extraction process is an example of a process for extracting a feature amount of an image.
  • the binarization process may be performed after extracting the feature amount of the image by another method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

点の数だけなく、直線に関する他の特性も考慮した上で、ハフ変換を利用した直線検出を行うことを課題とする。ハフ変換部14は、輪郭強調された2値画像データ104に対してハフ変換を実行する。ハフテーブル15には、ハフ変換後の集計値が格納される。補正部161は、集計値を補正する。直線検出部16は、補正された集計値に基づき、直線を検出する。また、画像内の方向や位置に依存することなく、同様の基準で、ハフ変換を利用した直線検出処理を行うことを課題とする。直線算出部162は、2値画像データ104内の各直線について、各直線が2値画像データ104を切り取るときの交点を求め、交点間距離Lenを算出する。正規化部162は、ハフテーブル15に格納された集計値を交点間距離Lenで除算し、集計値を正規化する。直線検出部16は、正規化された集計値に基づき、直線を検出する。

Description

直線検出装置および直線検出方法
 本発明は、画像に含まれる直線を検出する技術に関する。
 画像に含まれる直線を検出する技術として、ハフ(Hough)変換が用いられている。XY座標系を持つ画像の任意の点を通る直線は、ハフ空間上の座標(θ、ρ)に変換される。ハフ空間の座標(θ、ρ)に変換される直線の数を2次元配列[θ][ρ]を用いて集計する。そして、2次元配列[θ][ρ]の中で所定の閾値を上回る集計値を有する座標(θ、ρ)から、XY座標系の直線を検出する。
 下記特許文献1においては、画像を局所領域に分割するために、ハフ変換を用いて画像中の線分を検出している。下記特許文献2においては、直線の長さに応じてハフ空間上のパラメータθ、ρのサンプリング間隔を最適化することを試みている。下記特許文献3においても画像の中に含まれる線分を検出するためにハフ変換が用いられている。
特開平10-283476号公報 特開平11-66302号公報 特開2006-107034号公報
 ハフ変換を利用した直線の検出方法は、XY座標系における直線上に存在する点の数に着目する。同一直線上に存在する点の数が多ければ多いほど、直線として検出される可能性が高くなる。つまり、直線として検出されるか否かは、直線上に存在する点の数にのみ依存する。
 しかし、画像を利用するユーザにとって、画像内に存在する直線の中には、重要度の高いものと低いものとがある。たとえ点の数が少なくても考慮すべき直線もあれば、点の数が比較的大きくても関心の低い直線もある。
 また、上述の検出方法を利用した場合、縦方向よりも横方向の長さの長い画像であれば、横方向については直線が検出され易くなる。逆に縦方向の直線は、多少密度が濃い場合であっても、集計値が小さくなれば、直線として検出されない可能性がある。
 あるいは、画像の4隅に存在するような直線は、直線距離が短いため、さらに、直線として検出される可能性が小さくなる。
 本発明の直線検出装置は、対象画像の基準点から対象画像内の任意の直線に下した垂線の長さρおよび垂線が基準点を通る基準軸となす角θを用いて、対象画像内の任意の直線を表現することにより、対象画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換部と、ハフ空間内の各座標(θ、ρ)について、ハフ変換部によって変換された回数を集計する集計部と、ρおよびθの少なくとも一方の値に応じた重みづけにより、各座標(θ、ρ)に関する集計値を補正する補正部と、補正された集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、対象画像における直線を検出する検出部と、を備える。
 本発明の上記直線検出装置を用いることにより、直線の原点からの距離に応じた重みづけを行った上で、直線を検出することができる。あるいは、本発明の上記直線検出装置を用いることにより、直線の傾きに応じた重みづけを行った上で、直線を検出することができる。あるいは、本発明の上記直線検出装置を用いることにより、直線の原点からの距離及び直線の傾き双方に応じた重みづけを行った上で、直線を検出することができる。
 本発明の別の直線検出装置は、対象画像の基準点から対象画像内の任意の直線に下した垂線の長さρおよび垂線が基準点を通る基準軸となす角θを用いて、対象画像内の任意の直線を表現することにより、対象画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換部と、ハフ空間内の任意の座標(θ、ρ)に対応する対象画像内の直線が、対象画像の外周と交わる交点を求めるとともに、交点間の距離を算出する交点間距離算出部と、ハフ空間内の各座標(θ、ρ)について、ハフ変換部によって変換された回数を集計し、各座標(θ、ρ)の集計値をそれぞれ対応する交点間距離で正規化し、正規化集計値を算出する正規化部と、正規化集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、対象画像における直線を検出する検出部と、を備える。
 また、本発明の別の直線検出装置は、対象画像に対して、アスペクト比を1:1に変換するアスペクト比変換処理を実行することにより、正方画像を生成するアスペクト比変換部と、正方画像の基準点から正方画像内の任意の直線に下した垂線の長さρおよび垂線が基準点を通る基準軸となす角θを用いて、正方画像内の任意の直線を表現することにより、正方画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換部と、ハフ空間内の各座標(θ、ρ)について、ハフ変換部によって変換された回数を集計し、各座標(θ、ρ)の集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、正方画像における直線を検出する検出部と、を備える。
 本発明の上記直線検出装置を用いることにより、直線の方向や位置に依存することなく、同じような基準で、ハフ変換された情報から直線を検出することができる。アスペクト比が1:1でない画像であっても、縦方向あるいは横方向、いずれかの直線が検出され難いといった問題を解消することができる。画像の4隅に存在するような直線も検出漏れを防ぐことができる。
 本発明の直線検出方法は、対象画像の基準点から前記対象画像内の任意の直線に下した垂線の長さρおよび前記垂線が前記基準点を通る基準軸となす角θを用いて、前記対象画像内の任意の直線を表現することにより、前記対象画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換工程と、ハフ空間内の各座標(θ、ρ)について、前記ハフ変換部によって変換された回数を集計する集計工程と、ρおよびθの少なくとも一方の値に応じた重みづけにより、各座標(θ、ρ)に関する集計値を補正する補正工程と、補正された集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、前記対象画像における直線を検出する検出工程と、を備える。
 本発明の別の直線検出方法は、対象画像の基準点から前記対象画像内の任意の直線に下した垂線の長さρおよび前記垂線が前記基準点を通る基準軸となす角θを用いて、前記対象画像内の任意の直線を表現することにより、前記対象画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換工程と、ハフ空間内の任意の座標(θ、ρ)に対応する前記対象画像内の直線が、前記対象画像の外周と交わる交点を求めるとともに、交点間の距離を算出する交点間距離算出工程と、ハフ空間内の各座標(θ、ρ)について、前記ハフ変換工程によって変換された回数を集計し、各座標(θ、ρ)の集計値をそれぞれ対応する交点間距離で正規化し、正規化集計値を算出する正規化工程と、正規化集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、前記対象画像における直線を検出する検出工程と、を備える。
 また、本発明の別の直線検出方法は、対象画像に対して、アスペクト比を1:1に変換するアスペクト比変換処理を実行することにより、正方画像を生成する変換工程と、前記正方画像の基準点から前記正方画像内の任意の直線に下した垂線の長さρおよび前記垂線が前記基準点を通る基準軸となす角θを用いて、前記正方画像内の任意の直線を表現することにより、前記正方画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換工程と、ハフ空間内の各座標(θ、ρ)について、前記ハフ変換工程によって変換された回数を集計し、各座標(θ、ρ)の集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、前記正方画像における直線を検出する検出工程と、を備える。
 本発明の目的は、点の数だけでなく、直線に関する他の特性も考慮した上で、直線を検出する技術を提供することである。また、本発明の別の目的は、直線が存在する方向あるいは位置に左右されることなく、同じような基準で直線を検出する技術を提供することである。
 この発明の目的、特徴、局面および利点は、以下の詳細な説明と添付図面によって、明白となる。
第1の実施の形態に係る直線検出装置のブロック図である。 2値画像データにおける直線の表現方法を示す図である。 ハフ空間を示す図である。 距離ρに応じて集計値を補正するための重みづけ関数f(x)を示す図である。 角度θに応じて集計値を補正するための重みづけ関数g(x)を示す図である。 第4の実施の形態に係る直線検出装置のブロック図である。 2値画像データを切り取る直線を示す図である。 第8の実施の形態に係る直線検出装置のブロック図である。 第10の実施の形態に係る直線検出装置のブロック図である。 第13の実施の形態に係る直線検出装置のブロック図である。
 {第1の実施の形態}
 <1-1.処理の全体の流れ>
 図1は、第1の実施の形態に係る直線検出装置1のブロック図である。直線検出装置1は、輝度画像生成部11、輪郭抽出処理部12、2値変換部13、ハフ(Hough)変換部14、ハフテーブル15および直線検出部16を備えている。
 本実施の形態においては、輝度画像生成部11、輪郭抽出処理部12、2値変換部13、ハフ変換部14および直線検出部16は、ハードウェア回路により構成されている。しかし、これら機能部をCPUおよびCPU上で動作するソフトウェアにより構成してもよい。
 輝度画像生成部11は、カラー画像データ101を入力する。カラー画像データ101は、たとえば、図示せぬ撮像素子により取得された画像である。カラー画像データ101は、たとえば、YCbCr色空間やRGB色空間の画像データである。輝度画像生成部11は、カラー画像データ101から、輝度画像データ102を生成する。たとえば、カラー画像データ101がYCbCr色空間の画像データであれば、輝度画像生成部11は、Y信号を抽出することにより輝度画像データ102を生成する。
 輪郭抽出処理部12は、輝度画像データ102を入力する。輪郭抽出処理部12は、輝度画像データ102から輪郭画像データ103を生成する。本実施の形態においては、輪郭抽出処理部12は、ソーベル(Sobel)フィルタを利用して、輪郭抽出処理を行っている。ソーベルフィルタは、空間1次微分演算により、輪郭を検出するフィルタである。輪郭抽出処理部12は、フィルタの出力の絶対値を線分の強度として出力する。用いるフィルタは特に限定されるものではない。たとえば、ラプラシアンフィルタを用いてもよい。
 2値変換部13は、輪郭画像データ103を入力する。2値変換部13は、輪郭画像データ103から2値画像データ104を生成する。輪郭画像データ103は、グレースケールの画像データである。2値変換部13は、予め設定された閾値に基づいて、輪郭画像データ103の各画素の画素値を0あるいは1に変換する。
 ハフ変換部14は、2値画像データ104を入力する。ハフ変換部14は、2値画像データ104をハフ変換し、変換後の結果をハフテーブル15に書き込む。具体的には、ハフ変換部14は、変換後の結果を2次元配列[θ][ρ]に格納する。ハフ変換の処理の内容は後で詳しく説明する。
 直線検出部16は、補正部161を備えている。直線検出部16は、ハフテーブル15を参照することで、2値画像データ104に含まれる直線を検出する。補正部161を含め、直線検出部16の処理の内容は後で詳しく説明する。
 <1-2.ハフ変換>
 ハフ変換部14の処理内容について詳しく説明する。ハフ変換部14は、2値画像データ104に含まれる任意の点について、各点を通る直線をハフ空間上の座標(θ、ρ)に変換する。
 図2は、2値画像データ104を示す図である。2値画像データ104には、図2に示すように、原点OとXY座標が定義されている。図2には、2値画像データ104に含まれる点のうち一部の点51~55を図示している。ここで、2値画像データ104に含まれる点とは、2値変換により画素値1が与えられている点のことである。点51を通る直線61は、θおよびρを用いて数1式のように表すことができる。
Figure JPOXMLDOC01-appb-M000001
 数1式において、ρは、原点から直線61に下した垂線62の長さである。θは、垂線62がX軸の正の方向となす角である。
 点51を通る直線は、多数存在する。点51を通る直線の数は、θおよびρのサンプリング間隔に基づいて決まる。したがって、2値画像データ104上の1つの点に対して、複数のハフ空間上の座標(θ、ρ)が対応付けられる。
 図2に示すように、点51~点53は、同一直線上に並んでいる。点52および点53を通る直線についても、それぞれ複数のハフ空間上の座標(θ、ρ)に変換される。そして、点51~点53の全ての点について、直線61がハフ変換されて、同一の座標(θ、ρ)に対応付けられる。
 図3は、ハフ空間を示す図である。正弦曲線71~75は、それぞれ、点51~点55がハフ変換されることにより得られるハフ空間上の点の集合を示している。そして、正弦曲線71~73の交わる座標(θ1、ρ1)が直線61に対応している。
 このように、2値画像データ104において同一の直線上に複数の点が存在する場合、2値画像上の複数の点がハフ空間上の同一の点に変換されることになる。ハフ空間上で各座標(θ、ρ)に変換される点を集計することで、直線を検出することができる。ハフテーブル15は、2次元配列T[θ][ρ]を有している。つまり、2値画像データ104の全ての点についてハフ変換を行い、その結果が2次元配列T[θ][ρ]において集計される。
 <1-3.直線検出処理>
 直線検出部16は、ハフテーブル15を参照し、2値画像データ104に含まれる直線を検出する。直線検出部16は、ハフ変換部14による変換結果をそのまま用いて直線を検出するのではなく、ハフテーブル15の内容を補正した上で直線の検出を行う。補正処理は補正部161により行われる。
 補正部161の処理内容を説明する。補正部161は、関数f(x)を利用して2次元配列T[θ][ρ]の集計値を補正する。関数f(x)は、2次元配列T[θ][ρ]の集計値に距離ρに応じた重みづけを行う関数である。関数f(x)は、ρを入力値とし、補正係数f(ρ)を出力する。補正係数f(ρ)は、集計値に乗算される係数である。
 関数f(x)の値が大きいとき、集計値の値は高く評価される。たとえば、比較的集計値が小さい場合であっても直線として検出される可能性を高める補正が行われる。関数f(x)の値が小さいとき、集計値の値は低く評価される。
 図4は、本実施の形態に係る関数f(x)を示す図である。関数f(x)は、図に示すように、x=0で最大値cをとるとともに、x=0の近傍の値が大きくなっている。また、関数f(x)は、xの値が0から遠ざかるにつれて値が小さくなり、x=aおよびx=-aで最小値bをとる。
 数2式は、関数f(x)を示す。関数f(x)はxの4次関数であり、上記のように、x=0で最大値cをとるとともに、x=aおよびx=-aで最小値bをとる関数である。
Figure JPOXMLDOC01-appb-M000002
 数2式において、a、b、cは関数f(x)の特性を決める定数である。a、b、cの値を変更することで補正部161の補正特性を自由に変更することができる。たとえば、a、b、cとして数3式に示すような値が設定される。
Figure JPOXMLDOC01-appb-M000003
 数3式において、wは、2値画像104の横方向の長さであり、hは、2値画像104の縦方向の長さである(図2参照)。つまり、aは、2値画像104において、原点Oから画像の4隅までの長さを示している。数3式で示されるようにaが設定されることにより、2値画像104の4隅において、もっとも関数f(x)の値が小さくなる。つまり、原点Oからの距離が、対象画像(2値画像)の対角線の半分の値である直線に対して重みづけが最も小さくなるように設定される。そして、原点Oからの距離が近づくにつれて直線に対する重みづけが大きくなる。b=0.5およびc=1.0と設定されることにより、重みづけの差は2倍となる。
 補正部161は、数4式に示すように、各座標(θ、ρ)の集計値に補正係数f(ρ)を乗算し、補正された集計値Tc[θ][ρ]を得る。
Figure JPOXMLDOC01-appb-M000004
 このように、本実施の形態においては、直線の原点からの距離に応じて集計値に重みづけを行う補正を実行する。たとえば、図4および数2式に示した例であれば、原点Oまでの距離が短い直線が高く評価されるよう補正される。これにより、画像の中央付近を通過する直線に重点を置いて、直線を検出することができる。
 数2式で示した関数f(x)は、原点からの距離が近いほど、直線が検出され易くなる。これは、関数f(x)のピークがx=0に存在するからである。したがって、ピークの位置をx軸方向にずらすことで、原点からの距離が特定の距離となる直線を重点的に検出することが可能である。また、数2式で示した関数f(x)は、集計値に乗算する補正係数を算出する関数であるが、集計値に加算する補正係数を算出する関数を利用してもよい。
 直線検出部16は、補正部161により補正されたハフテーブル15を参照し、直線検出を行う。直線検出部16には、予め直線判定用の閾値(第1の閾値)が設定されている。直線検出部16は、2次元配列[θ][ρ]に第1の閾値を超える集計値が格納されている座標(θ、ρ)を特定する。直線検出部16は、特定された座標(θ、ρ)から2値画像データ104に含まれる直線を特定する。直線検出部16は、検出情報を出力する。
 {第2の実施の形態}
 次に、本発明の第2の実施の形態について説明する。第2の実施の形態における直線検出装置1の構成は、図1に示した第1の実施の形態と同様である。第1の実施の形態においては、補正部161は、直線の原点からの距離ρに基づいて、集計値を補正した。第2の実施の形態においては、補正部161は、原点から直線に下した垂線82がx軸の正の方向となす各θ(図2参照)に基づいて、集計値を補正する。第1の実施の形態においては、補正部161は、図4に示した関数f(x)を利用して、集計値を補正した。第2の実施の形態においては、補正部161は、図5に示す関数g(x)を利用して、集計値を補正する。関数g(x)は、θを入力値とし、補正係数g(θ)を出力する。補正係数g(θ)は、集計値に乗算される係数である。
 図5に示すように、関数g(x)は、x=dおよびx=π-dにおいて、最大値kをとるとともに、x=dおよびx=π-dの近傍の値が大きくなっている。また、関数g(x)は、xの値がdおよびπ-dから遠ざかるにつれて値が小さくなり、ピーク位置よりx座標がsだけ離れたところでは最小値eをとる。
 数5式は、関数g(x)を示す。関数g(x)は、0からπまでの定義域で定義されており、g(x)=bとxに関する4次関数とを組み合わせた関数となっている。g(x-π)=g(x)という性質を持たせることにより、θがπより大きい領域においても、同じような特性の重みづけ関数を定義することができる。もちろん、θがπより大きい領域において、全く異なる別の関数を適用させてもよい。
Figure JPOXMLDOC01-appb-M000005
 数5式中、d、s、e、kは、関数g(x)の特性を決める定数である。d、s、e、kの値を変更することで補正部161の補正特性を自由に変更することができる。たとえば、d、s、e、kとして数6式に示すような値が設定される。
Figure JPOXMLDOC01-appb-M000006
 数6式で示されるようにd=π/6と設定されることにより、x軸の正の方向となす角がπ/6あるいは5π/6の直線と直交する直線に最大の重点をおいて検出が行われる。そして、s=π/12と設定されることにより、ピーク位置から垂線62の傾きが±π/12変化する範囲においては、集計値が高く評価される。ピーク位置から垂線62の傾きが±π/12以上変化した領域では、集計値の評価は最低となる。e=0.5およびk=1.0と設定されることにより、重みづけの差は2倍となる。
 補正部161は、数7式に示すように、各座標(θ、ρ)の集計値に補正係数g(θ)を乗算し、補正された集計値Tc[θ][ρ]を得る。
Figure JPOXMLDOC01-appb-M000007
 このように、本実施の形態においては、直線の傾きに応じた重みづけにより、集計値を補正する。たとえば、図5および数5式に示した例であれば、2種類の角度を有する直線が高く評価されるよう補正される。dの値を自由に変更し、ピークの位置をx軸方向にずらすことで、検出したい直線の角度を自由に設定することができる。
 もちろん、図5および数5式で示した関数g(x)は一例である。関数g(x)は直線を検出する目的に応じて自由に設定することができる。
 直線検出部16は、補正部161により補正されたハフテーブル15を参照し、直線検出を行う。直線検出部16には、予め直線判定用の閾値(第1の閾値)が設定されている。直線検出部16は、2次元配列[θ][ρ]に第1の閾値を超える集計値が格納されている座標(θ、ρ)を特定する。直線検出部16は、特定された座標(θ、ρ)から2値画像データ104に含まれる直線を特定する。直線検出部16は、検出情報を出力する。
 {第3の実施の形態}
 次に、本発明の第3の実施の形態について説明する。第3の実施の形態における直線検出装置1の構成は、図1に示した第1の実施の形態と同様である。第1の実施の形態においては、補正部161は、直線の原点からの距離ρに基づいて、集計値を補正した。第2の実施の形態においては、補正部161は、原点から直線に下した垂線62がx軸の正の方向となす各θに基づいて、集計値を補正した。第3の実施の形態は、第1の実施の形態と第2の実施の形態とを合わせた実施の形態である。
 数8式は、第3の実施の形態における集計値の補正計算方法を示す図である。つまり、補正部161は、2次元配列[θ][ρ]の集計値に、f(ρ)およびg(θ)の両方の補正係数を乗算する。これにより、原点からの距離と、直線の傾きの両方について重みづけを行って直線を検出することができる。たとえば、特定の傾きを持つとともに、原点から特定の距離を有する直線を重点的に検出することができる。
Figure JPOXMLDOC01-appb-M000008
 {変形例1}
 第1の実施の形態では、距離ρについてピークを1箇所に持つ関数f(x)を利用して補正を行った。距離ρについて関数g(x)のように、ピークを2箇所有する関数を利用して補正を行ってもよい。あるいは、距離ρに関して3以上のピークを有する重みづけ関数を利用してもよい。
 第2の実施の形態では、角θについてピークを2箇所に持つ関数g(x)を利用して補正を行った。角θについて関数f(x)のように、ピークを1箇所有する関数を利用して補正を行ってもよい。あるいは、角θに関して3以上のピークを有する重みづけ関数を利用してもよい。
 {第4の実施の形態}
 次に、本発明の第4の実施の形態について説明する。図6は、第4の実施の形態に係る直線検出装置1Aの機能ブロック図である。直線検出装置1Aの構成は、図1に示した第1の実施の形態の直線検出装置1と比べて直線検出部16の構成が異なる。
 第4の実施の形態の直線検出部16は、補正部161に加えて、交点間距離算出部162および正規化部163を備えている。直線検出装置1Aが備えるその他の構成、機能は、第1の実施の形態と同様である。つまり、輝度画像生成部11、輪郭抽出処理部12、2値変換部13、ハフ(Hough)変換部14およびハフテーブル15の機能は、第1の実施の形態と同様である。
 直線検出部16は、補正部161、交点間距離算出部162および正規化部163を備えている。直線検出部16は、ハフテーブル15を参照することで、2値画像データ104に含まれる直線を検出する。直線検出部16は、ハフ変換部14による変換結果をそのまま用いて直線を検出するのではなく、ハフテーブル15の内容を補正した上で直線の検出を行う。補正処理は第1の実施の形態と同様、補正部161によって行われるが、本実施の形態においては、補正部161による補正処理に加えて、交点間距離算出部162および正規化部163により行われる。
 交点間距離算出部162の処理内容を説明する。図7は、2値画像データ104に含まれる直線81を示している。原点Oから直線81に下ろした垂線82の長さはρである。垂線82がX軸の正の方向と成す角はθである。
 図7において、2値画像データ104は、横方向(X軸方向)の長さが2wであり、縦方向(Y軸方向)の長さが2hの長方形の画像データである。2値画像データ104の中心に原点Oが設定されている。
 直線81は、点P0(x0、y0)および点P1(x1、y1)において、2値画像データ104の外周辺と交差する。言い換えると、直線81が2値画像データ104を切り取るとき、直線81と2値画像データ104の外周との2つの交点が、点P0(x0、y0)および点P1(x1、y1)である。交点間距離算出部161は、2つの交点間の距離、すなわち、点P0(x0、y0)および点P1(x1、y1)間の距離(交点間距離Len)を算出する。
 本実施の形態における距離算出方法を具体的に説明する。まず、点P0の座標(x0、y0)および点P1の座標(x1、y1)の決定方法について説明する。本実施の形態においては、直線81と直線y=hとの交点から点P0のX座標x0を求め、直線81と直線y=-hとの交点から点P1のX座標x1を求める。また、直線81と直線x=wとの交点から点P0のY座標y0を求め、直線81と直線x=-wとの交点から点P1のY座標y1を求める。
 まず、直線81がX軸あるいはY軸に平行となる場合を考える。この場合は、上記のような方法で点P0および点P1の座標を求めることなく、以下の方法により交点間距離Lenを求める。
 cosθ=0のとき、つまり、直線81がX軸と並行な直線である場合、交点間距離Lenは、数9式のように表わされる。
Figure JPOXMLDOC01-appb-M000009
 sinθ=0のとき、つまり、直線81がY軸と並行な直線である場合、交点間距離Lenは、数10式のように表わされる。
Figure JPOXMLDOC01-appb-M000010
 次に、直線81と直線y=hの交点である点P0のX座標x0を求める。x0は、数11式で表される。
Figure JPOXMLDOC01-appb-M000011
 次に、直線81と直線y=―hの交点である点P1のX座標x1を求める。x1は、数12式で表される。
Figure JPOXMLDOC01-appb-M000012
 次に、直線81と直線x=wの交点である点P0のY座標y0を求める。y0は、数13式で表される。
Figure JPOXMLDOC01-appb-M000013
 次に、直線81と直線x=-wの交点である点P1のY座標y1を求める。y1は、数14式で表される。
Figure JPOXMLDOC01-appb-M000014
 そして、x0が-wより小さい場合には、数15式に示すように、x0を-wに設定する。つまり、2値画像のフレーム端よりも交点がはみ出している場合には、フレーム端を交点のX座標とする。2値画像のフレーム端から交点のX座標がはみ出す場合は、数15式に示すように、全てのケースにおいて、X座標をフレーム端に設定する。つまり、x0がwより大きい場合には、x0をwに設定する。x1が-wより小さい場合には、x1を-wに設定する。x1がwより大きい場合には、x1をwに設定する。
Figure JPOXMLDOC01-appb-M000015
 2値画像のフレーム端から交点のY座標がはみ出す場合は、数16式に示すように、全てのケースにおいて、Y座標をフレーム端に設定する。つまり、y0が-hより小さい場合には、y0を-hに設定する。y0がhより大きい場合には、y0をhに設定する。y1が-hより小さい場合には、y1を-hに設定する。y1がhより大きい場合には、y1をhに設定する。
Figure JPOXMLDOC01-appb-M000016
 以上のようにして、点P0(x0、y0)および点P1(x1、y1)の座標が決定されると、交点間距離算出部162は、数17式で示される演算を行い、交点間距離Lenを求める。
Figure JPOXMLDOC01-appb-M000017
 数17式中、x0、x1、y0、y1は、数15式あるいは数16式に当てはまらない場合には、数11式~数14式で算出された値であり、数15式あるいは数16式に当てはまる場合は、数15式あるいは数16式で設定された値である。
 以上のような計算方法により、交点間距離算出部162は、ハフテーブル15を参照し、直線候補となっている全ての座標(θ、ρ)について交点間距離Lenを算出する。つまり、2次元配列[θ][ρ]に1以上の集計値が格納されている各座標(θ、ρ)について交点間距離Lenを算出する。あるいは、集計値がゼロである配列も含め、全ての2次元配列[θ][ρ]について交点間距離Lenを算出してもよい。たとえば、あらかじめ全ての組み合わせ(θ、ρ)に対して交点間距離Lenを算出しておき、Len[θ][ρ]をルックアップテーブルとして保持するようにしてもよい。
 正規化部163は、各座標(θ、ρ)の集計値を、各座標(θ、ρ)について算出された交点間距離Lenで除算することで、集計値を正規化する。正規化部163は、2次元配列[θ][ρ]に1以上の集計値が格納されている各座標(θ、ρ)について、それぞれ集計値を交点間距離Lenで除算する。あるいは、上述したように全ての2次元配列[θ][ρ]について交点間距離Lenを算出し、全ての集計値を対応する交点間距離Lenで正規化する。言い換えると、正規化部163は、2値画像上の直線の集計値を単位長さ当たりの数値に補正する。
 直線検出部16は、第1の実施の形態において説明した補正部161による補正処理と、上述した正規化部163による補正処理の両方を実行する。これにより、2次元配列[θ][ρ]の集計値は、数18式に示すように補正される。
Figure JPOXMLDOC01-appb-M000018
 数18式に示した補正式は、第1の実施の形態に係る補正部161の補正処理と正規化部163による補正処理とを合成した補正処理である。つまり、原点から特定の距離にある直線を重点的に検知するという特性を有するとともに、集計値を交点間距離Lenで正規化することにより、単位長さあたりの集計値を評価している。
 直線検出部16は、補正部161および正規化部163により補正されたハフテーブル15を参照し、直線検出を行う。直線検出部16には、予め直線判定用の閾値(第1の閾値)が設定されている。直線検出部16は、2次元配列[θ][ρ]に第1の閾値を超える集計値が格納されている座標(θ、ρ)を特定する。直線検出部16は、特定された座標(θ、ρ)から2値画像データ104に含まれる直線を特定する。直線検出部16は、検出情報を出力する。本実施形態の第1の閾値は、第1~第3の実施の形態におけるものと異なる値とすることができる。
 このように本実施の形態の直線検出装置1Aは、ハフテーブル15を正規化により補正した上で直線を検出する。正規化は、2次元配列[θ][ρ]の集計値を交点間距離Lenで除算することにより行われる。交点間距離Lenは、図7で示した例であれば、横方向の直線については長く、縦方向の直線については、短くなる。したがって、2次元配列[θ][ρ]に格納された集計値は、横方向の直線については、縦方向の直線より大きな値で除算されることになる。
 これによって、2値画像データ104において、横方向の直線が検出され易く、縦方向の直線が検出され難いという問題は発生しない。あるいは、画像の4隅に存在するような直線も検出し難いという問題は発生しない。画像のアスペクト比が1:1でない場合であっても、画像内のあらゆる方向あるいは位置の直線を同じ基準で検出することができる。さらには、関数f(x)による補正が行われているので、原点から特定の距離にある直線に重点をおいて直線を検出することができる。
 {第5の実施の形態}
 次に、本発明の第5の実施の形態を説明する。上述した第4の実施の形態は、第1の実施の形態における補正処理と正規化部163による補正処理とを合成したものであった。第5の実施の形態は、第2の実施の形態における補正処理と正規化部163による補正処理とを合成する。
 数19式は、第5の実施の形態に係る補正式を示す。
Figure JPOXMLDOC01-appb-M000019
 このように、2次元配列[θ][ρ]の集計値は、交点間距離Lenで除算されることにより正規化されるとともに、関数g(x)により補正される。つまり、第5の実施の形態においては、交点間距離Lenによって集計値を正規化するとともに、特定の傾きに重点を置いて直線を検出することができる。
 {第6の実施の形態}
 次に、本発明の第6の実施の形態を説明する。第6の実施の形態は、第1の実施の形態における補正処理、第2の実施の形態における補正処理、および、正規化部163による補正処理を合成する。
 数20式は、第6の実施の形態に係る補正式を示す。
Figure JPOXMLDOC01-appb-M000020
 このように、2次元配列[θ][ρ]の集計値は、交点間距離Lenで除算されることにより正規化されるとともに、関数f(x)および関数g(x)により補正される。つまり、第6の実施の形態においては、交点間距離Lenによって集計値を正規化するとともに、原点からの距離および特定の傾きに重点を置いて直線を検出することができる。
 {第7の実施の形態}
 次に、本発明の第7の実施の形態について説明する。第7の実施の形態における直線検出装置1Aの機能ブロックは、図6に示したものと同様である。ただし、第7の実施の形態においては、直線検出部16における処理が第4~第6の実施の形態とは異なる。
 第4~第6の実施の形態においては、ハフ空間において各座標(θ、ρ)の集計値を交点間距離Lenで除算し、正規化した。つまり、全ての直線候補について正規化集計値を算出し、第1の閾値との比較をした。
 第7の実施の形態においては、交点間距離Lenが、所定の閾値(第2の閾値)を下回る直線については、直線の検出対象から除外することにしている。たとえば、2値画像データ104の4隅に存在し、交点間距離Lenの短い直線が検出対象から除外される。これにより、直線上に並ぶ点の密度がそれぞれ大きくないが、交点間距離Lenが非常に小さいために正規化集計値が増大し、直線として誤認識されることを防止することができる。あるいは、画像の4隅において距離の非常に短い多数の直線が検出されるという問題を防止することができる。
 たとえば、画像上の4隅の情報がそれほど重要視されない場合には、第2の閾値を比較的大きめに調整することで、画像中央付近にスポットを当てて直線を検出することが可能である。
 {第8の実施の形態}
 次に、本発明の第8の実施の形態について説明する。第8の実施の形態における直線検出装置1Aの機能ブロックは、図6に示したものと同様である。ただし、第8の実施の形態においては、直線検出部16における処理が第4~第6の実施の形態とは異なる。
 第4~第6の実施の形態においては、数11式~数14式に示した方法により、点P0およびP1の座標を求めて交点間距離Lenを算出した。第8の実施の形態においては、直線と原点Oとの距離を0として交点間距離Lenを算出する。
 つまり、交点間距離算出部162は、座標(θ、ρ)に対応する2値画像内の直線の交点間距離Lenを算出するとき、ρ=0と置き換えた上で交点間距離Lenを算出する。
 このようにして交点間距離Lenを算出することで、交点間距離算出部162の演算量を少なくし、処理速度を向上させることができる。具体的には、数11式~数14式において、ρ=0と置き換えることができるので、演算式が簡素化される。
 {第9の実施の形態}
 次に、本発明の第9の実施の形態について説明する。図8は、第9の実施の形態に係る直線検出装置1Bのブロック図である。
 第9の実施の形態の直線検出装置1Bは、第4の実施の形態の直線検出装置1Aと同様、輝度画像生成部11、輪郭抽出処理部12、2値変換部13、ハフ変換部14およびハフテーブル15を備える。これらの各機能部の機能は第4~第6の実施の形態と同様である。
 第9の実施の形態における直線検出部16は、第4~第6の実施の形態と異なり、交点間距離算出部162および正規化部163を備えていない。第9の実施の形態においては、直線検出部16は、ハフテーブル15の正規化を行うことなく、直線を検出する。
 直線検出装置1Bは、アスペクト比変換部17を備えている。アスペクト比変換部17は、カラー画像101を入力し、カラー画像をアスペクト比が1:1のカラーの正方画像に変換する。アスペクト比を変換するとき、画像の伸長あるいは縮小を行う必要がある。伸長を行う方法は特に限定されないが、たとえば、線形補間などを利用して画像を伸長する。縮小を行う場合には、たとえば画像の間引きを行えばよい。アスペクト比が変換された場合であっても、直線は直線に変換される。
 輝度画像生成部11、輪郭抽出処理部12、2値変換部13およびハフ変換部14は、第4~第6の実施の形態と同様の処理を実行する。ただし、アスペクト比が1:1に変換された正方画像を対象として処理を実行する。
 ハフテーブル15は、ハフ変換部14において変換された座標(θ、ρ)を2次元配列[θ][ρ]を用いて集計する。集計値は、補正部161によって補正される。具体的には、第4~第6の実施の形態と同様、重みづけ用の関数f(x)、g(x)等を用いて集計値を補正する。
 直線検出部16には、予め直線判定用の閾値(第1の閾値)が設定されている。直線検出部16は、2次元配列[θ][ρ]に第1の閾値を超える集計値が格納されている座標(θ、ρ)を特定する。直線検出部16は、特定された座標(θ、ρ)から2値画像データ104に含まれる直線を特定する。直線検出部16は、検出情報を出力する。なお、第1の閾値は、第4~第6の実施の形態と異なる値を設定することができる。
 このように、本実施の形態の直線検出装置1Bは、アスペクト比を1:1に変換した後にハフ変換を行う。したがって、画像内の方向によって直線検出の可能性が異なるという問題を解消することができる。
 本実施の形態においては、輝度画像を生成する前にアスペクト比を変換した。しかし、アスペクト比の変換処理は、ハフ変換を行う前のどのタイミングであってもよい。たとえば、輝度画像生成処理の後、輪郭抽出処理の後、あるいは、2値変換処理の後にアスペクト比の変換を行ってもよい。なお、正方画像上で検出された直線は、アスペクト比を元に戻す演算を行うことにより、カラー画像101内に含まれる直線に変換される。
 {第10の実施の形態}
 次に、本発明の第10の実施の形態について説明する。図9は、第10の実施の形態に係る直線検出装置1Cの機能ブロック図である。第9の実施の形態の直線検出装置1Bは、図6に示す第4の実施の形態の直線検出装置1Aと同様、輝度画像生成部11、輪郭抽出処理部12、2値変換部13、ハフ変換部14およびハフテーブル15を備える。これらの各機能部の機能は第4~第6の実施の形態と同様である。
 直線検出装置1Cは、第4の実施の形態の直線検出装置1Aと比べて直線検出部16の構成が異なる。直線検出装置1Cの直線検出部16は、第4の実施の形態と同様の交点間距離算出部162および正規化部163を備えているが、補正部161を備えていない。ハフテーブル15の補正処理は、交点間距離算出部162および正規化部163のみによって行われる。
 第4の実施の形態と同様の計算方法により、交点間距離算出部162は、ハフテーブル15を参照し、直線候補となっている全ての座標(θ、ρ)について交点間距離Lenを算出する。つまり、2次元配列[θ][ρ]に1以上の集計値が格納されている各座標(θ、ρ)について交点間距離Lenを算出する。あるいは、集計値がゼロである配列も含め、全ての2次元配列[θ][ρ]について交点間距離Lenを算出してもよい。たとえば、あらかじめ全ての組み合わせ(θ、ρ)に対して交点間距離Lenを算出しておき、Len[θ][ρ]をルックアップテーブルとして保持するようにしてもよい。
 正規化部163は、各座標(θ、ρ)の集計値を、各座標(θ、ρ)について算出された交点間距離Lenで除算することで、集計値を正規化する。正規化部163は、2次元配列[θ][ρ]に1以上の集計値が格納されている各座標(θ、ρ)について、それぞれ集計値を交点間距離Lenで除算する。あるいは、上述したように全ての2次元配列[θ][ρ]について交点間距離Lenを算出し、全ての集計値を対応する交点間距離Lenで正規化する。言い換えると、正規化部163は、2値画像上の直線の集計値を単位長さ当たりの数値に補正する。これにより、ハフテーブル15(2次元配列[θ][ρ])の補正処理が完了する。
 直線検出部16は、正規化部163により補正されたハフテーブル15を参照し、直線検出を行う。直線検出部16には、予め直線判定用の閾値(第1の閾値)が設定されている。直線検出部16は、2次元配列[θ][ρ]に第1の閾値を超える集計値が格納されている座標(θ、ρ)を特定する。直線検出部16は、特定された座標(θ、ρ)から2値画像データ104に含まれる直線を特定する。直線検出部16は、検出情報を出力する。本実施形態の第1の閾値は、第1~第9の実施の形態におけるものと異なる値とすることができる。
 このように本実施の形態の直線検出装置1Cは、ハフテーブル15を正規化により補正した上で直線を検出する。正規化は、2次元配列[θ][ρ]の集計値を交点間距離Lenで除算することにより行われる。交点間距離Lは、図7で示した例であれば、横方向の直線については長く、縦方向の直線については、短くなる。したがって、2次元配列[θ][ρ]に格納された集計値は、横方向の直線については、縦方向の直線より大きな値で除算されることになる。
 これによって、2値画像データ104において、横方向の直線が検出され易く、縦方向の直線が検出され難いという問題は発生しない。あるいは、画像の4隅に存在するような直線も検出し難いという問題は発生しない。画像のアスペクト比が1:1でない場合であっても、画像内のあらゆる方向あるいは位置の直線を同じ基準で検出することができる。
 {第11の実施の形態}
 次に、本発明の第11の実施の形態について説明する。第11の実施の形態における直線検出装置1の機能ブロックは、図9に示したものと同様である。ただし、第11の実施の形態においては、直線検出部16における処理が第10の実施の形態とは異なる。
 第10の実施の形態においては、ハフ空間において各座標(θ、ρ)の集計値を交点間距離Lenで除算し、正規化した。つまり、全ての直線候補について正規化集計値を算出し、第1の閾値との比較をした。
 第11の実施の形態においては、交点間距離Lenが、所定の閾値(第2の閾値)を下回る直線については、直線の検出対象から除外することにしている。たとえば、2値画像データ104の4隅に存在し、交点間距離Lenの短い直線が検出対象から除外される。これにより、直線上に並ぶ点の密度がそれぞれ大きくないが、交点間距離Lenが非常に小さいために正規化集計値が増大し、直線として誤認識されることを防止することができる。あるいは、画像の4隅において距離の非常に短い多数の直線が検出されるという問題を防止することができる。
 たとえば、画像上の4隅の情報がそれほど重要視されない場合には、第2の閾値を比較的大きめに調整することで、画像中央付近にスポットを当てて直線を検出することが可能である。
 {第12の実施の形態}
 次に、本発明の第12の実施の形態について説明する。第12の実施の形態における直線検出装置1の機能ブロックは、図9に示したものと同様である。ただし、第12の実施の形態においては、直線検出部16における処理が第10の実施の形態とは異なる。
 第10の実施の形態においては、第4の実施の形態と同様に、数11式~数14式に示した方法により、点P0およびP1の座標を求めて交点間距離Lenを算出した。第12の実施の形態においては、直線と原点Oとの距離を0として交点間距離Lenを算出する。
 つまり、交点間距離算出部162は、座標(θ、ρ)に対応する2値画像内の直線の交点間距離Lenを算出するとき、ρ=0と置き換えた上で交点間距離Lenを算出する。
 このようにして交点間距離Lenを算出することで、交点間距離算出部161の演算量を少なくし、処理速度を向上させることができる。具体的には、数11式~数14式において、ρ=0と置き換えることができるので、演算式が簡素化される。
 {第13の実施の形態}
 次に、本発明の第13の実施の形態について説明する。図10は、第13の実施の形態に係る直線検出装置1Dのブロック図である。
 第13の実施の形態の直線検出装置1Dは、第10の実施の形態の直線検出装置1と同様、輝度画像生成部11、輪郭抽出処理部12、2値変換部13、ハフ変換部14およびハフテーブル15を備える。これらの各機能部の機能は第1の実施の形態と同様である。
 第10の実施の形態における直線検出部16は、第10の実施の形態と異なり、交点間距離算出部162および正規化部163を備えていない。第13の実施の形態においては、直線検出部16は、ハフテーブル15の正規化を行うことなく、直線を検出する。
 直線検出装置1Dは、アスペクト比変換部17を備えている。アスペクト比変換部17は、カラー画像101を入力し、カラー画像をアスペクト比が1:1のカラーの正方画像に変換する。アスペクト比を変換するとき、画像の伸長あるいは縮小を行う必要がある。伸長を行う方法は特に限定されないが、たとえば、線形補間などを利用して画像を伸長する。縮小を行う場合には、たとえば画像の間引きを行えばよい。アスペクト比が変換された場合であっても、直線は直線に変換される。
 輝度画像生成部11、輪郭抽出処理部12、2値変換部13およびハフ変換部14は、第1の実施の形態と同様の処理を実行する。ただし、アスペクト比が1:1に変換された正方画像を対象として処理を実行する。
 ハフテーブル15は、ハフ変換部14において変換された座標(θ、ρ)を2次元配列[θ][ρ]を用いて集計する。直線検出部16には、予め直線判定用の閾値(第1の閾値)が設定されている。直線検出部16は、2次元配列[θ][ρ]に第1の閾値を超える集計値が格納されている座標(θ、ρ)を特定する。直線検出部16は、特定された座標(θ、ρ)から2値画像データ104に含まれる直線を特定する。直線検出部16は、検出情報を出力する。なお、第1の閾値は、第10の実施の形態と異なる値を設定することができる。
 このように、本実施の形態の直線検出装置1Dは、アスペクト比を1:1に変換した後にハフ変換を行う。したがって、画像内の方向によって直線検出の可能性が異なるという問題を解消することができる。
 本実施の形態においては、輝度画像を生成する前にアスペクト比を変換した。しかし、アスペクト比の変換処理は、ハフ変換を行う前のどのタイミングであってもよい。たとえば、輝度画像生成処理の後、輪郭抽出処理の後、あるいは、2値変換処理の後にアスペクト比の変換を行ってもよい。なお、正方画像上で検出された直線は、アスペクト比を元に戻す演算を行うことにより、カラー画像101内に含まれる直線に変換される。
 {第14の実施の形態}
 上記各実施の形態においては、ハフ変換を行う前に画像を2値化した。第14の実施の形態においては、画像の2値化は行わない。画像は、たとえば、0~255などの多値の画素値を保有している。
 第14の実施の形態における直線検出装置のブロック図は、図1、図6、または図8~図10に示した直線検出装置1、または1A~1Dと同様である。ただし、第14の実施の形態の直線検出装置は、2値変換部13を備えていない。
 ハフ変換部14は、輪郭画像データ103あるいは113に含まれる全ての点についてハフ変換を行う。輪郭画像データ103あるいは113に含まれる点は、たとえば、0~255などの多値の画素値を有しているが、これら全ての点についてハフ変換を行う。
 ハフ変換部14は、上記の各実施の形態においては、2値画像データ104あるいは114に含まれる点がハフ変換された回数を2変数配列[θ][ρ]に格納した。言い換えると、ある座標(θ、ρ)にハフ変換された回数がN回であれば、2変数配列[θ][ρ]に値Nが集計値として格納された。
 第14の実施の形態においては、輪郭画像データ103あるいは113に含まれる点の線分強度に応じた値が2変数配列[θ][ρ]に格納される。たとえば、画素値をそのまま2変数配列[θ][ρ]に加算して集計する。あるいは、画素値に所定の変換を行い、変換値を2変数配列[θ][ρ]に加算してもよい。つまり、画素の特徴量の大きさに応じた重みづけを行った上で、2変数配列[θ][ρ]において変換回数を集計することができる。
 その後の処理は、上記の各実施の形態と同様である。集計値は、重みづけ関数f(x)およびg(x)の少なくとも一方によって補正され、または正規化される。あるいは、集計値は、重みづけ関数f(x)およびg(x)の少なくとも一方によって補正され、且つ正規化される。その後、集計値は、閾値と比較される。第14の実施の形態によれば、2値変換を行わないため、比較的強度の弱い直線なども検出したい場合などに有効である。
 {変形例2}
 第1~第13の実施の形態においては、2値画像データ104の中心を原点として、2値画像データ104内の直線をθおよびρを用いて表現した。しかし、原点は画像の任意の場所に設定することができる。あるいは、原点を2値画像データ104のフレームの外に設定してもよい。
 第1~第13の実施の形態においては、輪郭抽出処理を行った後、2値化処理を行った。輪郭抽出処理は、画像の特徴量を抽出する処理の一例である。他の方法によって画像の特徴量を抽出した後に2値化処理を行ってもよい。
 この発明を添付図面に示す実施態様について説明したが、この発明は、特に明記した部分を除いては、その詳細な説明の記載をもって制約しようとするものではなく、特許請求の範囲に記載する範囲において広く構成しようとするものである。

Claims (24)

  1.  直線検出装置であって、
     対象画像の基準点から前記対象画像内の任意の直線に下した垂線の長さρおよび前記垂線が前記基準点を通る基準軸となす角θを用いて、前記対象画像内の任意の直線を表現することにより、前記対象画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換部と、
     ハフ空間内の各座標(θ、ρ)について、前記ハフ変換部によって変換された回数を集計する集計部と、
     ρおよびθの少なくとも一方の値に応じた重みづけにより、各座標(θ、ρ)に関する集計値を補正する補正部と、
     補正された集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、前記対象画像における直線を検出する検出部と、
    を備える。
  2.  直線検出装置であって、
     対象画像の基準点から前記対象画像内の任意の直線に下した垂線の長さρおよび前記垂線が前記基準点を通る基準軸となす角θを用いて、前記対象画像内の任意の直線を表現することにより、前記対象画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換部と、
     ハフ空間内の任意の座標(θ、ρ)に対応する前記対象画像内の直線が、前記対象画像の外周と交わる交点を求めるとともに、交点間の距離を算出する交点間距離算出部と、
     ハフ空間内の各座標(θ、ρ)について、前記ハフ変換部によって変換された回数を集計し、各座標(θ、ρ)の集計値をそれぞれ対応する交点間距離で正規化し、正規化集計値を算出する正規化部と、
     正規化集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、前記対象画像における直線を検出する検出部と、
    を備える。
  3.  直線検出装置であって、
     対象画像に対して、アスペクト比を1:1に変換するアスペクト比変換処理を実行することにより、正方画像を生成するアスペクト比変換部と、
     前記正方画像の基準点から前記正方画像内の任意の直線に下した垂線の長さρおよび前記垂線が前記基準点を通る基準軸となす角θを用いて、前記正方画像内の任意の直線を表現することにより、前記正方画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換部と、
     ハフ空間内の各座標(θ、ρ)について、前記ハフ変換部によって変換された回数を集計し、各座標(θ、ρ)の集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、前記正方画像における直線を検出する検出部と、
    を備える。
  4.  請求項1に記載の直線検出装置において、
     前記補正部は、ρの値に応じた重みづけを行う場合には1または複数のρの値の近傍に対して集計値を高く評価する重みづけを行い、θの値に応じた重みづけを行う場合には1または複数のθの値の近傍に対して集計値を高く評価する重みづけを行う。
  5.  請求項1に記載の直線検出装置であって、さらに、
     ハフ空間内の任意の座標(θ、ρ)に対応する前記対象画像内の直線が、前記対象画像の外周と交わる交点を求めるとともに、交点間の距離を算出する交点間距離算出部と、
     前記補正部によって補正された集計値を、さらに交点間距離で正規化し、正規化集計値を算出する正規化部と、
    を備え、
     前記検出部は、正規化集計値が前記第1の閾値を超える座標(θ、ρ)を特定することにより、前記対象画像における直線を検出する。
  6.  請求項1に記載の直線検出装置であって、さらに、
     ハフ変換される前の対象画像に対して、アスペクト比を1:1に変換するアスペクト比変換処理を実行することにより、正方画像を生成するアスペクト比変換部、
    を備える。
  7.  請求項1または請求項2に記載の直線検出装置であって、さらに、
     前記ハフ変換が行われる前に前記対象画像を2値変換する2値変換部、
    を備え、
     前記対象画像内のある点がハフ空間内の座標(θ、ρ)に変換されたとき、集計値に1が加算される。
  8.  請求項3に記載の直線検出装置であって、さらに、
     前記ハフ変換が行われる前であって、アスペクト比変換前あるいは変換後の画像を2値変換する2値変換部、
    を備え、
     前記正方画像内のある点がハフ空間内の座標(θ、ρ)に変換されたとき、集計値に1が加算される。
  9.  請求項1または請求項2に記載の直線検出装置であって、
     前記対象画像内のそれぞれの点がハフ空間内の座標(θ、ρ)に変換されたとき、前記対象画像内のそれぞれの点の特徴量の大きさによって重みづけされた値が集計値に加算される。
  10.  請求項9に記載の直線検出装置であって、
     前記特徴量の大きさは線分強度を含む。
  11.  請求項3に記載の直線検出装置であって、
     前記正方画像内のそれぞれの点がハフ空間内の座標(θ、ρ)に変換されたとき、前記正方画像内のそれぞれの点の特徴量の大きさによって重みづけされた値が集計値に加算される。
  12.  請求項11に記載の直線検出装置であって、
     前記特徴量の大きさは線分強度を含む。
  13.  請求項2または請求項5に記載の直線検出装置であって、
     前記検出部は、前記交点間距離が第2の閾値以下となる直線については、正規化集計値の値によらず直線の検出対象から除外する。
  14.  請求項2または請求項5に記載の直線検出装置であって、
     前記交点間距離算出部は、
     ハフ空間内の座標(θ、ρ)に対応する前記対象画像内の直線の前記交点間距離を算出するとき、ρ=0と置き換えた上で前記交点間距離を算出する簡易算出部、
    を含む。
  15.  請求項1または請求項2に記載の直線検出装置であって、
     前記基準点は、前記対象画像内の任意の座標に設定される。
  16.  請求項3に記載の直線検出装置であって、
     前記基準点は、前記正方画像内の任意の座標に設定される。
  17.  請求項1から請求項3のいずれかに記載の直線検出装置であって、さらに、
     前記対象画像がカラー画像である場合、ハフ変換が行われる前にカラー画像から輝度画像を生成する輝度画像生成部、
    を含む。
  18.  請求項7に記載の直線検出装置であって、
     前記対象画像に特徴量抽出処理が施された後、前記2値変換が行われる。
  19.  請求項18に記載の直線検出装置であって、
     前記特徴量抽出処理は輪郭抽出処理を含む。
  20.  請求項8に記載の直線検出装置であって、
     前記対象画像に特徴量抽出処理が施された後、前記2値変換が行われる。
  21.  請求項20に記載の直線検出装置であって、
     前記特徴量抽出処理は輪郭抽出処理を含む。
  22.  直線検出方法であって、
     対象画像の基準点から前記対象画像内の任意の直線に下した垂線の長さρおよび前記垂線が前記基準点を通る基準軸となす角θを用いて、前記対象画像内の任意の直線を表現することにより、前記対象画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換工程と、
     ハフ空間内の各座標(θ、ρ)について、前記ハフ変換部によって変換された回数を集計する集計工程と、
     ρおよびθの少なくとも一方の値に応じた重みづけにより、各座標(θ、ρ)に関する集計値を補正する補正工程と、
     補正された集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、前記対象画像における直線を検出する検出工程と、
    を備える。
  23.  直線検出方法であって、
     対象画像の基準点から前記対象画像内の任意の直線に下した垂線の長さρおよび前記垂線が前記基準点を通る基準軸となす角θを用いて、前記対象画像内の任意の直線を表現することにより、前記対象画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換工程と、
     ハフ空間内の任意の座標(θ、ρ)に対応する前記対象画像内の直線が、前記対象画像の外周と交わる交点を求めるとともに、交点間の距離を算出する交点間距離算出工程と、
     ハフ空間内の各座標(θ、ρ)について、前記ハフ変換工程によって変換された回数を集計し、各座標(θ、ρ)の集計値をそれぞれ対応する交点間距離で正規化し、正規化集計値を算出する正規化工程と、
     正規化集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、前記対象画像における直線を検出する検出工程と、
    を備える。
  24.  直線検出方法であって、
     対象画像に対して、アスペクト比を1:1に変換するアスペクト比変換処理を実行することにより、正方画像を生成する変換工程と、
     前記正方画像の基準点から前記正方画像内の任意の直線に下した垂線の長さρおよび前記垂線が前記基準点を通る基準軸となす角θを用いて、前記正方画像内の任意の直線を表現することにより、前記正方画像内の任意の点を通る直線をハフ空間内の座標(θ、ρ)に変換するハフ変換工程と、
     ハフ空間内の各座標(θ、ρ)について、前記ハフ変換工程によって変換された回数を集計し、各座標(θ、ρ)の集計値が第1の閾値を超える座標(θ、ρ)を特定することにより、前記正方画像における直線を検出する検出工程と、
    を備える。
PCT/JP2012/067333 2011-07-14 2012-07-06 直線検出装置および直線検出方法 WO2013008746A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP12810658.0A EP2733671B1 (en) 2011-07-14 2012-07-06 Straight line detection device and straight line detection method
US14/232,803 US9195902B2 (en) 2011-07-14 2012-07-06 Straight line detection apparatus and straight line detection method

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2011-155847 2011-07-14
JP2011155847A JP5911122B2 (ja) 2011-07-14 2011-07-14 直線検出装置および直線検出方法
JP2011-165281 2011-07-28
JP2011165281A JP5856401B2 (ja) 2011-07-28 2011-07-28 直線検出装置および直線検出方法

Publications (1)

Publication Number Publication Date
WO2013008746A1 true WO2013008746A1 (ja) 2013-01-17

Family

ID=47506036

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/067333 WO2013008746A1 (ja) 2011-07-14 2012-07-06 直線検出装置および直線検出方法

Country Status (3)

Country Link
US (1) US9195902B2 (ja)
EP (1) EP2733671B1 (ja)
WO (1) WO2013008746A1 (ja)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647697A (zh) * 2018-05-11 2018-10-12 武汉鸿瑞达信息技术有限公司 一种基于改进Hough变换的目标边界检测方法和装置
CN109948470A (zh) * 2019-03-01 2019-06-28 武汉光庭科技有限公司 基于霍夫变换的停车线距离检测方法及系统
CN115457276A (zh) * 2022-09-20 2022-12-09 哈尔滨理工大学 基于视觉检测的输配电变压器高压绕组缠绕角度检测方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2752817A4 (en) * 2011-08-30 2016-11-09 Megachips Corp DEVICE FOR DETECTION OF CABLE SEGMENTS AND BELLS
CN110991277B (zh) * 2019-11-20 2023-09-22 湖南检信智能科技有限公司 基于深度学习的多维度多任务学习评价系统
CN114092475B (zh) * 2022-01-19 2022-04-22 浙江太美医疗科技股份有限公司 病灶长径确定方法、图像标注方法、装置及计算机设备

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63225881A (ja) * 1987-03-16 1988-09-20 Fujitsu Ltd 線分抽出装置
JPH03142576A (ja) * 1989-10-27 1991-06-18 Hamamatsu Photonics Kk 画像処理方法
JPH06337936A (ja) * 1993-05-31 1994-12-06 Nec Corp 線検出方法およびその装置
JPH09128547A (ja) * 1995-11-01 1997-05-16 Matsushita Electric Ind Co Ltd 実装部品検査装置
JPH10283476A (ja) 1997-04-04 1998-10-23 Minolta Co Ltd 画像処理方法及び装置
JPH1166302A (ja) 1997-08-26 1999-03-09 Matsushita Electric Works Ltd 直線検出方法
JP2003059984A (ja) * 2001-04-10 2003-02-28 Hitachi Ltd 欠陥データ解析方法および検査装置並びにレビューシステム
JP2006107034A (ja) 2004-10-04 2006-04-20 Konica Minolta Photo Imaging Inc 画像解析方法及び装置、画像処理方法及びシステム、これらの動作プログラム
WO2007138858A1 (ja) * 2006-05-25 2007-12-06 Nec Corporation 映像の特殊効果検出装置、特殊効果検出方法、特殊効果検出プログラム及び映像再生装置
JP2010161694A (ja) * 2009-01-09 2010-07-22 Oki Data Corp 画像読取装置及び画像形成装置
JP2010541065A (ja) * 2007-09-26 2010-12-24 本田技研工業株式会社 3次元飲料容器位置決定装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6157737A (en) 1997-04-04 2000-12-05 Minolta Co., Ltd. Method of and apparatus for image processing
US6107637A (en) * 1997-08-11 2000-08-22 Hitachi, Ltd. Electron beam exposure or system inspection or measurement apparatus and its method and height detection apparatus
US7065237B2 (en) * 2001-12-10 2006-06-20 Canon Kabushiki Kaisha Image processing apparatus and method
JP5280927B2 (ja) * 2009-04-14 2013-09-04 古野電気株式会社 音速測定装置及び音速測定方法
JP4856263B2 (ja) * 2009-08-07 2012-01-18 シャープ株式会社 撮像画像処理システム、画像出力方法、プログラムおよび記録媒体
JP2013206067A (ja) * 2012-03-28 2013-10-07 Jvc Kenwood Corp 直線検出装置、直線検出方法及び直線検出プログラム

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63225881A (ja) * 1987-03-16 1988-09-20 Fujitsu Ltd 線分抽出装置
JPH03142576A (ja) * 1989-10-27 1991-06-18 Hamamatsu Photonics Kk 画像処理方法
JPH06337936A (ja) * 1993-05-31 1994-12-06 Nec Corp 線検出方法およびその装置
JPH09128547A (ja) * 1995-11-01 1997-05-16 Matsushita Electric Ind Co Ltd 実装部品検査装置
JPH10283476A (ja) 1997-04-04 1998-10-23 Minolta Co Ltd 画像処理方法及び装置
JPH1166302A (ja) 1997-08-26 1999-03-09 Matsushita Electric Works Ltd 直線検出方法
JP2003059984A (ja) * 2001-04-10 2003-02-28 Hitachi Ltd 欠陥データ解析方法および検査装置並びにレビューシステム
JP2006107034A (ja) 2004-10-04 2006-04-20 Konica Minolta Photo Imaging Inc 画像解析方法及び装置、画像処理方法及びシステム、これらの動作プログラム
WO2007138858A1 (ja) * 2006-05-25 2007-12-06 Nec Corporation 映像の特殊効果検出装置、特殊効果検出方法、特殊効果検出プログラム及び映像再生装置
JP2010541065A (ja) * 2007-09-26 2010-12-24 本田技研工業株式会社 3次元飲料容器位置決定装置
JP2010161694A (ja) * 2009-01-09 2010-07-22 Oki Data Corp 画像読取装置及び画像形成装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2733671A4

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647697A (zh) * 2018-05-11 2018-10-12 武汉鸿瑞达信息技术有限公司 一种基于改进Hough变换的目标边界检测方法和装置
CN108647697B (zh) * 2018-05-11 2020-06-23 武汉鸿瑞达信息技术有限公司 一种基于改进Hough变换的目标边界检测方法和装置
CN109948470A (zh) * 2019-03-01 2019-06-28 武汉光庭科技有限公司 基于霍夫变换的停车线距离检测方法及系统
CN109948470B (zh) * 2019-03-01 2022-12-02 武汉光庭科技有限公司 基于霍夫变换的停车线距离检测方法及系统
CN115457276A (zh) * 2022-09-20 2022-12-09 哈尔滨理工大学 基于视觉检测的输配电变压器高压绕组缠绕角度检测方法
CN115457276B (zh) * 2022-09-20 2023-05-30 哈尔滨理工大学 基于视觉检测的输配电变压器高压绕组缠绕角度检测方法

Also Published As

Publication number Publication date
EP2733671A4 (en) 2015-05-27
EP2733671B1 (en) 2019-08-21
EP2733671A1 (en) 2014-05-21
US20140161349A1 (en) 2014-06-12
US9195902B2 (en) 2015-11-24

Similar Documents

Publication Publication Date Title
WO2013008746A1 (ja) 直線検出装置および直線検出方法
JP6622972B2 (ja) ポイントクラウドで特徴領域を抽出する方法及び装置
US9245200B2 (en) Method for detecting a straight line in a digital image
US9042656B2 (en) Image signature extraction device
Ye et al. A new method based on hough transform for quick line and circle detection
US10147015B2 (en) Image processing device, image processing method, and computer-readable recording medium
JP4577532B2 (ja) 認識システム、認識方法および認識プログラム
CN107577979A (zh) DataMatrix型二维码快速识别方法、装置及电子设备
JP2016162420A (ja) 注目領域検出装置、注目領域検出方法及びプログラム
JP5747733B2 (ja) 対象検出装置、対象検出方法、分類器作成装置及び分類器作成方法
US9721179B2 (en) Line segment and arc detection apparatus
JP5911122B2 (ja) 直線検出装置および直線検出方法
CN108205641B (zh) 手势图像处理方法及装置
JP5856401B2 (ja) 直線検出装置および直線検出方法
US9916663B2 (en) Image processing method and process simulation apparatus
JP6208789B2 (ja) 直線検出装置および直線検出方法
US10115195B2 (en) Method and apparatus for processing block to be processed of urine sediment image
US9659227B2 (en) Detecting object from image data using feature quantities
CN113033561A (zh) 影像分析装置与影像分析方法
JP2013050762A (ja) 線分および円弧検出装置
JP6049000B2 (ja) 線分および円弧検出装置
JP2018022385A (ja) 画像処理装置、画像処理方法、および画像処理プログラム
CN111160363A (zh) 特征描述子生成方法、装置、可读存储介质及终端设备
TWI425428B (zh) 利用小波極值點於指紋影像之偵測奇異點方法及其系統
KR101853468B1 (ko) 모바일 gpu 환경에서 차 영상을 이용한 surf 알고리즘 계산 감소 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12810658

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 14232803

Country of ref document: US

Ref document number: 2012810658

Country of ref document: EP