JPS59117862A - Binary-coding method of picture data - Google Patents

Binary-coding method of picture data

Info

Publication number
JPS59117862A
JPS59117862A JP57230192A JP23019282A JPS59117862A JP S59117862 A JPS59117862 A JP S59117862A JP 57230192 A JP57230192 A JP 57230192A JP 23019282 A JP23019282 A JP 23019282A JP S59117862 A JPS59117862 A JP S59117862A
Authority
JP
Japan
Prior art keywords
line
image data
threshold value
picture data
small
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
Application number
JP57230192A
Other languages
Japanese (ja)
Inventor
Haruhiko Yokoyama
晴彦 横山
Yoshio Niwa
丹羽 美夫
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP57230192A priority Critical patent/JPS59117862A/en
Publication of JPS59117862A publication Critical patent/JPS59117862A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To obtain a binary-coding picture data without shift of position to a picture data by splitting each horizontal line of the pictue data into (n), and processing an average value of the picture data on the split lines as threshold values of the middle position of the small lines. CONSTITUTION:Each horizontal line of the picture data is split into n-set of same length of blocks to form (n) small lines. The middle point and the average value of the picture data are obtained from each small line and the average value is taken as the threshold value at the middle position of the samll line. The threshold value of the middle point of each small line is interpolated linearly as to other points on the lines and taken as the threshold values 5 on each point of the lines. The binary-coding picture data without position shift from the original picture is obtained by comparing the picture data 4 on each point of lines with the threshold value 5.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、画像データの水平方向1ラインごとに、浮動
しきい値を決定して2値化を行なう、画像データの2値
化方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a method for binarizing image data, in which a floating threshold value is determined and binarized for each horizontal line of image data. be.

従来例の構成とその問題点 従来例における、画像の2値化方法を以下に述べる。画
像データを配列(d+j)1ユ2.、□≦、≦8で表わ
す。
The structure of the conventional example and its problems The image binarization method in the conventional example will be described below. Arrange image data (d+j)1U2. , □≦, ≦8.

A、BはそれぞれX座標方向、X座標方向の画像サイズ
である。しきい値の初期値t。とO<k<1なる係&に
とを与えて、次の漸化式(1)と(2)によシ、各点に
おけるしきい値(tij)□ユ、9.□6,9を算出す
る。
A and B are the image sizes in the X coordinate direction and the X coordinate direction, respectively. Initial threshold value t. By giving the relation & to O<k<1, and using the following recurrence formulas (1) and (2), the threshold value (tij) at each point is 9. □Calculate 6 and 9.

tl、 j= to(izj乙B)     −(1)
ti、j=Ct−k)t、−□1.十に一屯、j(2イ
i4A 、1乙j4B )・・・(2)画像データ(d
ti)としきい値(tij)から、(3)式により、2
値画像データ(b+j)□≦6.□ユ、ユ8を求める。
tl, j= to(izj ot B) −(1)
ti,j=Ct-k)t,-□1. 10 to 1 ton, j (2i i4A, 1 otsu j4B)...(2) Image data (d
ti) and the threshold value (tij), by equation (3), 2
Value image data (b+j)□≦6. □Yu, ask for Yu8.

ちなみに、水平方向の画像サイズBlr40とし、しき
い値の初期値t。’ilo、係数kを0,2とおいて、
各点のしきい値を求めた例を第1図に示した。第1図の
(1)は水平な1ライン上の画像データ、第1図の(2
)は上記の方法で求めた同じライン上のしきい値である
。第2図は第1図の画像データとしきい値から得られた
2値画像データをあられす。
Incidentally, the horizontal image size Blr is assumed to be 40, and the initial value of the threshold value is t. 'ilo, set the coefficient k to 0, 2,
An example of determining the threshold value for each point is shown in FIG. (1) in Figure 1 is image data on one horizontal line, (2) in Figure 1 is image data on one horizontal line.
) is the threshold value on the same line obtained by the above method. FIG. 2 shows the image data of FIG. 1 and binary image data obtained from the threshold value.

この方法の欠点は、漸化式を用いているため、過去のデ
ータ會用いて、各点のしきい値を計算するので、しきい
値が画像データの変化よシも遅れ、2値画像データかも
との画像データよシ、左寄シになる傾向があることであ
る。
The disadvantage of this method is that it uses a recurrence formula, so the threshold value for each point is calculated using past data, so the threshold value lags behind changes in image data, and binary image data The main problem is that image data tends to shift to the left.

発明の目的 本発明は、上記のような欠点に鑑み、画像データ全2値
化して2値画像データを作る際に、後者が前者に対して
位置ズレのないような、画像の2値化方法全提供するこ
とを目的とするものである。
Purpose of the Invention In view of the above-mentioned drawbacks, the present invention provides an image binarization method in which the latter is not misaligned with respect to the former when the image data is fully binarized to create binary image data. The purpose is to provide all the necessary information.

発明の構成 上記目的全達成するために、本発明は、画像データの水
平方向の各ライン′t−n個の小ラインに分割し、分割
されたすべての小ラインについて、小ライン上の画像デ
ータの平均をとシ、これをその小ラインの中点位置にお
けるしきい値とし、ライン上の地の点については、各小
ラインの中点のしきい値を線型補間して、ライン上各点
でのしきい値とし、ライン各点で、画像データ値と、上
記しきい値とを比較することによって、2値画、像デー
タを作成するようにしたものであ)、これによシ、もと
の画像データに対して位置ズレのないような2値画像デ
ータを得ることができる。
Structure of the Invention In order to achieve all of the above objects, the present invention divides each line of image data in the horizontal direction into t-n small lines, and for all the divided small lines, the image data on the small line is , and use this as the threshold value at the midpoint of the small line.For ground points on the line, the threshold value at the midpoint of each small line is linearly interpolated, and each point on the line is By comparing the image data value and the above threshold value at each point on the line, a binary image or image data is created. It is possible to obtain binary image data with no positional deviation with respect to the original image data.

実施例の説明 以下本発明の一実施例における画像の2値化方法を図面
に基づいて説明する。画像データを配列(dt3)□よ
ゆ、□ユ、イ、で表わす。A、BはそれぞれX座標方向
、y座標方向の画像サイズである。第3図は画像をあら
れしたものである。第3図の(3)のような水平なlラ
インに注目して、以下の処理を行なう。
DESCRIPTION OF THE EMBODIMENTS An image binarization method according to an embodiment of the present invention will be described below with reference to the drawings. The image data is represented by an array (dt3) □YoYU, □U, I. A and B are image sizes in the X and Y coordinate directions, respectively. Figure 3 is a rough image. Focusing on the horizontal l line as shown in (3) in FIG. 3, the following processing is performed.

第4図のように、lラインを、n個の同じ長さのブロッ
クに分割し、n個の小ラインを形成する。
As shown in FIG. 4, the l line is divided into n blocks of the same length to form n small lines.

各小ラインについて、その中点位置と画像データの平均
e[め、それぞれC,meanとし、Cにおけるしきい
値をmeanとする。以上によってライン上のn個の点
について、しきい値が定められるが、これらを線型補間
1することによシ、残シの点におけるしきい値を求める
For each small line, let the midpoint position and the average e[me of the image data be C and mean, respectively, and the threshold value at C be mean. Threshold values are determined for the n points on the line as described above, and by performing linear interpolation 1 on these, the threshold values at the remaining points are determined.

線型補間の方法は次の通りである。隣り合ったブロック
の中点位置のxl標をそれぞれxl、x2、また中点位
置x1、x2におけるしきい値會t1、t2としたとき
、この2点の間にある任意の点(この点のxi標ff1
xとする)におけるしきい値tを(4)式によって与え
る。
The method of linear interpolation is as follows. Let the xl marks of the midpoint positions of adjacent blocks be xl and x2, respectively, and the threshold values t1 and t2 at the midpoint positions x1 and x2, then any arbitrary point between these two points (this point ximarkff1
x) is given by equation (4).

を二(t2−tx)(x−Xi)/(X2−xx)+t
t      ・−(4)最も左側の小ラインlの中点
よシも左側にある点と、最も右側の小ラインnの中点よ
シも右側にある点については、線型補間を行なわず、そ
れぞれの属する小ラインの中点位置におけるしきい値を
もって、その点のしきい値とする。点(i、 Dにおけ
るしきい値’(rjijとし、(5)式によシ、2値画
データ(bt4 )1ユi<A 、□23.Jを求める
((5)式は(3)式と同一である)。
2(t2-tx)(x-Xi)/(X2-xx)+t
t・-(4) Linear interpolation is not performed for the points that are to the left of the midpoint of the leftmost minor line l, and the points that are to the right of the midpoint of the rightmost minor line n, respectively. Let the threshold value at the midpoint position of the small line to which the point belongs be the threshold value for that point. Let the threshold value at point (i, D be rjij, and according to equation (5), find binary image data (bt4) 1 ui<A, □23.J (formula (5) is (3) ).

ちなみに、小ラインの個&n’t4とし、各小ラインは
1番目が1〜10.2査目は11〜20.3番目は21
〜30.4査目は31〜400点からなるとして、しき
い値を求めた例を第5図に示した。第5図の(4)は水
平な1ライン上の画像データ、第5図のく5ンは上記の
方法によって求めた同じライン上のしきい値である。第
6図は第5図の画像データとしきい値から得られた2値
画像データをあられす。
By the way, the number of small lines is &n't4, and for each small line, the first line is 1 to 10, the second line is 11 to 20, and the third line is 21.
Figure 5 shows an example of determining the threshold value assuming that the 4th test consists of 31 to 400 points. (4) in FIG. 5 is image data on one horizontal line, and numeral 5 in FIG. 5 is a threshold value on the same line obtained by the above method. FIG. 6 shows binary image data obtained from the image data of FIG. 5 and the threshold value.

以上に述べた実施例の方法を実現するアルゴリズムのフ
ローチャートが第7図である。ここで、dgは点(i 
、 Dにおける画像データ、tIjは点(i、Dにおけ
るしきい値、1)ijは点(i、 Dにおける2値画像
データ、mは1つの小ライン上のデータ数、lは小ライ
ンのカクント数meanは小ラインの画像データ平均、
Cは小ラインの中点、A、Bは水平、垂直方向の画像サ
イズである。
FIG. 7 is a flowchart of an algorithm for realizing the method of the embodiment described above. Here, dg is the point (i
, image data at D, tIj is point (i, threshold value at D, 1) ij is point (i, binary image data at D, m is the number of data on one small line, l is the kakuto of the small line) The number mean is the average of image data of small lines,
C is the midpoint of the small line, and A and B are the image sizes in the horizontal and vertical directions.

発明の効果 以上のように、本発明によれば、もとの画像データに対
して位置ズレのないような2仏画像デークを得ることが
できる。
Effects of the Invention As described above, according to the present invention, it is possible to obtain a two-Buddhist image data without any positional deviation with respect to the original image data.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、画像データと従来例の方法によって求めたし
きい値とを示す図、第2図は第1図のデータによる2値
画像データを示す図、第3図は画像のサイズを示す図、
第4図は画像データから抜き出した1ラインを示す図、
第5図は画像データと、実施例の方法によって求めたし
きい値を示す図、第6図は第5図のデータによる2値画
像データを示す図、第7図は実施例のアルゴリズムのフ
ローチャートである。 (4)・・・水平なlライン上の画像データ、(5)・
・・同じライン上のしきい値 代理人   森  木  義  弘 第1図 第3図 第4図 第5図 第7図(及2 第7図(b)
Fig. 1 is a diagram showing image data and threshold values determined by the conventional method, Fig. 2 is a diagram showing binary image data based on the data in Fig. 1, and Fig. 3 is a diagram showing the size of the image. figure,
Figure 4 is a diagram showing one line extracted from image data.
Fig. 5 is a diagram showing image data and threshold values determined by the method of the embodiment, Fig. 6 is a diagram showing binary image data based on the data of Fig. 5, and Fig. 7 is a flowchart of the algorithm of the embodiment. It is. (4)...Image data on the horizontal l line, (5)...
... Threshold agent on the same line Yoshihiro Moriki Figure 1 Figure 3 Figure 4 Figure 5 Figure 7 (and 2 Figure 7 (b)

Claims (1)

【特許請求の範囲】[Claims] 1、 画像データの水平方向の各ラインをn個の小ライ
ンに分割し、分割されたすべての小ラインについて、小
ライン上の画像データの平均をとシ、これをその小ライ
ンの中点位置におけるしきい値とし、ライン上の他の点
については、各小ラインの中点のしきい値を線型補間し
て、ライン上各点でのしきい値とし、ライン各点で、画
像データ値と上記しきい値とを比較することによって、
2値画像データを作成する画像データの2値化方法。
1. Divide each horizontal line of image data into n small lines, calculate the average of the image data on the small lines for all the divided small lines, and calculate this as the midpoint position of the small line. For other points on the line, the threshold value at the midpoint of each small line is linearly interpolated, and the threshold value at each point on the line is set as the threshold value at each point on the line. By comparing with the above threshold value,
A method for binarizing image data to create binary image data.
JP57230192A 1982-12-25 1982-12-25 Binary-coding method of picture data Pending JPS59117862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57230192A JPS59117862A (en) 1982-12-25 1982-12-25 Binary-coding method of picture data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57230192A JPS59117862A (en) 1982-12-25 1982-12-25 Binary-coding method of picture data

Publications (1)

Publication Number Publication Date
JPS59117862A true JPS59117862A (en) 1984-07-07

Family

ID=16904024

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57230192A Pending JPS59117862A (en) 1982-12-25 1982-12-25 Binary-coding method of picture data

Country Status (1)

Country Link
JP (1) JPS59117862A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63124677A (en) * 1986-11-14 1988-05-28 Oki Electric Ind Co Ltd Image signal binarization circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63124677A (en) * 1986-11-14 1988-05-28 Oki Electric Ind Co Ltd Image signal binarization circuit
JPH0636554B2 (en) * 1986-11-14 1994-05-11 沖電気工業株式会社 Image signal binarization circuit

Similar Documents

Publication Publication Date Title
Smith Bilinear interpolation of digital images
US20060244861A1 (en) Method for detecting bisection pattern in deinterlacing
CN103455991A (en) Multi-focus image fusion method
CN108596170B (en) Self-adaptive non-maximum-inhibition target detection method
JPH10164370A (en) Method and device for interpolating gradation of image, image filtering method and image filter
JPS59117862A (en) Binary-coding method of picture data
CN105469088A (en) Object prediction area optimization method applicable to target identification
CN112464901A (en) Face feature extraction method based on gradient face local high-order main direction mode
Wang et al. An influence-knot set based new local refinement algorithm for T-spline surfaces
CN109146886A (en) A kind of RGBD image, semantic segmentation optimization method based on depth density
Ouyang et al. Algorithms for cartogram animation
Cuisenaire et al. Fast Euclidean morphological operators using local distance transformation by propagation, and applications
Lohani et al. Extraction of tidal channel networks from aerial photographs alone and combined with laser altimetry
JPH03126181A (en) Area dividing method for document image
JPH04293177A (en) Image processing method
Nagabhushan et al. Cognition of free space for planning the shortest path: A framed free space approach
JPH02131690A (en) Movement compensation circuit
Bespamyatnikh Enumerating triangulations of convex polytopes
KR20010025045A (en) Video signal processing
KR940006053A (en) Thin line image shaping method
Peng Good characterizations and linear time recognition for 2-probe block graphs
JPS58155474A (en) Drawing method of parallel curve
Chabbi et al. A combined use of regions and segments to construct facets
JPH0439950B2 (en)
JPH0691614B2 (en) Image signal binarization device