JPH09214752A - Image processing method - Google Patents

Image processing method

Info

Publication number
JPH09214752A
JPH09214752A JP8016038A JP1603896A JPH09214752A JP H09214752 A JPH09214752 A JP H09214752A JP 8016038 A JP8016038 A JP 8016038A JP 1603896 A JP1603896 A JP 1603896A JP H09214752 A JPH09214752 A JP H09214752A
Authority
JP
Japan
Prior art keywords
change point
white
point coordinate
image
pixel
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
JP8016038A
Other languages
Japanese (ja)
Other versions
JP3724868B2 (en
Inventor
Yukinori Yajima
征典 矢島
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP01603896A priority Critical patent/JP3724868B2/en
Publication of JPH09214752A publication Critical patent/JPH09214752A/en
Application granted granted Critical
Publication of JP3724868B2 publication Critical patent/JP3724868B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To process an image at a high speed even by the combination processing of the expansion processing and the compression processing and to obtain the reduction result with less deterioration in image quality by conducting the processing combining expansion processing and reduction processing under a specific condition. SOLUTION: A change point coordinate string after reduction in response to a reduction magnification is obtained from change point coordinate strings to white level picture elements and black level picture elements in the main scanning direction of image data. As to a change point coordinate in the obtained change point coordinate string, a distance of each with a just preceding change point coordinate is obtained. Then each change point coordinate of the change point coordinate string is used for a change point coordinate object to a white level picture element when the obtained distance is 1 or over and the change point coordinate is a change point coordinate to the white level picture element, and when the distance is 0, the change point coordinate object to the white level picture element corresponding to the just preceding change point coordinate is invalidated. When the obtained distance is 1 or over and the change point object to the white level picture element is in existence and the change point is a change point coordinate to the black level picture element, the change point coordinate is used for a change point coordinate to the black picture element and the change point coordinate object to the white level picture element is used for the change point coordinate to the white level picture element.

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 method for performing processing such as image reduction in a system that handles binary images by software.

【0002】[0002]

【従来の技術】従来、イメージ処理用の専用のハードウ
ェアが設けられていないシステムでは、ソフトウェアに
よりイメージ処理の機能が実現されている。こうした、
システムにおいて、イメージデータを圧縮することによ
って得られた圧縮データから、元のイメージを縮小した
縮小イメージデータを生成する場合には、伸張処理と縮
小処理とを組み合わせたイメージ編集処理が必要とな
る。
2. Description of the Related Art Conventionally, in a system in which dedicated hardware for image processing is not provided, the function of image processing is realized by software. These
In the system, when the reduced image data obtained by reducing the original image is generated from the compressed data obtained by compressing the image data, the image editing process in which the decompression process and the reduction process are combined is necessary.

【0003】すなわち、伸張処理によって圧縮データか
ら作業メモリ上にイメージ全体のイメージデータを展開
し、次に縮小処理によって作業メモリ上に展開したイメ
ージデータを所定の縮小倍率に応じて縮小して縮小イメ
ージデータを生成している。
That is, the image data of the entire image is expanded from the compressed data in the working memory by the decompression process, and then the image data expanded in the working memory is reduced by the reduction process according to a predetermined reduction ratio to obtain a reduced image. Generating data.

【0004】また、従来の縮小処理では、文字や図形等
を含むイメージデータに対しては、文字や図形を構成す
る線の消失やかすれを防ぐためにOR処理方式を採用し
ている。
Further, in the conventional reduction processing, an OR processing method is adopted for image data including characters and figures in order to prevent disappearance and blurring of lines forming characters and figures.

【0005】例えば、図18に示すように、22ドット
のイメージデータ(入力イメージ)に対して、7ドット
の縮小イメージデータを得るようなOR縮小方式では、
DDA(Differential Digital Analaizer)を使用して
キャリーパターンを発生させ、キャリー発生位置の右隣
の画素から次のキャリーが発生するまでの画素をOR演
算し、キャリー個数分(7個)の画素を出力する。
For example, as shown in FIG. 18, in the OR reduction method for obtaining 7-dot reduced image data for 22-dot image data (input image),
A carry pattern is generated using a DDA (Differential Digital Analyzer), the pixels from the pixel on the right of the carry generation position to the next carry are ORed, and the number of carry pixels (7) is output. To do.

【0006】ここで、DDAの動作原理について簡単に
説明する。図19はDDAのキャリーパターンの生成過
程を示す。倍率をN/M(N<M)にすると、初期値と
スケール値を次のようにして求める。但し、 divは整数
除算、 modは整数除算の余りを示す。
Here, the operation principle of the DDA will be briefly described. FIG. 19 shows a process of generating a carry pattern of DDA. When the magnification is N / M (N <M), the initial value and scale value are obtained as follows. However, div indicates integer division, and mod indicates the remainder of integer division.

【0007】スケール値=(10000H×N)div M 初期値 =(10000H×N)mod M 22ドットのイメージを7ドットのイメージに縮小する
例では、上式の演算に従うとスケール値=5174H、
初期値=0008Hとなる。
Scale value = (10000H × N) div M Initial value = (10000H × N) mod M In an example of reducing a 22-dot image to a 7-dot image, scale value = 5174H, according to the above calculation.
The initial value is 0008H.

【0008】DDAでは、図19に示すように、まずカ
レント値に初期値0008Hをセットし、スケール値5
174Hを加算する。アダーのビット幅を16ビットと
し、アダーの出力に対してスケール値を加算する。以
下、データの個数分となるまで、順次、アダーの出力に
対してスケール値を加算していき、この間に発生したキ
ャリーパターンを出力画素を決める為に使用する。すな
わち、OR演算の対象とする画素の範囲を求める。この
結果、図18に示すように、入力イメージに対するキャ
リー発生位置に応じたOR縮小の結果は、全ての画素が
黒となる。
In the DDA, as shown in FIG. 19, first, the initial value 0008H is set to the current value, and the scale value 5
174H is added. The bit width of the adder is 16 bits, and the scale value is added to the output of the adder. Hereinafter, the scale value is sequentially added to the output of the adder until the number of data is reached, and the carry pattern generated during this time is used to determine the output pixel. That is, the range of pixels to be the target of the OR operation is obtained. As a result, as shown in FIG. 18, all pixels are black in the result of the OR reduction according to the carry occurrence position with respect to the input image.

【0009】[0009]

【発明が解決しようとする課題】このように従来のイメ
ージ処理方法では、圧縮データをもとに縮小イメージデ
ータを生成するために、伸張処理と縮小処理とを組み合
わせてイメージ編集する場合、伸張時間と縮小処理とを
逐次実行しなければならない。従って、最終的な縮小イ
メージを得るための時間が、伸張時間分と縮小処理時間
分とを要すため、作業応答性が悪くなっていた。
As described above, in the conventional image processing method, when the image is edited by combining the decompression process and the reduction process in order to generate the reduced image data based on the compressed data, the decompression time is increased. And reduction processing must be executed sequentially. Therefore, it takes a decompression time and a demagnification processing time to obtain a final reduced image, resulting in poor work responsiveness.

【0010】また、従来の縮小処理ではOR処理方式を
採用することによって、文字や図形を構成する線の消失
やかすれを防ぐことができたが、原理上、縮小倍率が大
きくなると文字や図形の部分で黒潰れが発生してしま
い、著しくイメージの品質が低下してしまうことがあっ
た。
Further, in the conventional reduction processing, by adopting the OR processing method, it is possible to prevent disappearance or blurring of lines forming a character or a figure. Occasionally, a blackout occurs in a portion, and the image quality is significantly deteriorated.

【0011】本発明は前記のような事情を考慮してなさ
れたもので、伸張処理と縮小処理とを組み合わせた処理
でも高速にイメージ処理ができ、かつ画質劣化の少ない
縮小結果を提供することが可能なイメージ処理方法を提
供することを目的とする。
The present invention has been made in consideration of the above-mentioned circumstances, and can provide a reduction result in which image processing can be performed at high speed even with a combination of decompression processing and reduction processing and image quality deterioration is small. It is an object to provide a possible image processing method.

【0012】[0012]

【課題を解決するための手段】本発明は、イメージデー
タの主走査方向における白画素及び黒画素への変化点座
標列に対し、縮小倍率に応じた縮小後の変化点座標列を
求め、この求められた変化点座標列中の変化点座標につ
いて、それぞれ直前の変化点座標との距離を求め、変化
点座標列のそれぞれの変化点座標を、求められた距離が
1以上であり、かつ白画素への変化点座標である場合
に、白画素への変化点候補とし、求められた距離が0の
場合に、直前の変化点座標に対応する白画素への変化点
候補を無効とし、求められた距離が1以上であり、かつ
白画素への変化点候補が存在し、かつ黒画素への変化点
座標である場合に、黒画素への変化点座標とすると共
に、白画素の変化点候補を白画素への変化点座標とし、
求められた距離が1を越え、かつ白画素への変化点候補
が存在せず、かつ黒画素への変化点座標である場合に、
黒画素への変化点とすると共に、直前の変化点座標に所
定の座標値を加えた上で白画素への変化点とすることを
特徴とする。
According to the present invention, a change point coordinate sequence after reduction according to a reduction magnification is obtained for a change point coordinate sequence of white pixels and black pixels in the main scanning direction of image data. Regarding the change point coordinates in the obtained change point coordinate sequence, the distances from the immediately preceding change point coordinates are obtained, and the respective change point coordinates in the change point coordinate sequence are obtained, and the obtained distance is 1 or more, and white. If it is the change point coordinate to the pixel, it is set as the change point candidate to the white pixel, and if the obtained distance is 0, the change point candidate to the white pixel corresponding to the immediately previous change point coordinate is invalidated and obtained. When the determined distance is 1 or more, there is a change point candidate for the white pixel, and the change point coordinate is for the black pixel, the change point coordinate for the black pixel is set and the change point for the white pixel is set. The candidate is the coordinates of the change point to the white pixel,
When the obtained distance exceeds 1, the change point candidate for the white pixel does not exist, and the change point coordinates are for the black pixel,
It is characterized in that it is set as a change point to a black pixel, and a change point to a white pixel is obtained by adding a predetermined coordinate value to the coordinates of the change point immediately before.

【0013】また本発明は、イメージデータの主走査方
向における白画素及び黒画素への変化点座標列からなる
第1変化点テーブルと、前記第1変化テーブルの副走査
方向への次のラインの変化点座標列からなる第2変化点
テーブルに対し、何れかの変化点テーブル中の黒画素へ
の変化点位置が小さい変化点座標を注目変化点とすると
共に変換後の黒画素への変化点座標とし、注目変化点の
右側にある最初の白画素への変化点を白変化点候補と
し、注目変化点のある変化点テーブルの反対側の変化点
テーブルで、変化点座標値が白変化点候補以上となる変
化点を検出し、検出した変化点が白変化点候補と同じ座
標位置にあり、その色が白画素への変化点であった場
合、または白変化点候補を越える座標位置にあり、その
色が黒画素への変化点であった場合に、白変化点候補を
変換後の白画素への変化点座標とし、検出した変化点が
白変化点候補と同じ座標位置にあり、その変化点の色が
黒画素への変化点であった場合、この変化点を注目変化
点とし、その右側にある最初の白画素への変化点を白変
化点候補とし、検出した変化点が白変化点候補を越える
座標位置にあり、その変化点の色が白画素への変化点で
あった場合、白変化点候補の位置を注目変化点とし、こ
の検出した変化点を白変化点候補とし、注目変化点また
は白変化点候補がライン終端であるかを判定し、ライン
終端である場合、白変化点候補を変換後の白画素への変
化点座標とすることを特徴とする。
Further, according to the present invention, a first change point table composed of a change point coordinate sequence of white pixels and black pixels in the main scanning direction of image data, and a line next to the first change table in the sub scanning direction. With respect to the second change point table consisting of the change point coordinate sequence, the change point coordinates having a small change point position to the black pixel in any of the change point tables are set as the noticeable change point and the change point to the converted black pixel As the coordinates, the change point to the first white pixel on the right side of the noticed change point is the white change point candidate, and the change point coordinate value is the white change point in the change point table on the opposite side of the change point table with the noticed change point. Change points that are more than the candidate are detected, and if the detected change point is at the same coordinate position as the white change point candidate and the color is the change point to the white pixel, or at the coordinate position that exceeds the white change point candidate. Yes, the point where the color changes to a black pixel If there is, the white change point candidate is set as the change point coordinates to the converted white pixel, the detected change point is at the same coordinate position as the white change point candidate, and the color of the change point is the change point to the black pixel. If this is the change point of interest, the change point of interest is the change point to the first white pixel on the right of the change point, and the detected change point is at a coordinate position that exceeds the white change point candidate. When the color of the change point is the change point to the white pixel, the position of the white change point candidate is set as the noticed change point, the detected change point is set as the white change point candidate, and the noticed change point or the white change point candidate is set as the line. It is determined whether it is the end, and if it is the end of the line, the white change point candidate is used as the change point coordinates to the converted white pixel.

【0014】また本発明は、イメージデータの主走査方
向における白画素及び黒画素への変化点座標列から順次
読み出された変化点座標に対し、所定の値で除算した商
と余り値を求め、この求めた商と直前の変化点座標に対
して求めた商との差を求め、求めた差の値が0の時に、
所定の値に達しない変化点座標列に対するイメージパタ
ーンを余り値に応じて求め、求めた差の値が1より大き
い時に、所定の値に達しない変化点座標列に対して求め
たイメージパターンを変換結果のイメージパターンと
し、さらに求めた差に応じた白画素または黒画素が連続
するイメージデータを変換結果のイメージパターンとし
て出力することを特徴とする。
Further, according to the present invention, a quotient and a remainder value obtained by dividing a change point coordinate sequentially read from a change point coordinate sequence to a white pixel and a black pixel in the main scanning direction of image data by a predetermined value are obtained. , The difference between the obtained quotient and the quotient obtained for the coordinates of the immediately preceding change point, and when the obtained difference value is 0,
The image pattern for the change point coordinate sequence that does not reach the predetermined value is obtained according to the remainder value, and when the obtained difference value is greater than 1, the image pattern obtained for the change point coordinate sequence that does not reach the predetermined value is obtained. An image pattern of the conversion result, and image data in which white pixels or black pixels corresponding to the obtained difference are continuous is output as the image pattern of the conversion result.

【0015】また本発明は、イメージデータを符号化し
て得られる圧縮データをもとに、縮小処理を施したイメ
ージを生成するイメージ処理方法において、圧縮データ
から白画素及び黒画素への変化点座標列を生成し、この
生成された変化点座標列をもとにしたイメージ縮小方法
により、副走査方向に対して縮小した変化点座標列を生
成し、変化点座標列をもとにしたイメージ縮小方法によ
り、主走査方向に対して縮小した変化点座標列を生成
し、この生成した変化点座標列をもとにしたデータ変換
方法により、イメージデータを生成し、以上の処理を1
画面分実行することで、圧縮データから縮小後のイメー
ジデータを生成することを特徴とする。
Further, according to the present invention, in an image processing method for generating an image subjected to reduction processing based on compressed data obtained by encoding image data, coordinates of change points from compressed data to white pixels and black pixels. A column is generated, and an image reduction method based on the generated change point coordinate sequence is used to generate a change point coordinate sequence that is reduced in the sub-scanning direction, and an image is reduced based on the change point coordinate sequence. A change point coordinate sequence reduced in the main scanning direction is generated by the method, and image data is generated by the data conversion method based on the generated change point coordinate sequence.
The image data after reduction is generated from the compressed data by executing for the screen.

【0016】[0016]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態について説明する。図1は、本実施形態に係わ
るイメージ処理方法を実現するシステムの構成を示すブ
ロック図である。図1に示すように本システムは、CP
U10、RAM12、VRAM14、ROM16、入力
装置18、入力制御部20、表示装置22、表示制御部
24、記憶装置26、記憶制御部28によって構成され
ている。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a system that realizes the image processing method according to this embodiment. As shown in Fig. 1, this system uses CP
The U10, the RAM 12, the VRAM 14, the ROM 16, the input device 18, the input control unit 20, the display device 22, the display control unit 24, the storage device 26, and the storage control unit 28.

【0017】CPU10は、装置全体の制御を行なうも
ので、RAM12、VRAM14、ROM16をアクセ
スして入力指示に従うプログラムの起動で、本発明によ
るイメージ処理方法の機能を実現する。
The CPU 10 controls the entire apparatus and realizes the function of the image processing method according to the present invention by accessing the RAM 12, the VRAM 14 and the ROM 16 and starting a program according to an input instruction.

【0018】RAM12は、CPU10の動作を決定す
る各種処理プログラムが格納されたプログラム領域12
aをはじめ、イメージ処理を行なう際に使用される各種
変数、テーブル、処理対象とする変化点座標データ等を
格納するための作業メモリとしてのワーク領域12b等
が設けられている。
The RAM 12 is a program area 12 in which various processing programs for determining the operation of the CPU 10 are stored.
In addition to a, a work area 12b as a work memory for storing various variables and tables used when performing image processing, a change point coordinate data to be processed, and the like are provided.

【0019】VRAM14は、表示装置22において表
示すべき表示データを展開するための領域である。VR
AM14に展開された表示データは、表示制御部24に
よって読み出され、表示装置22における表示に供され
る。
The VRAM 14 is an area for expanding display data to be displayed on the display device 22. VR
The display data expanded in the AM 14 is read by the display control unit 24 and provided for display on the display device 22.

【0020】ROM16は、CPU10の動作を決定す
る各種処理プログラムが格納されたプログラム領域16
a、各種データを格納するためのデータ領域16b等が
設けられている。
The ROM 16 is a program area 16 in which various processing programs that determine the operation of the CPU 10 are stored.
a, a data area 16b for storing various data, and the like are provided.

【0021】入力装置18は、キーボードまたはマウス
等によって構成され、システムに対する指示を入力す
る。表示装置22は、例えば液晶ディスプレイによって
構成され、表示制御部24の制御のもとに表示を行な
う。表示制御部24は、表示装置22における表示を制
御するもので、VRAM14に格納された表示データを
読み込み、表示装置22における表示に供する。
The input device 18 is composed of a keyboard, a mouse or the like, and inputs an instruction to the system. The display device 22 is composed of, for example, a liquid crystal display, and performs display under the control of the display control unit 24. The display control unit 24 controls the display on the display device 22, reads the display data stored in the VRAM 14, and provides the display data on the display device 22.

【0022】記憶装置26は、処理対象とするイメージ
データを符号化して得られる圧縮データ、変化点座標デ
ータ、イメージデータ等を格納する。記憶制御部28
は、記憶装置26に対するデータ等の入出力制御を行な
う。
The storage device 26 stores compressed data obtained by encoding the image data to be processed, change point coordinate data, image data and the like. Storage control unit 28
Controls input / output of data and the like to / from the storage device 26.

【0023】次に、本発明の第1実施形態に係わるイメ
ージ処理方法におけるデータ縮小方法について説明す
る。図2及び図3は第1実施形態のデータ縮小方法を説
明するためのフローチャートである。第1実施形態のデ
ータ縮小方法では、イメージデータの主走査方向におけ
る白及び黒への変化点座標情報をもとに主走査方向に縮
小処理を行なう。
Next, a data reduction method in the image processing method according to the first embodiment of the present invention will be described. 2 and 3 are flowcharts for explaining the data reduction method according to the first embodiment. In the data reduction method of the first embodiment, the reduction processing is performed in the main scanning direction based on the coordinate information of the change points of white and black in the main scanning direction of the image data.

【0024】ステップA1は、イメージデータの1ライ
ン目の処理を開始する前に行う初期化処理であり、縮小
倍率(SCALEX)の設定と変倍後の変化点座標をセ
ットする変数を初期化するステップである。
Step A1 is an initialization process which is performed before starting the process of the first line of the image data, and initializes the variable for setting the reduction ratio (SCALEX) and the change point coordinates after the scaling. It is a step.

【0025】ステップA2は、縮小後の変化点検索のた
めの初期化処理であり、直前に検出した変化点座標(R
EG_SCALE_POS)をセットし、変化点検出フ
ラグ、すなわち白画素から黒画素への変化点を検出した
ことを示すフラグ(BLACK_FOUND)、及び黒
画素から白画素への変化点を検出したことを示すフラグ
(WHITE_FOUND)を無効にするステップであ
る。
Step A2 is an initialization process for retrieving the changing point after reduction, and the changing point coordinates (R
EG_SCALE_POS) and a change point detection flag, that is, a flag (BLACK_FOUND) indicating that a change point from a white pixel to a black pixel has been detected, and a flag indicating that a change point from a black pixel to a white pixel has been detected ( WHITE_FOUND) is invalidated.

【0026】ステップA3は、ラスタ走査方向に順次読
み出された変化点座標(CRNT_POS)に対し縮小
倍率(SCALEX)を乗算し、その値をカレントの変
化点演算値(SCALE_POS)とするステップであ
る。
In step A3, the change point coordinates (CRNT_POS) sequentially read in the raster scanning direction are multiplied by the reduction ratio (SCALEX), and the resulting value is used as the current change point calculation value (SCALE_POS). .

【0027】ステップA4は、カレントの変化点演算値
(SCALE_POS)と直前に検出した変化点座標
(REG_SCALE_POS)との差(DIST_P
OS)を求めるステップである。
In step A4, the difference (DIST_P) between the current change point calculation value (SCALE_POS) and the change point coordinate (REG_SCALE_POS) detected immediately before is calculated.
OS).

【0028】ステップA5は、ステップA4で求めた差
(DIST_POS)が0より大きいか否かを判定する
ステップである。ステップA6は、カレントの変化点演
算値の色(COLOR)が黒画素への変化点か否かを判
定するステップである。
Step A5 is a step of judging whether or not the difference (DIST_POS) obtained in step A4 is larger than zero. Step A6 is a step of determining whether or not the color (COLOR) of the current change point calculation value is the change point to the black pixel.

【0029】ステップA7は、白画素への変化点検出フ
ラグ(WHITE_FOUND)が有効であるか否かを
判定するステップである。ステップA8は、差(DIS
T_POS)が1より大きいか否かを判定するステップ
である。
Step A7 is a step of determining whether or not the change point detection flag (WHITE_FOUND) for white pixels is valid. Step A8 is the difference (DIS
This is a step of determining whether or not (T_POS) is greater than 1.

【0030】ステップA9は、白画素から黒画素への変
化点を検出した時のステップであり、変化点検出処理、
すなわちカレントの変化点演算結果(SCALE_PO
S)を白から黒への変化点座標(AVL_SCALE_
POSB)とし、直前に決定した変化点座標(REG_
SCALE_POS)を黒から白への変化点座標(AV
L_SCALE_POSW)として確定する処理を実行
する。また、変化点が検出されたことを示す各々の変化
点検出フラグ(WHITE_FOUND)、(BLAC
K_FOUND)を有効(TRUE)にする。
Step A9 is a step when the change point from the white pixel to the black pixel is detected.
That is, the current change point calculation result (SCALE_PO
S) is the coordinates of the change point from white to black (AVL_SCALE_
POSB), and the change point coordinates (REG_
Change SCALE_POS from black to white change point coordinates (AV
L_SCALE_POSW) is executed. In addition, each change point detection flag (WHITE_FOUND), (BLAC) indicating that a change point has been detected.
K_FOUND) is enabled (TRUE).

【0031】ステップA10は、黒画素への変化点を検
出し、直前の縮小演算処理で消失した白画素への変化点
を復活させる処理であり、カレントの変化点演算結果
(SCALE_POS)を白から黒への変化点座標(A
VL_SCALE_POSB)とし、直前に決定した変
化点座標(REG_SCALE_POS)+1を、白画
素への変化点座標(AVL_SCALE_POSW)と
して確定する。また、変化点が検出されたことを示す各
々の変化点検出フラグ(WHITE_FOUND)、
(BLACK_FOUND)を有効(TRUE)にす
る。
Step A10 is a process of detecting a change point to a black pixel and restoring the change point to a white pixel which has disappeared in the immediately previous reduction calculation process. The current change point calculation result (SCALE_POS) is changed from white to white. Change point coordinates to black (A
VL_SCALE_POSB), and the change point coordinates (REG_SCALE_POS) +1 determined immediately before are determined as the change point coordinates (AVL_SCALE_POSW) to the white pixel. Also, each change point detection flag (WHITE_FOUND) indicating that a change point has been detected,
Make (BLACK_FOUND) valid (TRUE).

【0032】ステップA11は、黒画素から白画素への
変化点候補を検出した時のステップであり、カレントの
変化点演算結果(SCALE_POS)を直前に決定し
た変化点座標(REG_SCALE_POS)とする。
また、白画素への変化点検出フラグ(WHITE_FO
UND)を有効にし、次の黒画素への変化点を検出する
ためにステップA3のステップに戻る。
Step A11 is a step when a change point candidate from a black pixel to a white pixel is detected, and the current change point calculation result (SCALE_POS) is used as the change point coordinates (REG_SCALE_POS) determined immediately before.
Also, a change point detection flag (WHITE_FO) for white pixels
UND) is enabled, and the process returns to step A3 to detect the change point to the next black pixel.

【0033】ステップA12は、白への変化点検出結果
を無効にするステップであり、白への変化点検出フラグ
(WHITE_FOUND)を無効(FALSE)にす
る。ステップA13は、ライン終端を検出するステップ
である。
Step A12 is a step of invalidating the white change point detection result, and the white change point detection flag (WHITE_FOUND) is invalidated (FALSE). Step A13 is a step of detecting the end of the line.

【0034】ステップA14は、変化点を検索中にライ
ン終端に到達した時のステップであり、白画素への変化
点座標(AVL_SCALE_POSW)を縮小後のラ
イン終端座標の右側に置く。
Step A14 is a step when the end of the line is reached during the search for the change point, and the change point coordinate (AVL_SCALE_POSW) to the white pixel is placed on the right side of the reduced line end coordinate.

【0035】以上ステップA2からステップA14まで
の処理を、一画面のライン分が終了するまで繰り返すこ
とにより、一画面分のイメージ縮小後の変化点座標が求
められる。
By repeating the processing from step A2 to step A14 until the line of one screen is completed, the change point coordinates after image reduction for one screen are obtained.

【0036】次に、具体例を用いながら第1実施形態に
おけるデータ縮小処理の動作について説明する。図4
は、縮小倍率(SCALEX)を2/3とした時の、入
力データとする変化点座標(CRNT_POS)列に対
する縮小後の変化点座標(AVL_SCALE_POS
B)(AVL_SCALE_POSW)を算出する過程
を示すものである。
Next, the operation of the data reduction processing in the first embodiment will be described using a specific example. FIG.
Is the change point coordinates (AVL_SCALE_POS) after reduction with respect to the change point coordinate (CRNT_POS) sequence used as input data when the reduction ratio (SCALEX) is set to 2/3.
B) shows a process of calculating (AVL_SCALE_POSW).

【0037】イメージ縮小処理の対象(入力データ)
は、図4(b)に示す変化点座標(CRNT_POS)
列、すなわち図4(a)に示すイメージパターンの圧縮
データである。また、イメージパターンは変化点座標
(座標位置0,1,…)が示すビットパターンを表すも
のである。
Target of image reduction processing (input data)
Is the change point coordinates (CRNT_POS) shown in FIG.
Columns, that is, compressed data of the image pattern shown in FIG. The image pattern represents a bit pattern indicated by the change point coordinates (coordinate positions 0, 1, ...).

【0038】変化点座標(CRNT_POS)は、黒画
素への変化点座標から始まり、次に黒画素から白画素へ
の変化点座標が続き、以降ライン終端まで交互に並ぶ。
ただし、変化点座標(CRNT_POS)のライン終端
値を、イメージパターンのライン終端の座標の右側に設
けた仮想変化点の値とする。
The change point coordinates (CRNT_POS) start from the change point coordinates to the black pixel, are followed by the change point coordinates from the black pixel to the white pixel, and are alternately arranged until the end of the line.
However, the line end value of the change point coordinates (CRNT_POS) is the value of the virtual change point provided on the right side of the coordinates of the line end of the image pattern.

【0039】まず、入力となる変化点座標(CRNT_
POS)をステップA1で設定された縮小倍率(2/
3)で乗算し、カレントの変化点演算値(SCALE_
POS)を求める。(ステップA3)。例えば、CRN
T_POS=3、COLOR=黒の変化点座標に対して
は、カレントの変化点演算値(SCALE_POS)=
2が求められる(図4(c)参照)。
First, the change point coordinates (CRNT--
POS) is the reduction ratio (2 /
3) and multiply by the current change point calculation value (SCALE_
POS). (Step A3). For example, CRN
For T_POS = 3, COLOR = black change point coordinates, current change point calculation value (SCALE_POS) =
2 is required (see FIG. 4 (c)).

【0040】次に、ステップA4により、カレントの変
化点演算値(SCALE_POS)と直前に検出した変
化点座標(REG_SCALE_POS)との差(DI
ST_POS)を求める。例えば、カレントの変化点演
算値が4(SCALE_POSの第2番目、COLOR
=白)であった場合、直前に検出した変化点座標は2で
あるため、その差(DIST_POS)は2となる。
Next, in step A4, the difference (DI) between the current change point calculation value (SCALE_POS) and the change point coordinate (REG_SCALE_POS) detected immediately before is calculated.
ST_POS). For example, the current change point calculation value is 4 (second of SCALE_POS, COLOR
= (White), the change point coordinate detected immediately before is 2, so the difference (DIST_POS) is 2.

【0041】次に、カレントの変化点演算値(SCAL
E_POS)と直前に検出した変化点座標(REG_S
CALE_POS)との差(DIST_POS)が0よ
り大きいか否かを判定する(ステップA5)。図4
(c)の第2番目の(SCALE_POS)を対象とし
ている場合には、DIST_POS>0となる。
Next, the current change point calculation value (SCAL
E_POS) and the change point coordinates (REG_S) detected immediately before.
It is determined whether the difference (DIST_POS) from CALE_POS) is greater than 0 (step A5). FIG.
When the second (SCALE_POS) in (c) is targeted, DIST_POS> 0.

【0042】この場合、カレントの変化点演算値の色
(COLOR)が黒であるか否かを判定する(ステップ
A6)。この例では、COLOR=白であるため、ステ
ップA11に移行する。
In this case, it is determined whether or not the color (COLOR) of the current change point calculation value is black (step A6). In this example, since COLOR = white, the process proceeds to step A11.

【0043】ステップA11では、変化点(SCALE
_POS)を、黒画素から白画素への変化点候補として
直前に検出した変化点座標(REG_SCALE_PO
S)に保存し、変化点検出フラグ(WHITE_FOU
ND)を有効にする。この時点では、あくまでも変化点
の候補であり、次の変化点演算結果により確定される。
At step A11, the change point (SCALE
_POS) as the change point candidate from the black pixel to the white pixel, the change point coordinates (REG_SCALE_PO) detected immediately before.
S) and change point detection flag (WHITE_FOU)
Enable ND). At this point, it is a candidate for a change point, and is determined by the next change point calculation result.

【0044】ここで、ライン終端に処理が達していなけ
れば、次の黒画素への変化点を検出するためにステップ
A3のステップに戻る(ステップA13)。この例で
は、次の変化点座標(CRNT_POS)=9に対する
カレントの変化点演算値(SCALE_POS)は6で
あり、DIST_POS>0かつCOLOR=黒であ
り、さらに前の変化点座標の処理で変化点検出フラグ
(WHITE_FOUND)を有効としているため(ス
テップA5,A6,A7)、ステップA9が実行され
る。
If the processing has not reached the end of the line, the process returns to step A3 to detect the change point to the next black pixel (step A13). In this example, the current change point calculation value (SCALE_POS) for the next change point coordinate (CRNT_POS) = 9 is 6, DIST_POS> 0 and COLOR = black, and a change check is performed by processing the previous change point coordinate. Since the output flag (WHITE_FOUND) is valid (steps A5, A6, A7), step A9 is executed.

【0045】ここで、ステップA9では、白画素から黒
画素への変化点が検出されたため、変化点検出処理を実
行する。すなわち、カレントの変化点演算結果(SCA
LE_POS)を白から黒への変化点座標(AVL_S
CALE_POSB)とし、またステップA11におい
て設定されている、直前に検出された黒画素から白画素
への変化点座標(REG_SCALE_POS)を黒か
ら白への変化点座標(AVL_SCALE_POSW)
として確定する。さらに、各変化点検出フラグ(WHI
TE_FOUND)(BLACK_FOUND)も有効
(TRUE)にする。
Here, in step A9, since the change point from the white pixel to the black pixel is detected, the change point detection processing is executed. That is, the current change point calculation result (SCA
LE_POS) is the coordinates of the change point (AVL_S) from white to black
CALE_POSB), and the change point coordinates (REG_SCALE_POS) from the black pixel to the white pixel detected immediately before, which are set in step A11, are the change point coordinates (AVL_SCALE_POSW) from black to white.
Confirm as. Furthermore, each change point detection flag (WHI
TE_FOUND) (BLACK_FOUND) is also enabled (TRUE).

【0046】次に、ステップA4において求められるカ
レントの変化点演算値(SCALE_POS)と直前に
検出した変化点座標(REG_SCALE_POS)と
の差(DIST_POS)=0の場合について説明す
る。
Next, the case where the difference (DIST_POS) = 0 between the current change point calculation value (SCALE_POS) obtained in step A4 and the change point coordinate (REG_SCALE_POS) detected immediately before is described.

【0047】図4(b)に示す例では、変化点座標(C
RNT_POS)が12(第4番目)から13(第5番
目)になる時に、図4(c)に示すように、SCALE
_POSの値が共に8になり、DIST_POS=0の
条件が成立する。
In the example shown in FIG. 4B, the change point coordinates (C
When RNT_POS) changes from 12 (fourth) to 13 (fifth), as shown in FIG.
Both _POS values become 8, and the condition of DIST_POS = 0 is satisfied.

【0048】変化点座標(CRNT_POS)が13の
時点で、DIST_POS>0、すなわちDIST_P
OS=0であることが判定される。ここでは、WHIT
E_FOUND=TRUEとなっており、かつCOLO
R=黒であるため、直前で検出した白への変化点を無効
にする(ステップA12)。
When the change point coordinate (CRNT_POS) is 13, DIST_POS> 0, that is, DIST_P
It is determined that OS = 0. Here, WHIT
E_FOUND = TRUE and COLO
Since R = black, the change point to white detected immediately before is invalidated (step A12).

【0049】この処理によって、カレントの変化点演算
値(SCALE_POS)と直前に検出した変化点座標
(REG_SCALE_POS)との差(DIST_P
OS)=0の場合、すなわち同じ画素位置において白、
黒の両方を示す演算結果が得られた際に、縮小後のイメ
ージパターンに黒画素を優先的に残す。
By this processing, the difference (DIST_P) between the current change point calculation value (SCALE_POS) and the change point coordinate (REG_SCALE_POS) detected immediately before is calculated.
OS) = 0, that is, white at the same pixel position,
When the calculation result indicating both black is obtained, the black pixel is preferentially left in the reduced image pattern.

【0050】次に、変化点を検索中にライン終端に到達
した時の動作を説明する。図4の例では、変化点座標
(CRNT_POS)の値が22のとき、DIST_P
OS>0かつCOLOR=白のため(ステップA5,A
6)、白画素への変化点候補を検出した時の処理(ステ
ップA11)を実行する。
Next, the operation when the end of the line is reached during the search for the change point will be described. In the example of FIG. 4, when the value of the change point coordinate (CRNT_POS) is 22, DIST_P
Since OS> 0 and COLOR = white (steps A5, A
6) The process (step A11) when the change point candidate to the white pixel is detected is executed.

【0051】この時、変化点座標(CRNT_POS)
はライン終端であるため(ステップA13)、次の黒画
素への変化点を検索する処理に移行せずライン終端処理
を実行する(ステップA14)。すなわち、白の変化点
座標(AVL_SCALE_POSW)を縮小後のライ
ン終端座標の右側に置く。
At this time, the change point coordinates (CRNT_POS)
Is the line end (step A13), the line end processing is executed (step A14) without proceeding to the processing for searching for the change point to the next black pixel. That is, the white change point coordinates (AVL_SCALE_POSW) are placed to the right of the reduced line end coordinates.

【0052】こうして図4(b)に示す変化点座標(C
RNT_POS)列に対する縮小後の変化点座標(白か
ら黒への変化点座標(AVL_SCALE_POSB)
と黒から白への変化点座標(AVL_SCALE_PO
SW))とが図4(d)に示すようにして得られる。図
4(d)に示す縮小後の変化点座標列に対応するイメー
ジパターンは図4(e)に示すようになる。
Thus, the change point coordinates (C
RNT_POS) change point coordinates after reduction (change point coordinates from white to black (AVL_SCALE_POSB)
And black to white change point coordinates (AVL_SCALE_PO
SW)) is obtained as shown in FIG. An image pattern corresponding to the reduced change point coordinate sequence shown in FIG. 4D is as shown in FIG.

【0053】次に、ステップA10の縮小演算処理にお
ける、消失した白画素への変化点を復活させる処理を図
5を用いて説明する。図5は、縮小倍率(SCALE
X)を1/3とした時の、入力データとする変化点座標
(CRNT_POS)列に対する縮小後の変化点座標
(AVL_SCALE_POSB)(AVL_SCAL
E_POSW)を算出する過程を示すものである。
Next, with reference to FIG. 5, a description will be given of the process of restoring the change point to the lost white pixel in the reduction calculation process of step A10. FIG. 5 shows the reduction ratio (SCALE
Change point coordinates (AVL_SCALE_POSB) (AVL_SCAL) after reduction with respect to the change point coordinate (CRNT_POS) sequence as input data when (X) is ⅓
It shows a process of calculating E_POSW).

【0054】縮小倍率を1/3に設定した場合、図5
(b)に示す変化点座標(CRNT_POS)列に対し
て、図4を用いて説明したようにして順次処理を進めて
いくと、変化点座標(CRNT_POS)=12に対し
ては以下のように処理が施される。
When the reduction ratio is set to 1/3,
When the process is sequentially performed on the change point coordinate (CRNT_POS) column shown in (b) as described with reference to FIG. 4, the change point coordinate (CRNT_POS) = 12 is as follows. Processing is performed.

【0055】まず、変化点座標(CRNT_POS)=
12に対して縮小倍率(1/3)を乗算し、カレントの
変化点演算値(SCALE_POS)=4(COLOR
=白)を求める(ステップA3)。
First, change point coordinates (CRNT_POS) =
12 is multiplied by the reduction ratio (1/3), and the current change point calculation value (SCALE_POS) = 4 (COLOR
= White) is calculated (step A3).

【0056】この場合、カレントの変化点演算値(SC
ALE_POS)=4と直前に検出した変化点座標(R
EG_SCALE_POS)=3との差(DIST_P
OS)=1となるので、ステップA5,A6により、ス
テップA11の処理に移行する。
In this case, the current change point calculation value (SC
ALE_POS) = 4 and change point coordinates (R
EG_SCALE_POS) = 3 difference (DIST_P
Since OS) = 1, the process proceeds to step A11 by steps A5 and A6.

【0057】ステップA11では、変化点(SCALE
_POS)=4を黒画素から白画素への変化点候補とし
て直前に検出した変化点座標(REG_SCALE_P
OS)に保存し、変化点検出フラグ(WHITE_FO
UND)を有効にする。
At step A11, the change point (SCALE
_POS) = 4 as a change point candidate from a black pixel to a white pixel, the change point coordinates (REG_SCALE_P) detected immediately before.
Saved in OS), change point detection flag (WHITE_FO
UND) is enabled.

【0058】次に、変化点座標(CRNT_POS)=
13に対する処理では、カレントの変化点演算値(SC
ALE_POS)=4(COLOR=黒)となる。従っ
て、ステップA4において、カレントの変化点演算値
(SCALE_POS)=4と直前に検出した変化点座
標(REG_SCALE_POS)=4との差(DIS
T_POS)=0となるため、ステップA12におい
て、先のステップA11において有効にした変化点検出
フラグ(WHITE_FOUND)を無効とする。
Next, change point coordinates (CRNT_POS) =
In the process for 13, the current change point calculation value (SC
ALE_POS) = 4 (COLOR = black). Therefore, at step A4, the difference (DIS) between the current change point calculation value (SCALE_POS) = 4 and the change point coordinate (REG_SCALE_POS) = 4 detected immediately before is calculated.
Since T_POS) = 0, the change point detection flag (WHITE_FOUND) validated in the previous step A11 is invalidated in step A12.

【0059】また、変化点座標(CRNT_POS)=
14に対する処理においても、カレントの変化点演算値
(SCALE_POS)=4(COLOR=白)となる
ため、変化点座標(CRNT_POS)=13に対する
処理と同様に、ステップA4において、カレントの変化
点演算値(SCALE_POS)=4と直前に検出した
変化点座標(REG_SCALE_POS)=4との差
(DIST_POS)=0となる。
The change point coordinates (CRNT_POS) =
Also in the process for 14, the current change point calculation value (SCALE_POS) = 4 (COLOR = white), and thus, in the same manner as the process for the change point coordinate (CRNT_POS) = 13, the current change point calculation value is calculated in step A4. The difference (DIST_POS) = 0 between (SCALE_POS) = 4 and the change point coordinates (REG_SCALE_POS) = 4 detected immediately before is (DIST_POS) = 0.

【0060】次に、変化点座標(CRNT_POS)=
18に対する処理では、カレントの変化点演算値(SC
ALE_POS)=6(COLOR=黒)となる。従っ
て、ステップA4において、カレントの変化点演算値
(SCALE_POS)=6と直前に検出した変化点座
標(REG_SCALE_POS)=4との差(DIS
T_POS)=2となるため、DIST_POS>1か
つCOLOR=黒の条件が成立する(ステップA5,A
6)。さらに、先の変化点座標(CRNT_POS)に
対する処理の際に、ステップA12において、変化点検
出フラグ(WHITE_FOUND)を無効としてお
り、さらにカレントの変化点演算値(SCALE_PO
S)と直前に検出した変化点座標(REG_SCALE
_POS)との差(DIST_POS)=2であるた
め、ステップA10の処理に移行する(ステップA7,
A8)。
Next, change point coordinates (CRNT_POS) =
In the process for 18, the current change point calculation value (SC
ALE_POS) = 6 (COLOR = black). Therefore, in step A4, the difference (DIS) between the current change point calculation value (SCALE_POS) = 6 and the change point coordinate (REG_SCALE_POS) = 4 detected immediately before is calculated.
Since T_POS) = 2, the conditions of DIST_POS> 1 and COLOR = black are satisfied (steps A5 and A).
6). Further, during the processing for the previous change point coordinates (CRNT_POS), the change point detection flag (WHITE_FOUND) is invalidated in step A12, and the current change point calculation value (SCALE_PO) is set.
S) and the change point coordinates detected immediately before (REG_SCALE
_POS) (DIST_POS) = 2, the process proceeds to step A10 (step A7,
A8).

【0061】ステップA10では、直前の縮小演算処理
で消失した白画素への変化点を復活させる。すなわち、
カレントの変化点演算結果(SCALE_POS)を白
から黒への変化点座標(AVL_SCALE_POS
B)とし、直前に決定した変化点座標(REG_SCA
LE_POS)+1を、白画素への変化点座標(AVL
_SCALE_POSW)として確定する。
At step A10, the change point to the white pixel which has disappeared in the previous reduction calculation process is restored. That is,
The current change point calculation result (SCALE_POS) is changed from white to black change point coordinates (AVL_SCALE_POS).
B), and the change point coordinates (REG_SCA) determined immediately before.
LE_POS) +1 is the coordinate of the change point to the white pixel (AVL
_SCALE_POSW).

【0062】ここでは、カレントの変化点演算結果(S
CALE_POS)=6であるので白から黒への変化点
座標(AVL_SCALE_POSB)=6とし、一
方、直前に決定した変化点座標(REG_SCALE_
POS)=4であるので、白画素への変化点座標(AV
L_SCALE_POSW)=5として白画素への変化
点を復活させる。また、変化点検出フラグ(WHITE
_FOUND)(BLACK_FOUND)を有効(T
RUE)にする。
Here, the current change point calculation result (S
Since CALE_POS) = 6, the change point coordinates from white to black (AVL_SCALE_POSB) = 6, while the change point coordinates (REG_SCALE_) determined immediately before are set.
Since POS) = 4, the change point coordinates (AV
L_SCALE_POSW) = 5 is set to restore the change point to the white pixel. In addition, a change point detection flag (WHITE
_FOUND) (BLACK_FOUND) is enabled (T
RUE).

【0063】以下、残りの変化点座標(CRNT_PO
S)に対して、前述と同様にして処理を施す。こうして
図5(b)に示す変化点座標(CRNT_POS)列に
対する縮小後の変化点座標(白から黒への変化点座標
(AVL_SCALE_POSB)と黒から白への変化
点座標(AVL_SCALE_POSW))とが図5
(d)に示すようにして得られる。図5(d)におい
て、黒から白への変化点座標(AVL_SCALE_P
OSW)=5が復活された変化点である。図5(d)に
示す縮小後の変化点座標列に対応するイメージパターン
は図5(e)に示すようになる。
Below, the remaining change point coordinates (CRNT_PO
S) is processed in the same manner as described above. Thus, the change point coordinates (change point coordinates from white to black (AVL_SCALE_POSB) and change point coordinates from black to white (AVL_SCALE_POSW)) after shrinking with respect to the change point coordinate (CRNT_POS) column shown in FIG. 5
It is obtained as shown in (d). In FIG. 5D, the coordinates of the change point from black to white (AVL_SCALE_P
OSW) = 5 is the point of change that was revived. An image pattern corresponding to the changed change point coordinate sequence shown in FIG. 5D is as shown in FIG.

【0064】このようにして、イメージデータの主走査
方向における縮小処理を行なう際に、白及び黒への変化
点座標情報をもとに行なうので、作業メモリ上でのイメ
ージデータの展開が不要となり、データ転送量を減少さ
せることができ高速なイメージ処理が可能となる。特
に、図形や文字等を含むイメージにおいては、白(空
白)の領域が少ない場合には、縮小処理における演算量
とメモリアクセス量が減るため、大幅なイメージ処理の
高速化が可能である。
In this way, when the reduction processing of the image data in the main scanning direction is performed based on the coordinate information of the changing points to white and black, it is not necessary to develop the image data on the working memory. The data transfer amount can be reduced, and high-speed image processing can be performed. In particular, in an image including figures, characters, etc., when the white (blank) area is small, the calculation amount and memory access amount in the reduction process are reduced, so that the image processing speed can be significantly increased.

【0065】さらに、縮小後のイメージパターンに黒画
素を優先的に残し、かつ白画素の消失が最小限になるよ
うな変化点座標(AVL_SCALE_POSB)(A
VL_SCALE_POSW)を生成するので、図面や
文字を含むイメージであっても、図形や文字等を構成す
る線の掠れや消失を防ぐことができ、高品質な縮小処理
が可能となる。
Furthermore, change point coordinates (AVL_SCALE_POSB) (AVL_SCALE_POSB) (A) in which black pixels are preferentially left in the reduced image pattern and the loss of white pixels is minimized.
Since VL_SCALE_POSW) is generated, even if an image includes a drawing or a character, it is possible to prevent blurring or disappearance of a line forming a figure, a character, or the like, and high-quality reduction processing can be performed.

【0066】次に、本発明の第2実施形態に係わるイメ
ージ処理方法におけるデータ縮小方法を、図6及び図7
に示すフローチャートを参照しながら説明する。第2実
施形態におけるデータ縮小方法は、図8に示すように、
イメージデータの主走査方向における白及び黒への変化
点座標情報が格納される入力変化点テーブルをもとに副
走査線方向に対して縮小処理を行なう。
Next, the data reduction method in the image processing method according to the second embodiment of the present invention will be described with reference to FIGS.
This will be described with reference to the flowchart shown in FIG. The data reduction method according to the second embodiment is as shown in FIG.
Reduction processing is performed in the sub-scanning line direction on the basis of an input change point table in which coordinate information of the change points of the image data in the main scanning direction to white and black is stored.

【0067】図8(a)には、2ライン分の変化点テー
ブル(各ラインの変化点座標列)をもとに、OR縮小に
より1ライン分の変化点テーブル(縮小後の変化点座標
列)を生成する例を示している。図8(b)は、直観的
に分かるように図8(a)に示す変化点座標をイメージ
パターンに置き換えたものである。
In FIG. 8A, a change point table for 1 line (change point coordinate sequence after reduction) is obtained by OR reduction based on a change point table for 2 lines (change point coordinate sequence for each line). ) Is generated. FIG. 8B is a diagram in which the changing point coordinates shown in FIG. 8A are replaced with an image pattern so as to be intuitively understood.

【0068】本実施形態では、変化点テーブルA/Bに
おける変化点の相対的な位置関係をもとに、図6及び図
7に示すフローチャートの手順に従ってOR処理後の変
化点座標を抽出する。
In this embodiment, the change point coordinates after the OR processing are extracted according to the procedure of the flowcharts shown in FIGS. 6 and 7 based on the relative positional relationship of the change points in the change point tables A / B.

【0069】ステップB1は、初期化処理であり、縮小
後の変化点を格納するメモリエリアを2ライン分(読み
だし用バンク及び書き込み用バンク)確保し、この縮小
変化点テーブル及び縮小後の変化点検出に使用する変数
を初期化するステップである。
Step B1 is an initialization process in which a memory area for storing the changed points after the reduction is secured for two lines (a read bank and a write bank), and this reduced change point table and the changes after the reduction are made. This is a step of initializing variables used for point detection.

【0070】ステップB2は、以降のステップで使用す
る注目変化点C1、白変化点候補C2が検出されている
か否かを判断するステップである。ステップB3は、変
化点C1、C2を検出するステップであり、入力変化点
テーブルと読みだし用縮小変化点テーブルの内、黒画素
への変化点位置が小さい方を注目変化点(C1)として
書き込み用縮小変化点テーブルに登録し、注目変化点の
右側にある最初の白画素への変化点を白変化点候補(C
2)とするステップである。
Step B2 is a step of judging whether or not the noticeable change point C1 and the white change point candidate C2 used in the subsequent steps are detected. Step B3 is a step of detecting the change points C1 and C2, and one of the input change point table and the read-out reduced change point table having the smaller change point position to the black pixel is written as the noticed change point (C1). The change point to the first white pixel on the right side of the noticeable change point is registered as the white change point candidate (C
2).

【0071】ステップB4は、変化点テーブル中の変化
点がライン終端に到達したか否かを判定するステップで
ある。ステップB5は、注目変化点C1の反対側のライ
ンで、座標値が白変化点候補(C2)以上となる変化点
(CX)を検索するステップである。
Step B4 is a step of determining whether or not the change point in the change point table has reached the end of the line. Step B5 is a step of searching for a change point (CX) whose coordinate value is equal to or more than the white change point candidate (C2) on the line opposite to the noticed change point C1.

【0072】ステップB6は、ステップB5で検出した
変化点CXが条件aまたは条件c(条件a,cの詳細に
ついては図9、図10を用いて後述する)を満たすか否
か判定するステップである。
Step B6 is a step of determining whether the change point CX detected in step B5 satisfies the condition a or the condition c (details of the conditions a and c will be described later with reference to FIGS. 9 and 10). is there.

【0073】ステップB7は、条件aまたは条件cが成
立した時の処理であり、白変化点候補C2を縮小変化点
テーブルに登録する。また、次の注目変化点C1、白変
化点候補C2を検出するために(C1C2_FOUN
D)フラグを無効にする。
Step B7 is a process when the condition a or the condition c is satisfied, and the white change point candidate C2 is registered in the reduced change point table. Further, in order to detect the next attention change point C1 and the white change point candidate C2, (C1C2_FOUN
D) Disable the flag.

【0074】ステップB8は、ステップB5で検出した
変化点CXが条件b(条件bの詳細については図11を
用いて後述する)を満たしているか否かを判定するステ
ップである。
Step B8 is a step of determining whether or not the change point CX detected in step B5 satisfies the condition b (details of the condition b will be described later with reference to FIG. 11).

【0075】ステップB9は、条件bが成立した時の処
理であり、変化点CXを注目変化点C1とし、その右側
にある最初の白画素への変化点を白変化点候補(C2)
とする。
Step B9 is a process when the condition b is satisfied. The change point CX is set as the noticed change point C1, and the change point to the first white pixel on the right side thereof is the white change point candidate (C2).
And

【0076】ステップB10は、条件a、条件b、条件
c以外の場合の処理であり、変化点CXが白変化点候補
(C2)を越える座標位置にあり、その変化点の色が白
画素への変化点であったケースに該当する。この場合、
白変化点候補(C2)の位置を注目変化点(C1)と
し、この検出した変化点(CX)を白変化点候補(C
2)とする。
Step B10 is a process other than the conditions a, b, and c. The change point CX is located at the coordinate position exceeding the white change point candidate (C2), and the color of the change point becomes a white pixel. It corresponds to the case where it was the change point of. in this case,
The position of the white change point candidate (C2) is set as the attention change point (C1), and the detected change point (CX) is set as the white change point candidate (C1).
2).

【0077】ステップB11,B12,B13は、注目
変化点(C1)、または白変化点候補(C2)がライン
終端であるかを判定し、ライン終端である場合、白変化
点候補C2を縮小変化点テーブルに登録し、ライン終端
でない場合、さらに座標値が白変化点候補C2以上とな
る変化点を検出するために(C1C2_FOUND)フ
ラグを有効にする。
Steps B11, B12, and B13 determine whether the target change point (C1) or the white change point candidate (C2) is the end of the line, and if it is the end of the line, the white change point candidate C2 is reduced and changed. When the line is registered in the point table and the line end is not reached, the (C1C2_FOUND) flag is validated in order to detect a change point whose coordinate value is the white change point candidate C2 or more.

【0078】ステップB14、B15は、入出力イメー
ジのライン数情報から出力すべき縮小変化点テーブルを
選択するステップである。出力する場合は、ステップB
1において変化点テーブルが初期化されるように(CL
R_TBL)フラグを有効にする。
Steps B14 and B15 are steps for selecting the reduced change point table to be output from the line number information of the input / output image. When outputting, step B
1 so that the change point table is initialized (CL
R_TBL) flag enabled.

【0079】ステップB16、B17は、1画面分の処
理を終了したか判断し、終了していない場合は、縮小変
化点テーブルのバンクを切替え、ステップB1の処理を
繰り返すステップである。
Steps B16 and B17 are steps for judging whether or not the processing for one screen has been completed, and if not completed, switching the bank of the reduction change point table and repeating the processing of step B1.

【0080】次に、第2実施形態におけるデータ縮小処
理の動作について説明する。まず、縮小後の変化点を格
納するエリアを2ライン分(読みだし用、書き込み用)
確保し、この縮小変化点テーブル及び縮小後の変化点検
出に使用する変数を初期化する(ステップB1)。
Next, the operation of the data reduction processing in the second embodiment will be described. First, the area for storing the changed points after reduction is equivalent to 2 lines (for reading and writing)
The reserved variable point table and the variables used for detecting the changed point after reduction are secured and initialized (step B1).

【0081】次に、以降のステップで使用する注目変化
点(C1)、白変化点候補(C2)が検出されているか
否か、すなわち(C1C2_FOUND)フラグが有効
(TRUE)となっているかを判断する(ステップB
2)。注目変化点C1、白変化点候補C2は、変化点テ
ーブルA(1ライン目)から抽出されるもので、ここで
抽出されていなければステップB3に移行する。
Next, it is judged whether or not the noticeable change point (C1) and the white change point candidate (C2) used in the subsequent steps are detected, that is, whether the (C1C2_FOUND) flag is valid (TRUE). Yes (Step B
2). The noticed change point C1 and the white change point candidate C2 are extracted from the change point table A (first line), and if not extracted here, the process proceeds to step B3.

【0082】ステップB3では、入力変化点テーブルと
読みだし用縮小変化点テーブルの内、黒画素への変化点
位置が小さい方を注目変化点(C1)として書き込み用
縮小変化点テーブルに登録し、注目変化点の右側にある
最初の白画素への変化点を白変化点候補(C2)とす
る。
In step B3, of the input change point table and the read reduction change point table, the one having a smaller change point position to the black pixel is registered as the noticed change point (C1) in the write reduction change point table, The change point to the first white pixel on the right side of the noticed change point is defined as a white change point candidate (C2).

【0083】図8に示す例において、入力変化点テーブ
ルを変化点テーブルAとし、読みだし用変化点テーブル
を変化点テーブルBとした場合、注目変化点(C1)が
変化点テーブルAにある1(1番目の変化点)であり、
白変化点候補(C2)はその右側にある7(2番目の変
化点)となる。また、注目変化点(C1)については、
2ラインのOR縮小結果として確定するため、書き込み
用縮小変化点テーブルに登録する(図8に示す変化点テ
ーブルAの1番目の変化点1)。
In the example shown in FIG. 8, when the input change point table is the change point table A and the read change point table is the change point table B, the noticed change point (C1) is 1 in the change point table A. (First change point),
The white change point candidate (C2) is 7 (second change point) on the right side. Regarding the change point of interest (C1),
Since it is decided as the OR reduction result of two lines, it is registered in the write reduction change point table (the first change point 1 in the change point table A shown in FIG. 8).

【0084】次に、処理がラインの終端に達していなけ
れば、注目変化点(C1)が検出されたラインの反対側
のライン(読みだし用変化点テーブルである変化点テー
ブルB)から、座標値が白変化点候補(C2)以上とな
る変化点(CX)を検索する(ステップB5)。図8に
示す例では、変化点テーブルBの8(5番目の変化点)
が変化点(CX)となる。
Next, if the processing has not reached the end of the line, the coordinates are changed from the line on the opposite side of the line in which the noticeable change point (C1) is detected (change point table B which is a read change point table). A change point (CX) whose value is greater than or equal to the white change point candidate (C2) is searched (step B5). In the example shown in FIG. 8, 8 in the change point table B (5th change point)
Is the change point (CX).

【0085】ここで、検出した変化点(CX)が条件a
または条件cを満たすか否か判定する(ステップB
6)。条件aは、変化点(CX)が白変化点候補(C
2)と同じ位置にあり、その色が白の変化点であった場
合を意味する。図9には条件aが成立するケースを示し
ている(2ライン目の4番目の変化点7が変化点(C
X))。なお、実際は変化点テーブル上で処理している
が、ここでは直観的に理解しやすいようにイメージパタ
ーンで示している。
Here, the detected change point (CX) is the condition a.
Alternatively, it is determined whether or not the condition c is satisfied (step B
6). Condition a is that the change point (CX) is a white change point candidate (C
It means the case where it is at the same position as 2) and the color is the change point of white. FIG. 9 shows a case where the condition a is satisfied (the fourth change point 7 on the second line is the change point (C
X)). In addition, although the processing is actually performed on the change point table, the image pattern is shown here for the sake of intuitive understanding.

【0086】また条件cは、変化点(CX)が白変化点
候補(C2)を越える座標位置にあり、その色が黒画素
への変化点であった場合を意味する。図10には条件c
が成立するケースを示している(2ライン目の5番目の
変化点8が変化点(CX))。
Condition c means that the change point (CX) is at a coordinate position exceeding the white change point candidate (C2) and the color is the change point to the black pixel. In FIG. 10, condition c
Is satisfied (the fifth change point 8 on the second line is the change point (CX)).

【0087】どちらかの条件が成立すればステップB7
の処理に移行する。ステップB7では、白変化点候補C
2を書き込み用縮小変化点テーブルに登録する。図8に
示す例では条件cが成立するので、白変化点候補C2の
変化点、すなわち2番目の変化点7を書き込み用縮小変
化点テーブルに登録する。また、次のC1、C2を検出
するために(C1C2_FOUND)フラグを無効(F
ALSE)にし、ステップB2に戻る。
If either condition is satisfied, step B7
Move to the processing of. In step B7, white change point candidate C
2 is registered in the write reduction change point table. In the example shown in FIG. 8, since the condition c is satisfied, the change point of the white change point candidate C2, that is, the second change point 7 is registered in the write reduction change point table. Also, the (C1C2_FOUND) flag is disabled (F1) to detect the next C1 and C2.
ALSE) and return to step B2.

【0088】ステップB2では(C1C2_FOUN
D)フラグが無効(FALSE)となっているため、次
の変化点(C1)(C2)を検出するステップB3の処
理に移行する。図8に示す例においては、読みだし用縮
小変化点テーブルである変化点テーブルBの5番目の変
化点8を注目変化点(C1)、変化点テーブルBの6番
目の変化点9を白変化点候補C2として検出される(ス
テップB3)。(なお、図9、図10においては、次の
変化点(C1)(C2)を(C1´)(C2´)で表し
ている。)次に、ステップB5では、注目変化点C1の
反対側のラインで、座標値が白変化点候補(C2)以上
となる変化点(CX)として、入力変化点テーブルの変
化点テーブルAの4番目の変化点10を検出する。
At step B2, (C1C2_FOUN
D) Since the flag is invalid (FALSE), the process proceeds to step B3 for detecting the next change points (C1) and (C2). In the example shown in FIG. 8, the fifth change point 8 of the change point table B, which is a read-out reduced change point table, is the change point of interest (C1), and the sixth change point 9 of the change point table B is white change. It is detected as a point candidate C2 (step B3). (Note that in FIGS. 9 and 10, the next change points (C1) and (C2) are represented by (C1 ′) and (C2 ′).) Next, in step B5, the opposite side of the noticeable change point C1. Line 4, the fourth change point 10 in the change point table A of the input change point table is detected as the change point (CX) whose coordinate value is equal to or greater than the white change point candidate (C2).

【0089】この場合、変化点(CX)は条件a、条件
cの何れも満たさないため(ステップB6)、ステップ
B8の処理に移行して条件bを満たすか否かを判定す
る。条件bは、変化点(CX)が白変化点候補(C2)
と同じ位置にあり、その色が黒への変化点であった場合
を意味する。
In this case, since the change point (CX) does not satisfy either condition a or condition c (step B6), the process shifts to step B8 to determine whether condition b is satisfied. The condition b is that the change point (CX) is a white change point candidate (C2).
It means that it is in the same position as, and the color is a change point to black.

【0090】図11には条件bが成立するケースを示し
ている。条件bは、変化点(CX)が白変化点候補(C
2)と同じ位置にあり、その色が黒への変化点であった
場合を意味している。
FIG. 11 shows a case where the condition b is satisfied. In condition b, the change point (CX) is a white change point candidate (C
It means the case where it is at the same position as 2) and the color is the change point to black.

【0091】図8に示す例では、白変化点候補(C2)
(変化点テーブルBの7番目の変化点9)と、変化点
(CX)(変化点テーブルAの3番目の変化点9)とが
同じ位置にあるので条件bが成立する。
In the example shown in FIG. 8, the white change point candidate (C2)
Since the (7th change point 9 in the change point table B) and the change point (CX) (the 3rd change point 9 in the change point table A) are at the same position, the condition b is satisfied.

【0092】条件bが成立した場合、変化点(CX)を
注目変化点(C1)とし、その右側にある最初の白画素
への変化点を白変化点候補(C2)とする(ステップB
9)。
When the condition b is satisfied, the change point (CX) is set as the noticed change point (C1), and the change point to the first white pixel on the right side is set as the white change point candidate (C2) (step B).
9).

【0093】図11に示す例では、新しい注目変化点が
(C1´)、白変化点候補が(C2´)のようになる。
この場合、白変化点候補(C2)が注目変化点(C1
´)の黒への変化点に潰されるため、縮小変化点テーブ
ルには登録しない。
In the example shown in FIG. 11, the new change point of interest is (C1 ') and the white change point candidate is (C2').
In this case, the white change point candidate (C2) is the attention change point (C1).
It is not registered in the reduced change point table because it is crushed by the black change point of ´).

【0094】なお、条件bを満たさない場合、すなわち
条件a、条件b、条件c以外の場合には、白変化点候補
(C2)の位置を注目変化点(C1)とし、検出した変
化点(CX)を白変化点候補(C2)とする(ステップ
B10)。
When the condition b is not satisfied, that is, the condition other than the conditions a, b, and c, the position of the white change point candidate (C2) is set as the noticed change point (C1), and the detected change point ( CX) is set as a white change point candidate (C2) (step B10).

【0095】図12に条件a,b,cの何れも満たさな
いその他のケースを示している。図12の例では新しい
注目変化点が(C1´)、白変化点候補が(C2´)の
ようになる。条件bの時と同様に、ここでも白変化点候
補(C2)が変化点(C1´)の黒への変化点に潰され
るため、縮小変化点テーブルには登録しない。
FIG. 12 shows another case where none of the conditions a, b and c is satisfied. In the example of FIG. 12, the new noticeable change point is (C1 ′) and the white change point candidate is (C2 ′). Similar to the case of the condition b, the white change point candidate (C2) is also crushed into the change point (C1 ′) to the black change point here, and thus is not registered in the reduced change point table.

【0096】ステップB9(またはB10)の処理が終
了すると、注目変化点(C1)、または白変化点候補
(C2)がライン終端であるかを判定する(ステップB
11)。ライン終端でない場合には、さらに座標値が白
変化点候補(C2)以上となる変化点を検出するために
(C1C2_FOUND)フラグを有効(TRUE)に
して、ステップB2の処理に戻る。
When the processing of step B9 (or B10) is completed, it is judged whether the noticeable change point (C1) or the white change point candidate (C2) is the end of the line (step B
11). If it is not the end of the line, the (C1C2_FOUND) flag is set to be valid (TRUE) to detect a change point whose coordinate value is the white change point candidate (C2) or more, and the process returns to step B2.

【0097】一方、ライン終端である場合、白変化点候
補C2を書き込み用縮小変化点テーブルに登録する(ス
テップB12)。なお、ステップB4において、変化点
テーブル中の変化点がライン終端に到達したことが判定
された場合にも、ステップB12を実行する。
On the other hand, if it is the end of the line, the white change point candidate C2 is registered in the write reduction change point table (step B12). Even when it is determined in step B4 that the change point in the change point table has reached the end of the line, step B12 is executed.

【0098】次に、入出力イメージのライン数情報から
出力すべき縮小変化点テーブルを選択する(ステップB
14)。例えばDDAのキャリー発生条件により実現で
きる。つまり、1ライン毎にDDAを作動させ、DDA
のキャリーが発生した時の書き込み用縮小変化点テーブ
ルを出力すれば良い。
Next, the reduction change point table to be output is selected from the line number information of the input / output image (step B).
14). For example, it can be realized by the carry generation condition of DDA. That is, the DDA is activated for each line, and the DDA is
It suffices to output the write reduction change point table when a carry occurs.

【0099】また、書き込み用縮小変化点テーブルを出
力する場合は、変化点テーブルを初期化することを示す
(CLR_TBL)フラグを有効(TRUE)にする
(ステップB15)。これにより、ステップB1におい
て縮小変化点テーブルが初期化される。
In addition, when outputting the write reduction change point table, the (CLR_TBL) flag indicating that the change point table is initialized is set to valid (TRUE) (step B15). As a result, the reduction change point table is initialized in step B1.

【0100】ここで、1画面分の処理を終了したか判断
し(ステップB16)、終了していない場合は、縮小変
化点テーブルのバンクを切替え、ステップB1の処理に
戻り、前述した処理を繰り返す。
Here, it is judged whether or not the processing for one screen has been completed (step B16). If not completed, the bank of the reduction change point table is switched, the processing returns to step B1, and the above-mentioned processing is repeated. .

【0101】このようにして、イメージデータの副走査
方向における縮小処理を行なう際に、各ラインの白及び
黒への変化点座標情報が格納された変化点テーブルをも
とにOR縮小変化点情報を求めるので、第1実施形態の
場合と同様にして、作業メモリ上でのイメージデータの
展開が不要となり、データ転送量を減少させることがで
き高速なイメージ処理が可能となる。
In this way, when the reduction processing of the image data in the sub-scanning direction is performed, the OR reduction change point information is obtained based on the change point table storing the change point coordinate information of each line to white and black. Therefore, similarly to the case of the first embodiment, it is not necessary to expand the image data on the working memory, the data transfer amount can be reduced, and high-speed image processing can be performed.

【0102】次に、本発明の第3実施形態に係わるイメ
ージ処理方法におけるデータ変換方法を、図13に示す
フローチャートを参照しながら説明する。第3実施形態
におけるデータ変換方法は、図16に示すように、イメ
ージデータの白及び黒への変化点座標情報からなる変化
点データ列をもとにイメージデータを生成する。
Next, a data conversion method in the image processing method according to the third embodiment of the present invention will be described with reference to the flowchart shown in FIG. In the data conversion method according to the third embodiment, as shown in FIG. 16, image data is generated based on a change point data string including change point coordinate information of white and black of image data.

【0103】ステップC1は、初期化処理を実行するス
テップであり、直前の変化点演算結果の初期化を行う。
ステップC2は、直前の変化点座標に対する演算結果を
(BYTELEN_OLD)に保存し、入力変化点の座
標を所定の値で除算した商と余りを求めるステップであ
る。
Step C1 is a step for executing the initialization processing, and initializes the immediately preceding change point calculation result.
Step C2 is a step of storing the calculation result for the coordinates of the immediately preceding change point in (BYTELEN_OLD) and obtaining the quotient and the remainder by dividing the coordinates of the input change point by a predetermined value.

【0104】ステップC3は、ステップC2で求めた変
化点座標のバイトレングス(BYTELEN)と直前の
値(BYTELEN_OLD)との差を求め、これを
(FILL_NO)に保持するステップである。
In step C3, the difference between the byte length (BYTELEN) of the change point coordinates obtained in step C2 and the immediately preceding value (BYTELEN_OLD) is obtained and held in (FILL_NO).

【0105】ステップC4は、ステップC3で求めた
(FILL_NO)が1以上であるか否かを判定するス
テップである。ステップC5は、カレント変化点の色が
黒か否かを判定するステップ。
Step C4 is a step of determining whether or not (FILL_NO) obtained in step C3 is 1 or more. Step C5 is a step of determining whether or not the color of the current change point is black.

【0106】ステップC6,C7は、バイトレングスの
端数値(BITPAT_NO)とカレント色(COLO
R)をアドレスとし、イメージ変換テーブルを参照し、
端数部のイメージパターン(BITPAT_REG)を
求めるステップであり、カレント色が黒の場合、(BI
TPAT_REG)とイメージ変換テーブルの出力をO
R演算し、(BITPAT_REG)に代入する。
Steps C6 and C7 are the byte length fractional value (BITPAT_NO) and the current color (COLO).
R) as an address and referring to the image conversion table,
This is the step of obtaining the image pattern (BITPAT_REG) of the fractional part, and when the current color is black, (BI
TPAT_REG) and output of image conversion table
R calculation is performed and the result is substituted into (BITPAT_REG).

【0107】一方、カレント色が白の場合、(BITP
AT_REG)とイメージ変換テーブルの出力をAND
した結果を(BITPAT_REG)に代入する。ステ
ップC8は、ステップC4の判定で(FILL_NO)
が1以上の場合、実行されるステップであり、ステップ
C6、C7で生成した端数部のイメージパターン(BI
TPAT_REG)を出力イメージ領域に転送するステ
ップである。また、(BITPAT_REG)をステッ
プC2で求めた(BITPAT_NO)に対応するイメ
ージパターンで初期化する。
On the other hand, if the current color is white, (BITP
AND the output of the image conversion table
The result obtained is substituted into (BITPAT_REG). Step C8 is the determination of step C4 (FILL_NO).
Is a step to be executed when 1 is 1 or more, the image pattern of the fractional part generated in steps C6 and C7 (BI
TPAT_REG) is transferred to the output image area. Further, (BITPAT_REG) is initialized with the image pattern corresponding to (BITPAT_NO) obtained in step C2.

【0108】ステップC9は、1バイト(ここでは8ビ
ット)で構成される白または黒のイメージを(FILL
_NO)−1回分出力イメージ領域に転送するステップ
である。
In step C9, a white or black image composed of 1 byte (8 bits in this case) is displayed as (FILL).
_NO) -1 transfer to the output image area for one time.

【0109】ステップC10,C11は、ライン終端、
1画面終了を判定するステップであり、1画面分の変化
点情報をイメージに変換するまでラスタ走査方向に順次
処理を実行するための終了判定である。
Steps C10 and C11 are for terminating the line,
This is a step of determining the end of one screen, which is an end determination for sequentially executing processing in the raster scanning direction until the change point information for one screen is converted into an image.

【0110】次に、第3実施形態におけるデータ変換方
法の動作について、図14、図15、図16に示す具体
例を用いながら説明する。図14(b)に示す入力変化
点データが入力データとなる。図14(b)の変化点座
標列に対応するイメージデータを、図14(a)に示し
ている。
Next, the operation of the data conversion method according to the third embodiment will be described with reference to the concrete examples shown in FIGS. 14, 15 and 16. The input change point data shown in FIG. 14B becomes the input data. Image data corresponding to the change point coordinate sequence of FIG. 14B is shown in FIG.

【0111】まず、直前の変化点演算結果の初期化を行
なった後、直前の演算結果を(BYTELEN_OL
D)に保存し、入力データの変化点座標を所定の値で除
算した商(バイトレングス(BYTELEN))と余り
(BITPAT_NO)を求める(ステップC1,C
2)。本実施形態では、所定の値を8とし、変化点座標
のバイトレングス(BYTELEN)とその余り(BI
TPAT_NO)を求めている。すなわち、POSHI
FT=3として入力変化点データ(CPOS)をシフト
して商をもとめ、またPOSMASK=7として入力変
化点データ(CPOS)に対する論理積によって余りを
求めている。
First, after the initialization of the immediately preceding change point calculation result, the immediately previous calculation result is set to (BYTELEN_OL
D), and obtains the quotient (byte length (BYTELEN)) and the remainder (BITPAT_NO) obtained by dividing the change point coordinates of the input data by a predetermined value (steps C1 and C).
2). In the present embodiment, the predetermined value is set to 8, and the byte length (BYTELEN) of the change point coordinates and the remainder (BI) are set.
TPAT_NO). That is, POSHI
The input change point data (CPOS) is shifted to obtain the quotient with FT = 3, and the remainder is obtained by the logical product of the input change point data (CPOS) with POSMASK = 7.

【0112】次に、ステップC2で求めた変化点座標の
バイトレングス(BYTELEN)と直前の値(BYT
ELEN_OLD)との差を求め、これを(FILL_
NO)とする(ステップC3)。
Next, the byte length (BYTELEN) of the change point coordinates obtained in step C2 and the immediately preceding value (BYT
ELEN_OLD) and calculate this as (FILL_OLD)
NO) (step C3).

【0113】ここで、(FILL_NO)が0であった
場合(ステップC4)、ステップC5に移行する。ステ
ップC5ではカレント変化点の色が黒か否かを判定す
る。カレント変化点の色が黒である場合、前の端数部の
イメージパターン(BITPAT_REG)と、図15
(1)に示す黒用のイメージ変換テーブルから得られる
イメージパターンとをOR演算することによって、(B
ITPAT_REG)を生成する(ステップC6)。
If (FILL_NO) is 0 (step C4), the process proceeds to step C5. In step C5, it is determined whether or not the color of the current change point is black. When the color of the current change point is black, the image pattern (BITPAT_REG) of the previous fractional part and FIG.
By ORing the image pattern obtained from the image conversion table for black shown in (1), (B
ITPAT_REG) is generated (step C6).

【0114】また、カレント変化点の色が白である場
合、前の端数部のイメージパターン(BITPAT_R
EG)と、図15(2)に示す白用のイメージ変換テー
ブルから得られるイメージパターンとをAND演算する
ことによって、(BITPAT_REG)を生成する
(ステップC7)。
If the color of the current change point is white, the image pattern of the previous fractional part (BITPAT_R
EG) and the image pattern obtained from the image conversion table for white shown in FIG. 15B are ANDed to generate (BITPAT_REG) (step C7).

【0115】なお、本実施形態では、端数(BITPA
T_NO)によりアクセスされるイメージ変換用テーブ
ルに白変化点用と黒変化点用を設けているが、2つのテ
ーブルは互いにビット反転により求められるため必ずし
も2つ必要ではない。すなわち、一方のテーブルから得
られるイメージパターンを反転して用いることで、他方
のテーブルに代用する。また、本実施形態では、8ビッ
トのイメージパターンを格納するテーブルであるが、出
力イメージ領域に展開する単位によっては、16ビット
/32ビット等のテーブル構成とする。イメージ変換テ
ーブルに格納されるイメージパターンは、例えば黒用と
すると、端数(BITPAT_NO)が示す数の連続し
た白画素の後、残りの画素分の黒画素が連続するパター
ンである。
In this embodiment, the fraction (BITPA
The image conversion table accessed by (T_NO) is provided with a white change point and a black change point, but two tables are not necessarily required because they are obtained by bit inversion. That is, the image pattern obtained from one of the tables is inverted and used to substitute for the other table. Further, in the present embodiment, the table stores an 8-bit image pattern, but a table configuration of 16 bits / 32 bits or the like is used depending on the unit of expansion in the output image area. The image pattern stored in the image conversion table is, for example, for black, and is a pattern in which after the number of continuous white pixels indicated by the fraction (BITPAT_NO), the black pixels of the remaining pixels are continuous.

【0116】一方、ステップC4において、ステップC
3で求めた(FILL_NO)が1以上であると判定し
た場合、ステップC6、C7で生成した端数部のイメー
ジパターン(BITPAT_REG)を、変化点データ
をもとに生成された最終的なイメージパターンとして出
力イメージ領域に転送する(ステップC8)。また、
(BITPAT_REG)を、次の変化点データに対す
る処理(ステップC6,C7)のために、ステップC2
で求めた(BITPAT_NO)に対応するイメージ変
換テーブルから得られたイメージパターンで初期化す
る。
On the other hand, in step C4, step C
When it is determined that (FILL_NO) obtained in 3 is 1 or more, the fractional image pattern (BITPAT_REG) generated in steps C6 and C7 is set as the final image pattern generated based on the change point data. Transfer to the output image area (step C8). Also,
(BITPAT_REG) is processed in step C2 for processing (steps C6 and C7) for the next change point data.
The image pattern is initialized with the image pattern obtained from the image conversion table corresponding to (BITPAT_NO) obtained in step 1.

【0117】そして、8ビットで構成される白または黒
のイメージを(FILL_NO)−1回分出力イメージ
領域に転送する。すなわち、(FILL_NO)が2以
上である場合には、白または黒の同じ色が連続して1バ
イト以上連続することを示すので、必要なバイト数の白
または黒のデータを連続して出力する。
Then, the 8-bit white or black image is transferred to the output image area for (FILL_NO) -1 times. That is, if (FILL_NO) is 2 or more, it indicates that the same color of white or black is continuous for 1 byte or more, so that the required number of bytes of white or black data is continuously output. .

【0118】ここで、ライン終端に達していなければ、
ステップC2の処理に戻り、対象ラインの残りの部分に
対して処理を繰り返す。また、ライン終端に達し、1画
面分の処理が終了していなければ、ステップC1の初期
化処理にもどり、残りのラインの入力変化点データに対
する処理を行なう。全てのラインについての処理が完了
したら処理を終了する。
If the line end has not been reached,
Returning to the process of step C2, the process is repeated for the remaining part of the target line. If the end of the line has been reached and the processing for one screen has not been completed, the process returns to the initialization processing in step C1 to perform processing on the input change point data of the remaining lines. When the processing for all lines is completed, the processing ends.

【0119】図14に示す例では、まず、(FILL_
NO)が1以上となるまで端数部の演算を行う。この例
では入力変化点データ(CPOS)が5から7までの
間、図14(c)に示すように、バイトレングス(BY
TELEN)が0なので、端数部についての演算を行な
うことになる。
In the example shown in FIG. 14, first, (FILL_
The calculation of the fractional part is performed until NO) becomes 1 or more. In this example, while the input change point data (CPOS) is from 5 to 7, as shown in FIG. 14C, the byte length (BY
Since TELEN) is 0, the calculation for the fractional part is performed.

【0120】入力変化点データ(CPOS)=5の時、
端数(BITPAT_NO)が5(黒画素への変化点)
であるので、端数部のイメージパターン(BITPAT
_REG)を、(BITPAT_NO)=5に対応する
黒用のイメージ変換テーブル値(0x07)、すなわち
図16に示すCPOSに対応するBITPAT(BIT
PAT_NO)で初期化する。
When the input change point data (CPOS) = 5,
Fraction (BITPAT_NO) is 5 (change point to black pixel)
Therefore, the image pattern of the fractional part (BITPAT
_REG) is the image conversion table value for black (0x07) corresponding to (BITPAT_NO) = 5, that is, BIPTAT (BIT corresponding to CPOS shown in FIG.
Initialize with PAT_NO).

【0121】入力変化点データ(CPOS)=6の時、
端数(BITPAT_NO)が6であり、白画素への変
化点であるので、白用のイメージ変換テーブルから得ら
れる(BITPAT_NO)=6のテーブル値(0xf
c)と、前の端数部のイメージパターン(BITPAT
_REG)とANDをとることで(BITPAT_RE
G)を求める(ステップC7)。
When the input change point data (CPOS) = 6,
Since the fraction (BITPAT_NO) is 6, which is the change point to the white pixel, the table value (0xf) of (BITPAT_NO) = 6 obtained from the image conversion table for white.
c) and the image pattern of the previous fractional part (BITPAT
AND with (_REG) (BITPAT_RE
G) is obtained (step C7).

【0122】(CPOS)=7の時、変化点の色が黒で
あるため、黒用のイメージ変換テーブルから得られる
(BITPAT_NO)=7に対応するイメージパター
ンと、前の端数部のイメージパターン(BITPAT_
REG)とORをとることで(BITPAT_REG)
を求める(ステップC6)。
When (CPOS) = 7, since the color of the changing point is black, the image pattern corresponding to (BITPAT_NO) = 7 obtained from the image conversion table for black and the image pattern of the previous fractional part ( BIPTAT_
REG) and OR (BITPAT_REG)
Is calculated (step C6).

【0123】(CPOS)=9の時(白画素への変化
点)、バイトレングス(BYTELEN)=1となるの
で、ステップC3において(FILL_NO)=1が求
められる。従って、直前で求めた(BITPAT_RE
G)の値を出力イメージ領域に転送する。また、(BI
TPAT_NO)=1から白用のイメージ変換テーブル
を参照し、(BITPAT_REG)に代入する(ステ
ップC8)。
When (CPOS) = 9 (change point to white pixel), the byte length (BYTELEN) = 1, so that (FILL_NO) = 1 is obtained in step C3. Therefore, it was calculated immediately before (BITPAT_RE
Transfer the value of G) to the output image area. In addition, (BI
The image conversion table for white is referred to from TPAT_NO) = 1 and is substituted for (BITPAT_REG) (step C8).

【0124】以下、(CPOS)=15まで同様に演算
が可能である。最終変化点の(CPOS)=24の時、
前のバイトレングス(BYTELEN−OLD)=1で
あり、バイトレングス(BYTELEN)=3であるた
め(FILL_NO)=2となる。このため、ステップ
C8において直前の(BITPAT_REG)を出力し
た後、(FILL_NO)−1回分のバイトデータ、つ
まり1バイト分の黒のイメージパターンを出力する。処
理対象とする入力変化点データ(イメージパターン)に
よっては、ここで白のイメージパターンを出力する。
Hereinafter, the same calculation can be performed up to (CPOS) = 15. When the last change point (CPOS) = 24,
Since the previous byte length (BYTELEN-OLD) = 1 and the byte length (BYTELEN) = 3, (FILL_NO) = 2. Therefore, in step C8, the immediately preceding (BITPAT_REG) is output, and then (FILL_NO) -1 byte data, that is, a 1-byte black image pattern is output. Depending on the input change point data (image pattern) to be processed, a white image pattern is output here.

【0125】このようにして、イメージパターンの主走
査方向における白または黒への変化点座標情報列からな
る入力変化点データをイメージデータに変換することが
できる。
In this way, the input change point data consisting of the change point coordinate information sequence of white or black in the main scanning direction of the image pattern can be converted into image data.

【0126】次に、本発明の第4実施例に係わるイメー
ジ処理方法について、図17に示すフローチャートを参
照しながら説明する。第4実施形態では、イメージデー
タの圧縮データから、全体のイメージを作業メモリ上に
展開することなく縮小イメージデータを生成する処理で
ある。
Next, an image processing method according to the fourth embodiment of the present invention will be described with reference to the flowchart shown in FIG. The fourth embodiment is a process of generating reduced image data from compressed data of image data without expanding the entire image on a working memory.

【0127】ステップD1は、圧縮データから白または
黒への変化点座標情報からなる変化点座標データを1ラ
イン分生成するステップである。ステップD2は、ステ
ップD1により生成した変化点座標データをもとに、副
走査方向に対して縮小した変化点情報を生成するステッ
プである。
Step D1 is a step of generating one line of change point coordinate data consisting of change point coordinate information from the compressed data to white or black. Step D2 is a step of generating change point information reduced in the sub-scanning direction based on the change point coordinate data generated in step D1.

【0128】ステップD3は、ステップD2に生成した
変化点座標データをもとに、主走査方向に対して縮小し
た変化点情報を生成するステップである。ステップD4
は、ステップD2において生成した変化点情報をもとに
イメージデータを生成するステップである。
Step D3 is a step of generating change point information reduced in the main scanning direction based on the change point coordinate data generated in step D2. Step D4
Is a step of generating image data based on the change point information generated in step D2.

【0129】次に、第4実施形態におけるデータ処理の
動作について説明する。まず、イメージデータの圧縮デ
ータから、白または黒への変化点座標情報からなる変化
点座標データを1ライン分生成し、ラインバッファに格
納する(ステップD1)。
Next, the operation of data processing in the fourth embodiment will be described. First, from the compressed data of the image data, the change point coordinate data consisting of the change point coordinate information for white or black is generated for one line and stored in the line buffer (step D1).

【0130】例えば、2値化イメージに対する符号化方
式としては、一般にMH(ModifiedHuffman)符号化方
式、MR(Modified READ )符号化方式などがある。こ
れらの符号化方式によりイメージデータを圧縮して得ら
れた圧縮データ(符号データ)は、所定の規則に従って
符号化されており、この規則に基づいて白または黒への
変化点座標を抽出し、変化点座標データとする。
For example, as a coding method for a binary image, there are generally an MH (Modified Huffman) coding method and an MR (Modified READ) coding method. The compressed data (coded data) obtained by compressing the image data by these coding methods is coded according to a predetermined rule, and the change point coordinates to white or black are extracted based on this rule, Change point coordinate data.

【0131】次に、ステップD1によって得られた変化
点座標データを用いて、副走査方向に対して縮小した変
化点情報を生成する。ここで、前述した第2実施形態に
おいて説明したデータ縮小方法を用いる。ただし、副走
査方向への縮小は2ライン分の変化点座標情報列、すな
わち2ライン分の変化点データに対して実行されるの
で、ステップD1において2ライン分の変化点座標デー
タ(変化点テーブル)が生成されてから実行する。
Next, using the change point coordinate data obtained in step D1, change point information reduced in the sub-scanning direction is generated. Here, the data reduction method described in the second embodiment is used. However, since the reduction in the sub-scanning direction is performed on the change point coordinate information sequence for two lines, that is, the change point data for two lines, the change point coordinate data for two lines (change point table) in step D1. ) Is generated and then executed.

【0132】なお、ステップD2は、第2実施形態にお
いて説明したデータ縮小方法を用いるものとし、詳細な
説明を省略する。次に、ステップD2における副走査方
向への縮小処理により得られた変化点座標データに対し
て、主走査方向に対する縮小処理を行なう(ステップD
3)。なお、ステップD3は、第3実施形態において説
明したデータ縮小方法を用いるものとし、詳細な説明を
省略する。
Note that step D2 uses the data reduction method described in the second embodiment, and detailed description thereof will be omitted. Next, the change point coordinate data obtained by the reduction process in the sub-scanning direction in step D2 is subjected to the reduction process in the main scanning direction (step D).
3). Note that step D3 uses the data reduction method described in the third embodiment, and detailed description thereof will be omitted.

【0133】次に、ステップD3における主走査方向へ
の縮小処理により得られた変化点座標データに対するイ
メージデータへの変換を行なう。変化点座標データは、
主走査方向、副走査方向の両方向に対して縮小処理が施
されているため、ここで変化点座標データからイメージ
データを生成することで、元のイメージデータを展開す
ることなく縮小イメージデータが得られることになる。
なお、ステップD4は、第4実施例において説明したデ
ータ変換方法を用いるものとし、詳細な説明を省略す
る。
Next, the change point coordinate data obtained by the reduction processing in the main scanning direction in step D3 is converted into image data. Change point coordinate data is
Since reduction processing is performed in both the main scanning direction and sub-scanning direction, reducing image data can be obtained without expanding the original image data by generating image data from the change point coordinate data. Will be done.
Note that step D4 uses the data conversion method described in the fourth embodiment, and detailed description thereof will be omitted.

【0134】ここで、1画面分の符号データについての
処理が完了していなければ(ステップD5)、ステップ
D1の処理に戻り、次のラインについて前述した処理を
実行する。以下、1画面分の符号データについての処理
が完了すると処理を終了する。
Here, if the process for the code data for one screen is not completed (step D5), the process returns to the process of step D1, and the process described above is executed for the next line. After that, when the process for the code data for one screen is completed, the process ends.

【0135】このようにして、イメージデータの圧縮デ
ータから、作業メモリ上にイメージデータを展開するこ
となく、縮小後のイメージデータを生成することができ
る。従って、データ転送量を減少させることができ高速
なイメージ処理が可能となる。特に、図形や文字等を含
むイメージにおいては、白(空白)の領域が少ない場合
には、縮小処理における演算量とメモリアクセス量が減
るため、大幅なイメージ処理の高速化が可能である。
In this way, the reduced image data can be generated from the compressed image data without expanding the image data on the working memory. Therefore, the amount of data transfer can be reduced and high-speed image processing can be performed. In particular, in an image including figures, characters, etc., when the white (blank) area is small, the calculation amount and memory access amount in the reduction process are reduced, so that the image processing speed can be significantly increased.

【0136】[0136]

【発明の効果】以上詳述したように本発明によれば、伸
張処理と縮小処理とを組み合わせた処理でも高速にイメ
ージ処理ができ、かつ画質劣化の少ない縮小結果を提供
することが可能となる。
As described in detail above, according to the present invention, it is possible to provide high-speed image processing even with a combination of decompression processing and reduction processing and to provide a reduction result with little image quality deterioration. .

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

【図1】本発明の実施形態に係わるイメージ処理方法を
実現するシステムの構成を示すブロック図。
FIG. 1 is a block diagram showing the configuration of a system that realizes an image processing method according to an embodiment of the present invention.

【図2】第1実施形態のデータ縮小方法を説明するため
のフローチャート。
FIG. 2 is a flowchart for explaining a data reduction method according to the first embodiment.

【図3】第1実施形態のデータ縮小方法を説明するため
のフローチャート。
FIG. 3 is a flowchart for explaining the data reduction method according to the first embodiment.

【図4】第1実施形態における縮小後の変化点座標を検
出する処理の過程を説明するための図。
FIG. 4 is a diagram for explaining a process of processing of detecting change point coordinates after reduction according to the first embodiment.

【図5】第1実施形態におけるステップA10の縮小演
算処理の消失した白画素への変化点を復活させる処理を
説明するための図。
FIG. 5 is a diagram for explaining a process of restoring a lost change point to a white pixel in the reduction calculation process of step A10 in the first embodiment.

【図6】第2実施形態に係わるイメージ処理方法におけ
るデータ縮小方法を説明するためのフローチャート。
FIG. 6 is a flowchart for explaining a data reduction method in the image processing method according to the second embodiment.

【図7】第2実施形態に係わるイメージ処理方法におけ
るデータ縮小方法を説明するためのフローチャート。
FIG. 7 is a flowchart for explaining a data reduction method in the image processing method according to the second embodiment.

【図8】第2実施形態の処理対象とする入力変化点テー
ブルの一例を示す図。
FIG. 8 is a diagram showing an example of an input change point table which is a processing target of the second embodiment.

【図9】第2実施形態における条件aを説明するための
図。
FIG. 9 is a diagram for explaining a condition a in the second embodiment.

【図10】第2実施形態における条件cを説明するため
の図。
FIG. 10 is a diagram for explaining a condition c in the second embodiment.

【図11】第2実施形態における条件bを説明するため
の図。
FIG. 11 is a diagram for explaining a condition b in the second embodiment.

【図12】第2実施形態における条件a,b,cの何れ
も満たさないその他のケースを説明するための図。
FIG. 12 is a diagram for explaining another case in which none of the conditions a, b, and c in the second embodiment is satisfied.

【図13】第3実施形態に係わるイメージ処理方法にお
けるデータ変換方法を説明するためのフローチャート。
FIG. 13 is a flowchart for explaining a data conversion method in the image processing method according to the third embodiment.

【図14】第3実施形態におけるデータ変換方法の動作
を説明するためのイメージ生成過程を示す図。
FIG. 14 is a diagram showing an image generation process for explaining the operation of the data conversion method according to the third embodiment.

【図15】第3実施形態におけるイメージ変換テーブル
の一例を示す図。
FIG. 15 is a diagram showing an example of an image conversion table according to the third embodiment.

【図16】第3実施形態におけるデータ変換方法の動作
を説明するためのイメージ生成過程を示す図。
FIG. 16 is a diagram showing an image generation process for explaining the operation of the data conversion method according to the third embodiment.

【図17】第4実施例に係わるイメージ処理方法を説明
するためのフローチャート。
FIG. 17 is a flowchart for explaining an image processing method according to the fourth embodiment.

【図18】従来のOR縮小処理を説明するための図。FIG. 18 is a diagram for explaining conventional OR reduction processing.

【図19】DDAによるキャリーパターンの発生過程を
示す図。
FIG. 19 is a diagram showing a process of generating a carry pattern by DDA.

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

10…CPU10 12…RAM 14…VRAM 16…ROM 18…入力装置 20…入力制御部 22…表示装置 24…表示制御部 26…記憶装置 28…記憶制御部 10 ... CPU 10 12 ... RAM 14 ... VRAM 16 ... ROM 18 ... Input device 20 ... Input control unit 22 ... Display device 24 ... Display control unit 26 ... Storage device 28 ... Storage control unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 イメージデータの主走査方向における白
画素及び黒画素への変化点座標列に対し、縮小倍率に応
じた縮小後の変化点座標列を求め、 この求められた変化点座標列中の変化点座標について、
それぞれ直前の変化点座標との距離を求め、 変化点座標列のそれぞれの変化点座標を、 求められた距離が1以上であり、かつ白画素への変化点
座標である場合に、白画素への変化点候補とし、 求められた距離が0の場合に、直前の変化点座標に対応
する白画素への変化点候補を無効とし、 求められた距離が1以上であり、かつ白画素への変化点
候補が存在し、かつ黒画素への変化点座標である場合
に、黒画素への変化点座標とすると共に、白画素の変化
点候補を白画素への変化点座標とし、 求められた距離が1を越え、かつ白画素への変化点候補
が存在せず、かつ黒画素への変化点座標である場合に、
黒画素への変化点座標とすると共に、直前の変化点座標
に所定の座標値を加えた上で白画素への変化点座標とす
ることを特徴とするイメージ縮小方法。
1. A change point coordinate sequence after reduction according to a reduction ratio is calculated for a change point coordinate sequence for white pixels and black pixels in the main scanning direction of image data, and the calculated change point coordinate sequence is included in the obtained change point coordinate sequence. Regarding the change point coordinates of
The distance from the immediately preceding change point coordinate is calculated, and each change point coordinate in the change point coordinate sequence is set to a white pixel if the calculated distance is 1 or more and the change point coordinate is to a white pixel. If the calculated distance is 0, the change point candidate to the white pixel corresponding to the immediately previous change point coordinate is invalidated, and the calculated distance is 1 or more and the white pixel If there is a change point candidate and it is the change point coordinate to the black pixel, the change point coordinate to the black pixel is set, and the change point candidate of the white pixel is set to the change point coordinate to the white pixel. If the distance exceeds 1, there is no change point candidate for the white pixel, and the change point coordinates are for the black pixel,
An image reduction method characterized in that the coordinates of a change point to a black pixel are set, and the coordinates of a change point to a white pixel are added after a predetermined coordinate value is added to the coordinates of a change point immediately before.
【請求項2】 イメージデータの主走査方向における白
画素及び黒画素への変化点座標列からなる第1変化点テ
ーブルと、前記第1変化テーブルの副走査方向への次の
ラインの変化点座標列からなる第2変化点テーブルに対
し、何れかの変化点テーブル中の黒画素への変化点位置
が小さい変化点座標を注目変化点とすると共に変換後の
黒画素への変化点座標とし、注目変化点の右側にある最
初の白画素への変化点を白変化点候補とし、 注目変化点のある変化点テーブルの反対側の変化点テー
ブルで、変化点座標値が白変化点候補以上となる変化点
を検出し、 検出した変化点が白変化点候補と同じ座標位置にあり、
その色が白画素への変化点であった場合、または白変化
点候補を越える座標位置にあり、その色が黒画素への変
化点であった場合に、白変化点候補を変換後の白画素へ
の変化点座標とし、 検出した変化点が白変化点候補と同じ座標位置にあり、
その変化点の色が黒画素への変化点であった場合、この
変化点を注目変化点とし、その右側にある最初の白画素
への変化点を白変化点候補とし、 検出した変化点が白変化点候補を越える座標位置にあ
り、その変化点の色が白画素への変化点であった場合、
白変化点候補の位置を注目変化点とし、この検出した変
化点を白変化点候補とし、 注目変化点または白変化点候補がライン終端であるかを
判定し、ライン終端である場合、白変化点候補を変換後
の白画素への変化点座標とすることを特徴とするイメー
ジ縮小方法。
2. A first changing point table comprising a changing point coordinate sequence of white pixels and black pixels in the main scanning direction of image data, and changing point coordinates of the next line in the sub scanning direction of the first changing table. With respect to the second change point table composed of columns, the change point coordinates having a small change point position to the black pixel in any of the change point tables are set as the change point of interest and the change point coordinates to the converted black pixel are set, The change point to the first white pixel on the right side of the noticed change point is set as the white change point candidate, and the change point coordinate value on the opposite side of the change point table with the noticed change point is equal to or greater than the white change point candidate. , The detected change point is at the same coordinate position as the white change point candidate,
If the color is a change point to a white pixel, or if the color is at a coordinate position beyond the white change point candidate and the color is a change point to a black pixel, the white change point candidate is converted to a white after conversion. As the change point coordinates to the pixel, the detected change point is at the same coordinate position as the white change point candidate,
When the color of the change point is the change point to the black pixel, this change point is set as the noticed change point, and the change point to the first white pixel on the right side is set as the white change point candidate, and the detected change point is If the color is at a coordinate position that exceeds the white change point candidate and the color of that change point is a change point to a white pixel,
The position of the white change point candidate is set as the noticed change point, the detected change point is set as the white change point candidate, and it is determined whether the noticed change point or the white change point candidate is the end of the line. An image reduction method characterized in that a point candidate is used as coordinates of a change point to a white pixel after conversion.
【請求項3】 イメージデータの主走査方向における白
画素及び黒画素への変化点座標列から順次読み出された
変化点座標に対し、所定の値で除算した商と余り値を求
め、 この求めた商と直前の変化点座標に対して求めた商との
差を求め、 求めた差の値が0の時に、所定の値に達しない変化点座
標列に対するイメージパターンを余り値に応じて求め、 求めた差の値が1以上の時に、所定の値に達しない変化
点座標列に対して求めたイメージパターンを変換結果の
イメージパターンとし、さらに求めた差に応じた白画素
または黒画素が連続するイメージパターンを変換結果の
イメージパターンとして出力することを特徴とするデー
タ変換方法。
3. A quotient and a remainder value obtained by dividing a change point coordinate sequentially read from a change point coordinate sequence to a white pixel and a black pixel in the main scanning direction of image data by a predetermined value are obtained. The difference between the quotient and the quotient obtained for the immediately preceding change point coordinates is obtained, and when the obtained difference value is 0, the image pattern for the change point coordinate sequence that does not reach the predetermined value is obtained according to the remainder value. , When the obtained difference value is 1 or more, the image pattern obtained for the change point coordinate sequence that does not reach the predetermined value is used as the conversion result image pattern, and the white pixel or the black pixel corresponding to the obtained difference is A data conversion method characterized in that a continuous image pattern is output as an image pattern of a conversion result.
【請求項4】 イメージデータを符号化して得られる圧
縮データをもとに、縮小処理を施したイメージを生成す
るイメージ処理方法において、 圧縮データから白画素及び黒画素への変化点座標列を生
成し、 この生成された変化点座標列をもとに請求項2に記載さ
れたイメージ縮小方法により、副走査方向に対して縮小
した変化点座標列を生成し、 生成した変化点座標列をもとに請求項1に記載されたイ
メージ縮小方法により、主走査方向に対して縮小した変
化点座標列を生成し、 この生成した変化点座標列をもとに請求項3に記載され
たデータ変換方法により、イメージデータを生成し、 以上の処理を1画面分実行することで、圧縮データから
縮小後のイメージデータを生成することを特徴とするイ
メージ処理方法。
4. An image processing method for generating a reduced image based on compressed data obtained by encoding image data, wherein a sequence of change point coordinates from the compressed data to white pixels and black pixels is generated. Then, based on the generated change point coordinate sequence, a change point coordinate sequence reduced in the sub-scanning direction is generated by the image reduction method according to claim 2, and the generated change point coordinate sequence is also generated. And, according to the image reduction method described in claim 1, a change point coordinate sequence reduced in the main scanning direction is generated, and based on the generated change point coordinate sequence, the data conversion described in claim 3. An image processing method, wherein image data is generated by a method, and the above-described processing is performed for one screen to generate reduced image data from compressed data.
JP01603896A 1996-01-31 1996-01-31 Image processing method Expired - Lifetime JP3724868B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01603896A JP3724868B2 (en) 1996-01-31 1996-01-31 Image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01603896A JP3724868B2 (en) 1996-01-31 1996-01-31 Image processing method

Publications (2)

Publication Number Publication Date
JPH09214752A true JPH09214752A (en) 1997-08-15
JP3724868B2 JP3724868B2 (en) 2005-12-07

Family

ID=11905421

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01603896A Expired - Lifetime JP3724868B2 (en) 1996-01-31 1996-01-31 Image processing method

Country Status (1)

Country Link
JP (1) JP3724868B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006270767A (en) * 2005-03-25 2006-10-05 Fuji Xerox Co Ltd Image processing apparatus, method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006270767A (en) * 2005-03-25 2006-10-05 Fuji Xerox Co Ltd Image processing apparatus, method, and program
JP4609141B2 (en) * 2005-03-25 2011-01-12 富士ゼロックス株式会社 Image processing apparatus, image processing method, and image processing program

Also Published As

Publication number Publication date
JP3724868B2 (en) 2005-12-07

Similar Documents

Publication Publication Date Title
US4124871A (en) Image data resolution change apparatus and process utilizing boundary compression coding of objects
US5300947A (en) Graphic pattern processing apparatus
JP2921659B2 (en) Apparatus and method for resizing video image
JP3327621B2 (en) Graphic system and method for performing object sorting and edge calculation
JP3251084B2 (en) Virtual editing method and apparatus for compressed image
US6064407A (en) Method and apparatus for tiling a block of image data
JP2004318832A (en) Reducing method of number of compositing operations performed in pixel sequential rendering system
JPS61100868A (en) Image expansion
US6011566A (en) System and method to display raster images with negligible delay time and reduced memory requirements
US7817154B1 (en) Graphics system with state transition caching
JPH06186956A (en) Method and apparatus for generation of compiled-raster operation code
JPH1196345A (en) Method for compressing and inversely compressing graphics image
JPH1027241A (en) Method and device for table lookup conversion of digital picture
US5714975A (en) Apparatus and method for generating halftoning or dither values
JP2568493B2 (en) Image enlargement method
JP3724868B2 (en) Image processing method
JPH0553909A (en) Cache memory control system for image data processing
Biswas One-dimensional B–B polynomial and Hilbert scan for graylevel image coding
JP3795564B2 (en) Image expansion processing method
JPH09288725A (en) Image arithmetic operation
JP3483751B2 (en) Motion vector detecting device and motion vector detecting method
JP3854646B2 (en) Image data processing apparatus and image data processing method
US6985624B2 (en) Image processing apparatus and its method
JP3162918B2 (en) Image processing apparatus and method
JP3236481B2 (en) Image conversion method and image conversion device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050301

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050315

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050513

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050913

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050920

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080930

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090930

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090930

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100930

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100930

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110930

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120930

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120930

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130930

Year of fee payment: 8

EXPY Cancellation because of completion of term