JP2009038619A - Image processing device and method, and program - Google Patents
Image processing device and method, and program Download PDFInfo
- Publication number
- JP2009038619A JP2009038619A JP2007201591A JP2007201591A JP2009038619A JP 2009038619 A JP2009038619 A JP 2009038619A JP 2007201591 A JP2007201591 A JP 2007201591A JP 2007201591 A JP2007201591 A JP 2007201591A JP 2009038619 A JP2009038619 A JP 2009038619A
- Authority
- JP
- Japan
- Prior art keywords
- black
- line
- pixel
- belt
- detection
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Landscapes
- Transforming Electric Information Into Light Information (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
本発明は画像処理装置および方法、並びにプログラムに関し、特に、より確実に画像から黒帯を検出できるようにした画像処理装置および方法、並びにプログラムに関する。 The present invention relates to an image processing apparatus, method, and program, and more particularly, to an image processing apparatus, method, and program that can detect a black belt from an image more reliably.
例えば、テレビジョン放送されている番組などの画像の端に、アスペクト比の調整のために、いわゆる黒帯が付加されていることがある。この黒帯は、画像上におけるコンテンツの画像である有効画像の外側に隣接して設けられ、輝度値の低い黒い画素からなる。 For example, a so-called black band may be added to the edge of an image such as a television broadcast program for adjusting the aspect ratio. The black belt is provided adjacent to the outside of the effective image that is the image of the content on the image, and is composed of black pixels having a low luminance value.
従来の画像処理装置には、表示させる画像に対して所定の処理を施すために、画像上における黒帯の領域を検出するものがある。黒帯の検出においては、画像上の画素の輝度値と閾値とが比較されて、画像における外側の暗い領域、つまり画素の輝度値が閾値よりも低い領域が検出され、その領域が黒帯の領域とされていた。 Some conventional image processing apparatuses detect a black belt region on an image in order to perform predetermined processing on an image to be displayed. In the detection of the black band, the luminance value of the pixel on the image is compared with the threshold value, and an outer dark area in the image, that is, an area where the luminance value of the pixel is lower than the threshold value is detected. It was an area.
また、画像処理装置には、画像上の特定の領域内の画素の輝度値の最大値および最小値が所定の条件を満たす場合に、画像に黒帯が含まれているとするものもある(例えば、特許文献1参照)。この画像処理装置では、画像上の黒帯とされる領域内の一部の領域が、黒帯の検出のための特定の領域とされる。 In addition, some image processing apparatuses include a black band in an image when the maximum value and the minimum value of the luminance values of pixels in a specific region on the image satisfy a predetermined condition ( For example, see Patent Document 1). In this image processing apparatus, a part of the area in the area that is a black band on the image is a specific area for detecting the black band.
しかしながら、上述した技術では、画像上の黒帯の領域を検出することは困難であった。例えば、従来の画像処理装置では、1つの画素の輝度値と閾値との比較結果に基づいて、黒帯の有無が決定されてしまうことがあるため、黒帯上にノイズなどの影響で暗くない画素、つまり閾値よりも輝度値の高い画素がある場合、その画素の位置が、黒帯と有効画像との境界の位置であると誤判定されてしまう恐れがあった。 However, with the above-described technique, it is difficult to detect a black belt region on an image. For example, in a conventional image processing apparatus, the presence or absence of a black band may be determined based on a comparison result between the luminance value of one pixel and a threshold value, so that it is not dark due to noise or the like on the black band. When there is a pixel, that is, a pixel having a luminance value higher than the threshold value, the position of the pixel may be erroneously determined to be the position of the boundary between the black belt and the effective image.
また、画像上の特定の領域内の画素の輝度値を用いて黒帯を検出する方法では、特定の領域に暗い画像、つまり輝度値の低い画素からなる画像が表示される場合には、画像上に黒帯がないのにも関わらず、黒帯が検出されてしまうことがあった。 In addition, in the method of detecting a black belt using the luminance value of a pixel in a specific area on the image, when a dark image, that is, an image composed of pixels having a low luminance value is displayed in the specific area, Even though there was no black belt on the top, the black belt was sometimes detected.
さらに、画像全体が暗いと、画像処理装置において黒帯の領域が大きい画像であるのか、または全体が暗い画像であるのかを判別することが困難であるため、黒帯の誤検出が生じ、フレームによって画像から黒帯が検出されたり、検出されなかったりすることがあった。 Furthermore, if the entire image is dark, it is difficult to determine whether the image processing apparatus has an image with a large black band area or an entire dark image. Depending on the case, a black belt may be detected or not detected from the image.
本発明は、このような状況に鑑みてなされたものであり、より確実に画像から黒帯を検出することができるようにするものである。 The present invention has been made in view of such a situation, and makes it possible to more reliably detect a black belt from an image.
本発明の一側面の画像処理装置は、入力画像の第1の端乃至第4の端のそれぞれに位置し、画素の輝度値が所定の閾値より小さい黒画素からなる領域である第1の黒帯乃至第4の黒帯のそれぞれを検出する画像処理装置であって、前記入力画像上の第1の方向に並べられた画素からなるラインのうち、前記黒画素が所定の数以上含まれているラインである黒ラインを検出する黒ライン検出手段と、前記黒ラインの検出結果に基づいて、前記第1の端の近傍の第1の検出領域内において、前記第1の端から前記第1の方向と垂直な第2の方向に連続して並べられた前記黒ラインと、黒ラインではないラインとの境界を検出することで、前記第1の黒帯を検出するとともに、前記第1の端と対向する前記第2の端の近傍の第2の検出領域内において、前記第2の端と対向する前記第2の検出領域の端から前記第2の方向に連続して並べられた黒ラインでないラインと、前記黒ラインとの境界を検出することで、前記第2の黒帯を検出する第1の黒帯検出手段と、前記入力画像から前記第1の黒帯および前記第2の黒帯を除去した画像上の前記第3の端の近傍の第3の検出領域と、前記第3の端に対向する前記第4の端の近傍の第4の検出領域とを対象として、前記黒画素を検出する黒画素検出手段と、前記黒画素の検出結果に基づいて、前記第3の検出領域内の各ラインについて、前記第3の端と対向する前記第3の検出領域の端から前記第1の方向に連続して並べられた前記黒画素ではない画素と、前記黒画素との境界を検出するとともに、前記第4の検出領域内の各ラインについて、前記第4の端から前記第1の方向に連続して並べられた前記黒画素と、前記黒画素ではない画素との境界を検出する境界検出手段と、前記第3の検出領域内のラインごとの境界の検出結果に基づいて、前記第3の黒帯を検出するとともに、前記第4の検出領域内のラインごとの境界の検出結果に基づいて、前記第4の黒帯を検出する第2の黒帯検出手段とを備える。 An image processing apparatus according to an aspect of the present invention is a first black image that is located at each of first to fourth edges of an input image and is an area composed of black pixels having a pixel luminance value smaller than a predetermined threshold value. An image processing apparatus for detecting each of a band to a fourth black band, wherein a predetermined number or more of the black pixels are included in a line composed of pixels arranged in a first direction on the input image. A black line detecting means for detecting a black line, which is a line that is present, and the first detection area from the first end in a first detection region in the vicinity of the first end based on the detection result of the black line. The first black belt is detected by detecting a boundary between the black line continuously arranged in a second direction perpendicular to the direction and a line that is not a black line, and the first black band is detected. In the second detection region in the vicinity of the second end facing the end. Detecting a boundary between the black line and a line that is not a black line continuously arranged in the second direction from the end of the second detection region facing the second end, First black band detecting means for detecting two black bands, and a third black band in the vicinity of the third end on the image obtained by removing the first black band and the second black band from the input image. Based on a detection region and a fourth detection region in the vicinity of the fourth end facing the third end, black pixel detection means for detecting the black pixel, and based on the detection result of the black pixel Then, for each line in the third detection region, pixels that are not the black pixels arranged continuously in the first direction from the end of the third detection region facing the third end; , Detecting a boundary with the black pixel, and for each line in the fourth detection region Boundary detection means for detecting a boundary between the black pixels continuously arranged in the first direction from the fourth end and pixels that are not the black pixels, and for each line in the third detection region The second black band is detected based on the detection result of the boundary of the second black line, and the fourth black band is detected based on the detection result of the boundary for each line in the fourth detection region. Black belt detecting means.
画像処理装置には、前記黒ラインの検出結果に基づいて、前記入力画像に予め定められた数以上の前記黒ラインが含まれているか否かを判定し、前記予め定められた数以上の前記黒ラインが含まれている場合、前記入力画像には前記第1の黒帯乃至前記第4の黒帯は含まれていないものとする判定手段をさらに設けることができる。 The image processing apparatus determines whether or not the input image includes a predetermined number or more of the black lines based on the detection result of the black lines, and the predetermined number or more of the black lines are included. In the case where a black line is included, it is possible to further provide determination means that the input image does not include the first black band to the fourth black band.
前記第2の黒帯検出手段には、前記第3の検出領域内の各ラインにおいて検出された境界の位置のそれぞれのうち、最も出現頻度の高い位置を前記入力画像における第3の黒帯の境界の位置とさせ、前記第4の検出領域内の各ラインにおいて検出された境界の位置のそれぞれのうち、最も出現頻度の高い位置を前記入力画像における第4の黒帯の境界の位置とさせることができる。 The second black belt detecting means determines the position of the third black belt in the input image that has the highest appearance frequency among the positions of the boundaries detected in each line in the third detection region. The position of the boundary is set, and the position with the highest appearance frequency among the positions of the boundary detected in each line in the fourth detection region is set as the position of the boundary of the fourth black belt in the input image. be able to.
画像処理装置には、前記入力画像における前記第1の黒帯乃至前記第4の黒帯の検出結果と、前記入力画像の直前のいくつかのフレームの入力画像における前記第1の黒帯乃至前記第4の黒帯の検出結果とに基づいて、前記入力画像の最終的な前記第1の黒帯乃至前記第4の黒帯の位置を決定する決定手段をさらに設けることができる。 The image processing apparatus includes a detection result of the first black belt to the fourth black belt in the input image and the first black belt to the black in the input image of several frames immediately before the input image. A determination means for determining the final positions of the first black band to the fourth black band of the input image based on the detection result of the fourth black band may be further provided.
本発明の一側面の画像処理方法またはプログラムは、入力画像の第1の端乃至第4の端のそれぞれに位置し、画素の輝度値が所定の閾値より小さい黒画素からなる領域である第1の黒帯乃至第4の黒帯のそれぞれを検出する画像処理方法であって、前記入力画像上の第1の方向に並べられた画素からなるラインのうち、前記黒画素が所定の数以上含まれているラインである黒ラインを検出し、前記黒ラインの検出結果に基づいて、前記第1の端の近傍の第1の検出領域内において、前記第1の端から前記第1の方向と垂直な第2の方向に連続して並べられた前記黒ラインと、黒ラインではないラインとの境界を検出することで、前記第1の黒帯を検出するとともに、前記第1の端と対向する前記第2の端の近傍の第2の検出領域内において、前記第2の端と対向する前記第2の検出領域の端から前記第2の方向に連続して並べられた黒ラインでないラインと、前記黒ラインとの境界を検出することで、前記第2の黒帯を検出し、前記入力画像から前記第1の黒帯および前記第2の黒帯を除去した画像上の前記第3の端の近傍の第3の検出領域と、前記第3の端に対向する前記第4の端の近傍の第4の検出領域とを対象として、前記黒画素を検出し、前記黒画素の検出結果に基づいて、前記第3の検出領域内の各ラインについて、前記第3の端と対向する前記第3の検出領域の端から前記第1の方向に連続して並べられた前記黒画素ではない画素と、前記黒画素との境界を検出するとともに、前記第4の検出領域内の各ラインについて、前記第4の端から前記第1の方向に連続して並べられた前記黒画素と、前記黒画素ではない画素との境界を検出し、前記第3の検出領域内のラインごとの境界の検出結果に基づいて、前記第3の黒帯を検出するとともに、前記第4の検出領域内のラインごとの境界の検出結果に基づいて、前記第4の黒帯を検出するステップを含む。 An image processing method or program according to one aspect of the present invention is a first region that is located at each of the first to fourth ends of an input image, and is a region composed of black pixels whose pixel luminance value is smaller than a predetermined threshold value. An image processing method for detecting each of the black belt to the fourth black belt, wherein a predetermined number or more of black pixels are included in a line composed of pixels arranged in a first direction on the input image. A black line that is a detected line, and based on the detection result of the black line, the first direction from the first end in the first detection region in the vicinity of the first end The first black belt is detected by detecting a boundary between the black line continuously arranged in the vertical second direction and a line that is not a black line, and is opposed to the first end. In the second detection area in the vicinity of the second end, By detecting a boundary between the black line and a line that is not a black line continuously arranged in the second direction from the end of the second detection region facing the second end, the second line And a third detection region in the vicinity of the third end on the image obtained by removing the first black strip and the second black strip from the input image, and the third end The black pixel is detected for the fourth detection area in the vicinity of the fourth end opposite to the first detection area, and for each line in the third detection area based on the detection result of the black pixel, Detecting a boundary between the non-black pixel and the black pixel continuously arranged in the first direction from the end of the third detection region facing the third end, and For each line in the four detection regions, the lines are continuously aligned in the first direction from the fourth end. Detecting the boundary between the black pixel and the pixel that is not the black pixel, and detecting the third black belt based on the detection result of the boundary for each line in the third detection region; Detecting a fourth black belt based on a detection result of a boundary for each line in the fourth detection region;
本発明の一側面によれば、画像から黒帯を検出することができる。特に、本発明の一側面によれば、より確実に画像から黒帯を検出することができる。 According to one aspect of the present invention, a black belt can be detected from an image. In particular, according to one aspect of the present invention, a black belt can be detected from an image more reliably.
以下に本発明の実施の形態を説明するが、本発明の構成要件と、明細書又は図面に記載の実施の形態との対応関係を例示すると、次のようになる。この記載は、本発明をサポートする実施の形態が、明細書又は図面に記載されていることを確認するためのものである。従って、明細書又は図面中には記載されているが、本発明の構成要件に対応する実施の形態として、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その構成要件に対応するものではないことを意味するものではない。逆に、実施の形態が構成要件に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その構成要件以外の構成要件には対応しないものであることを意味するものでもない。 Embodiments of the present invention will be described below. Correspondences between the constituent elements of the present invention and the embodiments described in the specification or the drawings are exemplified as follows. This description is intended to confirm that the embodiments supporting the present invention are described in the specification or the drawings. Therefore, even if there is an embodiment which is described in the specification or the drawings but is not described here as an embodiment corresponding to the constituent elements of the present invention, that is not the case. It does not mean that the form does not correspond to the constituent requirements. Conversely, even if an embodiment is described here as corresponding to a configuration requirement, that means that the embodiment does not correspond to a configuration requirement other than the configuration requirement. It's not something to do.
本発明の一側面の画像処理装置は、入力画像の第1の端乃至第4の端のそれぞれに位置し、画素の輝度値が所定の閾値より小さい黒画素からなる領域である第1の黒帯乃至第4の黒帯(例えば、図1の領域11−1乃至領域12−2)のそれぞれを検出する画像処理装置(例えば、図2の画像処理装置41)であって、前記入力画像上の第1の方向に並べられた画素からなるラインのうち、前記黒画素が所定の数以上含まれているラインである黒ラインを検出する黒ライン検出手段(例えば、図2の黒ライン検出部61)と、前記黒ラインの検出結果に基づいて、前記第1の端の近傍の第1の検出領域(例えば、図4の領域91)内において、前記第1の端から前記第1の方向と垂直な第2の方向に連続して並べられた前記黒ラインと、黒ラインではないラインとの境界を検出することで、前記第1の黒帯を検出するとともに、前記第1の端と対向する前記第2の端の近傍の第2の検出領域(例えば、図4の領域92)内において、前記第2の端と対向する前記第2の検出領域の端から前記第2の方向に連続して並べられた黒ラインでないラインと、前記黒ラインとの境界を検出することで、前記第2の黒帯を検出する第1の黒帯検出手段(例えば、図2の垂直黒帯座標検出部62)と、前記入力画像から前記第1の黒帯および前記第2の黒帯を除去した画像上の前記第3の端の近傍の第3の検出領域(例えば、図5の領域121)と、前記第3の端に対向する前記第4の端の近傍の第4の検出領域(例えば、図5の領域122)とを対象として、前記黒画素を検出する黒画素検出手段(例えば、図2の黒画素検出部63)と、前記黒画素の検出結果に基づいて、前記第3の検出領域内の各ラインについて、前記第3の端と対向する前記第3の検出領域の端から前記第1の方向に連続して並べられた前記黒画素ではない画素と、前記黒画素との境界を検出するとともに、前記第4の検出領域内の各ラインについて、前記第4の端から前記第1の方向に連続して並べられた前記黒画素と、前記黒画素ではない画素との境界を検出する境界検出手段(例えば、図2の水平黒帯座標検出部64)と、前記第3の検出領域内のラインごとの境界の検出結果に基づいて、前記第3の黒帯を検出するとともに、前記第4の検出領域内のラインごとの境界の検出結果に基づいて、前記第4の黒帯を検出する第2の黒帯検出手段(例えば、図2の多数決処理部65)とを備える。
An image processing apparatus according to an aspect of the present invention is a first black image that is located at each of first to fourth edges of an input image and is an area composed of black pixels having a pixel luminance value smaller than a predetermined threshold value. An image processing apparatus (for example, the
画像処理装置には、前記黒ラインの検出結果に基づいて、前記入力画像に予め定められた数以上の前記黒ラインが含まれているか否かを判定し、前記予め定められた数以上の前記黒ラインが含まれている場合、前記入力画像には前記第1の黒帯乃至前記第4の黒帯は含まれていないものとする判定手段(例えば、図2の黒画面判定部53)をさらに設けることができる。
The image processing apparatus determines whether or not the input image includes a predetermined number or more of the black lines based on the detection result of the black lines, and the predetermined number or more of the black lines are included. When a black line is included, a determination unit (for example, a black
前記第2の黒帯検出手段には、前記第3の検出領域内の各ラインにおいて検出された境界の位置のそれぞれのうち、最も出現頻度の高い位置を前記入力画像における第3の黒帯の境界の位置とさせ、前記第4の検出領域内の各ラインにおいて検出された境界の位置のそれぞれのうち、最も出現頻度の高い位置を前記入力画像における第4の黒帯の境界の位置とさせる(例えば、図3のステップS17の処理)ことができる。 The second black belt detecting means determines the position of the third black belt in the input image that has the highest appearance frequency among the positions of the boundaries detected in each line in the third detection region. The position of the boundary is set, and the position with the highest appearance frequency among the positions of the boundary detected in each line in the fourth detection region is set as the position of the boundary of the fourth black belt in the input image. (For example, step S17 in FIG. 3).
画像処理装置には、前記入力画像における前記第1の黒帯乃至前記第4の黒帯の検出結果と、前記入力画像の直前のいくつかのフレームの入力画像における前記第1の黒帯乃至前記第4の黒帯の検出結果とに基づいて、前記入力画像の最終的な前記第1の黒帯乃至前記第4の黒帯の位置を決定する決定手段(例えば、図2の黒帯座標決定部54)をさらに設けることができる。 The image processing apparatus includes a detection result of the first black belt to the fourth black belt in the input image and the first black belt to the black in the input image of several frames immediately before the input image. Based on the detection result of the fourth black belt, a determination means for determining the final positions of the first black belt to the fourth black belt of the input image (for example, determination of the black belt coordinates in FIG. 2). A portion 54) can be further provided.
本発明の一側面の画像処理方法またはプログラムは、入力画像の第1の端乃至第4の端のそれぞれに位置し、画素の輝度値が所定の閾値より小さい黒画素からなる領域である第1の黒帯乃至第4の黒帯(例えば、図1の領域11−1乃至領域12−2)のそれぞれを検出する画像処理方法またはプログラムであって、前記入力画像上の第1の方向に並べられた画素からなるラインのうち、前記黒画素が所定の数以上含まれているラインである黒ラインを検出し(例えば、図6を参照して説明する黒ライン検出処理)、前記黒ラインの検出結果に基づいて、前記第1の端の近傍の第1の検出領域内において、前記第1の端から前記第1の方向と垂直な第2の方向に連続して並べられた前記黒ラインと、黒ラインではないラインとの境界を検出することで、前記第1の黒帯を検出するとともに、前記第1の端と対向する前記第2の端の近傍の第2の検出領域内において、前記第2の端と対向する前記第2の検出領域の端から前記第2の方向に連続して並べられた黒ラインでないラインと、前記黒ラインとの境界を検出することで、前記第2の黒帯を検出し(例えば、図7を参照して説明する上側黒帯座標の検出処理、および図8を参照して説明する下側黒帯座標の検出処理)、前記入力画像から前記第1の黒帯および前記第2の黒帯を除去した画像上の前記第3の端の近傍の第3の検出領域と、前記第3の端に対向する前記第4の端の近傍の第4の検出領域とを対象として、前記黒画素を検出し(例えば、図9を参照して説明する黒画素検出処理)、前記黒画素の検出結果に基づいて、前記第3の検出領域内の各ラインについて、前記第3の端と対向する前記第3の検出領域の端から前記第1の方向に連続して並べられた前記黒画素ではない画素と、前記黒画素との境界を検出するとともに、前記第4の検出領域内の各ラインについて、前記第4の端から前記第1の方向に連続して並べられた前記黒画素と、前記黒画素ではない画素との境界を検出し(例えば、図10を参照して説明する左側候補座標の検出処理、および図11を参照して説明する右側候補座標の検出処理)、前記第3の検出領域内のラインごとの境界の検出結果に基づいて、前記第3の黒帯を検出するとともに、前記第4の検出領域内のラインごとの境界の検出結果に基づいて、前記第4の黒帯を検出する(例えば、図3のステップS17)ステップを含む。 An image processing method or program according to one aspect of the present invention is a first region that is located at each of the first to fourth ends of an input image, and is a region composed of black pixels whose pixel luminance value is smaller than a predetermined threshold value. Image processing method or program for detecting each of the black belt to the fourth black belt (for example, the area 11-1 to the area 12-2 in FIG. 1), and arranged in a first direction on the input image. Among the lines made up of pixels, a black line that is a line including a predetermined number or more of the black pixels is detected (for example, a black line detection process described with reference to FIG. 6), and the black lines Based on the detection result, in the first detection region in the vicinity of the first end, the black lines continuously arranged from the first end in a second direction perpendicular to the first direction. And the boundary between lines that are not black lines Thus, the first black belt is detected, and the second second region facing the second end in the second detection region in the vicinity of the second end facing the first end. The second black belt is detected by detecting a boundary between a black line and a line that is not continuously arranged in the second direction from the end of the detection region (for example, FIG. The detection process of the upper black belt coordinates described with reference to the detection process of the lower black belt coordinates described with reference to FIG. 8), the first black belt and the second black belt from the input image. For the third detection region in the vicinity of the third end on the removed image and the fourth detection region in the vicinity of the fourth end opposite to the third end, the black pixel is set as a target. (For example, a black pixel detection process described with reference to FIG. 9), and based on the detection result of the black pixel, For each line in the third detection region, pixels that are not the black pixels arranged continuously in the first direction from the end of the third detection region facing the third end; Detecting a boundary with a black pixel, and for each line in the fourth detection region, the black pixels arranged continuously in the first direction from the fourth end and not the black pixels A boundary with a pixel is detected (for example, a left candidate coordinate detection process described with reference to FIG. 10 and a right candidate coordinate detection process described with reference to FIG. 11), and the boundary within the third detection region is detected. The third black band is detected based on the detection result of the boundary for each line, and the fourth black band is detected based on the detection result of the boundary for each line in the fourth detection region. (For example, step S17 of FIG. 3) is included.
以下、図面を参照して、本発明を適用した実施の形態について説明する。 Embodiments to which the present invention is applied will be described below with reference to the drawings.
まず、図1を参照して、画像上の黒帯とされる領域について説明する。 First, with reference to FIG. 1, the area | region used as the black belt on an image is demonstrated.
例えば、画像処理装置に入力され、黒帯の検出の対象となる画像を入力画像と呼ぶこととすると、図1に示すように入力画像の中央の領域に、コンテンツの画像である有効画像が表示される。そして、その有効画像を囲む領域、つまり入力画像の端には、コンテンツの画像の表示されない黒い領域が設けられている。 For example, if an image that is input to the image processing apparatus and is a target for detection of a black belt is referred to as an input image, an effective image that is a content image is displayed in the center area of the input image as shown in FIG. Is done. A black region where no content image is displayed is provided in the region surrounding the effective image, that is, at the end of the input image.
図1において、入力画像の図中、上側の端には長方形の領域11−1が設けられており、入力画像の下側の端には長方形の領域11−2が設けられている。また、入力画像の左側の端、および右側の端にも、それぞれ長方形の領域12−1および領域12−2が設けられている。そして、これらの領域11−1乃至領域12−2内の画素は、ノイズが乗った画素を除いて、輝度値が予め定められた閾値よりも小さい黒い画素となっており、この黒い画素からなる領域が黒帯と呼ばれている。 In FIG. 1, a rectangular area 11-1 is provided at the upper end in the drawing of the input image, and a rectangular area 11-2 is provided at the lower end of the input image. In addition, rectangular regions 12-1 and 12-2 are also provided at the left end and the right end of the input image, respectively. The pixels in these areas 11-1 to 12-2 are black pixels whose luminance value is smaller than a predetermined threshold value except for pixels on which noise is placed, and are composed of these black pixels. The area is called the black belt.
特に、以下では、入力画像の図中、上下の端に位置する領域11−1および領域11−2を垂直黒帯と呼ぶこととし、入力画像の左右の端に位置する領域12−1および領域12−2を水平黒帯と呼ぶこととする。また、輝度値が閾値より小さい(低い)黒い画素を黒画素と呼ぶこととする。 In particular, in the following, in the figure of the input image, the region 11-1 and the region 11-2 positioned at the upper and lower ends are referred to as vertical black bands, and the region 12-1 and the region positioned at the left and right ends of the input image 12-2 will be referred to as a horizontal black belt. Further, a black pixel whose luminance value is smaller (lower) than a threshold value is called a black pixel.
さらに、以下、領域11−1および領域11−2を特に区別する必要のない場合、単に領域11と称し、領域12−1および領域12−2を特に区別する必要のない場合、単に領域12と称する。 Further, hereinafter, the region 11-1 and the region 11-2 are simply referred to as the region 11 when it is not necessary to distinguish between them, and the region 12-1 and the region 12-2 are simply referred to as the region 12 when there is no need to distinguish between them. Called.
ところで、画像処理装置は入力画像が入力されると、入力画像から垂直黒帯および水平黒帯を検出し、その結果検出された垂直黒帯の位置を示す情報および水平黒帯の位置を示す情報を出力する。 By the way, when an input image is input, the image processing apparatus detects a vertical black band and a horizontal black band from the input image, and information indicating the position of the vertical black band and information indicating the position of the horizontal black band detected as a result. Is output.
例えば、図中、左から右に向かう方向をx方向とし、上から下に向かう方向をy方向とする。また、入力画像の図中、左上の頂点を原点(基準)として、x方向と平行な直線をx軸、y方向と平行な直線をy軸とすると、画像処理装置は、xy座標系における垂直黒帯と有効画像との境界の位置のy座標、および水平黒帯と有効画像との境界の位置のx座標を示す情報を黒帯の位置を示す情報として出力する。 For example, in the figure, the direction from left to right is the x direction, and the direction from top to bottom is the y direction. In the figure of the input image, assuming that the upper left vertex is the origin (reference), a straight line parallel to the x direction is the x axis, and a straight line parallel to the y direction is the y axis, the image processing apparatus is perpendicular to the xy coordinate system. Information indicating the y coordinate of the position of the boundary between the black band and the effective image and the x coordinate of the position of the boundary between the horizontal black band and the effective image are output as information indicating the position of the black band.
したがって、領域11−1の下側の境界のy座標である座標Yu、領域11−2の上側の境界のy座標である座標Yd、領域12−1の右側の境界のx座標である座標Xl、および領域12−2の左側の境界のx座標である座標Xrを示す情報が出力される。なお、以下において、座標Yu、座標Yd、座標Xl、および座標Xrのそれぞれを、上側黒帯座標Yu、下側黒帯座標Yd、左側黒帯座標Xl、および右側黒帯座標Xrと称する。 Therefore, the coordinate Yu that is the y coordinate of the lower boundary of the region 11-1, the coordinate Yd that is the y coordinate of the upper boundary of the region 11-2, and the coordinate Xl that is the x coordinate of the right boundary of the region 12-1. , And information indicating the coordinate Xr which is the x coordinate of the left boundary of the region 12-2 is output. In the following, the coordinates Yu, coordinates Yd, coordinates Xl, and coordinates Xr are referred to as upper black belt coordinates Yu, lower black belt coordinates Yd, left black belt coordinates Xl, and right black belt coordinates Xr, respectively.
このように入力画像から黒帯を検出し、黒帯の位置を示す情報を出力する画像処理装置は、例えば、図2に示すように構成される。すなわち、図2は、本発明を適用した画像処理装置の一実施の形態の構成例を示すブロック図である。 An image processing apparatus that detects a black band from an input image and outputs information indicating the position of the black band is configured as shown in FIG. 2, for example. That is, FIG. 2 is a block diagram showing a configuration example of an embodiment of an image processing apparatus to which the present invention is applied.
画像処理装置41は、垂直黒帯検出部51、水平黒帯検出部52、黒画面判定部53、および黒帯座標決定部54から構成される。また、画像処理装置41に入力された入力画像は、垂直黒帯検出部51および水平黒帯検出部52に供給される。
The
垂直黒帯検出部51は、入力された入力画像から垂直黒帯を検出する。垂直黒帯検出部51は、黒ライン検出部61および垂直黒帯座標検出部62を備えている。
The vertical black
黒ライン検出部61は、入力された入力画像から、黒画素が所定の数以上含まれているラインである黒ラインを検出する。ここで、入力画像のラインとは、図1のx方向に並べられた画素の列をいう。黒ライン検出部61は、黒ラインの検出結果を垂直黒帯座標検出部62および黒画面判定部53に供給する。
The black
垂直黒帯座標検出部62は、黒ライン検出部61から供給された黒ラインの検出結果に基づいて、上側黒帯座標Yuおよび下側黒帯座標Ydを検出し、検出したそれらの座標、より詳細にはそれらの座標を示す情報を水平黒帯検出部52および黒帯座標決定部54に供給する。
The vertical black belt coordinate
水平黒帯検出部52は、入力画像から水平黒帯を検出する。水平黒帯検出部52は、黒画素検出部63、水平黒帯座標検出部64、および多数決処理部65を備えている。黒画素検出部63は、垂直黒帯座標検出部62から供給された上側黒帯座標Yuおよび下側黒帯座標Ydを用いて、入力された入力画像から垂直黒帯を除去する。そして、黒画素検出部63は、垂直黒帯が除去された入力画像の予め定められた検出領域、例えば、図1の入力画像の左右の端の近傍の領域から黒画素を検出し、その検出結果を水平黒帯座標検出部64に供給する。
The horizontal black
水平黒帯座標検出部64は、黒画素検出部63から供給された黒画素の検出結果に基づいて、図1の入力画像の左側の検出領域内の各ラインについて、有効画像と水平黒帯との境界の位置を示す座標を求め、それらの座標を左側黒帯座標Xlの候補である左側候補座標とする。また、水平黒帯座標検出部64は、黒画素検出部63から供給された黒画素の検出結果に基づいて、図1の入力画像の右側の検出領域内の各ラインについて、有効画像と水平黒帯との境界の位置を示す座標を求め、それらの座標を右側黒帯座標Xrの候補である右側候補座標とする。そして、水平黒帯座標検出部64は、求められたラインごとの左側候補座標および右側候補座標、より詳細にはそれらの座標を示す情報を多数決処理部65に供給する。
Based on the detection result of the black pixel supplied from the black
多数決処理部65は、水平黒帯座標検出部64から供給された左側候補座標および右側候補座標に基づいて、左側黒帯座標Xlおよび右側黒帯座標Xrを決定し、それらの座標を黒帯座標決定部54に供給する。
The majority
黒画面判定部53は、入力画像全体が暗い画像であるか否かを判定する。すなわち、黒画面判定部53は、黒ライン検出部61から供給された黒ラインの検出結果に基づいて、入力画像上に黒ラインが所定の数以上あるか否かを判定し、その判定結果を示す信号を黒帯座標決定部54に供給する。黒帯座標決定部54は、垂直黒帯座標検出部62からの上側黒帯座標Yuおよび下側黒帯座標Yd、多数決処理部65からの左側黒帯座標Xlおよび右側黒帯座標Xr、並びに黒画面判定部53からの信号に基づいて、最終的な黒帯の位置を決定する。すなわち、黒帯座標決定部54は、最終的な上側黒帯座標Yu、下側黒帯座標Yd、左側黒帯座標Xl、および右側黒帯座標Xrを決定し、それらの座標を黒帯の位置を示す黒帯座標として出力する。
The black
黒帯座標決定部54から出力された黒帯座標は、後段において黒帯の領域が除去された入力画像を表示したり、入力画像の補間フレームを生成したりする処理に用いられる。
The black belt coordinates output from the black belt coordinate
このような画像処理装置41には、入力画像としてテレビジョン放送された番組等の動画像が供給される。画像処理装置41は、入力画像が供給されると、その入力画像から黒帯を検出して黒帯座標を出力する処理である黒帯座標決定処理を開始する。以下、図3のフローチャートを参照して、画像処理装置41による黒帯座標決定処理について説明する。
Such an
ステップS11において、黒ライン検出部61は、入力された入力画像から黒ラインを検出する黒ライン検出処理を行い、黒ラインの検出結果を垂直黒帯座標検出部62および黒画面判定部53に供給する。なお、黒ライン検出処理の詳細は後述する。
In step S <b> 11, the black
ステップS12において、垂直黒帯座標検出部62は、黒ライン検出部61からの黒ラインの検出結果に基づいて上側黒帯座標の検出処理を行い、上側黒帯座標Yuを検出する。
In step S <b> 12, the vertical black band coordinate
そして、ステップS13において、垂直黒帯座標検出部62は、黒ライン検出部61からの黒ラインの検出結果に基づいて下側黒帯座標の検出処理を行って、下側黒帯座標Ydを検出し、上側黒帯座標Yuおよび下側黒帯座標Ydを黒画素検出部63および黒帯座標決定部54に供給する。
In step S13, the vertical black belt coordinate
例えば、垂直黒帯座標検出部62は、図4に示すように、入力画像の上側の領域91、および下側の領域92を検出の対象となる検出領域として、上側黒帯座標Yuおよび下側黒帯座標Ydの検出を行う。
For example, as shown in FIG. 4, the vertical black belt coordinate
図4において、領域91は、垂直黒帯が含まれていると推定される入力画像の上側の端の近傍の領域、すなわち入力画像上のy座標が予め定められたYsu以下である領域とされている。垂直黒帯座標検出部62は、領域91内の一番上のラインから順番に、そのラインが垂直黒帯と有効画像との境界であるか否かを判定していくことにより、上側黒帯座標Yuを検出する。すなわち、垂直黒帯座標検出部62は、入力画像の上側の垂直黒帯と有効画像との境界を検出する。
In FIG. 4, an area 91 is an area near the upper end of the input image that is estimated to include a vertical black belt, that is, an area where the y coordinate on the input image is equal to or less than a predetermined Ysu. ing. The vertical black belt coordinate
また、領域92は、垂直黒帯が含まれていると推定される入力画像の下側の端の近傍の領域、すなわち入力画像上のy座標が予め定められたYsd以上である領域とされている。垂直黒帯座標検出部62は、入力画像の下側の端に対向する領域92の端、つまり領域92内の一番上側のラインから順番に、そのラインが垂直黒帯と有効画像との境界であるか否かを判定していくことにより、下側黒帯座標Ydを検出する。すなわち、垂直黒帯座標検出部62は、入力画像の下側の垂直黒帯と有効画像との境界を検出する。
The
なお、上側黒帯座標の検出処理および下側黒帯座標の検出処理の詳細は後述する。 The details of the upper black belt coordinate detection process and the lower black belt coordinate detection process will be described later.
図3のフローチャートの説明に戻り、ステップS14において、黒画素検出部63は黒画素検出処理を行い、その検出結果を水平黒帯座標検出部64に供給する。なお、黒画素検出処理の詳細は後述するが、この黒画素検出処理において、黒画素検出部63は、入力された入力画像と、垂直黒帯座標検出部62から供給された上側黒帯座標Yuおよび下側黒帯座標Ydとに基づいて、入力画像上の所定の検出領域から黒画素を検出する。
Returning to the description of the flowchart of FIG. 3, in step S <b> 14, the black
ステップS15において、水平黒帯座標検出部64は、黒画素検出部63からの黒画素の検出結果に基づいて左側候補座標の検出処理を行い、検出領域内の各ラインについて、左側候補座標を求める。そしてステップS16において、水平黒帯座標検出部64は、黒画素検出部63からの黒画素の検出結果に基づいて右側候補座標の検出処理を行い、検出領域内の各ラインについて、右側候補座標を求める。なお、左側候補座標の検出処理および右側候補座標の検出処理の詳細は後述する。
In step S15, the horizontal black belt coordinate
例えば、黒画素検出部63は、垂直黒帯座標検出部62から供給された上側黒帯座標Yuおよび下側黒帯座標Ydに基づいて、図4の入力画像から、垂直黒帯の領域を除去し、黒画素の検出を行う。
For example, the black
例えば、図4の入力画像から垂直黒帯の領域を除去すると、図5に示す画像が得られる。黒画素検出部63は、垂直黒帯が除去された入力画像の図中、左端の近傍の領域121および右端の近傍の領域122を検出領域として黒画素の検出を行う。すなわち、領域121および領域122は水平黒帯が含まれていると推定される領域であり、領域121および領域122の全ての画素が対象とされて、それらの画素が黒画素であるか否かの判定が行われる。ここで、領域121は、垂直黒帯が除去された入力画像におけるx座標がXsl以下である領域とされており、領域122は垂直黒帯が除去された入力画像におけるx座標がXsr以上である領域とされている。
For example, when the vertical black belt region is removed from the input image of FIG. 4, the image shown in FIG. 5 is obtained. The black
このようにして黒画素の検出が行われると、水平黒帯座標検出部64は、領域121内の各ラインについて左側候補座標を求め、さらに領域122内の各ラインについて右候補座標を求める。ここで、左側候補座標を求めるときの処理に用いられるラインは、y座標が同じ画素であって、x座標が0からXslまでの画素のそれぞれが並べられてできるラインとされる。同様に、右候補座標を求めるときの処理に用いられるラインは、y座標が同じ画素であって、x座標がXsrから入力画像の右端の座標までの画素のそれぞれが並べられてできるラインとされる。
When black pixels are detected in this way, the horizontal black belt coordinate
水平黒帯座標検出部64は、ラインごとの左側候補座標および右候補座標を求めると、それらの座標を多数決処理部65に供給する。
When the horizontal black belt coordinate
図3のフローチャートの説明に戻り、ステップS17において、多数決処理部65は、水平黒帯座標検出部64から供給されたラインごとの左側候補座標および右候補座標に基づいて多数決処理を行い、左側黒帯座標Xlおよび右側黒帯座標Xrを決定する。
Returning to the description of the flowchart of FIG. 3, in step S <b> 17, the
例えば、多数決処理部65は、多数決処理として、ラインごとの左側候補座標のうち、最も出現頻度の高い座標、つまり最も多い座標を左側黒帯座標Xlとする処理を行う。
For example, as the majority process, the
ここで水平黒帯の有効画像との境界の位置のx座標は、どのラインにおいても同じであるため、その境界が正しく検出できていれば、各ラインの左側候補座標は全て同じとなる。入力画像によっては、水平黒帯の境界の位置の画素にノイズが乗ったり、境界と隣接する有効画像の画素が黒画素であったりすることがあるが、それでも正しく水平黒帯の境界を検出できるラインの数は、ノイズ等の理由により境界を正しく検出できなかったラインの数と比べて多いはずである。そこで、各ラインの左側候補座標のうち、最も多い座標を左側黒帯座標Xlとすることで、より確実に左側黒帯座標Xlを特定することができる。 Here, since the x coordinate of the position of the boundary with the effective image of the horizontal black belt is the same in every line, if the boundary is correctly detected, the left candidate coordinates of each line are all the same. Depending on the input image, noise may be applied to the pixel at the boundary of the horizontal black belt, or the pixel of the effective image adjacent to the boundary may be a black pixel. The number of lines should be larger than the number of lines where the boundary could not be detected correctly due to noise or the like. Therefore, the left black belt coordinate Xl can be more reliably specified by setting the leftmost black belt coordinate Xl as the largest coordinate among the left candidate coordinates of each line.
また、多数決処理部65は、左側黒帯座標Xlにおける場合と同様に、多数決処理として、ラインごとの右側候補座標のうち、最も多い座標を右側黒帯座標Xrとする処理を行う。この場合においても最も多い座標を右側黒帯座標Xrとすることで、より確実に右側黒帯座標Xrを特定することができる。
Further, as in the case of the left black belt coordinate X1, the
なお、多数決処理に限らず、左側候補座標または右側候補座標についてヒストグラムを生成して所定の統計処理を行うことで左側黒帯座標Xlまたは右側黒帯座標Xrを決定するようにしてもよい。また、例えばラインごとの左側候補座標または右側候補座標の平均の座標を左側黒帯座標Xlまたは右側黒帯座標Xrとするようにしてもよい。 The left black belt coordinate Xl or the right black belt coordinate Xr may be determined by generating a histogram for the left candidate coordinate or the right candidate coordinate and performing predetermined statistical processing, without being limited to the majority process. Further, for example, the average coordinate of the left candidate coordinate or the right candidate coordinate for each line may be set to the left black belt coordinate Xl or the right black belt coordinate Xr.
多数決処理部65は、左側黒帯座標Xlおよび右側黒帯座標Xrを決定すると、それらの座標を黒帯座標決定部54に供給する。
After determining the left black belt coordinate Xl and the right black belt coordinate Xr, the
ステップS18において、黒画面判定部53は、黒ライン検出部61から供給された黒ラインの検出結果に基づいて、入力画像全体における黒ラインの数が、予め定められた閾値th1以上であるか否かを判定する。
In step S18, the black
ステップS18において閾値th1以上であると判定された場合、つまり入力画像が全体的に暗い画像である場合、ステップS19において、黒画面判定部53は、黒帯なしとする旨の信号を黒帯座標決定部54に供給する。
If it is determined in step S18 that the threshold value is equal to or greater than the threshold th1, that is, if the input image is an overall dark image, in step S19, the black
すなわち、入力画像の全体が暗い場合、入力画像から黒帯の境界を正しく検出することは困難である。また、黒ラインが多く入力画像の全体が暗いので、入力画像に黒帯があったとしても、黒帯がない場合と視覚的には殆ど同じであり、後段において黒帯がないものとみなして処理を行っても特に支障をきたすことはない。そこで、入力画像の全体が暗い場合には、黒画面判定部53は、入力画像には黒帯はないものとみなして、検出された黒帯の座標を無効とする旨の信号、つまり黒帯なしとする旨の信号を黒帯座標決定部54に供給する。これにより、黒帯の誤検出を防止することができる。
That is, when the entire input image is dark, it is difficult to correctly detect the black belt boundary from the input image. Also, since there are many black lines and the entire input image is dark, even if there is a black belt in the input image, it is visually the same as when there is no black belt, and it is considered that there is no black belt in the subsequent stage. Even if processing is performed, there is no particular problem. Therefore, when the entire input image is dark, the black
黒画面判定部53から黒帯座標決定部54に黒帯なしとする旨の信号が供給されると、その後処理はステップS21に進む。
When a signal indicating that there is no black belt is supplied from the black
これに対して、ステップS18において閾値th1以上でないと判定された場合、つまり入力画像全体が暗くない場合、ステップS20において、黒画面判定部53は、検出された黒帯の座標を有効とする旨の信号、つまり黒帯ありとする旨の信号を黒帯座標決定部54に供給する。
On the other hand, if it is determined in step S18 that the threshold is not equal to or greater than the threshold th1, that is, if the entire input image is not dark, in step S20, the black
ステップS20において黒帯ありとする旨の信号が黒帯座標決定部54に供給されたか、ステップS19において黒帯なしとする旨の信号が黒帯座標決定部54に供給されると、ステップS21において、黒帯座標決定部54は、最終的な黒帯座標を決定して出力し、黒帯座標決定処理は終了する。
When a signal indicating that there is a black band is supplied to the black band coordinate
例えば、黒画面判定部53から黒帯なしとする旨の信号が供給された場合、黒帯座標決定部54は、検出された黒帯座標を無効として、入力画像の端のx座標およびy座標を最終的な黒帯座標として出力する。すなわち例えば、図1の入力画像において上側黒帯座標Yuは0とされ、下側黒帯座標Ydは入力画像の下側の端の座標とされる。また、左側黒帯座標Xlは0とされ、右側黒帯座標Xrは入力画像の右側の端の座標とされる。
For example, when a signal indicating that there is no black band is supplied from the black
さらに、例えば、黒画面判定部53から黒帯ありとする旨の信号が供給された場合、黒帯座標決定部54は、垂直黒帯座標検出部62から供給された上側黒帯座標Yuおよび下側黒帯座標Ydと、多数決処理部65から供給された左側黒帯座標Xlおよび右側黒帯座標Xrとを最終的な黒帯座標として出力する。
Further, for example, when a signal indicating that there is a black band is supplied from the black
なお、最終的な黒帯座標を決定する場合に、過去の入力画像、つまり今回入力された入力画像のフレームよりも時間的に前のフレームの入力画像に対する黒帯座標の検出結果が用いられるようにしてもよい。すなわち、直前の所定の数のフレームの入力画像における各黒帯座標、および今回新たに検出された黒帯座標の平均の座標や、最も出現頻度の高い座標が最終的な黒帯座標とされてもよい。そのような場合、例えば、直前の所定の数のフレームの上側黒帯座標Yuのそれぞれ、および今回垂直黒帯座標検出部62から供給された上側黒帯座標Yuのうち、最も多い座標が最終的な上側黒帯座標Yuとされる。
When determining the final black band coordinates, the detection result of the black band coordinates with respect to the past input image, that is, the input image of the frame temporally prior to the frame of the input image input this time is used. It may be. That is, the average black belt coordinates in the input image of the predetermined number of frames immediately before, the average coordinates of the newly detected black belt coordinates, and the coordinates with the highest appearance frequency are the final black belt coordinates. Also good. In such a case, for example, the highest number of coordinates among the upper black band coordinates Yu of the predetermined number of immediately preceding frames and the upper black band coordinates Yu supplied from the current vertical black band coordinate
このように、過去のフレームの黒帯座標を用いて最終的な黒帯座標を決定することで、フレームによって、黒帯座標の位置が急激に変化するようなことを防止することができる。また、黒帯座標の誤検出を防止し、より確実に黒帯を検出することができる。 In this way, by determining the final black belt coordinates using the black belt coordinates of the past frame, it is possible to prevent the position of the black belt coordinates from changing suddenly depending on the frame. In addition, erroneous detection of the black belt coordinates can be prevented, and the black belt can be detected more reliably.
以上のようにして、画像処理装置41は、入力画像から黒ラインを検出し、黒ラインを用いて垂直黒帯を検出する。また、入力画像から垂直黒帯を除去した画像から黒画素を検出して水平黒帯の境界となる候補を検出し、それらの候補を用いて多数決処理により水平黒帯を決定する。
As described above, the
このように黒ラインを用いて垂直黒帯を検出することで、すなわちラインを単位として垂直黒帯を検出することで、垂直黒帯にノイズが乗っていたり、垂直黒帯と有効画像の境界に黒画素が多かったりする場合にも、それらのノイズ等の影響を排除することができ、より確実に垂直黒帯の境界を検出することができる。また、多数決処理を行うことでノイズによる誤検出を防止し、より確実に水平黒帯の境界を検出することができる。 In this way, by detecting the vertical black band using the black line, that is, by detecting the vertical black band in units of lines, noise is added to the vertical black band, or at the boundary between the vertical black band and the effective image. Even when there are a large number of black pixels, it is possible to eliminate the influence of such noise and the like, and to detect the boundary of the vertical black belt more reliably. Further, by performing majority processing, erroneous detection due to noise can be prevented, and the boundary of the horizontal black belt can be detected more reliably.
次に、図6乃至図11のフローチャートを参照して、図3のステップS11の処理乃至ステップS16の処理のそれぞれの詳細について説明する。 Next, details of each of the processing from step S11 to step S16 in FIG. 3 will be described with reference to the flowcharts in FIGS.
まず、図6のフローチャートを参照して、図3のステップS11の処理に対応する黒ライン検出処理について説明する。 First, the black line detection process corresponding to the process of step S11 of FIG. 3 will be described with reference to the flowchart of FIG.
ステップS51において、黒ライン検出部61は、入力された入力画像のラインを1つ選択する。例えば、黒ライン検出部61は、図1の入力画像の図中、一番上側のラインから一番下側のラインまで順番に選択していく。なお、ここでラインとは、x方向に並べられている画素の列、つまりy座標が同じである画素の列をいう。
In step S51, the black
ステップS52において、黒ライン検出部61は、選択したラインを構成する画素を1つ選択する。例えば、黒ライン検出部61は、図1のラインを構成する左端の画素から右端の画素まで順番に選択していく、すなわちラインに含まれる画素をx座標が小さい順に選択していく。
In step S52, the black
ステップS53において、黒ライン検出部61は選択した画素の輝度値が予め定められた閾値th2より小さいか否か、つまり輝度値の低い暗い画素であるか否かを判定する。ステップS53において閾値th2より小さいと判定された場合、ステップS54において、黒ライン検出部61は、その画素は黒い画素、つまり黒画素であるとして、垂直黒画素フラグに1を設定する。
In step S53, the black
ここで、垂直黒画素フラグは画素ごとに設定されて、その画素が黒画素であるか否かを示すフラグであり、黒画素である場合には1に設定され、黒画素でない場合には0に設定される。 Here, the vertical black pixel flag is set for each pixel and indicates whether or not the pixel is a black pixel, and is set to 1 when the pixel is a black pixel, and is set to 0 when the pixel is not a black pixel. Set to
ステップS54において垂直黒画素フラグが設定されると、処理はステップS56に進む。これに対して、ステップS53において、閾値th2より小さくないと判定された場合、ステップS55において、黒ライン検出部61は、選択されている画素は黒画素ではないとして、垂直黒画素フラグに0を設定する。
When the vertical black pixel flag is set in step S54, the process proceeds to step S56. On the other hand, when it is determined in step S53 that it is not smaller than the threshold th2, in step S55, the black
ステップS54またはステップS55において垂直黒画素フラグが設定されると、ステップS56において、黒ライン検出部61は、選択されているラインの画素の垂直黒画素フラグの値を累積する。
When the vertical black pixel flag is set in step S54 or step S55, in step S56, the black
すなわち、黒ライン検出部61は、入力画像のラインごとに、そのラインの画素の垂直黒画素フラグの累積値を保持しており、ラインごとの累積値は、各ラインにおける黒画素の数を示している。黒ライン検出部61は、選択されているラインの累積値に、ステップS54またはステップS55において設定された画素の垂直黒画素フラグの値を加算する。
That is, the black
ステップS57において、黒ライン検出部61は、選択されているラインの全ての画素について黒画素の判定を行ったか否か、すなわちステップS53における閾値th2との比較を行ったか否かを判定する。
In step S57, the black
ステップS57において、まだ全ての画素について判定を行っていないと判定された場合、処理はステップS52に戻り、次の画素が選択される。 If it is determined in step S57 that determination has not been performed for all pixels, the process returns to step S52, and the next pixel is selected.
これに対して、ステップS57において全ての画素について行ったと判定された場合、ステップS58において、黒ライン検出部61は、選択されているラインの累積値が予め定められた閾値th3より大きいか否か、すなわちそのラインに所定の数以上の黒画素が含まれているか否かを判定する。
On the other hand, when it is determined in step S57 that the process has been performed for all the pixels, in step S58, the black
ステップS58において、閾値th3より大きいと判定された場合、ステップS59において、黒ライン検出部61は、黒ラインフラグに1を設定し、処理はステップS61に進む。すなわち、黒ライン検出部61は、入力画像のラインごとにそのラインが、黒ラインであるか否かを示す黒ラインフラグを保持している。ここで、黒ラインフラグは、そのラインが黒ラインである場合、1に設定され、黒ラインでない場合に0に設定される。
If it is determined in step S58 that it is greater than the threshold th3, in step S59, the black
一方、ステップS58において、閾値th3より大きくないと判定された場合、ステップS60において、黒ライン検出部61は、選択されているラインは黒ラインではないとして黒ラインフラグに0を設定する。
On the other hand, when it is determined in step S58 that it is not larger than the threshold th3, in step S60, the black
ステップS59またはステップS60において黒ラインフラグが設定されると、ステップS61において、黒ライン検出部61は、入力画像の全てのラインについて黒ラインの判定を行ったか否か、つまりステップS58における閾値th3との比較を行ったか否かを判定する。
When the black line flag is set in step S59 or step S60, in step S61, the black
ステップS61において、まだ全てのラインについて行っていないと判定された場合、処理はステップS51に戻り、次のラインが選択される。 If it is determined in step S61 that the process has not been performed for all lines, the process returns to step S51, and the next line is selected.
これに対して、ステップS61において、全てのラインについて行ったと判定された場合、処理はステップS62に進む。ステップS62において、黒ライン検出部61は、黒ラインの検出結果として、入力画像のラインごとに設定した黒ラインフラグを垂直黒帯座標検出部62および黒画面判定部53に供給し、処理は図3のステップS12に進む。なお、黒画面判定部53に供給された黒ラインフラグは、図3のステップS18の処理において、入力画像全体が暗いか否かの判定の処理に用いられる。
On the other hand, when it determines with having performed about all the lines in step S61, a process progresses to step S62. In step S62, the black
このようにして、黒ライン検出部61は、入力画像のラインごとに、そのラインが黒ラインであるか否かを判定することで、入力画像から黒ラインを検出し、その検出結果を出力する。
In this way, the black
次に、図7のフローチャートを参照して、図3のステップS12の処理に対応する上側黒帯座標の検出処理について説明する。 Next, an upper black belt coordinate detection process corresponding to the process of step S12 of FIG. 3 will be described with reference to the flowchart of FIG.
ステップS91において、垂直黒帯座標検出部62は、図4の領域91を検出領域として、検出領域内のラインを1つ選択する。例えば、垂直黒帯座標検出部62は、図4の領域91内のラインを図中、一番上側のラインから下側のラインまで順番に選択していく。
In step S91, the vertical black belt coordinate
ここで、領域91は、垂直黒帯の境界が含まれると推定される領域とされる。つまり、垂直黒帯の境界が入力画像の中央付近に位置することはないので、図4中、上側の垂直黒帯の境界が存在し得る領域91を検出の対象である検出領域とすることで、より効率よく上側黒帯座標Yuを検出することができる。 Here, the region 91 is a region estimated to include a vertical black belt boundary. That is, since the boundary of the vertical black belt is not located near the center of the input image, the region 91 in FIG. 4 where the upper vertical black belt boundary can exist is set as the detection region to be detected. The upper black belt coordinate Yu can be detected more efficiently.
ステップS92において、垂直黒帯座標検出部62は、黒ライン検出部61から供給された黒ラインフラグに基づいて、選択したラインが黒ラインであるか否かを判定する。例えば、黒ラインフラグに1が設定されている場合、選択したラインは黒ラインであると判定される。
In step S92, the vertical black belt coordinate
ステップS92において、黒ラインでないと判定された場合、ステップS93において、垂直黒帯座標検出部62は、現在選択されているラインの1つ前のラインの位置を上側黒帯座標Yuとして、処理は図3のステップS13に進む。
If it is determined in step S92 that the line is not a black line, in step S93, the vertical black band coordinate
すなわち、図4の領域91内の垂直黒帯の境界においては、垂直黒帯の最も下側のラインは黒ラインであり、有効画像の最も上側のラインは黒ラインではない。したがって、領域91内のラインを上側のラインから順番に選択していくと、垂直黒帯内のラインは全て黒ラインであるはずなので、最初に出現した黒ラインではないラインが有効画像の最も上側のラインとなるはずである。そこで垂直黒帯座標検出部62は、最初に出現した黒ラインではないラインの1つ前に選択されたラインの位置のy座標を上側黒帯座標Yuとする。すなわち、垂直黒帯座標検出部62は、入力画像の上側の端から下方向に連続して並んでいる黒ラインと、黒ラインではないラインとの境界を検出する。
That is, at the boundary of the vertical black belt in the region 91 of FIG. 4, the lowermost line of the vertical black belt is a black line, and the uppermost line of the effective image is not a black line. Therefore, if the lines in the area 91 are selected in order from the upper line, all the lines in the vertical black belt should be black lines, so the first non-black line that appears first is the uppermost line of the effective image. Should be the line. Therefore, the vertical black belt coordinate
一方、ステップS92において、黒ラインであると判定された場合、ステップS94において、垂直黒帯座標検出部62は、選択されているラインの次のラインは、検出領域内のラインであるか否かを判定する。
On the other hand, if it is determined in step S92 that the line is a black line, in step S94, the vertical black belt coordinate
ステップS94において、検出領域内のラインであると判定された場合、処理はステップS91に戻り、次のラインが選択される。 If it is determined in step S94 that the line is within the detection area, the process returns to step S91, and the next line is selected.
これに対して、ステップS94において検出領域内のラインではないと判定された場合、つまり検出領域外のラインである場合、検出領域内では垂直黒帯の境界は検出されなかったので、処理はステップS95に進む。 On the other hand, if it is determined in step S94 that the line is not within the detection area, that is, if the line is outside the detection area, the boundary of the vertical black belt is not detected within the detection area. Proceed to S95.
ステップS95において、垂直黒帯座標検出部62は、図4の入力画像の上側では垂直黒帯が検出されなかったので、入力画像の上側の端の位置を上側黒帯座標Yuとして、処理は図3のステップS13に進む。
In step S95, the vertical black belt coordinate
このようにして、垂直黒帯座標検出部62は、検出領域を対象として、ラインごとに黒ラインであるか否かを判定し、図4の領域91の上側の端から下方向に連続して並んでいる黒ラインと、黒ラインではないラインとの境界を検出することにより、垂直黒帯と有効画像との境界を検出する。このように、ラインごとに黒ラインであるか否かを判定して、垂直黒帯の境界を検出することで、より確実に垂直黒帯の境界の位置を検出することができる。
In this way, the vertical black belt coordinate
従来においては、1つの画素の輝度値と閾値とを比較して黒帯の境界の位置を検出していたので、その比較の対象となる画素にノイズが乗っていたり、その画素が有効画像上の黒い画素であったりした場合には、黒帯の境界を正しく検出することができなかった。 In the past, the luminance value of one pixel was compared with a threshold value to detect the position of the black belt boundary, so noise was applied to the pixel to be compared, or the pixel was on the effective image. In the case of a black pixel, the border of the black belt could not be detected correctly.
これに対して垂直黒帯座標検出部62では、ラインごとに黒ラインであるか否かを判定して、垂直黒帯の境界を検出する。画像処理装置41では、黒ラインを構成する画素にノイズの乗っている画素が含まれていても、黒画素とされた画素の数が閾値th3よりも多ければ、そのラインは正しく黒ラインであるとされる。また、有効画像のラインの一部分に黒画素が存在していたとしても、それらの黒画素の数が閾値th3以下であれば、そのラインは黒ラインであるとはされない。
On the other hand, the vertical black belt coordinate
したがって、ラインごとに黒ラインであるか否かを判定して、垂直黒帯の境界を検出することで、ノイズの影響や有効画像の端に黒い部分があるか否かによらず、より確実に垂直黒帯の境界を検出することができる。つまり、ラインを単位として垂直黒帯の境界を検出することでノイズ等の影響を排除することができ、検出精度を向上させることができる。 Therefore, by determining whether each line is a black line and detecting the border of the vertical black band, it is more reliable regardless of the influence of noise or whether there is a black part at the edge of the effective image. It is possible to detect the border of the vertical black belt. That is, the influence of noise or the like can be eliminated by detecting the boundary of the vertical black belt in units of lines, and the detection accuracy can be improved.
また、図8は、図3のステップS13の処理に対応する下側黒帯座標の検出処理を説明するフローチャートである。以下、図8のフローチャートを参照して、下側黒帯座標の検出処理について説明する。 FIG. 8 is a flowchart for explaining the detection process of the lower black belt coordinates corresponding to the process of step S13 of FIG. Hereinafter, the detection process of the lower black belt coordinates will be described with reference to the flowchart of FIG.
ステップS121において、垂直黒帯座標検出部62は、図4の領域92を検出領域として、検出領域内のラインを1つ選択する。例えば、垂直黒帯座標検出部62は、図4の領域92内のラインを図中、一番上側のラインから下側のラインまで順番に選択していく。
In step S121, the vertical black belt coordinate
ここで、領域92は、垂直黒帯の境界が含まれると推定される領域とされ、領域91における場合と同様に、垂直黒帯の境界が存在し得る領域92を検出の対象である検出領域とすることで、より効率よく下側黒帯座標Ydを検出することができる。
Here, the
ステップS122において、垂直黒帯座標検出部62は、黒ライン検出部61から供給された黒ラインフラグに基づいて、選択したラインが黒ラインであるか否かを判定する。
In step S122, the vertical black belt coordinate
ステップS122において、黒ラインであると判定された場合、ステップS123において、垂直黒帯座標検出部62は、現在選択されているラインの位置を下側黒帯座標Ydとする。そして、垂直黒帯座標検出部62は、下側黒帯座標Ydと、図3のステップS12の処理において検出した上側黒帯座標Yuとを黒画素検出部63および黒帯座標決定部54に供給し、処理は図3のステップS14に進む。
If it is determined in step S122 that the line is a black line, in step S123, the vertical black band coordinate
すなわち、図4の領域92内の垂直黒帯の境界においては、垂直黒帯の最も上側のラインは黒ラインであり、有効画像の最も下側のラインは黒ラインではない。したがって、領域92内のラインを上側のラインから順番に選択していくと、有効画像内のラインは黒ラインとはならず、黒ラインではないラインが連続して並んでいるはずであるので、最初に出現した黒ラインが垂直黒帯の最も上側のラインとなるはずである。そこで、垂直黒帯座標検出部62は、最初に出現した黒ラインの位置のy座標を下側黒帯座標Ydとする。すなわち、垂直黒帯座標検出部62は、連続して並んでいる黒ラインではないラインと、黒ラインとの境界を検出する。
That is, at the boundary of the vertical black belt in the
一方、ステップS122において、黒ラインでないと判定された場合、ステップS124において、垂直黒帯座標検出部62は、選択されているラインは最後のラインであるか否かを判定する。
On the other hand, if it is determined in step S122 that the line is not a black line, in step S124, the vertical black belt coordinate
ステップS124において、最後のラインでないと判定された場合、検出領域内にはまだ処理の対象とされていないラインがあるので、処理はステップS121に戻り、次のラインが選択される。 If it is determined in step S124 that the line is not the last line, there is a line that has not yet been processed in the detection area, so the process returns to step S121, and the next line is selected.
これに対して、ステップS124において最後のラインであると判定された場合、検出領域内では垂直黒帯の境界は検出されなかったので、処理はステップS125に進む。 On the other hand, if it is determined in step S124 that the line is the last line, the vertical black belt boundary has not been detected in the detection area, and the process proceeds to step S125.
ステップS125において、垂直黒帯座標検出部62は、図4の入力画像の下側では垂直黒帯が検出されなかったので、入力画像の下側の端の位置を下側黒帯座標Ydとする。そして、垂直黒帯座標検出部62は、下側黒帯座標Ydと、図3のステップS12の処理において検出した上側黒帯座標Yuとを黒画素検出部63および黒帯座標決定部54に供給し、処理は図3のステップS14に進む。
In step S125, the vertical black belt coordinate
このようにして、垂直黒帯座標検出部62は、検出領域を対象としてラインごとに黒ラインであるか否かを判定し、入力画像の下側の端に対向する領域92の端から下方向に連続して並べられた黒ラインではないラインと、黒ラインとの境界を検出することにより、垂直黒帯と有効画像の境界を検出する。このように、ラインごとに黒ラインであるか否かを判定して、垂直黒帯の境界を検出することで、より確実に垂直黒帯の境界の位置を検出することができる。
In this way, the vertical black belt coordinate
次に、図9のフローチャートを参照して、図3のステップS14の処理に対応する黒画素検出処理について説明する。 Next, the black pixel detection process corresponding to the process of step S14 of FIG. 3 will be described with reference to the flowchart of FIG.
ステップS151において、黒画素検出部63は、垂直黒帯座標検出部62から供給された上側黒帯座標Yuおよび下側黒帯座標Ydを用いて、入力された入力画像から、垂直黒帯を除去する。これにより、例えば図5に示した画像が得られる。
In step S151, the black
このようにして垂直黒帯が除去された入力画像上の所定の領域を対象として、水平黒帯の検出が行われる。このように、垂直黒帯が除去された入力画像上の所定の領域を、水平黒帯の検出の対象とすることにより、水平黒帯が存在しない領域を検出の対象とする領域から除外することができ、より確実かつ迅速に水平黒帯を検出することができる。 In this way, the detection of the horizontal black band is performed for a predetermined area on the input image from which the vertical black band has been removed. In this way, by setting a predetermined area on the input image from which the vertical black band has been removed as a target for detection of the horizontal black band, an area where no horizontal black band exists is excluded from the detection target area. It is possible to detect a horizontal black belt more reliably and quickly.
ステップS152において、黒画素検出部63は、図5の垂直黒帯が除去された入力画像の左右の端の近傍の領域、すなわち領域121および領域122を検出領域として、検出領域内の画素を1つ選択する。
In step S152, the black
ステップS153において、黒画素検出部63は、選択した画素の輝度値が、予め定められた閾値th2より小さいか否かを判定する。ここで、閾値th2は、図6のステップS53の処理における場合の閾値th2と同じ値とされる。
In step S153, the black
ステップS153において、閾値th2より小さいと判定された場合、ステップS154において、黒画素検出部63は、その画素は黒い画素、つまり黒画素であるとして、水平黒画素フラグに1を設定する。
If it is determined in step S153 that it is smaller than the threshold th2, in step S154, the black
ここで、水平黒画素フラグは、画素ごとに設定されて、その画素が黒画素であるか否かを示すフラグであり、黒画素である場合には1に設定され、黒画素でない場合には0に設定される。 Here, the horizontal black pixel flag is set for each pixel and indicates whether or not the pixel is a black pixel. If the pixel is a black pixel, the flag is set to 1. If the pixel is not a black pixel, the horizontal black pixel flag is set. Set to zero.
ステップS154において水平黒画素フラグが設定されると、処理はステップS156に進む。これに対して、ステップS153において、閾値th2より小さくないと判定された場合、ステップS155において、黒画素検出部63は、選択されている画素は黒画素ではないとして、水平黒画素フラグに0を設定する。
If the horizontal black pixel flag is set in step S154, the process proceeds to step S156. On the other hand, if it is determined in step S153 that it is not smaller than the threshold th2, the black
ステップS154またはステップS155において水平黒画素フラグが設定されると、ステップS156において、黒画素検出部63は、検出領域内の全ての画素について黒画素の判定を行ったか否か、すなわちステップS153における閾値th2との比較を行ったか否かを判定する。
When the horizontal black pixel flag is set in step S154 or step S155, in step S156, the black
ステップS156において、まだ全ての画素について判定を行っていないと判定された場合、処理はステップS152に戻り、次の画素が選択される。 If it is determined in step S156 that determination has not been performed for all pixels, the process returns to step S152, and the next pixel is selected.
これに対して、ステップS156において全ての画素について行ったと判定された場合、黒画素検出部63は、検出領域内の画素ごとの水平黒画素フラグを、黒画素の検出結果として水平黒帯座標検出部64に供給し、処理は図3のステップS15に進む。
On the other hand, when it is determined in step S156 that all pixels have been used, the black
このようにして、黒画素検出部63は、図5の領域121および領域122を検出領域として、検出領域から黒画素の検出を行う。この黒画素の検出結果は、水平黒帯座標検出部64において、左側候補座標を検出する左側候補座標の検出処理、および右側候補座標を検出する右側候補座標の検出処理に用いられる。
In this way, the black
以下、図10のフローチャートを参照して、図3のステップS15の処理に対応する左側候補座標の検出処理について説明する。 The left candidate coordinate detection process corresponding to the process of step S15 of FIG. 3 will be described below with reference to the flowchart of FIG.
ステップS181において、水平黒帯座標検出部64は、図5の垂直黒帯が除去された入力画像の領域121を検出領域として、領域121内のラインを1つ選択する。例えば、水平黒帯座標検出部64は、図5の領域121の図中、一番上側のラインから下側のラインまで順番に選択していく。なお、ここでラインとは、x方向に並べられている領域121内の画素の列、つまりy座標が同じである領域121内の画素の列をいう。
In step S181, the horizontal black band coordinate
ステップS182において、水平黒帯座標検出部64は、選択したラインを構成する画素を1つ選択する。例えば、水平黒帯座標検出部64は、図5のラインを構成する左端の画素から右端の画素まで順番に選択していく、すなわちラインに含まれる画素をx座標が小さい順に選択していく。
In step S182, the horizontal black belt coordinate
ここで、水平黒帯座標検出部64は、選択したラインについて、図5中、左端の画素から右側の画素まで順番に、それらの画素が黒画素であるか否かを判定していく。領域121内では、水平黒帯は領域121内の左側の領域に位置しているはずであるので、水平黒帯の最も右側の画素までは、選択された画素は全て黒画素とされ、有効画像の左端の画素から領域121の右端の画素までは、選択された画素は黒画素とはならない可能性が高い。
Here, the horizontal black belt coordinate
そこで、水平黒帯座標検出部64は、ラインの左側の画素から順番に黒画素であるか否かを判定していき、黒画素でない画素が出現した時点で、その画素の1つ前に選択した画素の位置のx座標を、仮の左側候補座標として保持しておく。この保持されている位置の画素は、水平黒帯の右端の画素である可能性が高い。
Therefore, the horizontal black belt coordinate
そして、その後再び黒画素が出現した場合には、保持している位置の画素が水平黒帯内のノイズの乗った画素である可能性があるので、水平黒帯座標検出部64は、これまで保持していた仮の左側候補座標を破棄する。つまり、水平黒帯座標検出部64は仮の左側候補座標の保持を解除する。さらに、水平黒帯座標検出部64は、再び黒画素ではない画素が出現すると、その画素の1つ前に選択した画素の位置のx座標を仮の左側候補座標として保持し、最後に保持していた座標がそのラインの左側候補座標とされる。換言すれば、水平黒帯座標検出部64は、入力画像の左側の端に対向する領域121の右側の端から連続して左方向に並んでいる黒画素ではない画素と、黒画素との境界を検出し、その境界の黒画素の位置が左側候補座標とされる。したがって、ライン上において、最も右側に位置する黒画素の位置がそのラインの左側候補座標とされる。
Then, when a black pixel appears again after that, the pixel at the held position may be a noisy pixel in the horizontal black belt. Discard the temporary left candidate coordinates that were held. That is, the horizontal black belt coordinate
そのような場合、ライン上の水平黒帯の部分にノイズの乗った画素が含まれていても、確実に水平黒帯と有効画像との境界の位置を検出することができる。また、ライン上の有効画像の部分に黒画素が含まれていると、それらの画素のうち、有効画像上の最も右側に位置する画素が左側候補座標とされるが、全体のラインの数に比べて有効画像上に黒画素が含まれるラインの数は少ないことが殆どであるので、上述した多数決処理により、結局は水平黒帯の境界の位置を正しく検出することができる。 In such a case, the position of the boundary between the horizontal black belt and the effective image can be reliably detected even if a pixel with noise is included in the horizontal black belt portion on the line. In addition, if a black pixel is included in the effective image portion on the line, the pixel located on the rightmost side on the effective image among those pixels is set as the left candidate coordinate, In comparison, since the number of lines that include black pixels in the effective image is mostly small, the position of the boundary of the horizontal black belt can be detected correctly by the majority process described above.
ステップS182において画素が選択されると、ステップS183において、水平黒帯座標検出部64は、黒画素検出部63から供給された水平黒画素フラグに基づいて、選択した画素が黒画素であるか否かを判定する。例えば、選択した画素の水平黒画素フラグに1が設定されている場合、黒画素であると判定される。
When a pixel is selected in step S182, in step S183, the horizontal black belt coordinate
ステップS183において、黒画素でないと判定された場合、ステップS184において、水平黒帯座標検出部64は、仮の左側候補座標を保持しているか否かを判定する。
If it is determined in step S183 that the pixel is not a black pixel, in step S184, the horizontal black belt coordinate
ステップS184において、保持していると判定された場合、ステップS185の処理はスキップされて、処理はステップS188に進む。 If it is determined in step S184 that the data is held, the process in step S185 is skipped, and the process proceeds to step S188.
これに対して、ステップS184において、保持していないと判定された場合、ステップS185において、水平黒帯座標検出部64は、現在選択している画素の1つ前に選択した画素の位置を、仮の左側候補座標として保持する。水平黒帯座標検出部64により仮の左側候補座標が保持されると、処理はステップS188に進む。
On the other hand, when it is determined in step S184 that it is not held, in step S185, the horizontal black belt coordinate
また、ステップS183において、選択した画素が黒画素であると判定された場合、ステップS186において、水平黒帯座標検出部64は、仮の左側候補座標を保持しているか否かを判定する。
When it is determined in step S183 that the selected pixel is a black pixel, in step S186, the horizontal black belt coordinate
ステップS186において、仮の左側候補座標を保持していないと判定された場合、ステップS187の処理はスキップされて、処理はステップS188に進む。 If it is determined in step S186 that the temporary left candidate coordinates are not held, the process of step S187 is skipped, and the process proceeds to step S188.
これに対して、ステップS186において、仮の左側候補座標を保持していると判定された場合、ステップS187において、水平黒帯座標検出部64は、保持している仮の左側候補座標を破棄する。そして、仮の左側候補座標が破棄されると、処理はステップS188に進む。
On the other hand, when it is determined in step S186 that the temporary left candidate coordinates are held, in step S187, the horizontal black belt coordinate
ステップS187において仮の左側候補座標が破棄された場合、ステップS186において仮の左側候補座標を保持していないと判定された場合、ステップS185において仮の左側候補座標が保持された場合、またはステップS184において仮の左側候補座標を保持していると判定された場合、処理はステップS188に進む。 When the temporary left candidate coordinates are discarded at step S187, when it is determined at step S186 that the temporary left candidate coordinates are not retained, when the temporary left candidate coordinates are retained at step S185, or step S184. If it is determined that the temporary left candidate coordinates are held, the process proceeds to step S188.
ステップS188において、水平黒帯座標検出部64は、選択されている画素が、選択されているラインの最後の画素、すなわち図5におけるライン上の右端の画素であるか否かを判定する。
In step S188, the horizontal black belt coordinate
ステップS188において、最後の画素でないと判定された場合、選択されたライン上には、まだ選択していない画素があるので、処理はステップS182に戻り、次の画素が選択される。 If it is determined in step S188 that the pixel is not the last pixel, since there is a pixel that has not been selected on the selected line, the process returns to step S182, and the next pixel is selected.
一方、ステップS188において、最後の画素であると判定された場合、選択されているライン上の全ての画素について黒画素であるか否かの判定を行ったので、処理はステップS189に進む。ステップS189において、水平黒帯座標検出部64は、選択しているラインの最終的な左側候補座標を決定する。
On the other hand, if it is determined in step S188 that the pixel is the last pixel, it is determined whether or not all the pixels on the selected line are black pixels, and thus the process proceeds to step S189. In step S189, the horizontal black belt coordinate
例えば、水平黒帯座標検出部64は、仮の左側候補座標を保持している場合、その保持している仮の左側候補座標を、選択しているラインの最終的な左側候補座標とする。また、例えば、水平黒帯座標検出部64は、仮の左側候補座標を保持していない場合、水平黒帯を検出できなかったとして、図5の領域121の左端の座標を選択しているラインの左側候補座標とする。
For example, when the horizontal black belt coordinate
ステップS190において、水平黒帯座標検出部64は、検出領域とされた領域121内の全てのラインについて左側候補座標を決定したか否かを判定する。ステップS190において、まだ全てのラインについて左側候補座標を決定していないと判定された場合、処理はステップS181に戻り、次のラインが選択される。
In step S190, the horizontal black belt coordinate
これに対して、ステップS190において、全てのラインについて左側候補座標を決定したと判定された場合、処理は図3のステップS16に進む。 In contrast, if it is determined in step S190 that the left candidate coordinates have been determined for all lines, the process proceeds to step S16 in FIG.
このようにして、水平黒帯座標検出部64は、検出領域とされた領域121のラインごとに左側候補座標を決定する。このように、ラインごとに左側候補座標を決定することで、後段の多数決処理において、ノイズの影響や有効画像の端に黒い部分があるか否かによらず、より確実に水平黒帯の境界を検出することができるようになる。
In this way, the horizontal black belt coordinate
次に、図11のフローチャートを参照して、図3のステップS16の処理に対応する右側候補座標の検出処理について説明する。 Next, the right candidate coordinate detection process corresponding to the process of step S16 of FIG. 3 will be described with reference to the flowchart of FIG.
ステップS221において、水平黒帯座標検出部64は、図5の垂直黒帯が除去された入力画像の領域122を検出領域として、領域122内のラインを1つ選択する。例えば、水平黒帯座標検出部64は、図5の領域122の図中、一番上側のラインから下側のラインまで順番に選択していく。なお、ここでラインとは、x方向に並べられている領域122内の画素の列、つまりy座標が同じである領域122内の画素の列をいう。
In step S221, the horizontal black belt coordinate
ステップS222において、水平黒帯座標検出部64は、選択したラインを構成する画素を1つ選択する。例えば、水平黒帯座標検出部64は、図5のラインを構成する左端の画素から右端の画素まで順番に選択していく、すなわちラインに含まれる画素をx座標が小さい順に選択していく。
In step S222, the horizontal black belt coordinate
ここで、水平黒帯座標検出部64は、選択したラインについて、図5中、左端の画素から右側の画素まで順番に、それらの画素が黒画素であるか否かを判定していく。領域122内では、水平黒帯は領域122内の右側の領域に位置しているはずであるので、水平黒帯の左端の画素から右端の画素までは、選択された画素は全て黒画素とされるはずである。
Here, the horizontal black belt coordinate
そこで、水平黒帯座標検出部64は、ラインの左側の画素から順番に黒画素であるか否かを判定していき、黒画素が出現した時点で、その画素の位置のx座標を、仮の右側候補座標として保持しておく。この保持されている位置の画素は、水平黒帯の左端の画素である可能性が高い。
Therefore, the horizontal black belt coordinate
そして、その後、黒画素ではない画素が出現した場合には、その画素が水平黒帯内のノイズの乗った画素であるか、または保持している位置の画素が有効画像内の黒画素であるかの何れかであるので、水平黒帯座標検出部64は、保持している仮の右側候補座標を破棄する。さらに、再び黒画素が出現すると、水平黒帯座標検出部64は、その黒画素の位置のx座標を、仮の右側候補座標として保持し、最後に保持していた座標がそのラインの右側候補座標とされる。換言すれば、水平黒帯座標検出部64は、入力画像の右側の端から連続して左方向に並んでいる黒画素と、黒画素ではない画素との境界を検出し、その境界の黒画素の位置が右側候補座標とされる。したがって、ラインの右端から連続して並べられた黒画素のうちの最も左側の黒画素の位置がそのラインの右側候補座標とされる。
After that, when a pixel that is not a black pixel appears, the pixel is a pixel with noise in the horizontal black band, or the pixel at the position held is a black pixel in the effective image. Therefore, the horizontal black belt coordinate
そのような場合、ライン上の水平黒帯の部分にノイズの乗った画素、つまり黒画素ではない画素が含まれていると、その画素の右側に隣接する黒画素の位置が右側候補座標となり、水平黒帯の境界の位置を正しく検出できない。しかしながら、全体のラインの数に比べて、水平黒帯の部分にノイズの乗った画素が含まれるラインの数は少ないことが殆どであるので、上述した多数決処理により、結局は水平黒帯の境界の位置を正しく検出することができる。 In such a case, if the horizontal black belt part on the line includes a pixel with noise, that is, a pixel that is not a black pixel, the position of the black pixel adjacent to the right side of the pixel becomes the right candidate coordinate, The position of the horizontal black border cannot be detected correctly. However, since the number of lines in which noisy pixels are included in the horizontal black belt portion is almost smaller than the total number of lines, the majority process described above eventually results in the boundary of the horizontal black belt. Can be detected correctly.
ステップS222において画素が選択されると、ステップS223において、水平黒帯座標検出部64は、黒画素検出部63から供給された水平黒画素フラグに基づいて、選択した画素が黒画素であるか否かを判定する。
When a pixel is selected in step S222, in step S223, the horizontal black belt coordinate
ステップS223において、黒画素であると判定された場合、ステップS224において、水平黒帯座標検出部64は、仮の右側候補座標を保持しているか否かを判定する。
If it is determined in step S223 that the pixel is a black pixel, in step S224, the horizontal black belt coordinate
ステップS224において、保持していると判定された場合、ステップS225の処理はスキップされて、処理はステップS228に進む。 If it is determined in step S224 that the data is held, the process in step S225 is skipped, and the process proceeds to step S228.
これに対して、ステップS224において、保持していないと判定された場合、ステップS225において、水平黒帯座標検出部64は、現在選択している画素の位置を、仮の右側候補座標として保持する。水平黒帯座標検出部64により仮の右側候補座標が保持されると、処理はステップS228に進む。
On the other hand, if it is determined in step S224 that it is not held, in step S225, the horizontal black belt coordinate
また、ステップS223において、選択した画素が黒画素でないと判定された場合、ステップS226において、水平黒帯座標検出部64は、仮の右側候補座標を保持しているか否かを判定する。
If it is determined in step S223 that the selected pixel is not a black pixel, in step S226, the horizontal black belt coordinate
ステップS226において、仮の右側候補座標を保持していないと判定された場合、ステップS227の処理はスキップされて、処理はステップS228に進む。 If it is determined in step S226 that the temporary right candidate coordinates are not held, the process of step S227 is skipped, and the process proceeds to step S228.
これに対して、ステップS226において、仮の右側候補座標を保持していると判定された場合、ステップS227において、水平黒帯座標検出部64は、保持している仮の右側候補座標を破棄する。そして、仮の右側候補座標が破棄されると、処理はステップS228に進む。
On the other hand, when it is determined in step S226 that the temporary right candidate coordinates are held, in step S227, the horizontal black belt coordinate
ステップS227において仮の右側候補座標が破棄された場合、ステップS226において仮の右側候補座標を保持していないと判定された場合、ステップS225において仮の右側候補座標が保持された場合、またはステップS224において仮の右側候補座標を保持していると判定された場合、処理はステップS228に進む。 When the temporary right candidate coordinates are discarded at step S227, when it is determined at step S226 that the temporary right candidate coordinates are not retained, when the temporary right candidate coordinates are retained at step S225, or step S224. If it is determined in step S228 that the temporary right candidate coordinates are held, the process proceeds to step S228.
ステップS228において、水平黒帯座標検出部64は、選択されている画素が、選択されているラインの最後の画素、すなわち図5におけるライン上の右端の画素であるか否かを判定する。
In step S228, the horizontal black belt coordinate
ステップS228において、最後の画素でないと判定された場合、選択されたライン上には、まだ選択していない画素があるので、処理はステップS222に戻り、次の画素が選択される。 If it is determined in step S228 that the pixel is not the last pixel, there is a pixel that has not yet been selected on the selected line, so the process returns to step S222, and the next pixel is selected.
一方、ステップS228において、最後の画素であると判定された場合、選択されているライン上の全ての画素について黒画素であるか否かの判定を行ったので、処理はステップS229に進む。ステップS229において、水平黒帯座標検出部64は、選択しているラインの最終的な右側候補座標を決定する。
On the other hand, if it is determined in step S228 that the pixel is the last pixel, it is determined whether or not all the pixels on the selected line are black pixels, and thus the process proceeds to step S229. In step S229, the horizontal black belt coordinate
例えば、水平黒帯座標検出部64は、仮の右側候補座標を保持している場合、その保持している仮の右側候補座標を、選択しているラインの最終的な右側候補座標とする。また、例えば、水平黒帯座標検出部64は、仮の右側候補座標を保持していない場合、水平黒帯を検出できなかったとして、図5の領域122の右端の座標を、選択しているラインの右側候補座標とする。
For example, when the horizontal black belt coordinate
ステップS230において、水平黒帯座標検出部64は、検出領域とされた領域122内の全てのラインについて右側候補座標を決定したか否かを判定する。ステップS230において、まだ全てのラインについて右側候補座標を決定していないと判定された場合、処理はステップS221に戻り、次のラインが選択される。
In step S230, the horizontal black belt coordinate
これに対して、ステップS230において、全てのラインについて右側候補座標を決定したと判定された場合、水平黒帯座標検出部64は、決定したラインごとの右側候補座標と、図3のステップS15の処理において決定したラインごとの左側候補座標とを多数決処理部65に供給する。そして、右側候補座標および左側候補座標が多数決処理部65に供給されると、処理は図3のステップS17に進む。
On the other hand, if it is determined in step S230 that the right candidate coordinates have been determined for all the lines, the horizontal black belt coordinate
このようにして、水平黒帯座標検出部64は、検出領域とされた領域122のラインごとに右側候補座標を決定する。このように、ラインごとに右側候補座標を決定することで、後段の多数決処理において、ノイズの影響や有効画像の端に黒い部分があるか否かによらず、より確実に水平黒帯の境界を検出することができるようになる。
In this way, the horizontal black belt coordinate
以上のように、ラインを単位として垂直黒帯を検出することで、ノイズの影響や有効画像の端に黒い部分があるか否かによらず、より確実に垂直黒帯の境界の位置を検出することができる。また、左側候補座標および右側候補座標を検出し、それらの座標を用いて多数決処理を行うことで、ノイズによる誤検出を防止し、より確実に水平黒帯の境界の位置を検出することができる。 As described above, by detecting the vertical black band in units of lines, the position of the boundary of the vertical black band can be detected more reliably regardless of the influence of noise or whether there is a black part at the edge of the effective image. can do. Further, by detecting the left candidate coordinates and the right candidate coordinates and performing majority processing using these coordinates, it is possible to prevent erroneous detection due to noise and more reliably detect the position of the boundary of the horizontal black belt. .
上述した一連の処理は、ハードウェアにより実行することもできるし、ソフトウェアにより実行することもできる。一連の処理をソフトウェアにより実行する場合には、そのソフトウェアを構成するプログラムが、専用のハードウェアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、プログラム記録媒体からインストールされる。 The series of processes described above can be executed by hardware or can be executed by software. When a series of processing is executed by software, a program constituting the software may execute various functions by installing a computer incorporated in dedicated hardware or various programs. For example, it is installed from a program recording medium in a general-purpose personal computer or the like.
図12は、上述した一連の処理をプログラムにより実行するコンピュータのハードウェアの構成例を示すブロック図である。 FIG. 12 is a block diagram illustrating a hardware configuration example of a computer that executes the above-described series of processing by a program.
コンピュータにおいて、CPU(Central Processing Unit)201,ROM(Read Only Memory)202,RAM(Random Access Memory)203は、バス204により相互に接続されている。
In a computer, a central processing unit (CPU) 201, a read only memory (ROM) 202, and a random access memory (RAM) 203 are connected to each other by a
バス204には、さらに、入出力インターフェース205が接続されている。入出力インターフェース205には、キーボード、マウス、マイクロホンなどよりなる入力部206、ディスプレイ、スピーカなどよりなる出力部207、ハードディスクや不揮発性のメモリなどよりなる記録部208、ネットワークインターフェースなどよりなる通信部209、磁気ディスク、光ディスク、光磁気ディスク、或いは半導体メモリなどのリムーバブルメディア211を駆動するドライブ210が接続されている。
An input /
以上のように構成されるコンピュータでは、CPU201が、例えば、記録部208に記録されているプログラムを、入出力インターフェース205及びバス204を介して、RAM203にロードして実行することにより、上述した一連の処理が行われる。
In the computer configured as described above, the
コンピュータ(CPU201)が実行するプログラムは、例えば、磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disc-Read Only Memory),DVD(Digital Versatile Disc)等)、光磁気ディスク、もしくは半導体メモリなどよりなるパッケージメディアであるリムーバブルメディア211に記録して、あるいは、ローカルエリアネットワーク、インターネット、デジタル衛星放送といった、有線または無線の伝送媒体を介して提供される。
The program executed by the computer (CPU 201) is, for example, a magnetic disk (including a flexible disk), an optical disk (CD-ROM (Compact Disc-Read Only Memory), DVD (Digital Versatile Disc), etc.), a magneto-optical disk, or a semiconductor. The program is recorded on a
そして、プログラムは、リムーバブルメディア211をドライブ210に装着することにより、入出力インターフェース205を介して、記録部208にインストールすることができる。また、プログラムは、有線または無線の伝送媒体を介して、通信部209で受信し、記録部208にインストールすることができる。その他、プログラムは、ROM202や記録部208に、あらかじめインストールしておくことができる。
The program can be installed in the
なお、コンピュータが実行するプログラムは、本明細書で説明する順序に沿って時系列に処理が行われるプログラムであっても良いし、並列に、あるいは呼び出しが行われたとき等の必要なタイミングで処理が行われるプログラムであっても良い。 The program executed by the computer may be a program that is processed in time series in the order described in this specification, or in parallel or at a necessary timing such as when a call is made. It may be a program for processing.
なお、本発明の実施の形態は、上述した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変更が可能である。 The embodiment of the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention.
41 画像処理装置, 51 垂直黒帯座標検出部, 52 水平黒帯座標検出部, 53 黒画面判定部, 54 黒帯座標決定部, 61 黒ライン検出部, 62 垂直黒帯座標検出部, 63 黒画素検出部, 64 水平黒帯座標検出部, 65 多数決処理部 41 image processing device, 51 vertical black band coordinate detection unit, 52 horizontal black band coordinate detection unit, 53 black screen determination unit, 54 black band coordinate determination unit, 61 black line detection unit, 62 vertical black band coordinate detection unit, 63 black Pixel detection unit, 64 horizontal black belt coordinate detection unit, 65 majority processing unit
Claims (6)
前記入力画像上の第1の方向に並べられた画素からなるラインのうち、前記黒画素が所定の数以上含まれているラインである黒ラインを検出する黒ライン検出手段と、
前記黒ラインの検出結果に基づいて、前記第1の端の近傍の第1の検出領域内において、前記第1の端から前記第1の方向と垂直な第2の方向に連続して並べられた前記黒ラインと、黒ラインではないラインとの境界を検出することで、前記第1の黒帯を検出するとともに、前記第1の端と対向する前記第2の端の近傍の第2の検出領域内において、前記第2の端と対向する前記第2の検出領域の端から前記第2の方向に連続して並べられた黒ラインでないラインと、前記黒ラインとの境界を検出することで、前記第2の黒帯を検出する第1の黒帯検出手段と、
前記入力画像から前記第1の黒帯および前記第2の黒帯を除去した画像上の前記第3の端の近傍の第3の検出領域と、前記第3の端に対向する前記第4の端の近傍の第4の検出領域とを対象として、前記黒画素を検出する黒画素検出手段と、
前記黒画素の検出結果に基づいて、前記第3の検出領域内の各ラインについて、前記第3の端と対向する前記第3の検出領域の端から前記第1の方向に連続して並べられた前記黒画素ではない画素と、前記黒画素との境界を検出するとともに、前記第4の検出領域内の各ラインについて、前記第4の端から前記第1の方向に連続して並べられた前記黒画素と、前記黒画素ではない画素との境界を検出する境界検出手段と、
前記第3の検出領域内のラインごとの境界の検出結果に基づいて、前記第3の黒帯を検出するとともに、前記第4の検出領域内のラインごとの境界の検出結果に基づいて、前記第4の黒帯を検出する第2の黒帯検出手段と
を備える画像処理装置。 Detecting each of the first black band to the fourth black band that is located at each of the first end to the fourth end of the input image and is an area composed of black pixels whose pixel luminance value is smaller than a predetermined threshold value. An image processing apparatus that
A black line detecting means for detecting a black line which is a line including a predetermined number or more of the black pixels among lines formed of pixels arranged in a first direction on the input image;
Based on the detection result of the black line, the first detection region in the vicinity of the first end is continuously arranged from the first end in a second direction perpendicular to the first direction. In addition, by detecting a boundary between the black line and a line that is not a black line, the first black belt is detected, and a second in the vicinity of the second end facing the first end is detected. Detecting a boundary between a black line and a line that is not a black line continuously arranged in the second direction from the end of the second detection area facing the second end in the detection area; And first black belt detecting means for detecting the second black belt,
A third detection region in the vicinity of the third end on the image obtained by removing the first black belt and the second black belt from the input image, and the fourth detection region facing the third end. Black pixel detection means for detecting the black pixel for a fourth detection region in the vicinity of the edge;
Based on the detection result of the black pixel, each line in the third detection region is continuously arranged in the first direction from the end of the third detection region facing the third end. In addition, the boundary between the pixel that is not the black pixel and the black pixel is detected, and each line in the fourth detection region is continuously arranged in the first direction from the fourth end. Boundary detection means for detecting a boundary between the black pixel and the pixel that is not the black pixel;
Based on the detection result of the boundary for each line in the third detection region, the third black belt is detected, and based on the detection result of the boundary for each line in the fourth detection region, An image processing apparatus comprising: second black belt detection means for detecting a fourth black belt.
請求項1に記載の画像処理装置。 Based on the detection result of the black line, it is determined whether or not the input image includes a predetermined number or more of the black lines, and the predetermined number or more of the black lines are included. The image processing apparatus according to claim 1, further comprising: a determination unit that determines that the first black band to the fourth black band are not included in the input image when the input image is included.
請求項1に記載の画像処理装置。 The second black belt detection means sets a position having the highest appearance frequency among the positions of the boundaries detected in each line in the third detection region as the boundary of the third black belt in the input image. The position of the highest appearance frequency among the positions of the boundaries detected in each line in the fourth detection region is set as the position of the boundary of the fourth black belt in the input image. The image processing apparatus according to 1.
請求項1に記載の画像処理装置。 Detection results of the first black belt to the fourth black belt in the input image and the first black belt to the fourth black belt in the input image of several frames immediately before the input image. The image processing apparatus according to claim 1, further comprising: a determining unit that determines a final position of the first black band to the fourth black band of the input image based on a detection result.
前記入力画像上の第1の方向に並べられた画素からなるラインのうち、前記黒画素が所定の数以上含まれているラインである黒ラインを検出し、
前記黒ラインの検出結果に基づいて、前記第1の端の近傍の第1の検出領域内において、前記第1の端から前記第1の方向と垂直な第2の方向に連続して並べられた前記黒ラインと、黒ラインではないラインとの境界を検出することで、前記第1の黒帯を検出するとともに、前記第1の端と対向する前記第2の端の近傍の第2の検出領域内において、前記第2の端と対向する前記第2の検出領域の端から前記第2の方向に連続して並べられた黒ラインでないラインと、前記黒ラインとの境界を検出することで、前記第2の黒帯を検出し、
前記入力画像から前記第1の黒帯および前記第2の黒帯を除去した画像上の前記第3の端の近傍の第3の検出領域と、前記第3の端に対向する前記第4の端の近傍の第4の検出領域とを対象として、前記黒画素を検出し、
前記黒画素の検出結果に基づいて、前記第3の検出領域内の各ラインについて、前記第3の端と対向する前記第3の検出領域の端から前記第1の方向に連続して並べられた前記黒画素ではない画素と、前記黒画素との境界を検出するとともに、前記第4の検出領域内の各ラインについて、前記第4の端から前記第1の方向に連続して並べられた前記黒画素と、前記黒画素ではない画素との境界を検出し、
前記第3の検出領域内のラインごとの境界の検出結果に基づいて、前記第3の黒帯を検出するとともに、前記第4の検出領域内のラインごとの境界の検出結果に基づいて、前記第4の黒帯を検出する
ステップを含む画像処理方法。 Detecting each of the first black band to the fourth black band that is located at each of the first end to the fourth end of the input image and is an area composed of black pixels whose pixel luminance value is smaller than a predetermined threshold value. An image processing method for
Detecting a black line that is a line including a predetermined number or more of the black pixels, among lines formed of pixels arranged in a first direction on the input image;
Based on the detection result of the black line, the first detection region in the vicinity of the first end is continuously arranged from the first end in a second direction perpendicular to the first direction. In addition, by detecting a boundary between the black line and a line that is not a black line, the first black belt is detected, and a second in the vicinity of the second end facing the first end is detected. Detecting a boundary between a black line and a line that is not a black line continuously arranged in the second direction from the end of the second detection area facing the second end in the detection area; And detecting the second black belt,
A third detection region in the vicinity of the third end on the image obtained by removing the first black belt and the second black belt from the input image, and the fourth detection region facing the third end. For the fourth detection region in the vicinity of the end, the black pixel is detected,
Based on the detection result of the black pixel, each line in the third detection region is continuously arranged in the first direction from the end of the third detection region facing the third end. In addition, the boundary between the pixel that is not the black pixel and the black pixel is detected, and each line in the fourth detection region is continuously arranged in the first direction from the fourth end. Detecting a boundary between the black pixel and the non-black pixel;
Based on the detection result of the boundary for each line in the third detection region, the third black belt is detected, and based on the detection result of the boundary for each line in the fourth detection region, An image processing method including a step of detecting a fourth black belt.
前記入力画像上の第1の方向に並べられた画素からなるラインのうち、前記黒画素が所定の数以上含まれているラインである黒ラインを検出し、
前記黒ラインの検出結果に基づいて、前記第1の端の近傍の第1の検出領域内において、前記第1の端から前記第1の方向と垂直な第2の方向に連続して並べられた前記黒ラインと、黒ラインではないラインとの境界を検出することで、前記第1の黒帯を検出するとともに、前記第1の端と対向する前記第2の端の近傍の第2の検出領域内において、前記第2の端と対向する前記第2の検出領域の端から前記第2の方向に連続して並べられた黒ラインでないラインと、前記黒ラインとの境界を検出することで、前記第2の黒帯を検出し、
前記入力画像から前記第1の黒帯および前記第2の黒帯を除去した画像上の前記第3の端の近傍の第3の検出領域と、前記第3の端に対向する前記第4の端の近傍の第4の検出領域とを対象として、前記黒画素を検出し、
前記黒画素の検出結果に基づいて、前記第3の検出領域内の各ラインについて、前記第3の端と対向する前記第3の検出領域の端から前記第1の方向に連続して並べられた前記黒画素ではない画素と、前記黒画素との境界を検出するとともに、前記第4の検出領域内の各ラインについて、前記第4の端から前記第1の方向に連続して並べられた前記黒画素と、前記黒画素ではない画素との境界を検出し、
前記第3の検出領域内のラインごとの境界の検出結果に基づいて、前記第3の黒帯を検出するとともに、前記第4の検出領域内のラインごとの境界の検出結果に基づいて、前記第4の黒帯を検出する
ステップをコンピュータに実行させるプログラム。 Detecting each of the first black band to the fourth black band that is located at each of the first end to the fourth end of the input image and is an area composed of black pixels whose pixel luminance value is smaller than a predetermined threshold value. A program for image processing,
Detecting a black line that is a line including a predetermined number or more of the black pixels, among lines formed of pixels arranged in a first direction on the input image;
Based on the detection result of the black line, the first detection region in the vicinity of the first end is continuously arranged from the first end in a second direction perpendicular to the first direction. In addition, by detecting a boundary between the black line and a line that is not a black line, the first black belt is detected, and a second in the vicinity of the second end facing the first end is detected. Detecting a boundary between a black line and a line that is not a black line continuously arranged in the second direction from the end of the second detection area facing the second end in the detection area; And detecting the second black belt,
A third detection region in the vicinity of the third end on the image obtained by removing the first black belt and the second black belt from the input image, and the fourth detection region facing the third end. For the fourth detection region in the vicinity of the end, the black pixel is detected,
Based on the detection result of the black pixel, each line in the third detection region is continuously arranged in the first direction from the end of the third detection region facing the third end. In addition, the boundary between the pixel that is not the black pixel and the black pixel is detected, and each line in the fourth detection region is continuously arranged in the first direction from the fourth end. Detecting a boundary between the black pixel and the non-black pixel;
Based on the detection result of the boundary for each line in the third detection region, the third black belt is detected, and based on the detection result of the boundary for each line in the fourth detection region, A program for causing a computer to execute a step of detecting a fourth black belt.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007201591A JP2009038619A (en) | 2007-08-02 | 2007-08-02 | Image processing device and method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007201591A JP2009038619A (en) | 2007-08-02 | 2007-08-02 | Image processing device and method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009038619A true JP2009038619A (en) | 2009-02-19 |
Family
ID=40440150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007201591A Pending JP2009038619A (en) | 2007-08-02 | 2007-08-02 | Image processing device and method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009038619A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012142852A (en) * | 2011-01-05 | 2012-07-26 | Jvc Kenwood Corp | Pseudo stereoscopic image generation device, pseudo stereoscopic image generation program, and pseudo stereoscopic image display device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07162751A (en) * | 1993-10-14 | 1995-06-23 | Hitachi Ltd | Image feature detector, image adjusting system, caption editing system and television receiver |
JPH09270966A (en) * | 1996-04-01 | 1997-10-14 | Matsushita Electric Ind Co Ltd | Automatic detection circuit for letter box image for television receiver |
JP2000341603A (en) * | 1999-05-06 | 2000-12-08 | Thomson Multimedia Sa | Method for detecting black bar in video image |
JP2002077768A (en) * | 2000-09-04 | 2002-03-15 | Hitachi Ltd | Image signal processor |
JP2005203933A (en) * | 2004-01-14 | 2005-07-28 | Matsushita Electric Ind Co Ltd | Video-reproducing apparatus and video-reproducing method |
JP2005286735A (en) * | 2004-03-30 | 2005-10-13 | Funai Electric Co Ltd | Liquid crystal television, back light controller and back light control method |
-
2007
- 2007-08-02 JP JP2007201591A patent/JP2009038619A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07162751A (en) * | 1993-10-14 | 1995-06-23 | Hitachi Ltd | Image feature detector, image adjusting system, caption editing system and television receiver |
JPH09270966A (en) * | 1996-04-01 | 1997-10-14 | Matsushita Electric Ind Co Ltd | Automatic detection circuit for letter box image for television receiver |
JP2000341603A (en) * | 1999-05-06 | 2000-12-08 | Thomson Multimedia Sa | Method for detecting black bar in video image |
JP2002077768A (en) * | 2000-09-04 | 2002-03-15 | Hitachi Ltd | Image signal processor |
JP2005203933A (en) * | 2004-01-14 | 2005-07-28 | Matsushita Electric Ind Co Ltd | Video-reproducing apparatus and video-reproducing method |
JP2005286735A (en) * | 2004-03-30 | 2005-10-13 | Funai Electric Co Ltd | Liquid crystal television, back light controller and back light control method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012142852A (en) * | 2011-01-05 | 2012-07-26 | Jvc Kenwood Corp | Pseudo stereoscopic image generation device, pseudo stereoscopic image generation program, and pseudo stereoscopic image display device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9179038B2 (en) | Image processing device, and image processing method and program | |
US20160035069A1 (en) | Method and apparatus for correcting image | |
US8411974B2 (en) | Image processing apparatus, method, and program for detecting still-zone area | |
EP1223760A2 (en) | Mosquito noise reducing apparatus and method | |
US8958656B2 (en) | Contour correction device | |
JP2005175735A (en) | Video signal processor, television receiver employing the same, and video signal processing method | |
KR101020496B1 (en) | Image processing apparatus, image processing method and computer-readable storage medium | |
KR20120138635A (en) | Image processing method, image processing device and scanner | |
US20080056597A1 (en) | Directional interpolation method using frequency information and related device | |
US7978265B2 (en) | Method and apparatus of deinterlacing | |
JP2009038619A (en) | Image processing device and method, and program | |
JP2009290802A (en) | Interpolation frame generating apparatus, interpolation frame generating method, and broadcast receiving apparatus | |
US8432495B2 (en) | Video processor and video processing method | |
US20070189631A1 (en) | Methods and apparatuses for enhancing image quality | |
JP5377649B2 (en) | Image processing apparatus and video reproduction apparatus | |
KR100671838B1 (en) | Afterimage preventing apparatus and method for plasma display pannel | |
US20110307923A1 (en) | Image processing apparatus, method, and program | |
JP2009010819A (en) | Image discriminating apparatus and method, and program | |
JP5123839B2 (en) | Noise reduction apparatus and program thereof | |
US8077996B2 (en) | Video processing method and apparatus based on smooth detection | |
US20130201404A1 (en) | Image processing method | |
JP2007043285A (en) | Shake vector detecting apparatus, camera system, shake vector detection method, and shake vector detection program | |
JP2007329832A (en) | Image processing apparatus and method, detection device and method, program and recording medium | |
JP5350497B2 (en) | Motion detection device, control program, and integrated circuit | |
US8116572B2 (en) | Method for detecting image edge and image interpolation using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100721 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120507 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120517 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20120918 |