JPH08147462A - Image processor - Google Patents

Image processor

Info

Publication number
JPH08147462A
JPH08147462A JP6286786A JP28678694A JPH08147462A JP H08147462 A JPH08147462 A JP H08147462A JP 6286786 A JP6286786 A JP 6286786A JP 28678694 A JP28678694 A JP 28678694A JP H08147462 A JPH08147462 A JP H08147462A
Authority
JP
Japan
Prior art keywords
image
area
region
detection
uncertain
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.)
Granted
Application number
JP6286786A
Other languages
Japanese (ja)
Other versions
JP2940419B2 (en
Inventor
Toru Ikeda
徹 池田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP6286786A priority Critical patent/JP2940419B2/en
Publication of JPH08147462A publication Critical patent/JPH08147462A/en
Application granted granted Critical
Publication of JP2940419B2 publication Critical patent/JP2940419B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To stably remove a noise, to fill an omission part, and to store the constricted shape of an object area even if the noise is detected through threshold processing and the omission part is generated in the object area. CONSTITUTION: An area dividing means 202 divides an input image into three kinds of areas which are a detection area, a nondetection area, and an undecided area. An undecided area dividing means 204 allocates the respective pixels belonging to the undecided area to the detection area and nondetection area while referring to a 1st area divided image. A binarization means 206 generates a binary image consisting of 1 for a detection determined area and 0 for the nondetection area by referring to the undecided area divided image. Further, a filling means 208 generates an image by filing the hole area of the binary image with the pixel value 1 and a small area erasing means 210 generates an image by erasing small areas of the hole filled image.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、入力された濃淡画像を
2値化することにより対象物領域を抽出することを目的
とする画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for extracting an object area by binarizing an input grayscale image.

【0002】[0002]

【従来の技術】入力された濃淡画像を2値化する場合、
一般に閾値処理が行われるが、入力画像中の対象物領域
が必ずしも一定の閾値で他の領域と識別できる画素値を
持っているとは限らない。したがって、2値化後の2値
画像には対象物領域以外にノイズが検出されたり、対象
物領域に欠落部分が生じる場合がある。
2. Description of the Related Art When binarizing an input grayscale image,
In general, threshold processing is performed, but the object area in the input image does not always have a pixel value that can be distinguished from other areas with a certain threshold. Therefore, in the binary image after binarization, noise may be detected in areas other than the object area, or a missing portion may occur in the object area.

【0003】そこで、従来よりこの問題を解決するため
に、ノイズ除去や穴埋めによる2値画像の整形処理が考
案されてきた。
Therefore, in order to solve this problem, shaping processing of a binary image by noise removal or padding has been conventionally devised.

【0004】例えば、特開昭62−075775号公報
に記載の画像処理装置では、物質の気孔を検出するため
に、2種類の閾値を用いて2種類の2値画像を生成し、
一方を穴埋め処理により気孔部分も穴埋めし、他方を穴
埋めしないままにし、両方の2値画像を比較することに
より気孔領域を検出している。
For example, in the image processing apparatus described in Japanese Patent Laid-Open No. 62-075775, two kinds of binary images are generated by using two kinds of threshold values in order to detect the pores of a substance,
The pore portion is also filled by the filling processing on one side, the other side is left unfilled, and the pore area is detected by comparing both binary images.

【0005】また、特開平5−282443号公報に記
載の画像処理手法では、まず2つの閾値を用いて入力画
像を2値化する。このため、本発明のように入力画像を
検出領域、非検出領域、未確定領域に領域分割する方法
とは異なる。そして、2値化された画像のx座標方向お
よびy座標方向に対するヒストグラムを用いて対象物画
像を取り出し、前記対象物画像のx軸およびy軸に直交
する直線上で画素値1の画素の最小座標と最大座標の間
の全画素を1にすることにより穴埋め処理を行ってい
る。
In the image processing method disclosed in Japanese Patent Laid-Open No. 5-282443, the input image is first binarized using two threshold values. Therefore, this is different from the method of dividing the input image into the detection area, the non-detection area, and the undetermined area as in the present invention. Then, the object image is extracted using the histograms for the x-coordinate direction and the y-coordinate direction of the binarized image, and the minimum of the pixels having the pixel value 1 on the straight line orthogonal to the x-axis and the y-axis of the object image. The filling processing is performed by setting all the pixels between the coordinates and the maximum coordinates to 1.

【0006】[0006]

【発明が解決しようとする課題】図3を用いて発明が解
決しようとする課題について説明する。ここで、図3は
従来技術の処理を示す説明図であり、2値化の一例とし
て、暗い背景の中に人の手が撮影された入力画像から人
の手の領域を1、それ以外の領域を0とする2値画像を
生成することにより、人の手を検出する処理を示してい
る。図3の(a)が入力画像、(b)が閾値処理による
2値化処理画像を示している。ここで、図3(b)の2
値化処理画像には手の領域の中央部分に欠落部分を生じ
ており、整形処理によりこの欠落部分を補う必要があ
る。また、図3の(c)が特開昭62−075775号
公報に記載の画像処理装置による処理の説明図、(d)
が特開平5−282443号公報に記載の画像処理手法
による処理の説明図を示している。
The problem to be solved by the invention will be described with reference to FIG. Here, FIG. 3 is an explanatory diagram showing the processing of the conventional technique. As an example of binarization, the area of the human hand is set to 1 from the input image in which the human hand is photographed in a dark background, and the other areas. The process of detecting a human hand by generating a binary image in which the area is 0 is shown. 3A shows an input image, and FIG. 3B shows a binarized image by threshold processing. Here, 2 in FIG.
In the binarized image, a missing portion is generated in the central portion of the hand region, and it is necessary to correct this missing portion by shaping processing. Further, FIG. 3C is an explanatory diagram of processing by the image processing apparatus described in Japanese Patent Laid-Open No. 62-075775, and FIG.
Shows an explanatory diagram of processing by the image processing method described in Japanese Patent Laid-Open No. 5-282443.

【0007】まず2値画像の穴埋め処理の例として、予
め画素数nを指定しておき、画素値1の領域をn画素だ
け拡張し、欠落部分が潰れた後にn画素だけ縮小すると
いう操作があげられる。対象物領域内の欠落部分が大き
くなれば、この部分を画素値1で埋めるためにnに大き
な値を与える必要がある。このように、一般に穴埋め操
作には、欠落部分が大きいほど参照する必要のある画素
が多くなり、処理量が極端に増えるという特徴がある。
したがって、特開昭62−075775号公報に記載の
画像処理装置では、気孔の大きさが一定値以下であるこ
とを仮定できるために有効な手法であり、任意の大きさ
の欠落部分を埋める手法には不適当である。例えば、大
きな欠落部分が存在する場合に、n画素の拡張操作とn
画素の縮小操作におり穴埋めを行おうとすると、nに十
分大きな値を与えなければ図3の(c)のように欠落部
分を埋めることができず、nが大きい値ならば膨大な処
理を必要とするという問題がある。
First, as an example of the process of filling in a binary image, the number of pixels n is designated in advance, the area having a pixel value of 1 is expanded by n pixels, and after the missing portion is crushed, it is reduced by n pixels. can give. If the missing part in the object area becomes large, it is necessary to give a large value to n in order to fill this part with the pixel value 1. As described above, the hole filling operation is generally characterized in that the larger the missing portion, the larger the number of pixels that need to be referred to and the extremely large amount of processing.
Therefore, the image processing apparatus disclosed in Japanese Patent Laid-Open No. 62-075775 is an effective method because it can be assumed that the size of the pores is equal to or smaller than a certain value, and a method of filling a missing portion of an arbitrary size. Is not suitable for. For example, when there is a large missing portion, an expansion operation of n pixels and n
When trying to perform hole filling in the pixel reduction operation, unless n is given a sufficiently large value, the missing part cannot be filled as shown in FIG. 3C, and if n is a large value, enormous processing is required. There is a problem that

【0008】特開平5−282443号公報に記載の画
像処理手法では、対象物が画像内で凸領域として撮影さ
れていることが仮定されている。したがって、図3
(a)のようにくびれた部分を持つ対象物を検出する場
合、対象物領域内に生じた欠落部分だけを穴埋めし、対
象物領域のくびれ部分を残すことが望ましいが、上記手
法では図3(d)のようにくびれ部分も欠落部分同様に
画素値1で埋めてしまうという問題がある。
In the image processing method described in Japanese Patent Laid-Open No. 5-282443, it is assumed that the object is photographed as a convex area in the image. Therefore, FIG.
When detecting an object having a constricted portion as shown in (a), it is desirable to fill only the missing portion generated in the object area and leave the constricted portion of the object area. As in the case of (d), there is a problem that the constricted portion is filled with the pixel value 1 like the missing portion.

【0009】[0009]

【課題を解決するための手段】第1の発明の画像処理装
置は、画像を入力する画像入力手段と、前記画像入力手
段により入力された画像を記憶する入力画像記憶手段
と、前記入力画像を検出領域と非検出領域と不確定領域
の3種類の領域に分割する領域分割手段と、前記領域分
割手段により生成された領域分割画像を記憶する領域分
割画像記憶手段と、第1に前記領域分割画像を参照しな
がら不確定領域に属する各画素を検出領域および非検出
領域に割り振る不確定領域分割手段と、前記不確定領域
分割手段によって生成された不確定領域分割画像を格納
する不確定領域画像記憶手段と、前記不確定領域分割画
像を参照し、検出領域および非検出領域をそれぞれ検出
確定領域および非検出確定領域と融合することにより、
融合後の検出確定領域を1、非確定領域を0とする2値
画像を生成する2値化手段と、前記2値化手段により生
成された2値画像を記憶する2値画像記憶手段とを有し
ている。
An image processing apparatus according to a first aspect of the present invention includes an image input means for inputting an image, an input image storage means for storing the image input by the image input means, and an input image for the input image. Area dividing means for dividing into three types of areas of a detection area, a non-detection area and an indeterminate area, an area division image storage means for storing the area division image generated by the area division means, and firstly, the area division An uncertain area dividing means for allocating each pixel belonging to the uncertain area to a detection area and a non-detection area while referring to the image, and an uncertain area image for storing the uncertain area divided image generated by the uncertain area dividing means By referring to the storage means and the uncertain region divided image, and by merging the detection region and the non-detection region with the detection confirmation region and the non-detection confirmation region, respectively,
Binarization means for generating a binary image in which the detected confirmed area after fusion is 1 and non-determined area is 0, and a binary image storage means for storing the binary image generated by the binarizing means. Have

【0010】第2の発明の画像処理装置は、画像を入力
する画像入力手段と、前記画像入力手段により入力され
た画像を記憶する入力画像記憶手段と、前記入力画像を
検出領域と非検出領域と不確定領域の3種類の領域に分
割する領域分割手段と、前記領域分割手段により生成さ
れた領域分割画像を記憶する領域分割画像記憶手段と、
第1に前記領域分割画像を参照しながら不確定領域に属
する各画素を検出領域および非検出領域に割り振る不確
定領域分割手段と、前記不確定領域分割手段によって生
成された不確定領域分割画像を格納する不確定領域画像
記憶手段と、前記不確定領域分割画像を参照し、検出領
域および非検出領域をそれぞれ検出確定領域および非検
出確定領域と融合することにより、融合後の検出確定領
域を1、非確定領域を0とする2値画像を生成する2値
化手段と、前記2値化手段により生成された2値画像を
記憶する2値画像記憶手段と、前記2値画像の穴領域を
画素値1で埋めた画像を生成する穴埋め手段と、前記穴
埋め手段により生成された穴埋め画像を記憶する穴埋め
画像記憶手段と、前記穴埋め画像のうち小領域を消去し
た画像を生成する小領域消去手段と、前記小領域消去手
段により生成された小領域消去画像を記憶する小領域消
去画像記憶手段と、前記小領域消去画像を出力する画像
出力手段とを有している。
An image processing apparatus according to a second aspect of the present invention is an image input means for inputting an image, an input image storage means for storing the image input by the image input means, a detection area and a non-detection area for the input image. Area dividing means for dividing into three types of areas, an uncertain area, and an area divided image storage means for storing the area divided image generated by the area dividing means,
Firstly, an uncertain area dividing unit that allocates each pixel belonging to the uncertain area to a detection area and a non-detection area while referring to the area dividing image, and an uncertain area dividing image generated by the uncertain area dividing unit. By referring to the uncertain area image storage means to be stored and the uncertain area divided image, the detected area and the undetected area are fused with the detected uncertain area and the undetected undetermined area, respectively. , A binarizing means for generating a binary image in which the non-determined area is set to 0, a binary image storing means for storing the binary image generated by the binarizing means, and a hole area of the binary image. Fill-in means for generating an image filled with a pixel value 1, fill-in image storage means for storing the fill-in image generated by the fill-in means, and an image in which a small area of the fill-in image is deleted is generated. Has a region erasing means, wherein a small area erasing the image storage means for storing a small area erasing image generated by the small area erasing unit, and an image output means for outputting the small area erasing images.

【0011】[0011]

【作用】本発明の画像処理装置では、入力された濃淡画
像を検出領域および非検出領域および不確定領域に分割
し、領域分割画像を参照しながら不確定領域を検出領域
および非検出領域に再分割することにより、検出領域の
画素値を1、非検出領域の画素値を0とする2値画像を
生成する。
In the image processing apparatus of the present invention, the input grayscale image is divided into the detection region, the non-detection region and the uncertain region, and the uncertain region is re-converted into the detection region and the non-detection region while referring to the region division image. By dividing, a binary image in which the pixel value of the detection area is 1 and the pixel value of the non-detection area is 0 is generated.

【0012】このため、閾値を小さく設定することによ
り生ずるノイズのような過剰な抽出部分が存在する場合
や、逆に閾値を大きく設定することにより生ずる対象物
領域内の欠落部分が存在する場合には、2つの閾値を利
用することによりこれらの部分を不確定領域に属するも
のと判断し、不確定領域分割手段により周囲が検出領域
か非検出領域かを調べることにより、改めて不確定領域
内の各画素が非検出領域あるいは検出領域に所属すると
判断することが可能である。また、対象物領域がくびれ
部分を持つ場合には、領域分割手段によりこの部分を非
検出領域と判断することが可能である。
Therefore, when there is an excessive extracted portion such as noise generated by setting the threshold value small, or conversely, when there is a missing portion in the object area which is generated by setting the threshold value large. Determines that these parts belong to the uncertain area by using the two thresholds, and the uncertain area dividing unit checks whether the surroundings are the detection area or the non-detection area, and the inside of the uncertain area is re-established. It is possible to determine that each pixel belongs to the non-detection area or the detection area. When the object area has a constricted portion, the area dividing unit can determine this portion as a non-detection area.

【0013】[0013]

【実施例】まず、第1の発明の画像処理装置の一実施例
について、図1および図4を用いて説明する。ここで、
図1は第1の発明の一実施例を示す構成図である。ま
た、図4は第1および第2の発明の処理の過程を示す説
明図であり、2値化の一例として、暗い背景の中に人の
手が撮影された入力画像から、人の手の領域を1、それ
以外の領域を0とする2値画像を生成することにより人
の手の領域を検出する処理を示している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First, an embodiment of the image processing apparatus of the first invention will be described with reference to FIGS. here,
FIG. 1 is a block diagram showing an embodiment of the first invention. Further, FIG. 4 is an explanatory diagram showing the process steps of the first and second inventions, and as an example of binarization, a human hand is input from an input image in which the human hand is photographed in a dark background. The processing for detecting the area of the human hand by generating a binary image in which the area is 1 and the other areas are 0 is shown.

【0014】まず、画像入力手段100により、図4
(a)に示される入力画像のような濃淡画像を入力し、
入力画像記憶手段101に記憶する。ここで、図4
(a)の入力画像は、背景の画素値が小さく、人の手の
領域の画素値が大きくなっている。
First, the image input means 100 is used for the operation shown in FIG.
Input a grayscale image like the input image shown in (a),
It is stored in the input image storage means 101. Here, FIG.
In the input image of (a), the pixel value of the background is small and the pixel value of the region of the human hand is large.

【0015】領域分割手段102は、入力画像記憶手段
101の内容である入力画像を参照し、例えば予め指定
された2つの閾値T1 とT2 (T1 <T2 )を用いて、
各画素値につき、T1 未満ならば検出すべきではない領
域に属する画素と判断して0、T1 以上T2 未満ならば
検出すべきか検出すべきでないか不確定な領域に属する
画素と判断して1、T2 以上ならば検出すべき領域に属
する画素と判断して2となる3値の領域分割画像を生成
し、領域分割画像記憶手段103に記憶する。すなわ
ち、前記領域分割画像において、画素値0の画素からな
る領域は非検出領域、画素値1の画素からなる領域は不
確定領域、画素値2の画素からなる領域は検出領域であ
る。したがって、特開平5−282443号公報に記載
の実施例に記載の2値化手法のように、2つの閾値を用
いて、これらの閾値で挟まれる部分を1、それ以外の部
分を0として2値化する手法とは異なる。図4の例では
(b)の領域分割画像に示されるように、背景に属する
画素が0、手の領域の中央部分やノイズに対応する画素
が1、人の手の指を含む領域が2となっている。
The area dividing means 102 refers to the input image, which is the contents of the input image storage means 101, and uses, for example, two threshold values T 1 and T 2 (T 1 <T 2 ) designated in advance,
For each pixel value, if it is less than T 1, it is determined as a pixel belonging to an area that should not be detected, and if T 1 or more and less than T 2 , it is determined as a pixel that belongs to an area in which it should be detected or should not be detected. If it is 1 or more and T 2 or more, it is determined that the pixel belongs to the region to be detected, and a ternary region divided image of 2 is generated and stored in the region divided image storage means 103. That is, in the area-divided image, an area composed of pixels having a pixel value of 0 is a non-detection area, an area composed of pixels having a pixel value of 1 is an indeterminate area, and an area composed of pixels having a pixel value of 2 is a detection area. Therefore, as in the binarization method described in the embodiment described in Japanese Patent Laid-Open No. 5-282443, two threshold values are used, and the portion sandwiched between these threshold values is set to 1 and the other portions are set to 0, and 2 It is different from the method of digitizing. In the example of FIG. 4, as shown in the area-divided image of (b), the number of pixels belonging to the background is 0, the number of pixels corresponding to the central portion of the hand area and noise is 1, and the area including the finger of the human hand is 2. Has become.

【0016】不確定領域分割手段104は、前記領域分
割画像を参照し、不確定領域に所属する画素を検出すべ
き領域に属するかどうかを判断する。例えば、画素値1
の各画素の8近傍に画素値2の画素が存在する場合には
2に変更し、それ以外の場合には変更を加えないという
処理を考え、前記領域分割画像に対して上記処理を指定
された回数だけ実行して得られた不確定領域分割画像を
不確定領域分割画像記憶手段105に記憶する。このと
き、前記領域分割画像で画素値1を与えられた不確定領
域は、不確定領域分割画像において検出領域に属する画
素には2、非検出領域に属する画素には1が与えられて
いる。
The uncertain area dividing means 104 refers to the area divided image and determines whether or not the pixels belonging to the uncertain area belong to the area to be detected. For example, pixel value 1
If there is a pixel with a pixel value of 2 in the vicinity of each of the 8 pixels, the process is changed to 2 and otherwise, the process is specified for the area division image. The uncertain area divided image obtained by executing the same number of times is stored in the uncertain area divided image storage unit 105. At this time, in the uncertain region given the pixel value 1 in the region division image, 2 is given to the pixels belonging to the detection region and 1 is given to the pixels belonging to the non-detection region in the uncertain region division image.

【0017】2値化手段106は、前記不確定領域分割
画像の各画素について、画素値2ならば検出領域に属す
ると判断して1、画素値0または1ならば非検出領域に
属すると判断して0となる2値画像を生成し、2値画像
記憶手段107に記憶する。図4の例では(c)の2値
化処理画像に示されるように、前記領域分割画像で画素
値1が与えられた不確定領域に所属する画素のうち、ノ
イズに対応する画素は非検出領域に、手の領域の中央部
分の画素は検出領域に属すると判断され、人の手の領域
はほぼ全て検出領域になっている。
The binarizing means 106 judges that each pixel of the uncertain region divided image belongs to the detection region if the pixel value is 2, and judges that it belongs to the non-detection region if the pixel value is 0 or 1. Then, a binary image that becomes 0 is generated and stored in the binary image storage means 107. In the example of FIG. 4, as shown in the binarized image of (c), among the pixels belonging to the uncertain area given the pixel value 1 in the area division image, the pixel corresponding to noise is not detected. In the region, the pixel at the center of the hand region is determined to belong to the detection region, and the region of the human hand is almost the detection region.

【0018】画像出力手段108は、2値画像記憶手段
107に記憶されている2値画像を参照し、出力画像と
して出力する。
The image output means 108 refers to the binary image stored in the binary image storage means 107 and outputs it as an output image.

【0019】上記実施例の領域分割手段102では、2
つの閾値T1 とT2 (T1 <T2 )を用いて、入力画像
の各画素値につき、T1 未満ならば0、T1 以上T2
満ならば1、T2 以上ならば2となる3値の領域分割画
像を生成したが、背景が小さな輝度値と大きな輝度値を
持つ画素を含み、対象物領域が中間の値を持つ場合に
は、4つの閾値T1 、T2 、T3 、T4 (T1 <T2
3 <T4 )を用いて入力画像の各画素値につき、T1
未満またはT4 以上ならば0、T1 以上T2 未満または
3 以上T4 未満ならば1、T2 以上T3 未満ならば2
となる3値の領域分割画像を生成するという方法に置き
換えてもよい。
In the area dividing means 102 of the above embodiment, 2
Using two threshold values T 1 and T 2 (T 1 <T 2 ), for each pixel value of the input image, 0 if T 1 or less, 1 if T 1 or more and less than T 2, 1 if T 2 or more. In the case where the background includes pixels having a small luminance value and a large luminance value and the object region has an intermediate value, four thresholds T 1 , T 2 , T are generated. 3 , T 4 (T 1 <T 2 <
For each pixel value of the input image using T 3 <T 4 ) T 1
Less than T 4 or more, 0; T 1 or more and less than T 2 ; T 3 or more and less than T 4; 1; T 2 or more and less than T 3; 2
Alternatively, the method may be replaced with a method of generating a ternary region-divided image.

【0020】次に、第2の発明の画像処理装置の一実施
例について、図2および図4を用いて説明する。ここ
で、図2は第2の発明の一実施例を示す構成図であり、
図4は第1および第2の発明の処理の過程を示す説明図
である。
Next, an embodiment of the image processing apparatus of the second invention will be described with reference to FIGS. 2 is a block diagram showing an embodiment of the second invention,
FIG. 4 is an explanatory diagram showing the process steps of the first and second inventions.

【0021】画像入力手段200から2値画像記憶手段
207までは、第1の発明の実施例にある画像入力手段
100から2値画像記憶手段107までと同様の動作を
する。
The image input means 200 to the binary image storage means 207 operate in the same manner as the image input means 100 to the binary image storage means 107 in the embodiment of the first invention.

【0022】穴埋め手段208は、前記2値化成形画像
を参照し、例えば画素値1の領域の指定された大きさに
満たない穴領域に属する全ての画素に画素値1を与える
ことにより穴埋め画像を生成し、穴埋め画像記憶手段2
09に記憶する。
The filling means 208 refers to the binarized shaped image, and gives the pixel value 1 to all the pixels belonging to the hole area which is less than the specified size of the area having the pixel value 1, for example. And fill-in-the-blank image storage means 2
It is stored in 09.

【0023】小領域消去手段210は、前記穴埋め画像
を参照し、例えば指定された大きさに満たない画素値1
の領域に属する全ての画素に画素値0を与えることによ
り出力画像を生成し、小領域消去画像記憶手段211に
記憶する。図4の例では、穴埋め処理および小領域消去
処理による整形処理により、手の領域内にわずかに残っ
ていた非検出領域の画素が検出領域に属するものと判断
されている。
The small area erasing means 210 refers to the filled-in image and refers to, for example, a pixel value 1 which is less than a specified size.
An output image is generated by giving a pixel value of 0 to all the pixels belonging to the area, and is stored in the small area erased image storage means 211. In the example of FIG. 4, it is determined that the pixels in the non-detection region, which are slightly left in the hand region, belong to the detection region due to the shaping process by the hole filling process and the small region erasing process.

【0024】画像出力手段212は、小領域消去手段2
11に記憶されている小領域消去画像を参照し、出力画
像として出力する。
The image output means 212 is a small area erasing means 2.
The small area erased image stored in 11 is referred to and output as an output image.

【0025】上記実施例の穴埋め手段208では、画素
値1の領域の指定された大きさに満たない穴領域に属す
る全ての画素に画素値1を与えることにより穴埋め画像
を生成したが、予め画素数nを与えておき、画素値1の
領域をn画素だけ拡張して欠落部分を埋め、画素値1の
領域をn画素だけ縮小することにより欠落部分以外の輪
郭を元にもどすという方法に置き換えてもよい。
In the filling means 208 of the above embodiment, the filling image is generated by giving the pixel value 1 to all the pixels belonging to the hole area which is less than the designated size of the area having the pixel value 1. The number n is given, the area with a pixel value of 1 is expanded by n pixels to fill the missing part, and the area with a pixel value of 1 is reduced by n pixels to replace the contours other than the missing part with the original method. May be.

【0026】また、上記実施例の小領域消去手段210
では、指定された大きさに満たない画素値1の領域に属
する全ての画素に画素値0を与えることにより出力画像
を生成したが、予め画素数nを与えておき、画素値1の
領域をn画素だけ縮小して小領域を消去し、画素値1の
領域をn画素だけ拡張することにより小領域以外の輪郭
を元にもどすという方法に置き換えてもよい。
Further, the small area erasing means 210 of the above embodiment.
Then, the output image is generated by giving the pixel value 0 to all the pixels belonging to the area having the pixel value 1 which is less than the designated size. However, the pixel number n is given in advance and the area having the pixel value 1 is set. The method may be replaced with a method of reducing the size by n pixels to erase the small area, and expanding the area having a pixel value of 1 by n pixels to restore the contour other than the small area.

【0027】[0027]

【発明の効果】本発明の画像処理装置を適用すると、入
力された濃淡画像から、ノイズの影響を受けることな
く、従来の手法では復旧できない対象物領域の大きな欠
落部分を補うことが可能であり、また、対象物領域のく
びれ部分を欠落部分と区別して埋めないことが可能であ
り、安定して対象物領域を2値化して抽出できるという
効果がある。
When the image processing apparatus of the present invention is applied, it is possible to compensate for a large missing portion of the object area which cannot be restored by the conventional method from the input grayscale image without being affected by noise. Further, it is possible to distinguish the narrowed part of the object region from the missing part and not fill it, and it is possible to stably binarize and extract the object region.

【図面の簡単な説明】[Brief description of drawings]

【図1】第1の発明の画像処理装置の一実施例を示すブ
ロック図。
FIG. 1 is a block diagram showing an embodiment of an image processing apparatus of the first invention.

【図2】第2の発明の画像処理装置の一実施例を示すブ
ロック図。
FIG. 2 is a block diagram showing an embodiment of an image processing apparatus of the second invention.

【図3】従来の手法の処理の過程を示す説明図。FIG. 3 is an explanatory diagram showing a process of processing of a conventional method.

【図4】第1および第2の発明の処理の過程を示す説明
図。
FIG. 4 is an explanatory diagram showing the process steps of the first and second inventions.

【符号の説明】[Explanation of symbols]

100,200 画像入力手段 101,201 入力画像記憶手段 102,202 領域分割手段 103,203 領域分割画像記憶手段 104,204 不確定領域分割手段 105,205 不確定領域分割画像記憶手段 106,206 2値化手段 107,207 2値画像記憶手段 208 穴埋め手段 209 穴埋め画像記憶手段 210 小領域消去手段 211 小領域消去画像記憶手段 108,212 画像出力手段 100, 200 image input means 101, 201 input image storage means 102, 202 area dividing means 103, 203 area divided image storage means 104, 204 uncertain area dividing means 105, 205 uncertain area divided image storage means 106, 206 binary Conversion means 107, 207 binary image storage means 208 fill-in means 209 fill-in image storage means 210 small area erasing means 211 small area deleted image storage means 108, 212 image output means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】画像を入力する画像入力手段と、前記画像
入力手段により入力された画像を記憶する入力画像記憶
手段と、前記入力画像を検出領域と非検出領域と不確定
領域の3種類の領域に分割する領域分割手段と、前記領
域分割手段により生成された領域分割画像を記憶する領
域分割画像記憶手段と、前記領域分割画像を参照しなが
ら不確定領域に属する各画素を検出領域および非検出領
域に分割し、それぞれ前記領域分割画像の検出領域およ
び非検出領域と融合する不確定領域分割手段と、前記不
確定領域分割手段によって生成された不確定領域分割画
像を格納する不確定領域画像記憶手段と、前記不確定領
域分割画像を参照し、検出領域を1、非検出領域を0と
する2値画像を生成する2値化手段と、前記2値化手段
により生成された2値画像を記憶する2値画像記憶手段
とを具備し、入力画像から2値画像を生成する画像処理
装置。
1. An image input unit for inputting an image, an input image storage unit for storing the image input by the image input unit, and three types of the input image: a detection region, a non-detection region, and an uncertain region. Area dividing means for dividing into areas, area divided image storage means for storing the area divided image generated by the area dividing means, and reference to the area divided image, each pixel belonging to the uncertain area An uncertain region dividing unit that divides the region into detection regions and fuses the detected region and the non-detection region of the region divided image, and an uncertain region image that stores the uncertain region divided image generated by the uncertain region dividing unit. The storage unit, the binarizing unit that refers to the uncertain region divided image, generates a binary image in which the detection region is 1 and the non-detection region is 0, and the binarization unit. ; And a binary image storage means for storing a value image, the image processing apparatus for generating a binary image from the input image.
【請求項2】画像を入力する画像入力手段と、前記画像
入力手段により入力された画像を記憶する入力画像記憶
手段と、前記入力画像を検出領域と非検出領域と不確定
領域の3種類の領域に分割する領域分割手段と、前記領
域分割手段により生成された領域分割画像を記憶する領
域分割画像記憶手段と、前記領域分割画像を参照しなが
ら不確定領域に属する各画素を検出領域および非検出領
域に分割し、それぞれ前記領域分割画像の検出領域およ
び非検出領域と融合する不確定領域分割手段と、前記不
確定領域分割手段によって生成された不確定領域分割画
像を格納する不確定領域画像記憶手段と、前記不確定領
域分割画像を参照し、検出確定領域を1、非確定領域を
0とする2値画像を生成する2値化手段と、前記2値化
手段により生成された2値画像を記憶する2値画像記憶
手段と、前記2値画像の穴領域を画素値1で埋めた画像
を生成する穴埋め手段と、前記穴埋め手段により生成さ
れた穴埋め画像を記憶する穴埋め画像記憶手段と、前記
穴埋め画像のうち小領域を消去した画像を生成する小領
域消去手段と、前記小領域消去手段により生成された小
領域消去画像を記憶する小領域消去画像記憶手段と、前
記小領域消去画像を出力する画像出力手段とを具備し、
入力画像から2値画像を生成する画像処理装置。
2. An image input means for inputting an image, an input image storage means for storing the image input by the image input means, and three types of the input image: a detection area, a non-detection area and an indetermination area. Area dividing means for dividing into areas, area divided image storage means for storing the area divided image generated by the area dividing means, and reference to the area divided image, each pixel belonging to the uncertain area An uncertain region dividing unit that divides the region into detection regions and fuses the detected region and the non-detection region of the region divided image, and an uncertain region image that stores the uncertain region divided image generated by the uncertain region dividing unit. A storage unit, a binarization unit that refers to the uncertain region divided image, generates a binary image in which the detection-determined region is 1 and the undetermined region is 0, and the binarization unit. Binary image storage means for storing the binary image, a hole filling means for generating an image in which the hole area of the binary image is filled with a pixel value of 1, and a hole filling image for storing the hole filled image generated by the hole filling means. Storage means, small area erasing means for generating an image in which a small area of the filled-in image is erased, small area erased image storage means for storing the small area erased image generated by the small area erasing means, and the small area An image output means for outputting a region-erased image,
An image processing apparatus that generates a binary image from an input image.
JP6286786A 1994-11-21 1994-11-21 Image processing device Expired - Fee Related JP2940419B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6286786A JP2940419B2 (en) 1994-11-21 1994-11-21 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6286786A JP2940419B2 (en) 1994-11-21 1994-11-21 Image processing device

Publications (2)

Publication Number Publication Date
JPH08147462A true JPH08147462A (en) 1996-06-07
JP2940419B2 JP2940419B2 (en) 1999-08-25

Family

ID=17709034

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6286786A Expired - Fee Related JP2940419B2 (en) 1994-11-21 1994-11-21 Image processing device

Country Status (1)

Country Link
JP (1) JP2940419B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9117290B2 (en) 2012-07-20 2015-08-25 Samsung Electronics Co., Ltd. Apparatus and method for filling hole area of image

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04114560A (en) * 1990-09-04 1992-04-15 Sharp Corp Automatic document input device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04114560A (en) * 1990-09-04 1992-04-15 Sharp Corp Automatic document input device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9117290B2 (en) 2012-07-20 2015-08-25 Samsung Electronics Co., Ltd. Apparatus and method for filling hole area of image

Also Published As

Publication number Publication date
JP2940419B2 (en) 1999-08-25

Similar Documents

Publication Publication Date Title
US6798906B1 (en) Image processing apparatus and method including line segment data extraction
EP0431958B1 (en) Identification and segmentation of finely textured and solid regions of binary images
JPH0725064A (en) Picture forming equipment of electrophotographic printer
JP2940419B2 (en) Image processing device
JPH03126181A (en) Area dividing method for document image
JPH0962763A (en) Bar code detection method
JP2993007B2 (en) Image area identification device
JP2653386B2 (en) Drawing processing equipment
JP3830269B2 (en) Image correction processing method
JP2853141B2 (en) Image area identification device
JP2853140B2 (en) Image area identification device
JPH09231376A (en) Number plate detecting system
JP2800199B2 (en) Image area identification device
JPH0512441A (en) Edge image generator
JP2003189090A (en) Image processing apparatus and method, image processing program and storage medium
JP2824991B2 (en) Image identification method
JPH11344319A (en) Pattern inspection device, method and system
JPH09167228A (en) Method and device for transformation, method and device for reshaping picture using them and system using them
JP3157860B2 (en) How to extract figure area of manuscript
JPH09147049A (en) Number plate position detector
JP3666903B2 (en) Image processing method and apparatus
JPS62108381A (en) Density histogram detecting system
JPH04289981A (en) Closed area detecting method of image
JPH11345333A (en) Labeling processing system and method therefor
JP2647911B2 (en) Character / graphic area extraction method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990518

LAPS Cancellation because of no payment of annual fees