JPH0666871B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JPH0666871B2
JPH0666871B2 JP1040657A JP4065789A JPH0666871B2 JP H0666871 B2 JPH0666871 B2 JP H0666871B2 JP 1040657 A JP1040657 A JP 1040657A JP 4065789 A JP4065789 A JP 4065789A JP H0666871 B2 JPH0666871 B2 JP H0666871B2
Authority
JP
Japan
Prior art keywords
data
line
image
drawing area
color
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.)
Expired - Fee Related
Application number
JP1040657A
Other languages
Japanese (ja)
Other versions
JPH02220562A (en
Inventor
一也 綱島
彰夫 柳瀬
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP1040657A priority Critical patent/JPH0666871B2/en
Priority to DE69031446T priority patent/DE69031446T2/en
Priority to EP96110758A priority patent/EP0737937B1/en
Priority to PCT/JP1990/000110 priority patent/WO1990009018A1/en
Priority to DE69033539T priority patent/DE69033539T2/en
Priority to US07/582,198 priority patent/US5377023A/en
Priority to EP90902373A priority patent/EP0407614B1/en
Publication of JPH02220562A publication Critical patent/JPH02220562A/en
Publication of JPH0666871B2 publication Critical patent/JPH0666871B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Storing Facsimile Image Data (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Color Image Communication Systems (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は画像処理装置、特に印刷物の無地網部分の画像
を処理するのに適した画像処理装置に関する。
The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus suitable for processing an image of a solid halftone portion of a printed matter.

〔従来の技術〕[Conventional technology]

カラー印刷物の中には、色が一定の部分、いわゆる無地
網部分が多数存在する。このような無地網部分の製版工
程は一般のカラー部分の製版工程とは異なった特殊な工
程によって行われる。各無地網部分には、イエロー
(Y)、マゼンタ(M)、シアン(C)、ブラック
(K)の4色の混合で表現される色が与えられるが、こ
の混合色は印刷時に各色について用いる分解版における
網点面積率をパーセントで表した数値(以下、網パーセ
ントと呼ぶ)によって決定される。従来は、同一の網パ
ーセント領域を抽出するためのマスクと、所望の網パー
セントで網点で設けられた透明フィルム(平網)とを何
種類も用意し、露光フィルムに露光を繰り返すことによ
り、無地網フィルムを作成する作業を行っていた。
In a color printed matter, there are a large number of areas of constant color, so-called solid mesh areas. The plate-making process of such a solid mesh portion is performed by a special process different from the general plate-making process of the color portion. A color represented by a mixture of four colors of yellow (Y), magenta (M), cyan (C), and black (K) is given to each solid halftone dot portion, and this mixed color is used for each color at the time of printing. The halftone dot area ratio in the disassembled version is determined by a numerical value (hereinafter referred to as halftone dot percentage). Conventionally, many kinds of masks for extracting the same halftone percentage area and transparent films (flat halftone dots) provided with halftone dots at desired halftone percentages are prepared, and by repeating exposure to the exposure film, I was working on making a solid mesh film.

最近では、このような無地網フィルムの作成をコンピュ
ータを利用して行う技術が提案されている。たとえば、
特願昭60-213259号明細書、特願昭60-270501号明細書、
特願昭62-231365号明細書には、コンピュータを用いた
無地網フィルム作成装置が開示されている。これらの装
置では、版下原稿に描画された輪郭線画像をスキャナな
どで読み取り、この読み取った画像データに基づいてコ
ンピュータによる着色を行い、直接各色ごとの無地網フ
ィルムが作成される。
Recently, a technique has been proposed in which such a solid mesh film is produced using a computer. For example,
Japanese Patent Application No. 60-213259, Japanese Patent Application No. 60-270501,
Japanese Patent Application No. 62-231365 discloses a solid mesh film forming apparatus using a computer. In these apparatuses, a contour line image drawn on a block copy document is read by a scanner or the like, and coloring is performed by a computer based on the read image data, and a plain net film for each color is directly created.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上述したコンピュータを用いた無地網フィルム作成装置
は、一般に外部記憶装置としてディスク装置を有し、こ
のディスク装置内に画像データを保存している。着色な
どの画像処理を行う場合には、このディスク装置内の画
像データをコンピュータ内のメインメモリに読出し、こ
のメインメモリ内の画像データに対して着色などの画像
処理を施すことになる。この画像処理を行う間、処理対
象となる画像をディスプレイに表示する必要があるが、
この表示のためにフレームメモリが設けられ、表示に必
要な画像データをメインメモリからフレームメモリに転
送することによって必要な画像表示を行っている。
The above-described solid mesh film producing apparatus using a computer generally has a disk device as an external storage device and stores image data in the disk device. When performing image processing such as coloring, the image data in the disk device is read into the main memory in the computer, and the image data in the main memory is subjected to image processing such as coloring. While performing this image processing, it is necessary to display the image to be processed on the display,
A frame memory is provided for this display, and necessary image display is performed by transferring image data required for display from the main memory to the frame memory.

通常、画像データとしては、各画素の色値を画素の配列
のとおりに並べたラスターデータと、同じ色値をもった
画素の並びを示すランレングスデータと、が用いられて
いる。従来の装置では、メインメモリおよびフレームメ
モリでは画像データをラスターデータの形で記憶し、デ
ィスク装置では画像データをランレングスデータの形で
記憶している。これは、フレームメモリはディスプレイ
に直接接続されているため、データをラスターデータの
形で保持する必要があるのに対し、いくつもの画像を記
憶するディスク装置にはデータの全容量がより少なくな
るラスターデータの形でデータを保存した方が便利であ
るという理由によるものである。フレームメモリにデー
タを転送するメインメモリでは、フレームメモリと同様
のラスターデータの形が用いられている。したがって、
従来の装置では、ディスク装置内のランレングスデータ
形式の画像データを、ラスターデータに変換してメイン
メモリ上に読出し、このメインメモリ上のラスターデー
タをラスターデータの形式のままフレームメモリに転送
して画像表示を行っている。
Generally, as image data, raster data in which color values of each pixel are arranged according to an array of pixels and run-length data indicating an array of pixels having the same color value are used. In the conventional device, the image data is stored in the form of raster data in the main memory and the frame memory, and the image data is stored in the form of run length data in the disc device. This is because the frame memory is directly connected to the display, so it is necessary to hold the data in the form of raster data, whereas a disk drive that stores several images has less total data capacity. This is because it is more convenient to save the data in the form of data. The main memory that transfers data to the frame memory uses the same raster data format as the frame memory. Therefore,
In the conventional device, run-length data format image data in the disk device is converted to raster data and read out on the main memory, and the raster data on this main memory is transferred to the frame memory in the raster data format. The image is displayed.

しかしながら、このような装置ではメインメモリの容量
が非常に多く必要になるという問題がある。前述のよう
にラスターデータは、全画素数と同じ数のデータが必要
になるため、解像度の高い画像の場合には膨大なデータ
量を記憶するメモリが必要になるのである。一般にコン
ピュータのメインメモリはディスクなどに比べて1ビッ
トあたりの単価が高いため、容量の大きなメインメモリ
を確保するとそれだけコストが高くなるという問題があ
る。
However, such a device has a problem that the capacity of the main memory is very large. As described above, raster data requires the same number of data as the total number of pixels, and thus a memory for storing a huge amount of data is required in the case of an image with high resolution. In general, the main memory of a computer has a higher unit price per bit than a disk or the like. Therefore, securing a main memory having a large capacity causes a problem of an increase in cost.

従来装置のもう1つの問題は、画像を修正するために描
画処理を施す場合、描画演算の効率が非常に悪く、演算
時間が長くかかるという点である。通常、描画処理はメ
インメモリ内の画像データに対して行うことになるが、
前述のように従来装置ではメインメモリはラスターデー
タの形式で画像データを保持しているから、このラスタ
ーデータに対して描画処理を施すことになる。このよう
に膨大な量のラスターデータに対して描画処理を施すこ
とは非常に効率が悪く、処理時間が長くかかるのであ
る。
Another problem with the conventional apparatus is that when a drawing process is performed to correct an image, the efficiency of the drawing calculation is very poor and the calculation time is long. Normally, the drawing process will be performed on the image data in the main memory,
As described above, in the conventional apparatus, the main memory holds the image data in the format of raster data, so that the rendering process is performed on this raster data. It is very inefficient to perform drawing processing on such a huge amount of raster data and it takes a long processing time.

そこで本発明は、メインメモリの容量を低下させること
によりコストダウンを図ることができ、しかも効率の良
い描画演算を行うことのできる画像処理装置を提供する
ことを目的とする。
Therefore, an object of the present invention is to provide an image processing apparatus which can reduce the cost by reducing the capacity of the main memory and can perform efficient drawing calculation.

〔課題を解決するための手段〕[Means for Solving the Problems]

本願第1の発明は、画像処理装置において、 XY平面上に配列された画素によって構成される画像を記
憶するメモリであって、X方向に並んだ画素列を、画素
のもつ色値cと、同じ色値を有する画素の並びの終端を
示すことのできる値aと、によって表現される一連のラ
ンレングスデータ(c,a)で定義し、これをX方向に伸
びたラインごとに記憶するメインメモリと、 このメインメモリ内のランレングスデータをラスターデ
ータに変換するデータ形式変換部と、 ディスプレイに画像表示を行うために、画像データ変換
部で変換されたラスターデータを保持するフレームメモ
リと、 メインメモリ内の画像について、描画領域を指定するた
めの描画領域入力部と、 描画領域についての描画色を指定するための色入力部
と、 メモリメモリ内のランレングスデータ(c,a)のうち、
描画領域にかかるラインのデータを読み出すラインデー
タ読出部と、 ラインデータ読出部で読み出された1ライン分のランレ
ングスデータを、描画領域入力部により指定された描画
領域の位置を示すデータに基づいて1データずつ順に検
討し、描画領域に関連しないデータであればそのまま出
力し、関連するデータであれば描画色を参照してデータ
に少なくとも値aに関する修正を加えて出力する機能を
もったデータ更新部と、 このデータ更新部から与えられるデータによって、メイ
ンメモリを書き替えるラインデータ書込部と、 を設けたものである。
A first invention of the present application is, in an image processing apparatus, a memory for storing an image composed of pixels arranged on an XY plane, in which a pixel column arranged in the X direction has a color value c of a pixel, A value a that can indicate the end of a row of pixels having the same color value, and a series of run length data (c, a) represented by, and this is stored for each line extending in the X direction. A memory, a data format conversion unit that converts the run-length data in the main memory into raster data, a frame memory that holds the raster data converted by the image data conversion unit to display an image on the display, and a main memory. For the image in the memory, the drawing area input part for specifying the drawing area, the color input part for specifying the drawing color for the drawing area, and the run in the memory memory. Ngusudeta (c, a) of,
A line data reading unit that reads the data of the line related to the drawing area, and one line of run length data read by the line data reading unit based on the data indicating the position of the drawing area specified by the drawing area input unit. Data that has a function of outputting the data as it is if it is not related to the drawing area, and if it is related data, referring to the drawing color and correcting at least the value a to output the data. An updating unit and a line data writing unit that rewrites the main memory with the data given from the data updating unit are provided.

本願第2の発明は、画像処理装置において、 XY平面上に配列された画素によって構成される画像を記
憶するメモリであって、X方向に並んだ画素列を、画素
のもつ色値cと、同じ色値を有する画素の並びの終端を
示すことのできる値aと、によって表現される一連のラ
ンレングスデータ(c,a)で定義し、これをX方向に伸
びたラインごとに記憶するメインメモリと、 このメインメモリ内のランレングスデータをラスターデ
ータに変換するデータ形式変換部と、 ディスプレイに画像表示を行うために、画像データ変換
部で変換されたラスターデータを保持するフレームメモ
リと、 メインメモリ内の画像について、描画領域を指定するた
めの描画領域入力部と、 描画領域についての描画色を指定するための色入力部
と、 メインメモリ内のランレングスデータ(c,a)のうち、
描画領域にかかるラインのデータを読み出すラインデー
タ読出部と、 ラインデータ読出部で読み出された1ライン分のランレ
ングスデータを、1データずつ順に検討し、描画領域に
関連しないデータであればそのまま出力し、関連するデ
ータであれば描画色を参照してデータに修正を加えて出
力する機能をもったデータ更新部と、 このデータ更新部から与えられるデータによって、メイ
ンメモリを書き替えるラインデータ書込部と、 を設け、 データ更新部内に、データ修正の方法を示すデータ修正
パターンを複数組定義し、 データ更新部は、修正対象となるデータ(cn,an)にお
ける値anと、データ(cn,an)と同一ライン上で直前に
位置するデータ(cn−1,an−1)が存在する場合にはこ
のデータにおける値an−1と、上記同一ラインにおける
描画領域の始点位置を示す値Psと、上記同一ラインにお
ける描画領域の終点位置を示す値Peと、の相互大小関係
に基づいて、定義された複数組のデータ修正パターンの
うちの1組を選択し、選択したデータ修正パターンに示
されている方法により修正対象となるデータ(cn,an)
に対する修正を実行するようにしたものである。
A second invention of the present application is, in an image processing device, a memory for storing an image composed of pixels arranged on an XY plane, in which a pixel column arranged in the X direction has a color value c of the pixel, A value a that can indicate the end of a row of pixels having the same color value, and a series of run length data (c, a) represented by, and this is stored for each line extending in the X direction. A memory, a data format conversion unit that converts the run length data in the main memory into raster data, a frame memory that holds the raster data converted by the image data conversion unit to display an image on the display, and a main memory. For the image in the memory, the drawing area input section for specifying the drawing area, the color input section for specifying the drawing color for the drawing area, and the run area in the main memory. Ngusudeta (c, a) of,
The line data reading unit that reads the data of the line related to the drawing area and the run length data for one line read by the line data reading unit are examined one by one, and if the data is not related to the drawing area, the data is left as it is. If the data is related, and if it is related data, the drawing color is referenced to modify and output the data, and the line data document that rewrites the main memory with the data given from this data updating unit. The data update section defines a plurality of sets of data modification patterns indicating the method of data modification, and the data update section defines the value an in the data (cn, an) to be modified and the data (cn , an) and the immediately preceding data (cn−1, an−1) on the same line exists, the value an−1 in this data and the line Based on the mutual magnitude relation between the value Ps indicating the start point position of the image area and the value Pe indicating the end point position of the drawing area on the same line, one of the defined plurality of data correction patterns is selected. Then, the data (cn, an) to be corrected by the method shown in the selected data correction pattern
It is intended to carry out a modification to.

〔作 用〕[Work]

本発明による画像処理装置では、画像データはランレン
グスデータの形式でメインメモリに記憶される。したが
って、ラスターデータの形式で記憶する従来装置に比べ
てメインメモリの容量を低減することができ、コストダ
ウンを図ることができる。また、画像の描画処理は、メ
インメモリ内のランレングスデータに対して行われるた
め、ラスターデータに対して行う従来の方法に比べて、
演算効率が改善され、処理速度が向上する。
In the image processing apparatus according to the present invention, the image data is stored in the main memory in the form of run length data. Therefore, it is possible to reduce the capacity of the main memory and to reduce the cost as compared with the conventional device that stores in the format of raster data. Also, since the image drawing process is performed on the run length data in the main memory, compared to the conventional method performed on the raster data,
The calculation efficiency is improved and the processing speed is improved.

ランレングスデータに対する描画処理は、次のようにし
てライン単位で行うことができる。まず、オペレータが
描画領域と描画色を入力する。ラインデータ読出部は、
この描画領域にかかるラインのデータをメインメモリか
ら読み出し、データ更新部に与える。データ更新部では
このデータを順に検討し、描画領域に関連したデータで
あるか否かを判断する。関連しないデータであれば、修
正を加えずにそのまま出力する。関連したデータであれ
ば、描画色によって描画領域が塗られるようにデータに
修正を加えて出力する。この出力されたデータは、ライ
ンデータ書込部によって再びメインメモリに書き込まれ
る。こうして、メインメモリ内のランレングスデータに
対して描画処理がなされる。
The drawing process for the run length data can be performed in line units as follows. First, the operator inputs the drawing area and the drawing color. The line data reading unit
The data of the line related to this drawing area is read from the main memory and given to the data updating unit. The data update unit sequentially examines this data and determines whether or not the data is data related to the drawing area. If it is irrelevant data, output it as it is without modification. If the data is related, the data is modified so that the drawing area is painted with the drawing color and then output. The output data is written in the main memory again by the line data writing unit. In this way, the drawing process is performed on the run length data in the main memory.

〔実施例〕〔Example〕

装置の構成 以下、本発明を図示する実施例に基づいて説明する。第
1図は本発明の一実施例に係る画像処理装置の構成を示
すブロック図である。この装置は、無地網フィルム作成
装置に本発明を適用したものであり、第1図の装置は実
際には無地網フィルム作成装置を構成している。この装
置の本体はコンピュータ100であり、このコンピュータ1
00に、ディスク装置200、入力装置300、ディスプレイ40
0が接続されている。入力装置300としては、キーボー
ド、マウスなどの一般的な入力デバイスを用いればよ
い。また、ディスク装置200にはレイアウトスキャナ500
が接続されている。輪郭線で構成されるモノクロ画像の
データはレイアウトスキャナ500で取り込まれ、一旦デ
ィスク装置200に保存される。ここでは、画像データは
容量を低減できるランレングスデータの形になってい
る。この画像データはコンピュータ100に取り込まれ、
ここで着色などの画像処理が施され、再びディスク装置
200に戻される。レイアウトスキャナ500は、ディスク装
置200から処理済みの画像データを取り込み、この画像
データに基づいて無地網フィルムが作成される。
Configuration of Device Hereinafter, the present invention will be described based on illustrated embodiments. FIG. 1 is a block diagram showing the arrangement of an image processing apparatus according to an embodiment of the present invention. This apparatus is an application of the present invention to a plain net film producing apparatus, and the apparatus of FIG. 1 actually constitutes a plain net film producing apparatus. The main body of this device is a computer 100, and this computer 1
00, disk device 200, input device 300, display 40
0 is connected. As the input device 300, a general input device such as a keyboard or a mouse may be used. In addition, the disk device 200 has a layout scanner 500.
Are connected. The monochrome image data composed of contour lines is captured by the layout scanner 500 and temporarily stored in the disk device 200. Here, the image data is in the form of run-length data that can reduce the capacity. This image data is taken into the computer 100,
Image processing such as coloring is performed here, and the disk device is restored again.
Returned to 200. The layout scanner 500 takes in the processed image data from the disk device 200 and creates a plain net film based on this image data.

続いて、コンピュータ100の内部の構成について説明す
る。コンピュータ100の内部構成は実際には、CPU、メモ
リなどのハードウェアと、これを動作させるためのソフ
トウェアの有機的な結合によって構築されているが、こ
こでは構成要素を機能部に分けてとらえることにする。
ディスク装置200から読出した画像データはメインメモ
リ110に記憶される。このメインメモリ110内の画像デー
タは、ランレングスデータであるが、データ形式変換部
115においてラスターデータに変換されてフレームメモ
リ120に転送される。このフレームメモリ120内の画像デ
ータに基づいて、ディスプレイ400に画像表示がなされ
る。オペレータはこの画像表示を見ながら、着色などの
画像処理を行うことになる。オペレータからの画像処理
の指示は入力装置300を介して、描画領域入力部130、色
入力部140に与えられる。データ更新部150は、この入力
データに基づいて、ランレングスデータの更新を行う機
能を有する。この更新作業は、メインメモリ110内の1
ラインのデータごとに行われる。すなわち、ラインデー
タ読出部160によってメインメモリ110から1ライン分の
データが読み出され、この1ライン分のデータの1つ1
つについてデータ更新部150によって処理が行われ、そ
の結果がラインデータ書込部170に保持される。1ライ
ン分の処理が終了すると、ラインデータ書込部170は保
持していた更新後のデータをメインメモリ110内の読み
出しを行ったライン位置に書き込む。
Next, the internal configuration of the computer 100 will be described. The internal configuration of the computer 100 is actually constructed by organically combining hardware such as a CPU and a memory and software for operating the same, but here, it is necessary to separate the components into functional parts. To
The image data read from the disk device 200 is stored in the main memory 110. The image data in the main memory 110 is run length data, but the data format conversion unit
In 115, it is converted into raster data and transferred to the frame memory 120. An image is displayed on the display 400 based on the image data in the frame memory 120. The operator performs image processing such as coloring while looking at this image display. The image processing instruction from the operator is given to the drawing area input unit 130 and the color input unit 140 via the input device 300. The data updating unit 150 has a function of updating the run length data based on this input data. This update work is performed in 1 in the main memory 110.
This is done for each line of data. That is, the line data reading unit 160 reads out data for one line from the main memory 110, and the data for one line is read one by one.
The data updating unit 150 performs processing for one of these, and the result is held in the line data writing unit 170. When the processing for one line is completed, the line data writing unit 170 writes the updated data held therein to the read line position in the main memory 110.

画像データの形式 ここで、ラスターデータおよびランレングスデータのデ
ータ構造について、第2図および第3図を参照しなが
ら、簡単に説明しておくことにする。いま、第2図
(a)に示すように、横方向に25画素、縦方向に16画
素、合計400画素からなる画素を考える。ここで、各画
素の色値を第2図(b)のように定義するものとする。
このような画像をラスターデータで表現すると、25×16
のマトリックスを用意し、ここに各色値を並べることに
なる。1画素の色値をたとえば4バイトのデータで表現
したとすれば、4×400=1600バイトものデータ量が必
要になる。これに対し、この画像をランレングスデータ
で表現すると第3図のようになる。データの1単位は
(c,a)なる形をもち、cは画素のもつ色値、aは同じ
色値を有する画素の並びの終端を示すコラム値である。
たとえば、ライン1には、(1,25)なるデータが記され
ているが、これは色値1の画素が25コラム目まで連続し
て並んでいることを示す。また、ライン3には、(1,
5)、(2,8)、(1,25)なるデータが記されているが、
これはまず、色値1の画素が5コラムまで並び、6コラ
ム目から8コラム目までは色値2の画素が並び、更に9
コラム目から25コラム目までは色値1の画素が並んでい
ることを示す。このようなランレングスデータの形式で
表現すると、1単位データを4バイトで構成しても、全
部で184バイトあれば全画像を表現することができる。
ラスターデータの形式による表現では、1600バイト必要
であったことに比べると、メモリ容量を大幅に節約する
ことができる。特に、無地網フィルムの絵柄では、両形
式によるデータ量の差が著しく、無地網フィルム作成装
置ではランレングスデータの形式でデータを保存した方
が好ましい。
Image Data Format Here, the data structures of the raster data and the run length data will be briefly described with reference to FIGS. 2 and 3. Now consider a pixel consisting of 25 pixels in the horizontal direction and 16 pixels in the vertical direction, for a total of 400 pixels, as shown in FIG. 2 (a). Here, the color value of each pixel is defined as shown in FIG.
If such an image is expressed by raster data, it will be 25 × 16
Prepare a matrix of and arrange each color value here. If the color value of one pixel is represented by, for example, 4-byte data, a data amount of 4 × 400 = 1600 bytes is required. On the other hand, when this image is expressed by run length data, it becomes as shown in FIG. One unit of data has a form of (c, a), c is a color value of a pixel, and a is a column value indicating the end of a row of pixels having the same color value.
For example, in line 1, data (1,25) is written, which means that pixels having color value 1 are continuously arranged up to the 25th column. In line 3, (1,
Although the data 5), (2,8) and (1,25) are written,
First, the pixels of color value 1 are arranged in 5 columns, the pixels of color value 2 are arranged in the 6th to 8th columns, and further 9 columns are arranged.
Columns 25 to 25 indicate that pixels with a color value of 1 are lined up. When expressed in such a format of the run length data, even if one unit data is composed of 4 bytes, it is possible to express the whole image with 184 bytes in total.
Raster data format representation can save a large amount of memory compared to 1600 bytes required. In particular, in the case of the pattern of the plain net film, the difference in the amount of data between the two formats is remarkable, and it is preferable that the data is stored in the run length data format in the plain net film making apparatus.

前述のように、従来装置ではメインメモリ110はラスタ
ーデータの形式で画像データを保持していたが、本装置
ではメインメモリ110はランレングスデータの形式で画
像データを保持している点に特徴がある。しかしなが
ら、フレームメモリ120はディスプレイ400に画像を表示
するためにラスターデータの形式を要求する。そのた
め、メインメモリ110から、フレームメモリ120へ画像デ
ータを転送するプロセスで、データ形式の変換を行わね
ばならない。データ形式変換部115は、このデータ変換
の処理を行う機能を有するわけである。
As described above, in the conventional device, the main memory 110 holds image data in the format of raster data, but in the present device, the main memory 110 holds image data in the form of run length data. is there. However, the frame memory 120 requires the format of the raster data to display the image on the display 400. Therefore, in the process of transferring the image data from the main memory 110 to the frame memory 120, the data format must be converted. The data format conversion unit 115 has a function of performing this data conversion process.

描画処理の概要 オペレータはディスプレイ400に表示された画像を見な
がら、画像に細かい修正を加えることができる。これが
描画処理である。この描画処理は、メインメモリ110内
の画像データに対して行われるが、本装置では、メイン
メモリ110がランレングスデータの形式でデータを保持
しているために、従来のような描画処理をそのまま適用
するわけにはゆかない。従来のように、メインメモリ11
0がラスターデータの形式でデータを保持している場合
は、描画処理の原理は非常に単純である。すなわち、原
理的には、描画する領域の画素に対応するラスターデー
タの色値を、所望の色値に変換するだけでよい。ただ
し、膨大な画素のそれぞれについてこの処理を行うこと
は、決して演算効率が良いとはいえない。前述のよう
に、無地網フィルムの絵柄では、ランレングスデータの
形式でデータを保存した方がデータ量が著しく減少する
ため、描画処理もランレングスデータに対して行った方
が演算負荷が軽くなるのである。しかしながら、この描
画処理の原理は少々複雑になる。以下に、描画処理の具
体的な方法を示す。
Outline of Drawing Processing While looking at the image displayed on the display 400, the operator can make fine corrections to the image. This is the drawing process. This drawing process is performed on the image data in the main memory 110. However, in this device, since the main memory 110 holds the data in the form of run length data, the conventional drawing process can be performed as it is. It cannot be applied. As before, main memory 11
When 0 holds data in the form of raster data, the principle of drawing processing is very simple. That is, in principle, it is only necessary to convert the color value of the raster data corresponding to the pixel in the drawing area into a desired color value. However, performing this processing for each of a huge number of pixels is by no means very efficient. As described above, in the case of the pattern of plain net film, the amount of data is significantly reduced when the data is stored in the format of run length data. Therefore, the calculation load becomes lighter when the drawing process is also performed for the run length data. Of. However, the principle of this drawing process becomes a little complicated. The specific method of drawing processing is shown below.

いま、第4図に示すように3つの色値を定義する。そし
て、この3つの色によって第5図(a)に示すような画
像が形成されている場合を考える。この画像に対するラ
ンレングスデータは同図(b)に示すようになり、この
ランレングスデータがメインメモリ110に保持されてい
る。この状態で、オペレータが図の破線で示す領域A1に
ついて、色値1で示される色によって描画したとする。
描画処理後の画像は同図(c)に示すようなものとな
り、これに対応するランレングスデータは同図(d)の
ようになる。結局、この描画処理は、同図(b)に示す
データを同図(d)に示すデータに書き替える処理とい
うことになる。
Now, three color values are defined as shown in FIG. Then, consider a case where an image as shown in FIG. 5A is formed by these three colors. The run length data for this image is as shown in FIG. 9B, and this run length data is held in the main memory 110. In this state, it is assumed that the operator draws the area A1 indicated by the broken line in the drawing with the color indicated by the color value 1.
The image after the drawing process is as shown in FIG. 7C, and the run length data corresponding to it is as shown in FIG. After all, this drawing process is a process of rewriting the data shown in FIG. 9B into the data shown in FIG.

この装置では、描画のために2とおりの入力方法が用意
されている。第1の方法はブラシによる描画、第2の方
法は線分指示による描画である。第1の方法であるブラ
シによる描画では、ブラシ図形とブラシの中心点位置が
オペレータによって入力される。ブラシ図形は、たとえ
ば、第6図に示すような円や正方形の6種類の図形を用
意し、この中から所望のブラシを選択すればよい。ディ
スプレイ400のメニュー表示部分にこれらのブラシ形状
を表示させ、任意のものを選択できるようにするとよ
い。ブラシの中心点位置は、タブレットなどの入力装置
によって指定することができる。実際の描画操作は、中
心点位置を連続的に動かすことによって行われる。たと
えば、第7図(a)に示すように、ブラシ図形B1を選択
し、タブレットペンによって中心点のスタート位置を点
Pに指定し、図の矢印に示すようにタブレットペンを動
かして中心点を右へ移動させると、同図(b)に示すよ
うに、領域A2が描画領域になる。
This device has two input methods for drawing. The first method is drawing with a brush, and the second method is drawing with a line segment instruction. In the first method of drawing with a brush, the operator inputs the brush figure and the center point position of the brush. As the brush figure, for example, six kinds of figures such as circles and squares as shown in FIG. 6 are prepared, and a desired brush may be selected from these. These brush shapes may be displayed on the menu display portion of the display 400 so that any brush shape can be selected. The center point position of the brush can be designated by an input device such as a tablet. The actual drawing operation is performed by continuously moving the center point position. For example, as shown in FIG. 7 (a), the brush figure B1 is selected, the start position of the center point is designated as point P by the tablet pen, and the center point is moved by moving the tablet pen as shown by the arrow in the figure. When it is moved to the right, the area A2 becomes the drawing area as shown in FIG.

第2の方法である線分指示による描画では、線分の幅と
線分の端点がオペレータによって入力される。たとえ
ば、線分の幅をWに指定し、端点P1,P2,P3の位置をタブ
レットペンなどによって入力すれば、第8図に示すよう
な領域A3が描画領域になる。
In the second method of drawing by the line segment instruction, the width of the line segment and the end points of the line segment are input by the operator. For example, if the width of the line segment is designated as W and the positions of the end points P1, P2, P3 are input with a tablet pen or the like, the area A3 as shown in FIG. 8 becomes the drawing area.

第1図の装置では、ブラシによる描画の場合には、入力
装置300からブラシ図形がブラシ図形入力部131に、中心
点位置が中心点入力部132に入力され、描画領域が決定
される。また、線分指示による描画の場合には、線分の
幅と線分の端点が線分指示入力部133に入力され、描画
領域が決定される。いずれにしても、決定された描画領
域に関するデータは、データ更新部150およびラインデ
ータ読出部160に与えられる。
In the device of FIG. 1, in the case of drawing with a brush, a brush figure is input from the input device 300 to the brush figure input unit 131 and a center point position is input to the center point input unit 132 to determine a drawing area. Further, in the case of drawing by the line segment instruction, the width of the line segment and the end points of the line segment are input to the line segment instruction input unit 133 to determine the drawing area. In any case, the data regarding the determined drawing area is provided to the data updating unit 150 and the line data reading unit 160.

描画操作を行う場合、オペレータは上述のような描画領
域を特定する入力を行うとともに、描画のための色を指
定する入力を行わねばならない。この入力は、入力装置
300から色入力部140に対して行われる。通常の描画であ
れば、描画のための色は、描画色として描画色入力部14
1に入力される。描画処理とは、描画領域をこの描画色
で着色する処理に他ならない。なお、この装置には後に
詳述するように、元色指定による描画機能があり、この
機能を用いる場合には、描画色の他に元色が元色入力部
142に入力される。
When performing a drawing operation, the operator must make an input specifying the drawing area as described above and an input specifying a color for drawing. This input is an input device
From 300 to the color input unit 140. In the case of normal drawing, the drawing color is the drawing color input section 14 as the drawing color.
Entered in 1. The drawing process is nothing but the process of coloring the drawing area with this drawing color. As will be described in detail later, this device has a drawing function by designating the original color. When this function is used, the original color is the original color input section in addition to the drawing color.
Input to 142.

通常の描画処理 さて、第5図(a)に示すように、描画領域A1が指定さ
れ、描画色として色値1で示される色が指定された場
合、描画処理によって同図(c)に示すような画像が得
られることになる。このような処理は、結局、同図
(b)のようなランレングスデータを同図(d)のよう
なランレングスデータに変更する処理ということにな
る。この装置では、この処理を1ライン単位で行ってい
る。すなわち、ラインデータ読出部160は、メインメモ
リ110内のランレングスデータを1ライン単位で読み出
す機能を有する。ただし、読み出すラインは、描画領域
にかかるラインに限られる。第5図(a)の画像につい
ていえば、描画領域A1はライン2〜7にかかっているの
で、ライン2から順にライン7までが読み出されること
になる。ラインデータ読出部160に、ライン2のデー
タ、すなわち、(1,3)(3,11)(2,14)が読み出され
ると、データ更新部150は、これらのデータを頭から1
つずつ順に検討し、描画領域に関連しないデータであれ
ばそのままラインデータ書込部170に出力し、関連する
データであれば描画色を参照してデータに修正を加えて
ラインデータ書込部170に出力する。このデータ修正に
よってデータ数が増減する場合もある。ラインデータ書
込部170は、データ更新部150から出力されるデータを順
に並べて保持する。そして1ライン分の処理が終了した
ら、この更新後の1ライン分のデータをメインメモリ11
0のもとの位置に書き込む。
Normal Drawing Process As shown in FIG. 5A, when the drawing area A1 is specified and the color indicated by the color value 1 is specified as the drawing color, the drawing process shown in FIG. Such an image will be obtained. After all, such a process is a process of changing the run length data as shown in FIG. 7B into the run length data as shown in FIG. In this device, this processing is performed for each line. That is, the line data reading unit 160 has a function of reading the run length data in the main memory 110 on a line-by-line basis. However, the line to be read is limited to the line related to the drawing area. With respect to the image of FIG. 5A, the drawing area A1 extends over the lines 2 to 7, so that the lines 2 to 7 are sequentially read. When the line data reading unit 160 reads the data of line 2, that is, (1,3) (3,11) (2,14), the data updating unit 150 reads these data from the beginning.
If the data is not related to the drawing area, the data is output to the line data writing unit 170 as it is. If the data is related data, the drawing color is referred to and the data is corrected to correct the line data writing unit 170. Output to. The number of data may increase or decrease due to this data correction. The line data writing unit 170 arranges and holds the data output from the data updating unit 150 in order. When the processing for one line is completed, the updated data for one line is stored in the main memory 11
Write to the original position of 0.

以上の処理を、第5図(a)に示す画像について具体的
に説明しよう。まず、ラインデータ読出部160に、ライ
ン2のデータ、すなわち、(1,3)(3,11)(2,14)が
読み出される。データ更新部150は、最初のデータ(1,
3)を検討し、描画領域に関連しないデータであると判
断し、これをそのままラインデータ書込部170に出力す
る。続いて、次のデータ(3,11)を検討し、これを描画
領域に関連するデータであると判断し、これを(3,4)
(1,10)(3,11)という3つのデータに修正し、これを
ラインデータ書込部170に出力する。最後にデータ(2,1
4)を検討し、これを描画領域に関連しないデータであ
ると判断し、そのままラインデータ書込部170に出力す
る。結局、ラインデータ書込部170には、(1,3)(3,
4)(1,10)(3,11)(2,14)という5つのデータが保
持される。これをメインメモリのライン2に書き込め
ば、第5図(d)のライン2のデータとなる。これでラ
イン2の処理が終了したので、続いて、ラインデータ読
出部160には、ライン3のデータが読み出され、同様の
処理が行われる。
The above processing will be specifically described for the image shown in FIG. First, the line data reading unit 160 reads the data of line 2, that is, (1, 3) (3, 11) (2, 14). The data updating unit 150 uses the first data (1,
3) is examined, it is determined that the data is not related to the drawing area, and this is output to the line data writing unit 170 as it is. Next, the next data (3,11) is examined, and it is determined that this is data related to the drawing area.
It is corrected to three data (1,10) and (3,11), and this is output to the line data writing unit 170. Finally, the data (2,1
4) is examined, it is determined that the data is not related to the drawing area, and the data is directly output to the line data writing unit 170. After all, the line data writing unit 170 stores (1,3) (3,
4) Five data of (1,10) (3,11) (2,14) are held. If this is written in line 2 of the main memory, it becomes the data of line 2 in FIG. 5 (d). Since the processing of line 2 is completed, the data of line 3 is subsequently read by the line data reading unit 160 and the same processing is performed.

それでは、データ更新部150の判断および修正処理の論
理について説明しよう。データ更新部150は、描画領域
入力部130から与えられた描画領域を示す情報に基づい
て、検討中のラインについての描画領域の始点位置Ps
(演算の便宜上、この始点位置は実際の始点位置より1
コラム左の位置に定義することにする)と終点位置Peを
コラム値として認識することができる。たとえば、第5
図(a)の画像では、ライン2〜7のいずれについて
も、描画領域の始点位置Psはコラム4(実際の始点位置
はコラム5)であり、終点位置Peはコラム10ということ
になる。また、色入力部140からは、描画色の色値Cが
与えられる。データ更新部150は、これらの値Ps,Pe,Cを
用いて、判断および修正処理を行うのである。いま、検
討中のデータを(Cn,Pn)、その1つ前のデータを(Cn
−1,Pn−1)と表すと、第9図に示すように、検討中の
データに対して、次の6つのうちのいずれかのパターン
があてはまる。なお、1つ前のデータがない場合には、
Cn−1,Pn−1に関する条件を無視することにする。
Now, let us explain the logic of the judgment and correction processing of the data updating unit 150. Based on the information indicating the drawing area given from the drawing area input unit 130, the data updating unit 150 sets the starting point position Ps of the drawing area for the line under consideration.
(For convenience of calculation, this starting point position is 1 from the actual starting point position.
The position on the left side of the column will be defined) and the end point position Pe can be recognized as the column value. For example, the fifth
In the image of FIG. 7A, the start point position Ps of the drawing area is column 4 (the actual start point position is column 5) and the end point position Pe is column 10 in each of lines 2 to 7. Further, the color value C of the drawing color is given from the color input unit 140. The data update unit 150 uses these values Ps, Pe, C to perform the determination and correction processing. The data currently under consideration is (Cn, Pn), and the previous data is (Cn, Pn).
-1, Pn-1), as shown in FIG. 9, any one of the following six patterns applies to the data under consideration. If there is no previous data,
The conditions for Cn-1 and Pn-1 are ignored.

(1)パターン1 Pn−1<Ps かつ Pn≦Psの場合 この場合は、検討中のデータ(Cn,Pn)が描画領域に関
連しないデータであると判断できる。
(1) Pattern 1 Pn−1 <Ps and Pn ≦ Ps In this case, it can be determined that the data (Cn, Pn) under consideration is data not related to the drawing area.

したがって、(Cn,Pn)をそのまま出力する。Therefore, (Cn, Pn) is output as it is.

(2)パターン2 Pn−1<Ps かつ Pn≦Ps かつ Pn≦Peの場合 この場合は、描画領域に関連するので、Cn≠Cであれば
(Cn,Ps)を出力する。すなわち、データの修正が行わ
れる。Cn=Cの場合は、次のデータの色値もCとなるの
で、何も出力しない。
(2) Pattern 2 Pn-1 <Ps and Pn≤Ps and Pn≤Pe In this case, since Cn ≠ C, (Cn, Ps) is output because it relates to the drawing area. That is, the data is corrected. When Cn = C, the color value of the next data is also C, so nothing is output.

(3)パターン3 Pn−1<Ps かつ Pn≦Peの場合 この場合は、描画領域に関連するので、次の2つの処理
を順に行う。
(3) Pattern 3 In the case of Pn-1 <Ps and Pn≤Pe In this case, since it relates to the drawing area, the following two processes are performed in order.

Cn≠Cであれば(Cn,Ps) (C,Pe)を出力する。 If Cn ≠ C, (Cn, Ps) (C, Pe) is output.

(Cn,Pn)を無条件に出力する。 Unconditionally outputs (Cn, Pn).

したがって、Cn≠Cの場合には、3つのデータが出力さ
れることになる。
Therefore, when Cn ≠ C, three data are output.

(4)パターン4 Pn−1<Ps かつ Pn≦Peの場合 この場合は、描画領域に関連するが、この区間は次のデ
ータで表現できるので、何も出力しない。
(4) Pattern 4 In the case of Pn-1 <Ps and Pn≤Pe In this case, although it relates to the drawing area, this section can be expressed by the following data, so nothing is output.

(5)パターン5 Pn−1<Ps かつ Pn−1≦Pe かつPn>Peの場合 この場合は、描画領域に関連するので、次の2つの処理
を順に行う。
(5) Pattern 5 In the case of Pn-1 <Ps and Pn-1≤Pe and Pn> Pe In this case, since it relates to the drawing area, the following two processes are performed in order.

Cn≠Cであれば(C,Pe)を出力する。 If Cn ≠ C, (C, Pe) is output.

(Cn,Pn)を無条件に出力する。 Unconditionally outputs (Cn, Pn).

(6)パターン6 Pn−1<Pe かつ Pn>Peの場合 この場合は、検討中のデータ(Cn,Pn)が描画領域に関
連しないデータであると判断できる。したがって、(C
n,Pn)をそのまま出力する。
(6) Pattern 6 In the case of Pn-1 <Pe and Pn> Pe In this case, it can be determined that the data (Cn, Pn) under consideration is data not related to the drawing area. Therefore, (C
n, Pn) is output as it is.

以上が6つのパターンである。データ更新部150は、ラ
インデータ読出部160内のデータを順に検討し、上の6
つのパターンのいずれに該当するかを判断し、各パター
ンで定められたデータをラインデータ書込部170に出力
するのである。この処理によって、ランレングスデータ
への正しい描画処理がなされる。たとえば、第5図
(b)のライン2にある(1,3)(3,11)(2,14)なる
データに、上述の処理を行うと、同図(d)のライン2
にある(1,3)(3,4)(1,10)(3,11)(2,14)なるデ
ータが得られることを示そう。この場合、前述のように
Ps=4、Pe=10、そしてC=1である。まず、第1のデ
ータ(1,3)について検討すれば、パターン1であるか
ら、そのまま(1,3)が出力される。続く第2のデータ
(3,11)について検討すると、パターン3であることが
わかる。しかも、Cn=3であるから、(3,4)(1,10)
(3,11)が出力される。そして第3のデータ(2,14)に
ついて検討すると、パターン6であるから、そのまま
(2,14)が出力されるのである。ライン3〜7について
も同様にパターンを当てはめてゆけば、正しいデータ更
新が行われることが理解できよう。
The above are the six patterns. The data updating unit 150 sequentially examines the data in the line data reading unit 160, and
Which of the two patterns is applicable is determined and the data determined by each pattern is output to the line data writing unit 170. By this process, the correct drawing process for the run length data is performed. For example, if the above processing is performed on the data (1,3) (3,11) (2,14) on line 2 in FIG. 5 (b), line 2 in FIG.
Let us show that we can obtain the data (1,3) (3,4) (1,10) (3,11) (2,14) in. In this case, as mentioned above
Ps = 4, Pe = 10, and C = 1. First, considering the first data (1,3), since it is pattern 1, (1,3) is output as it is. When the following second data (3,11) is examined, it can be seen that it is pattern 3. Moreover, since Cn = 3, (3,4) (1,10)
(3,11) is output. Then, considering the third data (2,14), since it is the pattern 6, (2,14) is output as it is. It can be understood that correct data update is performed by applying the same pattern to the lines 3 to 7.

元色指定による描画処理 この装置は、元色指定による描画処理機能を備えてい
る。この機能を用いれば、指定した描画領域のうちの、
元色として指定された色の部分のみを描画することがで
きる。この機能を、第10図を用いて具体的に説明する。
ここで、第10図における色値は、第4図に示すものと同
じであるとする。いま、第10図(a)に示すように、色
値3からなるいわば「地」の部分に、色値2による長方
形が描かれており、ここにブラシなどで描画領域A4、描
画色の色値1という指定を行って描画を行ったものとす
る。通常の描画処理では、描画領域4の内部がすべて色
値1で塗りつぶされることになる。ところが、元色とし
て色値2を指定すると、同図(b)に示すように、描画
領域A4のうちもともと色値2であった部分のみが色値1
に着色される。元色に指定されなかった地の部分は、描
画前と全く変りはない。逆に、元色として色値3を指定
すると、同図(c)に示すように、描画領域A4のうちも
ともと色値3であった部分のみが色値1に着色される。
このような機能は、画像の細かい修正を行うような場
合、あるいは誤まって描画をしてはいけない絵柄が近く
にある場合には非常に便利である。
Drawing Processing by Specifying Original Color This device has a drawing processing function by specifying the original color. If you use this function,
Only the part of the color specified as the original color can be drawn. This function will be specifically described with reference to FIG.
Here, it is assumed that the color values in FIG. 10 are the same as those shown in FIG. Now, as shown in FIG. 10 (a), a rectangle with a color value of 2 is drawn in the so-called "ground" part consisting of the color value of 3, and a drawing area A4 and the color of the drawing color are drawn here with a brush or the like. It is assumed that drawing is performed by designating the value 1. In normal drawing processing, the inside of the drawing area 4 is completely filled with the color value 1. However, if the color value 2 is specified as the original color, only the portion originally having the color value 2 in the drawing area A4 has the color value 1 as shown in FIG.
To be colored. The part of the ground not specified as the original color is the same as before drawing. On the contrary, when the color value 3 is designated as the original color, only the portion originally having the color value 3 in the drawing area A4 is colored with the color value 1 as shown in FIG.
Such a function is very convenient when finely correcting an image or when there is a picture pattern which should not be accidentally drawn.

たとえば、第11図(a)に示すような画像に対して、元
色を色値3、描画色を色値1に指定して描画処理を行え
ば、同図(c)のような画像が得られる。このような画
像処理を行うためには、同図(b)に示すランレングス
データを同図(d)に示すランレングスデータに変換し
なければならない。この変換は、前述した通常の描画処
理とほぼ同様の手順によって行われる。ただし、データ
更新部150が判断および修正処理を行うための参照値と
しては、描画領域の始点位置Ps、終点位置Pe、描画色C
の他に、もう1つ元色Coが加わることになる。したがっ
て、6つのパターンについての処理は、第12図に示すよ
うになる。すなわち、Cnと元色Coとが等しいか否かの判
断が更に加わることになる。この6つのパターンの各処
理を行うことによって、第11図(b)のデータが同図
(d)のデータに変換できるのである。
For example, when an image as shown in FIG. 11 (a) is subjected to drawing processing by designating a color value of 3 as the original color and a color value of 1 as the drawing color, an image as shown in FIG. 11 (c) is obtained. can get. In order to perform such image processing, it is necessary to convert the run length data shown in FIG. 7B into the run length data shown in FIG. This conversion is performed by a procedure substantially similar to the above-mentioned normal drawing processing. However, as reference values for the data updating unit 150 to perform the determination and correction processing, the start point position Ps, the end point position Pe, and the drawing color C of the drawing area are set.
In addition to the above, another original color Co will be added. Therefore, the processing for the six patterns is as shown in FIG. That is, the determination as to whether Cn and the original color Co are equal is further added. By performing the respective processes of these six patterns, the data of FIG. 11 (b) can be converted into the data of FIG. 11 (d).

以上、本発明を図示する実施例に基づいて詳述したが、
本発明は上述の実施例のみに限定されるものではなく、
種々の改変が可能である。本発明の基本思想は、メイン
メモリにランレングスデータの形式で画像データを保持
させ、このランレングスデータに対して描画処理を行う
という点にある。このため、ラインデータ読出部、デー
タ更新部、そしてラインデータ書込部と設け、1ライン
分のデータを1単位としてデータ更新処理を行うように
したものである。また、ランレングスデータ(c,a)の
形式のaの値として、色値cを持ったが画素列の終端の
コラム値を採用するかわりに、画素列の長さを用いても
かまわない。この基本思想が実現可能なものであれば、
どのような形態の装置構成を採ってもかまわない。
The present invention has been described in detail above based on the illustrated embodiments,
The present invention is not limited to the above embodiments,
Various modifications are possible. The basic idea of the present invention is that image data is stored in the main memory in the form of run length data, and drawing processing is performed on this run length data. For this reason, a line data reading unit, a data updating unit, and a line data writing unit are provided to perform the data updating process with one line of data as one unit. Further, although the color value c is used as the value of a in the format of the run length data (c, a), the length of the pixel row may be used instead of using the column value at the end of the pixel row. If this basic idea is feasible,
Any type of device configuration may be adopted.

〔発明の効果〕〔The invention's effect〕

以上のとおり、本願発明によれば画像処理装置におい
て、メインメモリにはランレングスデータの形式で画像
データを保持し、このランレングスデータに対して描画
処理を行うようにしたため、メインメモリの容量を低下
させコストダウンを図ることができるとともに、効率の
よい描画演算が可能になる。
As described above, according to the present invention, in the image processing apparatus, the image data is stored in the main memory in the form of run length data, and the drawing processing is performed on this run length data. It is possible to reduce the cost and reduce the cost, and efficient drawing calculation becomes possible.

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

第1図は本発明の一実施例に係る画像処理装置の構成を
示すブロック図、第2図は画像の一例を示す図、第3図
は第2図の画像をランレングスデータで表示した例を示
す図、第4図は後述する実施例における画像の色値を定
義する図、第5図(a)および(b)は、本発明の装置
による描画処理対象となる画像およびそのランレングス
データを示す図、同図(c)および(d)は、本発明の
装置によって描画処理された画像およびそのランレング
スデータを示す図、第6図は本発明の装置による描画処
理に用いるブラシ図形の説明図、第7図は本発明の装置
による描画操作を示す説明図、第8図は本発明の装置に
よる描画領域入力方法の説明図、第9図は本発明の装置
による描画処理に用いる6つの判断処理パターンを示す
図、第10図は本発明の装置による元色指定した描画処理
を説明する図、第11図(a)および(b)は、本発明の
装置による元色指定描画処理の対象となる画像およびそ
のランレングスデータを示す図、同図(c)および
(d)は、本発明の装置によって元色指定描画処理が施
された画像およびそのランレングスデータを示す図、第
12図は本発明の装置による元色指定描画処理に用いる6
つの判断処理パターンを示す図である。
FIG. 1 is a block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention, FIG. 2 is a diagram showing an example of an image, and FIG. 3 is an example in which the image of FIG. 2 is displayed in run length data. FIG. 4 is a diagram for defining color values of an image in an embodiment described later, and FIGS. 5 (a) and 5 (b) are images to be rendered by the apparatus of the present invention and run length data thereof. FIGS. 6 (c) and 6 (d) are diagrams showing an image drawn by the apparatus of the present invention and its run length data, and FIG. 6 shows a brush figure used for the drawing processing by the apparatus of the present invention. Explanatory diagram, FIG. 7 is an explanatory diagram showing a drawing operation by the device of the present invention, FIG. 8 is an explanatory diagram of a drawing area input method by the device of the present invention, and FIG. 9 is used for drawing processing by the device of the present invention 6 Figure 10 shows the two judgment processing patterns. 11A and 11B are diagrams for explaining a drawing process in which the original color is designated by the apparatus of FIG. 11, FIGS. 11A and 11B are views showing an image to be subjected to the drawing process of the primary color by the apparatus of the present invention, and run length data thereof. FIGS. 3C and 3D are diagrams showing an image subjected to the original color designation drawing process by the apparatus of the present invention and run length data thereof, FIG.
FIG. 12 is used for the original color designation drawing process by the apparatus of the present invention 6
It is a figure which shows one judgment processing pattern.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】XY平面上に配列された画素によって構成さ
れる画像を記憶するメモリであって、X方向に並んだ画
素列を、画素のもつ色値cと、同じ色値を有する画素の
並びの終端を示すことのできる値aと、によって表現さ
れる一連のランレングスデータ(c,a)で定義し、これ
をX方向に伸びたラインごとに記憶するメインメモリ
と、 前記メインメモリ内のランレングスデータをラスターデ
ータに変換するデータ形式変換部と、 ディスプレイに画像表示を行うために、前記画像データ
変換部で変換されたラスターデータを保持するフレーム
メモリと、 前記メインメモリ内の画像について、描画領域を指定す
るための描画領域入力部と、 前記描画領域についての描画色を指定するための色入力
部と、 前記メインメモリ内のランレングスデータ(c,a)のう
ち、前記描画領域にかかるラインのデータを読み出すラ
インデータ読出部と、 前記ラインデータ読出部で読み出された1ライン分のラ
ンレングスデータを、前記描画領域入力部により指定さ
れた描画領域の位置を示すデータに基づいて1データず
つ順に検討し、前記描画領域に関連しないデータであれ
ばそのまま出力し、関連するデータであれば前記描画色
を参照してデータに少なくとも値aに関する修正を加え
て出力する機能をもったデータ更新部と、 前記データ更新部から与えられるデータによって、前記
メインメモリを書き替えるラインデータ書込部と、 を備えることを特徴とする画像処理装置。
1. A memory for storing an image composed of pixels arranged on an XY plane, wherein a pixel column arranged in the X direction is stored in a pixel having the same color value as the color value c of the pixel. A value that can indicate the end of the sequence, and a main memory that is defined by a series of run length data (c, a) represented by, and that stores this for each line that extends in the X direction; Data format conversion unit for converting the run-length data into raster data, a frame memory for holding the raster data converted by the image data conversion unit for displaying an image on a display, and an image in the main memory A drawing area input unit for specifying a drawing area, a color input unit for specifying a drawing color for the drawing area, and run length data in the main memory In (c, a), the line data reading unit that reads the data of the line related to the drawing area and the run length data for one line read by the line data reading unit are specified by the drawing area input unit. Based on the data indicating the position of the drawn area, the data is examined one by one, and if the data is not related to the drawing area, the data is output as it is. An image processing apparatus, comprising: a data updating unit having a function of outputting a correction related to a; and a line data writing unit rewriting the main memory with data given from the data updating unit. .
【請求項2】XY平面上に配列された画素によって構成さ
れる画像を記憶するメモリであって、X方向に並んだ画
素列を、画素のもつ色値cと、同じ色値を有する画素の
並びの終端を示すことのできる値aと、によって表現さ
れる一連のランレングスデータ(c,a)で定義し、これ
をX方向に伸びたラインごとに記憶するメインメモリ
と、 前記メインメモリ内のランレングスデータをラスターデ
ータに変換するデータ形式変換部と、 ディスプレイに画像表示を行うために、前記画像データ
変換部で変換されたラスターデータを保持するフレーム
メモリと、 前記メインメモリ内の画像について、描画領域を指定す
るための描画領域入力部と、 前記描画領域についての描画色を指定するための色入力
部と、 前記メインメモリ内のランレングスデータ(c,a)のう
ち、前記描画領域にかかるラインのデータを読み出すラ
インデータ読出部と、 前記ラインデータ読出部で読み出された1ライン分のラ
ンレングスデータを、1データずつ順に検討し、前記描
画領域に関連しないデータであればそのまま出力し、関
連するデータであれば前記描画色を参照してデータに修
正を加えて出力する機能をもったデータ更新部と、 前記データ更新部から与えられるデータによって、前記
メインメモリを書き替えるラインデータ書込部と、 を備え、 前記データ更新部内には、データ修正の方法を示すデー
タ修正パターンを複数組定義し、 前記データ更新部は、修正対象となるデータ(cn,an)
における値anと、前記データ(cn,an)と同一ライン上
で直前に位置するデータ(cn−1,an−1)が存在する場
合にはこのデータにおける値an−1と、前記同一ライン
における前記描画領域の始点位置を示す値Psと、前記同
一ラインにおける前記描画領域の終点位置を示す値Pe
と、の相互大小関係に基づいて、前記複数組のデータ修
正パターンのうちの1組を選択し、選択したデータ修正
パターンに示されている方法により修正対象となるデー
タ(cn,an)に対する修正を実行することを特徴とする
画像処理装置。
2. A memory for storing an image composed of pixels arranged on an XY plane, wherein a pixel row arranged in the X direction is a pixel having the same color value as the color value c of the pixel. A value that can indicate the end of the sequence, and a main memory that is defined by a series of run length data (c, a) represented by, and that stores this for each line that extends in the X direction; Data format conversion unit for converting the run-length data into raster data, a frame memory for holding the raster data converted by the image data conversion unit for displaying an image on a display, and an image in the main memory A drawing area input unit for specifying a drawing area, a color input unit for specifying a drawing color for the drawing area, and run length data in the main memory Of (c, a), the line data reading unit for reading the data of the line related to the drawing area and the run length data for one line read by the line data reading unit are examined one by one, If the data is not related to the drawing area, it is output as it is, and if it is related data, the data updating section has a function of referring to the drawing color and correcting and outputting the data. A line data writing unit that rewrites the main memory with data that is stored in the data updating unit, wherein the data updating unit defines a plurality of sets of data correction patterns indicating a method of data correction. Data (cn, an)
If there is data (cn-1, an-1) immediately before the value an on the same line as the data (cn, an), the value an-1 on this data and the data on the same line A value Ps indicating the start position of the drawing area and a value Pe indicating the end position of the drawing area on the same line
, And one of the plurality of sets of data correction patterns is selected based on the mutual magnitude relation, and the data (cn, an) to be corrected is corrected by the method indicated in the selected data correction pattern. An image processing apparatus for executing the following.
JP1040657A 1989-02-02 1989-02-21 Image processing device Expired - Fee Related JPH0666871B2 (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP1040657A JPH0666871B2 (en) 1989-02-21 1989-02-21 Image processing device
DE69031446T DE69031446T2 (en) 1989-02-02 1990-01-30 IMAGE TREATMENT ARRANGEMENT
EP96110758A EP0737937B1 (en) 1989-02-02 1990-01-30 Image processing apparatus
PCT/JP1990/000110 WO1990009018A1 (en) 1989-02-02 1990-01-30 Image processing apparatus
DE69033539T DE69033539T2 (en) 1989-02-02 1990-01-30 Image processing device
US07/582,198 US5377023A (en) 1989-02-02 1990-01-30 Pictorial image processing system
EP90902373A EP0407614B1 (en) 1989-02-02 1990-01-30 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1040657A JPH0666871B2 (en) 1989-02-21 1989-02-21 Image processing device

Publications (2)

Publication Number Publication Date
JPH02220562A JPH02220562A (en) 1990-09-03
JPH0666871B2 true JPH0666871B2 (en) 1994-08-24

Family

ID=12586617

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1040657A Expired - Fee Related JPH0666871B2 (en) 1989-02-02 1989-02-21 Image processing device

Country Status (1)

Country Link
JP (1) JPH0666871B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62216478A (en) * 1986-03-17 1987-09-24 Dainippon Screen Mfg Co Ltd Tint laying device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
電子通信学会論文誌J63−D[10(昭55)P.899−906

Also Published As

Publication number Publication date
JPH02220562A (en) 1990-09-03

Similar Documents

Publication Publication Date Title
JP3166977B2 (en) Pipeline configuration of full-color computer graphics
US5021876A (en) Image processing apparatus with real-time texture processing
JPS60198688A (en) Page makeup apparatus
JP4063918B2 (en) Apparatus and method for creating an image containing graphics information for display
JP3285930B2 (en) Image processing device
JPH0431223B2 (en)
JPH0481227B2 (en)
JPH0666871B2 (en) Image processing device
JPH03179873A (en) Picture processing method
JPH028314B2 (en)
US5673120A (en) Image output device
JP3049654B2 (en) Abstract pattern design simulation system for printing building materials
JP2000076432A (en) Image data interpolation device and method therefor, and medium having recorded image data interpolation program thereon
JPH07120415B2 (en) Airbrush processing method
JP3049653B2 (en) Abstract pattern design simulation system for printing building materials
JP3049655B2 (en) Abstract pattern design simulation system for printing building materials
JP3049656B2 (en) Abstract pattern design simulation system for printing building materials
JPH11296670A (en) Image data interpolation device, its method, and medium for recording image data interpolation program
JP2989261B2 (en) Coloring equipment
JP2511966B2 (en) Graphic processing device
JPH0581397A (en) Page scroll method and image processor
JPH0693185B2 (en) Image processing device
JPH02216590A (en) Image processor
JPH0758427B2 (en) Image processing device
JPH05183753A (en) Device and method for outputting color image

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees