JPH04239980A - Image rotation device - Google Patents

Image rotation device

Info

Publication number
JPH04239980A
JPH04239980A JP3006712A JP671291A JPH04239980A JP H04239980 A JPH04239980 A JP H04239980A JP 3006712 A JP3006712 A JP 3006712A JP 671291 A JP671291 A JP 671291A JP H04239980 A JPH04239980 A JP H04239980A
Authority
JP
Japan
Prior art keywords
circuit
rotation
data
sub
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3006712A
Other languages
Japanese (ja)
Inventor
Kazumi Kobayashi
和美 小林
▲吉▼田 茂夫
Shigeo Yoshida
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Office Systems Ltd
Original Assignee
NEC Office Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Office Systems Ltd filed Critical NEC Office Systems Ltd
Priority to JP3006712A priority Critical patent/JPH04239980A/en
Publication of JPH04239980A publication Critical patent/JPH04239980A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To excessively shorten the rotation processing time of a sentence, a character or an image by detecting a case when sub-patterns are all white or all black and writing it in a memory without executing rotation processing. CONSTITUTION:A data transferring circuit 7 divides data of the sentence or the image into the sub-patterns of (n)X(n) (n)is an integer) by a pattern analysis circuit 1 and transfers data of the sub-pattern. An all black-and-white detecting circuit 5 detects whether the sub-patterns are all white or all black and stops the processing of a rotation circuit at the time of detecting either of them.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、情報処理装置において
表示・印刷出力の為に使用される画像処理装置、特にイ
メージデータの回転を行う画像回転装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus used for display and printout in an information processing apparatus, and more particularly to an image rotation apparatus for rotating image data.

【0002】0002

【従来の技術】一般に画像処理装置は、情報処理装置等
において入力された文字やイメージ等を表示し、または
印刷する場合等に、イメージデータの拡大、縮小や回転
等の処理を行っている。このような情報処理装置は図3
のブロック図のように、文字やイメージ等を入力する入
力装置9、処理された文字やイメージ等を表示する表示
装置8、印刷する印刷装置11と、画像処理装置10か
ら構成される。
2. Description of the Related Art Image processing apparatuses generally perform processing such as enlarging, reducing, and rotating image data when displaying or printing characters, images, etc. input to an information processing apparatus or the like. Such an information processing device is shown in Figure 3.
As shown in the block diagram, it is comprised of an input device 9 for inputting characters, images, etc., a display device 8 for displaying processed characters, images, etc., a printing device 11 for printing, and an image processing device 10.

【0003】この図3のような情報処理装置では、1文
字毎の文字イメージや図形イメージなどのイメージデー
タが入力装置9から画像処理装置10に入力され、画像
処理装置10に図形を含めた図4(a)のような原稿が
作成される。例えばこの原稿が横長のA4判の大きさで
、表示装置の表示画面が縦長のA4判までの大きさしか
表示できない場合には画像処理装置10で縮小して表示
される。また、この原稿を印刷幅がA4判の短辺の大き
さまでの印刷装置11に印刷する場合には右または左に
90度回転して印刷する必要がある。
In the information processing device shown in FIG. 3, image data such as character images and graphic images for each character is inputted from the input device 9 to the image processing device 10, and the image processing device 10 generates a diagram including the graphics. A manuscript as shown in 4(a) is created. For example, if this document is a horizontally long A4 size and the display screen of the display device can only display up to the vertically long A4 size, the image processing device 10 reduces the document size and displays it. Furthermore, when printing this document on a printing device 11 whose print width is up to the short side of A4 size, it is necessary to print by rotating the document 90 degrees to the right or left.

【0004】従来、このようなイメージデータの回転を
行う画像回転装置は、図5のようにパターン分解回路1
2と、回転回路13と、パターン組立回路14と、イメ
ージメモリ15とを備えて次に説明する動作によってイ
メージデータを回転している。
Conventionally, an image rotation device for rotating image data has a pattern decomposition circuit 1 as shown in FIG.
2, a rotation circuit 13, a pattern assembly circuit 14, and an image memory 15, and rotates image data by the operation described below.

【0005】パターン分解回路12では、回転するイメ
ージデータを、図4(a) に示すように、格子によっ
てn画素×nライン(nは整数)のサブパターン41,
42,……,48に分解して、初めにサブパターン41
を、図6の期間T0にイメージメモリ15から各ライン
毎に読み出し回転回路13に出力する。
The pattern decomposition circuit 12 divides the rotated image data into sub-patterns 41 of n pixels x n lines (n is an integer) using a lattice as shown in FIG. 4(a).
42, ..., 48, first the subpattern 41
is output to the readout rotation circuit 13 for each line from the image memory 15 during the period T0 in FIG.

【0006】回転回路13においてはnラインすべてが
入力された後、サブパターンの回転処理を行い、(回転
処理については図7を用いて後で説明する。)パターン
組立回路14に新たなライン毎のデータを出力し、回転
されたイのサブパターンの新しいnラインのデータは、
図6のT1期間にイメージメモリ15の定められた別の
領域、図4(b)のイで示す位置に書き込まれる。次に
、同様にしてロ、ハ、…………、トと順次サブパターン
毎に回転し、この列が全て終了すると、次の列のチのサ
ブパターンの回転を行う。このようにして、全てサブパ
ターンの回転を行い、図4(b)のように回転されたイ
メージデータが得られる。
After all n lines have been input, the rotation circuit 13 performs rotation processing on the sub-pattern (the rotation processing will be explained later with reference to FIG. 7). The new n-line data of the rotated subpattern A is
During period T1 in FIG. 6, the data is written in another predetermined area of the image memory 15, at the position indicated by A in FIG. 4(b). Next, in the same manner, each subpattern is sequentially rotated in the order of B, C, . In this way, all subpatterns are rotated, and rotated image data as shown in FIG. 4(b) is obtained.

【0007】実際の回転処理を図7を用いて説明する。 図7は、1つのサブパターン(8画素×8ライン)を、
左に90度回転するときのデータの動きを示しているが
、パターン分解回路によって分解された1つのサブパタ
ーンとし、図4(a)のサブパターン43を図7(a)
に示す。このサブパターンのデータは、シフト7から順
次シフト0へと各シフトレジスタに入力され、各シフト
レジスタ(シフト0〜7)毎のデータ7(図7(b)の
○で示す)から順に1ビットずつ、新しい8ビットとし
て新しいサブパターンの図7(c)で示すデータ7のと
ころに書き込み、これをデータ0まで繰り返すことで、
左90度の回転が行われる。
The actual rotation process will be explained using FIG. Figure 7 shows one sub-pattern (8 pixels x 8 lines).
The movement of data when rotated 90 degrees to the left is shown, but it is treated as one subpattern decomposed by the pattern decomposition circuit, and the subpattern 43 in FIG. 4(a) is shown in FIG. 7(a).
Shown below. The data of this sub-pattern is input to each shift register sequentially from shift 7 to shift 0, and one bit is sequentially input from data 7 (indicated by ○ in FIG. 7(b)) for each shift register (shifts 0 to 7). By writing each bit as a new 8 bits to the data 7 shown in FIG. 7(c) of the new sub-pattern, and repeating this until data 0,
A 90 degree rotation to the left is performed.

【0008】また、右90度回転の場合、各シフトレジ
スタにデータをセットする場合にデータ0〜7を書き込
み、今度は各シフトレジスタ毎のデータ0から順に1ビ
ットずつ、新しい8ビットとして新しいサブパターンの
図7(c)で示すデータ7のところに書き込むことで可
能になり、左右270度回転の場合には、左右90度回
転の場合の左右が反対になり、同じ処理で行える。
In addition, in the case of a 90 degree rotation to the right, when setting data in each shift register, data 0 to 7 are written, and this time, data 0 to 7 is written for each shift register, one bit at a time, as new 8 bits in a new sub. This is possible by writing in the data 7 shown in FIG. 7(c) of the pattern, and in the case of a 270 degree left and right rotation, the left and right sides are reversed in the case of a left and right rotation of 90 degrees, and the same process can be performed.

【0009】更に、180度回転の場合には、図7(a
)で示すシフト0のデータをまず初めに読みだし、デー
タ0〜―をデータ7〜0に反転させ、新しいサブパター
ンの図7(c)で示すデータ7のところに書き込み、続
いてシフト1のデータをデータ6へ、シフト2のデータ
をデータ5へと書き込むことで行える。
Furthermore, in the case of 180 degree rotation, FIG.
) is first read out, data 0-- are inverted to data 7-0, and written to data 7 in the new sub-pattern shown in Figure 7(c), then shift 1 is read out. This can be done by writing the data to data 6 and the shift 2 data to data 5.

【0010】0010

【発明が解決しようとする課題】従来の画像回転装置に
おいては、サブパターンのデータが全て白、あるいは全
て黒である場合にも通常の処理と変わらずに処理が行わ
れているが、全て白や黒である場合には回転する必要が
ない。
[Problems to be Solved by the Invention] In conventional image rotation devices, even if the subpattern data is all white or all black, processing is performed in the same way as normal processing. or black, there is no need to rotate.

【0011】一般に文章やイメージ等には白い部分が多
数あり、文章、あるいはイメージの回転処理に多大な時
間を費やしている。
[0011] In general, sentences, images, etc. have many white parts, and it takes a lot of time to rotate the sentences or images.

【0012】そこで本発明の目的は、以上の欠点を解決
して、サブパターンが全て白、あるいは全て黒である場
合を検出し、回転処理を行わずにメモリに書込むことが
できるために、文章、あるいはイメージの回転処理時間
を大幅に短縮することができる画像回転装置を提供する
ことにある。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to solve the above-mentioned drawbacks, to detect cases where sub-patterns are all white or all black, and to write the sub-patterns into memory without performing rotation processing. An object of the present invention is to provide an image rotation device that can significantly shorten the processing time for rotating sentences or images.

【0013】[0013]

【課題を解決するための手段】本発明は、パターン分解
回路と、回転回路と、パターン組立回路と、メモリとを
有する画像回転装置において、オール白黒検出回路と、
データ受け渡し回路とを備え、パターン分解回路によっ
て、文章やイメージのデータをn×n(nは整数)のサ
ブパターンに分割し、サブパターンのデータを受け渡す
データ受け渡し回路と、サブパターンが全て白、あるい
は全て黒かを検出して、いずれかが検出された時には、
回転回路の処理を停止させるオール白黒検出回路とを具
備することを特徴とするものである。
[Means for Solving the Problems] The present invention provides an image rotation device having a pattern decomposition circuit, a rotation circuit, a pattern assembly circuit, and a memory, including an all black and white detection circuit;
A data transfer circuit that divides text or image data into n×n (n is an integer) subpatterns using a pattern decomposition circuit, and a data transfer circuit that transfers the data of the subpatterns, and a data transfer circuit that divides text or image data into n × n (n is an integer) subpatterns, and a data transfer circuit that divides text or image data into n × n (n is an integer) subpatterns. , or if all black is detected, and when either is detected,
The apparatus is characterized in that it includes an all black and white detection circuit that stops the processing of the rotation circuit.

【0014】[0014]

【実施例】以下本発明の詳細を、その実施例につき図面
を参照して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The details of the present invention will be explained below with reference to the drawings.

【0015】図1および図2は、それぞれ本発明の一実
施例の画像回転装置の機能ブロック図、および、図1に
おける4つのサブパターンの回転処理時間を表すタイム
チャートである。
FIGS. 1 and 2 are a functional block diagram of an image rotation device according to an embodiment of the present invention, and a time chart showing the rotation processing time of four sub-patterns in FIG. 1, respectively.

【0016】本実施例は図5の従来例に、オール白黒検
出回路5、データ受渡し回路7を付加したものである。
This embodiment is obtained by adding an all black and white detection circuit 5 and a data transfer circuit 7 to the conventional example shown in FIG.

【0017】図1において、従来と同様に、パターン分
解回路1で回転するイメージデータを図4(a)のイ、
ロ、………、チで表すようなサブパターンに分解する。 次に、分解されたイのサブパターンを、図2のT0期間
に、イメージメモリ4から各ライン毎に読みだし、回転
回路2と、オール白黒検出回路5と、データ受け渡し回
路7に出力する。回転回路2では、従来と同様に回転処
理を行い、同時に、オール白黒検出回路5において、サ
ブパターンのイメージデータを1ライン毎に受け取り、
サブパターンが全て白、あるいは黒である場合を検出し
、検出された場合には、回転回路2に対して回転停止信
号6を出力する。また、データ受け渡し回路7では、図
2のT0の期間に、イメージデータをそのまま各ライン
毎に受け取り、パターン組み立て回路3に出力し、イの
サブパターンデータは、イメージメモリ4の定められた
別の領域、図4(b)のイで示す位置に書き込まれる。
In FIG. 1, as in the conventional case, the image data rotated by the pattern decomposition circuit 1 are
It is decomposed into sub-patterns as shown by b, ……, and c. Next, the decomposed sub-pattern A is read line by line from the image memory 4 during period T0 in FIG. The rotation circuit 2 performs rotation processing as in the conventional case, and at the same time, the all-black and white detection circuit 5 receives sub-pattern image data line by line.
It is detected whether all the sub-patterns are white or black, and if detected, a rotation stop signal 6 is output to the rotation circuit 2. In addition, the data transfer circuit 7 receives the image data as is for each line during the period T0 in FIG. 2, and outputs it to the pattern assembly circuit 3. The area is written in the position shown by A in FIG. 4(b).

【0018】回転回路2に対しては、回転停止信号6が
出力されるので、回転処理は直ちに停止し、次のT1期
間でロのサブパターンの処理へ移る。同様にして、T1
期間でロのサブパターンの処理が終了し、次のT2期間
でハのサブパターンの処理を実行する。
Since the rotation stop signal 6 is output to the rotation circuit 2, the rotation process is immediately stopped, and processing of the second sub-pattern is started in the next period T1. Similarly, T1
The processing of the sub-pattern (B) is completed in the period T2, and the processing of the sub-pattern (C) is executed in the next period T2.

【0019】T2期間でハのサブパターンが、パターン
分解回路1によって回転回路2と、オール白黒検出回路
5と、データ受け渡し回路7に出力され、全てのサブパ
ターンが入力完了した時点で、回転停止信号6が出力さ
れていないため、T3期間で回転回路2が回転処理を行
い、各ライン毎パターン組み立て回路3に出力し、回転
されたハのサブパターンデータもイメージメモリ4の定
められた別の領域、図4(b)のハで示す位置に書き込
まれる。
During the T2 period, the pattern decomposition circuit 1 outputs the sub-pattern C to the rotation circuit 2, the all-black and white detection circuit 5, and the data transfer circuit 7, and when all sub-patterns have been input, the rotation is stopped. Since the signal 6 is not output, the rotation circuit 2 performs rotation processing during the T3 period and outputs it to the pattern assembly circuit 3 for each line. The area is written in the position shown by C in FIG. 4(b).

【0020】このようにして、各サブパターン毎に全て
が白、あるいは全て黒の場合には回転処理を行わずに、
文章やイメージ全体の回転されたイメージデータを得る
ことが出来き、従来、イ、ロ、ハのサブパターンを処理
するのに、T0〜T5までの期間であったものが、本発
明の実施例によれば、T0〜T3の期間で終了する。
[0020] In this way, if each sub-pattern is all white or all black, rotation processing is not performed;
It is possible to obtain rotated image data of the entire text or image, and conventionally, the period from T0 to T5 was required to process sub-patterns A, B, and C, but the embodiment of the present invention According to , it ends in the period T0 to T3.

【0021】[0021]

【発明の効果】以上説明したように本発明は、サブパタ
ーンが全て白、あるいは全て黒である場合を検出し、回
転処理を行わずにメモリに書込むことができるために、
文章、あるいは文字やイメージの回転処理時間を大幅に
短縮することができるという効果を奏する。
Effects of the Invention As explained above, the present invention detects cases in which sub-patterns are all white or all black and can be written into memory without performing rotation processing.
This has the effect of significantly shortening the processing time for rotating sentences, characters, and images.

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

【図1】本発明の一実施例の機能ブロック図である。FIG. 1 is a functional block diagram of an embodiment of the present invention.

【図2】図1における4つのサブパターンの回転処理時
間を表すタイムチャートである。
FIG. 2 is a time chart showing the rotation processing time of four sub-patterns in FIG. 1;

【図3】従来の画像回転装置の一例の機能ブロック図で
ある。
FIG. 3 is a functional block diagram of an example of a conventional image rotation device.

【図4】従来の画像回転装置によりあるイメージを左に
90度回転した図である。
FIG. 4 is a diagram showing an image rotated 90 degrees to the left by a conventional image rotation device.

【図5】従来の画像回転装置を使用した画像処理装置を
含む情報処理装置の一例の機能ブロック図である。
FIG. 5 is a functional block diagram of an example of an information processing device including an image processing device using a conventional image rotation device.

【図6】図5における3つのサブパターンの回転処理時
間を表すタイムチャートである。
FIG. 6 is a time chart showing the rotation processing time of three sub-patterns in FIG. 5;

【図7】1つのサブパターン(8画素×8ライン)を、
左に90度回転するときのデータの動きを示す図である
[Figure 7] One sub-pattern (8 pixels x 8 lines)
FIG. 6 is a diagram showing the movement of data when rotating 90 degrees to the left.

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

1    パターン分解回路 2    回転回路 3    パターン組立回路 4    メモリ 5    オール白黒検出回路 6    回転停止信号 7    データ受け渡し回路 1 Pattern decomposition circuit 2 Rotating circuit 3 Pattern assembly circuit 4 Memory 5 All black and white detection circuit 6 Rotation stop signal 7 Data delivery circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  パターン分解回路と、回転回路と、パ
ターン組立回路と、メモリとを有する画像回転装置にお
いて、オール白黒検出回路と、データ受け渡し回路とを
備え、パターン分解回路によって、文章やイメージのデ
ータをn×n(nは整数)のサブパターンに分割し、サ
ブパターンのデータを受け渡すデータ受け渡し回路と、
サブパターンが全て白、あるいは全て黒かを検出して、
いずれかが検出された時には、回転回路の処理を停止さ
せるオール白黒検出回路とを具備することを特徴とする
画像回転装置。
1. An image rotation device comprising a pattern decomposition circuit, a rotation circuit, a pattern assembly circuit, and a memory, comprising an all-black and white detection circuit and a data transfer circuit, and the pattern decomposition circuit allows text and image rotation to be performed. a data transfer circuit that divides data into n×n (n is an integer) subpatterns and transfers data of the subpatterns;
Detect whether the subpattern is all white or all black,
An image rotation device comprising: an all black and white detection circuit that stops processing of the rotation circuit when any one of them is detected.
JP3006712A 1991-01-24 1991-01-24 Image rotation device Pending JPH04239980A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3006712A JPH04239980A (en) 1991-01-24 1991-01-24 Image rotation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3006712A JPH04239980A (en) 1991-01-24 1991-01-24 Image rotation device

Publications (1)

Publication Number Publication Date
JPH04239980A true JPH04239980A (en) 1992-08-27

Family

ID=11645895

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3006712A Pending JPH04239980A (en) 1991-01-24 1991-01-24 Image rotation device

Country Status (1)

Country Link
JP (1) JPH04239980A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5818962A (en) * 1995-04-21 1998-10-06 Mitsubishi Denki Kabushiki Kaisha Coordinate transformation method for binary image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5818962A (en) * 1995-04-21 1998-10-06 Mitsubishi Denki Kabushiki Kaisha Coordinate transformation method for binary image

Similar Documents

Publication Publication Date Title
JPS62299881A (en) Image rotation display unit
KR920003477B1 (en) Image processing apparatus
JPS6049391A (en) Raster scan display system
JPS62173509A (en) Picture display device
JP4465943B2 (en) Image correction method and image correction apparatus
JPH04239980A (en) Image rotation device
JPH05181454A (en) Display system and its control circuit, and display device
JPS61277250A (en) Display system
JPH06197213A (en) Colour copying machine
JPH05225390A (en) Method and apparatus for detecting and filtering position of dot-matrix video for optical character recognition
JP2669336B2 (en) Printing equipment
JP2502440B2 (en) Double-sided recording device
JPS63100872A (en) Hard copy system for display screen
JP2791716B2 (en) Character printing method
JP2908571B2 (en) Page printer
JPS6177974A (en) Document picture processor
JPS63250687A (en) Document data editing apparatus
JPH0950523A (en) Picture smoothing circuit
JPH01100590A (en) Display control system
JPH0581396A (en) Image input device
JPH03129395A (en) Character display device
JPS62219180A (en) Pattern generating device
JPS62251969A (en) Picture processor
JPS6327879A (en) Image processing circuit
JPH04100474A (en) Printer device