JPH0636019A - Method for reducing and displaying image data - Google Patents

Method for reducing and displaying image data

Info

Publication number
JPH0636019A
JPH0636019A JP4192259A JP19225992A JPH0636019A JP H0636019 A JPH0636019 A JP H0636019A JP 4192259 A JP4192259 A JP 4192259A JP 19225992 A JP19225992 A JP 19225992A JP H0636019 A JPH0636019 A JP H0636019A
Authority
JP
Japan
Prior art keywords
image data
reduced
ruled
ruled line
line portion
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
JP4192259A
Other languages
Japanese (ja)
Other versions
JP2784120B2 (en
Inventor
Takehiko Uchiyama
岳彦 内山
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.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric 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 Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP4192259A priority Critical patent/JP2784120B2/en
Publication of JPH0636019A publication Critical patent/JPH0636019A/en
Application granted granted Critical
Publication of JP2784120B2 publication Critical patent/JP2784120B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Character Input (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To prevent a ruled-line display from being absent when image data are reduced and displayed by discriminating a ruled-line part and other parts according to the frequency distributions of vertical and horizontal illuminating pixels of the image data and reducing the image data so that the ruled-line part is left. CONSTITUTION:The numbers of the vertical and horizontal illuminating pixels of the image data, which are stored in the memory of an arithmetic part 2 and not reduced yet, are detected to extract the ruled-line part. In this case, the ruled-line part is extracted by setting flags for the numbers of rows and columns showing frequency distributions exceeding a threshold value as the reference value for discriminating between the ruled-line part and other parts. Then, the ruled-line part which is discriminated from other data and has its flag set is processed. In this case, illuminating pixels are preferentially extracted nearby the columns and rows whose flags are set by this image data reducing method without fail, so the absence of the ruled-line part on a reduction screen can securely be prevented.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、イメージデータの縮小
表示方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of displaying reduced image data.

【0002】[0002]

【従来の技術】一般に、ワープロ等で作成する罫線のデ
ータは属性として認識されるので、そのデータファイル
を縮小させる場合、その属性に基づいて罫線処理を行う
ことができる。
2. Description of the Related Art Generally, since ruled line data created by a word processor or the like is recognized as an attribute, when reducing the data file, the ruled line processing can be performed based on the attribute.

【0003】一方、イメージスキャナ等によって読取ら
れたビットイメージデータは、罫線に関するデータを他
のデータと区別することができない。そのため、イメー
ジスキャナ等から入力されたイメージデータを縮小して
出力する場合には、罫線に関しても、他のデータと同様
にその縮小率に応じて画素を間引く方法が取られてい
る。
On the other hand, in the bit image data read by an image scanner or the like, the data regarding ruled lines cannot be distinguished from other data. Therefore, when reducing and outputting image data input from an image scanner or the like, a method of thinning out pixels according to the reduction rate is also used for ruled lines, like other data.

【0004】例えば、400dpiの画像を200dp
iにする場合、図10のaに示すように、2画素を1画
素として表示する。その時、図形や文字等に関するデー
タは、ある程度の画素が間引かれ、縮小されても認識す
ることができる。
For example, an image of 400 dpi is converted to 200 dpi
In the case of i, two pixels are displayed as one pixel as shown in a of FIG. At that time, data relating to figures and characters can be recognized even if some pixels are thinned and reduced.

【0005】[0005]

【発明が解決しようとする課題】しかし、図10のbに
示すように、罫線に関するデータ(図中の黒ドット)が
間引かれると、表等から罫線表示が抜けてしまうことが
あり、表としての機能を著しく低下させることがあっ
た。
However, as shown in FIG. 10B, when data related to ruled lines (black dots in the figure) are thinned out, the ruled line display may be omitted from the table. There was a case where the function as was significantly reduced.

【0006】本発明は、これらの点に鑑みてなされたも
のであり、イメージデータの縮小表示の際に罫線表示の
抜けることのないイメージデータの縮小表示方法を提供
することを目的とする。
The present invention has been made in view of these points, and an object thereof is to provide a reduced display method of image data in which ruled line display is not missed when the image data is reduced and displayed.

【0007】[0007]

【課題を解決するための手段】前記目的を達成するため
に、本発明の請求項1に記載のイメージデータの縮小表
示方法は、縮小率に応じて画素を間引くことによって行
うイメージデータの縮小表示方法において、イメージデ
ータの垂直・水平両方向における点灯画素の度数分布に
基づいて、罫線部とその他の部分とを判別し、前記罫線
部を残すようにしてイメージデータを縮小することを特
徴とする。
In order to achieve the above object, a reduced display method of image data according to claim 1 of the present invention is a reduced display method of image data which is performed by thinning out pixels according to a reduction ratio. The method is characterized in that the ruled line portion and other portions are discriminated based on the frequency distribution of the lighted pixels in both the vertical and horizontal directions of the image data, and the image data is reduced by leaving the ruled line portion.

【0008】また、請求項2に記載のイメージデータの
縮小表示方法は、請求項1に記載のイメージデータの縮
小表示方法において、イメージデータを1/k縮小する
時に、k×kドット内に前記罫線部がある場合には、前
記点灯画素を残す画素として優先抽出し、k×kドット
内に前記罫線部がない場合には、任意の画素を残す画素
として抽出することを特徴とする。
The image data reduction display method according to a second aspect is the image data reduction display method according to the first aspect, wherein when the image data is reduced by 1 / k, the image data is reduced within k × k dots. If there is a ruled line portion, priority is extracted as a pixel to leave the lighting pixel, and if there is no ruled line portion in k × k dots, it is extracted as a pixel to leave an arbitrary pixel.

【0009】また、請求項3に記載のイメージデータの
縮小表示方法は、請求項1に記載のイメージデータの縮
小表示方法において、イメージデータを1/k縮小する
時に、まず、前記罫線部の点灯画素周辺のk×kドット
を全部点灯させ、その後に1/k縮小することを特徴と
する。
According to a third aspect of the image data reduction display method of the present invention, in the image data reduction display method of the first aspect, when the image data is reduced by 1 / k, first, the ruled line portion is turned on. It is characterized in that all k × k dots around the pixel are turned on and then 1 / k is reduced.

【0010】また、請求項4に記載のイメージデータの
縮小表示方法は、請求項1に記載のイメージデータの縮
小表示方法において、イメージデータを1/k縮小する
時に、まず、イメージデータを1/k縮小し、その後に
前記罫線部の1/K座標値に罫線表示することを特徴と
する。
According to a fourth aspect of the present invention, there is provided a reduced image data display method according to the first aspect, wherein when the image data is reduced by 1 / k, the image data is reduced to 1 / k. It is characterized in that it is reduced by k, and then a ruled line is displayed at the 1 / K coordinate value of the ruled line portion.

【0011】[0011]

【作用】本発明のイメージデータの縮小表示方法によれ
ば、罫線抽出の手段を有することで、他のデータと差別
化した罫線部に関するデータに基づいて縮小表示に単独
の罫線処理を行うことができるので、縮小表示に罫線が
抜けることがなく、表としての機能を必ず果たすことが
できる。
According to the reduced display method of image data of the present invention, by having the ruled line extraction means, it is possible to perform a single ruled line processing for reduced display based on the data regarding the ruled line portion which is differentiated from other data. Since it is possible, the ruled lines are not missing in the reduced display, and the function as a table can be fulfilled without fail.

【0012】[0012]

【実施例】以下、本発明の実施例を図1から図9につい
て説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will be described below with reference to FIGS.

【0013】図1は本発明方法を実施する手段の概要を
示している。
FIG. 1 outlines the means for carrying out the method of the invention.

【0014】本発明においては、図1に示すように、イ
メージスキャナ1により読取ったイメージデータ、また
はファクシミリ等によって電送されてきたイメージデー
タを縮小表示するものであり、当該イメージデータは、
コンピュータ等の演算部2のメモリ内に一旦記憶され
る。その後、演算部2において本発明方法に従って縮小
された縮小データが、CRT等のディスプレイ装置3お
よび/またはプリンタ4により表示される。
In the present invention, as shown in FIG. 1, the image data read by the image scanner 1 or the image data transmitted by a facsimile or the like is displayed in a reduced size.
It is temporarily stored in the memory of the computing unit 2 such as a computer. After that, the reduced data reduced in accordance with the method of the present invention in the calculation unit 2 is displayed by the display device 3 such as a CRT and / or the printer 4.

【0015】次に、演算部2において実行される本発明
方法を説明する。
Next, the method of the present invention executed in the arithmetic unit 2 will be described.

【0016】本実施例においては、まず、演算部2内の
メモリに記憶されている図2に示すような縮小前のイメ
ージデータに対して、表示画面の垂直・水平両方向にお
いて点灯している画素数を検出し、罫線部分の抽出を行
う。なお、表示画面の垂直方向Lの大きさは1≦L≦L
n、水平方向Mの大きさは1≦M≦Mnとする。
In the present embodiment, first, for the image data before reduction as shown in FIG. 2 stored in the memory in the arithmetic unit 2, the pixels which are turned on in both the vertical and horizontal directions of the display screen. The number is detected and the ruled line portion is extracted. The size of the display screen in the vertical direction L is 1 ≦ L ≦ L
n, and the size in the horizontal direction M is 1 ≦ M ≦ Mn.

【0017】図3は、前記罫線部分の抽出方法を示すフ
ローチャートであり、まず、ステップST11において、
イメージデータをメモリー上に展開する。
FIG. 3 is a flowchart showing a method of extracting the ruled line portion. First, in step ST11,
Expand image data on memory.

【0018】次に、ステップST12において、まず、水
平方向1行目の点灯画素数を検出するためにLに1を代
入(L=1)する。
Next, at step ST12, first, 1 is substituted for L (L = 1) in order to detect the number of lit pixels in the first row in the horizontal direction.

【0019】ステップST13において、水平方向(1≦
M≦Mn)の点灯画素の度数を検出し、その値を指定行
にセーブする(S1)。例えば、テーブル中に各行毎に
度数をメモリするとよい。
In step ST13, the horizontal direction (1≤
The frequency of the lighted pixel of M ≦ Mn) is detected, and the value is saved in the designated line (S1). For example, the frequency may be stored in the table for each row.

【0020】ステップST14において、次の行(L=L
+1)を選択し、ステップST15において、選択行Lが
Lnを越したか否か(L>Ln?)を判断し、その答え
がYESになるまで、ステップST13からの手順を繰り
返す。
In step ST14, the next line (L = L
+1) is selected, and in step ST15, it is determined whether the selected row L exceeds Ln (L> Ln?), And the procedure from step ST13 is repeated until the answer is YES.

【0021】最終行の度数の検出が終り、ステップST
15の答えがYESになったら、ステップST16におい
て、まず、垂直方向1列目の点灯画素数を検出するため
にMに1を代入(M=1)する。
After the detection of the frequency of the last line is completed, step ST
If the answer to step 15 is YES, then in step ST16, first, 1 is substituted for M (M = 1) in order to detect the number of lit pixels in the first column in the vertical direction.

【0022】ステップST17において、水平方向と同様
にして垂直方向(1≦L≦Ln)の度数を検出し、その
値を指定列にセーブする(S2)。
In step ST17, the frequency in the vertical direction (1.ltoreq.L.ltoreq.Ln) is detected in the same manner as in the horizontal direction, and the value is saved in the designated column (S2).

【0023】ステップST18において、次の列(M=M
+1)を選択し、ステップST19において、選択列Mが
Mnを越したか否か(M>Mn?)を判断し、その答え
がYESになるまで、ステップST17からの手順を繰り
返す。
In step ST18, the next column (M = M
+1) is selected, and in step ST19, it is determined whether the selected column M exceeds Mn (M> Mn?), And the procedure from step ST17 is repeated until the answer is YES.

【0024】その後、最終列の度数の検出が終り、ステ
ップST19の答えがYESになったら、ステップST20
において、各行、各列にセーブされた値(S1、S2)
からしきい値を求め、罫線部分を検出する。前記しきい
値を越える度数分布を示した行および列ナンバーにフラ
グを立て、ステップST20において罫線部の抽出を終了
する。
After that, when the detection of the frequency of the last row is finished and the answer in step ST19 is YES, step ST20
In, the values saved in each row and each column (S1, S2)
The threshold value is obtained from this and the ruled line portion is detected. The row and column numbers showing the frequency distribution exceeding the threshold value are flagged, and the extraction of the ruled line portion is completed in step ST20.

【0025】前記しきい値の決定方法について、図4に
よって詳述する。
The method of determining the threshold will be described in detail with reference to FIG.

【0026】図4のaは一般的な表の表示画面のイメー
ジデータの1例を示してあり、図4のbは前記表示画面
の垂直方向の点灯画素数を示す度数分布を示している。
前記表示画面は所定大の画面領域枠(図示せず)内に表
されている。
FIG. 4A shows an example of image data of a display screen of a general table, and FIG. 4B shows a frequency distribution showing the number of vertically lit pixels of the display screen.
The display screen is displayed in a screen area frame (not shown) of a predetermined size.

【0027】表を表示した前記表示画面においては、罫
線部の点灯画素数と罫線部以外の部分の点灯画素数には
大きな差がある。図4のbに示す画面領域枠内の表の垂
直方向の度数分布をみれば、図中Aで示した罫線部分の
点灯画素数は、その度数分布(図中Aa)では85%を
示しているのに対して、図中Bで示した「####」マ
ークのような文字情報の過密部分でさえ、その点灯画素
数の度数分布(図中Ba)は60%を示すに過ぎない。
このように、罫線以外の部分の点灯画素数は、最高値で
も罫線部分の点灯画素数の70%程度となる。よって、
イメージデータの点灯画素数を検出し、全点灯画素数の
最高値に対する70%程度の値をしきい値とするとよ
い。なお、このしきい値の設定条件は変更してよいこと
は勿論である。また、しきい値を予め設定しておいても
よい。
On the display screen displaying the table, there is a large difference between the number of lit pixels in the ruled line part and the number of lit pixels in the part other than the ruled line part. Looking at the vertical frequency distribution of the table in the screen area frame shown in FIG. 4B, the number of lit pixels in the ruled line portion shown by A in the figure is 85% in the frequency distribution (Aa in the figure). On the other hand, the frequency distribution of the number of lit pixels (Ba in the figure) shows only 60% even in the dense portion of the character information such as the "####" mark shown in B in the figure. .
As described above, the number of lit pixels other than the ruled line is about 70% of the number of lit pixels in the ruled line even at the maximum value. Therefore,
It is advisable to detect the number of lit pixels of the image data and set the threshold value to a value of about 70% of the maximum value of all lit pixels. Of course, this threshold setting condition may be changed. Further, the threshold value may be set in advance.

【0028】このように、前記しきい値は、罫線部分と
罫線以外の部分とを差別化する基準値となる。
As described above, the threshold value becomes a reference value for differentiating between the ruled line part and the part other than the ruled line.

【0029】次に、他のデータと差別化され、フラグの
立った罫線部の処理の方法を説明する。
Next, a method of processing a ruled line portion having a flag, which is differentiated from other data, will be described.

【0030】図5はその罫線縮小処理の1実施例を示す
フローチャートである。
FIG. 5 is a flow chart showing an embodiment of the ruled line reduction processing.

【0031】まず、ステップST31において、イメージ
データの1/k縮小を要求する。
First, in step ST31, 1 / k reduction of image data is requested.

【0032】つぎに、ステップST32において、垂直方
向の縮小を行う起点を指示するために、Mに1を代入
(M=1)する。水平方向においても同じように、ステ
ップST33において、Lに1を代入(L=1)する。
Next, in step ST32, 1 is substituted for M (M = 1) in order to indicate the starting point for vertical reduction. Similarly in the horizontal direction, 1 is substituted for L (L = 1) in step ST33.

【0033】ステップST34において、前記の指定した
行L、および列Mを起点とするk×kドット部の領域内
において、前述した垂直方向および水平方向に関する罫
線を表示するフラグの有無を調べる。前記フラグが無い
場合は、ステップST35-1において、任意か、あるいは
予め指定された相対座標の1ドットが抽出される。一
方、前記フラグがあった場合は、ステップST35-2にお
いて、点灯している座標を優先して抽出し、点灯処理を
する。
In step ST34, the presence or absence of the flag for displaying the above-mentioned ruled lines in the vertical and horizontal directions is checked in the k × k dot area starting from the designated row L and column M. If there is no flag, in step ST35-1, one dot with an arbitrary or prespecified relative coordinate is extracted. On the other hand, if there is the flag, in step ST35-2, the lighting coordinates are preferentially extracted and lighting processing is performed.

【0034】例えば、400dpiで入力されたイメー
ジデータを100dpiに縮小する場合を、図6により
説明する。400dpiの状態を示す図6のaにおい
て、縮小前のイメージデータで罫線部と確定されフラグ
の立った行Lおよび列Mは白抜き矢印でそれぞれ示し、
点灯画素は黒丸で示してある。
For example, a case in which image data input at 400 dpi is reduced to 100 dpi will be described with reference to FIG. In FIG. 6A showing the state of 400 dpi, the row L and the column M, which are confirmed as ruled lines in the image data before reduction and which are flagged, are indicated by white arrows, respectively.
Illuminated pixels are indicated by black circles.

【0035】1/4の縮小を行う場合、面積でいえば1
6画素を1画素に、垂直、水平の各方向でいえば4列お
よび4行中から1列および1行に縮小することになる。
When the reduction is ¼, the area is 1
6 pixels are reduced to 1 pixel, and in each of the vertical and horizontal directions, it is reduced from 4 columns and 4 rows to 1 column and 1 row.

【0036】図6のaにおいて、枠A内の16ドット中
にはフラグの立った列はあるが、優先抽出する点灯画素
はないので任意の座標を抽出する。この結果、図6のb
の縮小画面では消灯画素となる。
In FIG. 6A, there is a flagged column in 16 dots in frame A, but there is no lighting pixel to be preferentially extracted, so arbitrary coordinates are extracted. As a result, b in FIG.
In the reduced screen of, the pixel is a light-off pixel.

【0037】これに対し、図6のaにおいて、枠B内の
16ドット中にはフラグの立った行Lおよび列Mがあ
り、点灯画素もある。よって、図6のbの縮小画面では
点灯画素となる。
On the other hand, in FIG. 6A, in 16 dots in the frame B, there are a row L and a column M in which a flag is set, and there are also lit pixels. Therefore, the reduced screen of FIG. 6b is a lit pixel.

【0038】このようにして図6のaのパターンを1/
4縮小した場合、図6のbに示すパターンになる。
In this way, the pattern of FIG.
When reduced by 4, the pattern becomes as shown in b of FIG.

【0039】次に、図5のステップST36において、次
の指定行Lの数値にL+kを代入し、ステップST37に
おいて次の指定行Lの値が最高値Lnを越えたか否かを
判断し、その答えがNOの場合はステップST34に戻っ
て、1列の縮小処理が終了するまで手順を繰り返す。
Next, in step ST36 of FIG. 5, L + k is substituted for the numerical value of the next designated row L, and it is determined in step ST37 whether or not the value of the next designated row L exceeds the maximum value Ln. If the answer is no, the procedure returns to step ST34 and the procedure is repeated until the reduction process for one column is completed.

【0040】また、その答えがYESの場合は、ステッ
プST38に進み、次の指定列Mの数値にM+kを代入
し、ステップST39で次の指定列Mが列Mの最高値Mn
を越えたか否かを判断し、その答えがNOの場合は、ス
テップST33に戻って行方向(水平方向)の縮小処理が
終了するまで手順を繰り返す。
If the answer is YES, the process proceeds to step ST38, where M + k is substituted for the numerical value of the next designated column M, and at step ST39, the next designated column M is the highest value Mn of the column M.
If the answer is NO, the process returns to step ST33 and the procedure is repeated until the reduction processing in the row direction (horizontal direction) is completed.

【0041】その答えがYESの場合は、イメージデー
タの縮小処理を終了する。
If the answer is YES, the image data reduction processing is terminated.

【0042】このようなイメージデータの縮小方法によ
れば、フラグの立った列および行の近傍では、必ず点灯
画素が優先的に抽出されるので、縮小画面で罫線部の欠
落を確実に防ぐことができる。
According to such a method of reducing image data, the lit pixels are always preferentially extracted in the vicinity of the flagged columns and rows. Therefore, it is possible to reliably prevent the missing of the ruled line portion on the reduced screen. You can

【0043】また、図7は本発明の他の実施例を示すフ
ローチャートである。
FIG. 7 is a flow chart showing another embodiment of the present invention.

【0044】まず、ステップST51において、イメージ
データの1/k縮小を要求する。
First, in step ST51, 1 / k reduction of image data is requested.

【0045】次に、ステップST52において、前述のフ
ラグの立った列および行の点灯画素の近傍のk×kドッ
トを全て点灯させる。
Next, in step ST52, all the k × k dots in the vicinity of the lit pixels in the column and row in which the flag is set are lit.

【0046】ステップST53において、垂直方向の縮小
を行う起点を掲示するために、Mに1を代入(M=1)
する。水平方向においても同じように、ステップST54
において、Lに1を代入(L=1)する。
In step ST53, 1 is substituted for M (M = 1) in order to post the starting point for vertical reduction.
To do. Similarly in the horizontal direction, step ST54
In, 1 is substituted for L (L = 1).

【0047】ステップST55において、前のステップS
T53およびステップST54で代入した列および行を起点
とするk×kドット中から、任意の1ドットを抽出し、
縮小処理を行う。
In step ST55, the previous step S
Extract any one dot from k × k dots starting from the column and row substituted in T53 and step ST54,
Perform reduction processing.

【0048】次に、ステップST56において、次の指定
行Lの数値にL+kを代入し、ステップST57において
次の指定行Lの値が最高値Lnを越えたか否かを判断
し、その答えがNOの場合はステップST55に戻って、
1列の縮小処理が終了するまで手順を繰り返す。
Next, in step ST56, L + k is substituted for the numerical value of the next designated row L, and it is determined in step ST57 whether or not the value of the next designated row L exceeds the maximum value Ln, and the answer is NO. In case of, return to step ST55,
The procedure is repeated until the reduction process for one column is completed.

【0049】また、その答えがYESの場合は、ステッ
プST58に進み、次の指定列Mの数値にM+kを代入
し、ステップST59において次の指定列Mが列Mの最高
値Mnを越えたか否かを判断し、その答えがNOの場合
は、ステップST54に戻って行方向(水平方向)の縮小
処理が終了するまで手順を繰り返す。
If the answer is YES, the process proceeds to step ST58, where M + k is substituted into the numerical value of the next designated column M, and in step ST59, whether the next designated column M exceeds the maximum value Mn of the column M or not. If the answer is NO, the process returns to step ST54 and the procedure is repeated until the reduction processing in the row direction (horizontal direction) is completed.

【0050】その答えがYESの場合は、イメージデー
タの縮小処理を終了する。
If the answer is YES, the image data reduction processing is terminated.

【0051】本実施例によるイメージデータの縮小方法
は、図8のaに黒丸で示した点灯画素の周辺のk×kド
ットを全て点灯させ(×入り丸印)、その後、任意の相
対座標のドットを抽出するものであるので、例えば、k
×kドットの領域中の左上隅の1ドットを抽出するとす
れば、図8のbのように罫線処理が行われ、右下隅の1
ドットを抽出するとすれば、図8のcのように罫線処理
が行われる。このように抽出するドットが任意であって
も縮小画面で罫線部が欠落することなく、確実に表を表
示することができる。
In the image data reducing method according to the present embodiment, all the k × k dots around the lighting pixel indicated by a black circle in FIG. Since dots are extracted, for example, k
If one dot at the upper left corner in the area of × k dots is extracted, ruled line processing is performed as shown in b of FIG.
If dots are extracted, ruled line processing is performed as shown in FIG. Thus, even if the dots to be extracted are arbitrary, the table can be surely displayed without missing the ruled line portion on the reduced screen.

【0052】また、図9は本発明の他の実施例を示すフ
ローチャートである。
FIG. 9 is a flow chart showing another embodiment of the present invention.

【0053】本実施例においては、まずステップST71
においてイメージデータの1/k縮小を要求する。
In this embodiment, first, step ST71.
In 1), 1 / k reduction of the image data is requested.

【0054】ステップST72において、垂直方向の縮小
を行う起点を指示するために、Mに1を代入(M=1)
する。水平方向においても同じように、ステップST73
において、Lに1を代入(L=1)する。
In step ST72, 1 is substituted for M (M = 1) in order to designate the starting point for vertical reduction.
To do. Similarly in the horizontal direction, step ST73
In, 1 is substituted for L (L = 1).

【0055】ステップST74において、前のステップS
T72およびステップST73で代入した列および行を起点
とするk×kドット中から、任意の1ドットを抽出し、
縮小処理を行う。
In step ST74, the previous step S
Extract any one dot from k × k dots starting from the column and row substituted in T72 and step ST73,
Perform reduction processing.

【0056】次に、ステップST75において、次の指定
行Lの数値にL+kを代入し、ステップST76におい
て、次の指定行Lの値が最高値Lnを越えたか否かを判
断し、その答えがNOの場合はステップST74に戻っ
て、1列の縮小処理が終了するまで手順を繰り返す。
Next, in step ST75, L + k is substituted for the numerical value of the next designated row L, and in step ST76, it is judged whether or not the value of the next designated row L exceeds the maximum value Ln, and the answer is If NO, the process returns to step ST74 and the procedure is repeated until the reduction process for one column is completed.

【0057】また、その答えがYESの場合は、ステッ
プST77に進み、次の指定列Mの数値にM+kを代入
し、ステップST78において次の指定列Mが列Mの最高
値Mnを越えたか否かを判断し、その答えがNOの場合
はステップST73に戻って、行方向(水平方向)の縮小
処理が終了するまで手順を繰り返す。
When the answer is YES, the process proceeds to step ST77, where M + k is substituted for the numerical value of the next designated column M, and at step ST78, whether the next designated column M exceeds the maximum value Mn of the column M or not. If the answer is NO, the process returns to step ST73, and the procedure is repeated until the reduction processing in the row direction (horizontal direction) is completed.

【0058】その答えがYESの場合は、ステップST
79において、前述のフラグの立った列および行の1/k
の各座標値に該当する縮小表示データの画素を強制的に
点灯させることにより罫線部を書き込む。
If the answer is yes, step ST
At 79, 1 / k of the flagged columns and rows described above
The ruled line portion is written by forcibly lighting the pixel of the reduced display data corresponding to each coordinate value of.

【0059】そして、イメージデータの縮小処理を終了
する。
Then, the image data reduction processing is terminated.

【0060】本発明のイメージデータの縮小表示方法
は、前述の罫線部分の抽出と前述のいづれかの罫線部の
処理とを組み合わせて行われるものであるが、罫線抽出
の手段を有することで、いずれの罫線部の処理手段を採
っても、他のデータと差別化した罫線部に関するデータ
に基づいて縮小表示に単独の罫線処理を行うことができ
るので、縮小表示に罫線が抜けることがなく、表として
の機能を必ず果たすことができる。
The image data reduction display method of the present invention is performed by combining the above-described ruled line portion extraction and any one of the above-described ruled line portion processings. Even if the ruled line portion processing means of is adopted, the individual ruled line processing can be performed for the reduced display based on the data related to the ruled line portion that is different from other data, so that the reduced display does not lose the ruled line and the Can always fulfill its function as.

【0061】なお、本発明は前記実施例に限定されるも
のではなく、必要に応じて変更することができる。
The present invention is not limited to the above embodiment, but can be modified as necessary.

【0062】[0062]

【発明の効果】このように本発明のイメージデータの縮
小表示方法は構成され作用するものであるから、罫線抽
出の手段を有することで、他のデータと差別化した罫線
部に関するデータに基づいて縮小表示に単独の罫線処理
を行うことができるので、縮小表示に罫線が抜けること
がなく、表としての機能を必ず果たすことができる縮小
表示を行うことができる等の効果を奏する。
As described above, since the reduced display method of image data of the present invention is constructed and operates, it is provided with means for extracting ruled lines, and based on the data on the ruled line portion differentiated from other data. Since independent ruled line processing can be performed for the reduced display, there is an effect that the reduced display can perform the reduced display in which the ruled lines are not missing in the reduced display and the function as a table can be always performed.

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

【図1】本発明のイメージデータの縮小表示方法を実施
する手段の概略図
FIG. 1 is a schematic view of means for implementing a reduced display method of image data according to the present invention.

【図2】イメージデータの概略図FIG. 2 is a schematic diagram of image data.

【図3】罫線部分の抽出方法を示すフローチャートFIG. 3 is a flowchart showing a method of extracting a ruled line portion.

【図4】aは表の1例を示す表示画面、bはその列方向
の度数分布を示す図
4A is a display screen showing an example of a table, and FIG. 4B is a diagram showing a frequency distribution in the column direction.

【図5】本発明方法による罫線処理の1実施例を示すフ
ローチャート
FIG. 5 is a flowchart showing an embodiment of ruled line processing according to the method of the present invention.

【図6】aはドットパターンの1実施例の拡大図、bは
1/4縮小ドットパターンの1実施例を示す拡大図
6A is an enlarged view of one embodiment of a dot pattern, and FIG. 6B is an enlarged view of one embodiment of a 1/4 reduced dot pattern.

【図7】本発明の他の実施例を示すフローチャートFIG. 7 is a flowchart showing another embodiment of the present invention.

【図8】aはドットパターンの1実施例の拡大図、bお
よびcはそれぞれ1/4縮小ドットパターンの1実施例
を示す拡大図
FIG. 8A is an enlarged view of an example of a dot pattern, and b and c are enlarged views showing an example of a 1/4 reduced dot pattern, respectively.

【図9】本発明の更に他の実施例を示すフローチャートFIG. 9 is a flowchart showing still another embodiment of the present invention.

【図10】aは1/2縮小パターンの1実施例を示す拡
大図、bは1/2縮小パターンの1実施例を示す拡大図
FIG. 10A is an enlarged view showing an embodiment of a 1/2 reduced pattern, and b is an enlarged view showing an embodiment of a 1/2 reduced pattern.

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

ST11〜ST21 フローチャートのステップ ST31〜ST40 フローチャートのステップ ST51〜ST60 フローチャートのステップ ST71〜ST80 フローチャートのステップ ST11-ST21 Flowchart Steps ST31-ST40 Flowchart Steps ST51-ST60 Flowchart Steps ST71-ST80 Flowchart Steps

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/36 9177−5G ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Internal reference number FI technical display location G09G 5/36 9177-5G

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 縮小率に応じて画素を間引くことによっ
て行うイメージデータの縮小表示方法において、イメー
ジデータの垂直・水平両方向における点灯画素の度数分
布に基づいて、罫線部とその他の部分とを判別し、前記
罫線部を残すようにしてイメージデータを縮小すること
を特徴とするイメージデータの縮小表示方法。
1. A reduced display method of image data, which is performed by thinning out pixels according to a reduction rate, to determine a ruled line portion and other portions based on a frequency distribution of lit pixels in both vertical and horizontal directions of image data. Then, the image data is reduced and displayed by reducing the image data while leaving the ruled line portion.
【請求項2】 請求項1に記載のイメージデータの縮小
表示方法において、イメージデータを1/k縮小する時
に、k×kドット内に前記罫線部がある場合には、前記
点灯画素を残す画素として優先抽出し、k×kドット内
に前記罫線部がない場合には、任意の画素を残す画素と
して抽出することを特徴とするイメージデータの縮小表
示方法。
2. The reduced display method of image data according to claim 1, wherein when the image data is reduced by 1 / k, if the ruled line portion is present in k × k dots, the pixel to leave the lit pixel A method for reducing display of image data, characterized in that, when the ruled line portion does not exist within k × k dots, the pixel is extracted as a pixel to leave an arbitrary pixel.
【請求項3】 請求項1に記載のイメージデータの縮小
表示方法において、イメージデータを1/k縮小する時
に、まず、前記罫線部の点灯画素周辺のk×kドットを
全部点灯させ、その後に1/k縮小することを特徴とす
るイメージデータの縮小表示方法。
3. The reduced display method of image data according to claim 1, wherein when reducing the image data by 1 / k, first, all k × k dots around the lighting pixels of the ruled line portion are turned on, and then, A reduced display method of image data, characterized by reducing by 1 / k.
【請求項4】 請求項1に記載のイメージデータの縮小
表示方法において、イメージデータを1/k縮小する時
に、まず、イメージデータを1/k縮小し、その後に前
記罫線部の1/K座標値に罫線表示することを特徴とす
るイメージデータの縮小表示方法。
4. The image data reduction display method according to claim 1, wherein when the image data is reduced by 1 / k, first, the image data is reduced by 1 / k, and then the 1 / K coordinate of the ruled line portion. A reduced display method of image data characterized by displaying a ruled line on the value.
JP4192259A 1992-07-20 1992-07-20 Image data reduction display method Expired - Fee Related JP2784120B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4192259A JP2784120B2 (en) 1992-07-20 1992-07-20 Image data reduction display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4192259A JP2784120B2 (en) 1992-07-20 1992-07-20 Image data reduction display method

Publications (2)

Publication Number Publication Date
JPH0636019A true JPH0636019A (en) 1994-02-10
JP2784120B2 JP2784120B2 (en) 1998-08-06

Family

ID=16288317

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4192259A Expired - Fee Related JP2784120B2 (en) 1992-07-20 1992-07-20 Image data reduction display method

Country Status (1)

Country Link
JP (1) JP2784120B2 (en)

Also Published As

Publication number Publication date
JP2784120B2 (en) 1998-08-06

Similar Documents

Publication Publication Date Title
GB2230633A (en) Optical character recognition
US6323876B1 (en) Image processing apparatus having image region specifying function
JPH0636019A (en) Method for reducing and displaying image data
JP3171626B2 (en) Character recognition processing area / processing condition specification method
JP3276555B2 (en) Format recognition device and character reader
EP0388832B1 (en) Graphic drawing method and graphic drawing device
JPS6321158A (en) Printer output device
JPS615383A (en) Character pattern separating device
JPH09146509A (en) Continuous picture display device
JPH0721309A (en) Document recognizing device
JPS6010390A (en) Pattern identification processing system by light pen in graphic processing system
JPH01147593A (en) Automatic window area setting for information retrieving screen
JP3073206B2 (en) Image recognition method and apparatus
JPS61190676A (en) Document registering system
JPH0246496A (en) Display device
JPH09275487A (en) Device and method for processing image
JPH07146934A (en) Image processor
JPH04156694A (en) Character recognition system
JPH0652156A (en) Method and device for processing document
JPS63155085A (en) Character-graphic mixed screen display
JPH03179585A (en) Picture processor
JPH05232933A (en) Image display device
JPS5855278A (en) Ruled line input system
JPS6334680A (en) Character reader
JPH03148785A (en) Character read-out device

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: 19980512

LAPS Cancellation because of no payment of annual fees