JPH04207857A - Coloration processor - Google Patents

Coloration processor

Info

Publication number
JPH04207857A
JPH04207857A JP2339954A JP33995490A JPH04207857A JP H04207857 A JPH04207857 A JP H04207857A JP 2339954 A JP2339954 A JP 2339954A JP 33995490 A JP33995490 A JP 33995490A JP H04207857 A JPH04207857 A JP H04207857A
Authority
JP
Japan
Prior art keywords
length data
run
coloring
data
processing
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
JP2339954A
Other languages
Japanese (ja)
Other versions
JP2989261B2 (en
Inventor
Kazuya Tsunashima
綱島 一也
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 JP2339954A priority Critical patent/JP2989261B2/en
Publication of JPH04207857A publication Critical patent/JPH04207857A/en
Application granted granted Critical
Publication of JP2989261B2 publication Critical patent/JP2989261B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Color, Gradation (AREA)
  • Processing Or Creating Images (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To allow the execution of efficient coloration processing even with images including fine character strings by previously removing the parts which appear to take long time for the computation of the coloration processing, i.e., the regions where the fine characters exist and synthesizing the information coloration processing is completed. CONSTITUTION:An operator assigns the region to be removed from a region assigning means 20. This assignment operation suffices if the operation to assign the prescribed region on a display is made by an input appliance, such as mouse. The operator is assumed to assign the region within the rectangular shape of display parts A4 and A5 in this embodiment. An assigned character removing means 30 executes the processing to remove the information on the characters within the assigned region from inputted run length data D1 when such assignment is executed. The run length data D1 from which the information on the fine characters is removed in such a manner is subjected to the coloration processing in a coloration processing means 40.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は着色処理装置、特に、文字を含んだ画像に対す
る網伏せ処理を、コンピュータを利用して行う装置に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a coloring processing device, and particularly to a device that uses a computer to perform halftone processing on an image containing characters.

〔従来の技術〕[Conventional technology]

電子機器の普及とともに、印刷製版作業をコンピュータ
を利用して行う装置が開発され、実用化されている。特
に、階調をもたない、いわゆる無地網と呼ばれるカラー
印刷の製版では、コンピュータを利用した着色処理も行
われる。一般に、無地網画像は、同一の色で着色される
べき閉領域の集合から構成されている。したがって、オ
ペレータは、デイスプレィ画面上に着色対象となる多数
の閉領域を表示させ、各閉領域ごとに所望の色を指定し
着色作業を進めてゆく。このような着色処理装置内では
、製版対象となる画像はデジタルデータとして取り扱わ
れ、色に関する情報も数値で表現される。着色処理装置
を構成するコンピュータは、オペレータからの着色指示
に基づき所定の演算を行い、人力したデジタルデータに
対する着色処理を行うことになる。オペレータは、着色
結果をデイスプレィ上で確認することができ、着色処理
装置と対話をする形式で着色作業を行うことができる。
BACKGROUND ART With the spread of electronic devices, devices that use computers to perform printing plate-making work have been developed and put into practical use. In particular, in plate making for color printing, which has no gradation and is called plain mesh, coloring processing using a computer is also performed. Generally, a plain mesh image is composed of a set of closed regions to be colored with the same color. Therefore, the operator displays a large number of closed regions to be colored on the display screen, specifies a desired color for each closed region, and proceeds with the coloring operation. In such a coloring processing apparatus, an image to be plate-made is treated as digital data, and information regarding color is also expressed numerically. A computer constituting the coloring processing device performs predetermined calculations based on coloring instructions from an operator, and performs coloring processing on manually generated digital data. The operator can check the coloring results on the display and perform the coloring work by interacting with the coloring processing device.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

前述のような無地網画像に対する着色処理を行う場合、
通常は、着色対象となる画像をランレングスデータの形
式で取り扱いながら演算処理を行う。これは、階調のな
い無地網画像では、ラスターデータの形式で画像データ
を取り扱うよりも、ランレングスデータの形式で画像デ
ータを取り扱った方が、データ量が少なくなり、演算効
率が向上するためである。ところが、画像の中に細かな
文字列が含まれていると、ランレングスデータ形式のメ
リットを生かすことができず、データ量が多くなり、演
算時間も長くかかつてしまう。このように、従来の着色
処理装置では、細かな文字列を含む画像についての着色
処理の効率が悪いという問題があった。
When performing coloring processing on a plain mesh image as described above,
Normally, arithmetic processing is performed while handling the image to be colored in the form of run-length data. This is because for plain mesh images with no gradations, handling image data in run-length data format is better than handling image data in raster data format because the amount of data is smaller and computational efficiency is improved. It is. However, if the image contains small character strings, the advantages of the run-length data format cannot be taken advantage of, resulting in a large amount of data and a long calculation time. As described above, the conventional coloring processing apparatus has a problem in that the efficiency of coloring processing for images including small character strings is low.

そこで本発明は、細かな文字列を含む画像についても、
効率良い着色処理を行うことのできる着色処理装置を提
供することを目的とする。
Therefore, the present invention also applies to images containing detailed character strings.
It is an object of the present invention to provide a coloring processing device that can perform coloring processing efficiently.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は着色処理装置において、 文字を含んだ画像を、ランレングスデータの形式で入力
するランレングスデータ入力手段と、この画像内で、オ
ペレータの指示に基づき所定の文字を含む領域を指定す
る領域指定手段と、入力したランレングスデータから、
指定した領域内の文字に関する情報を除外する指定文字
除外手段と、 文字に関する情報を除外したランレングスデータに対し
て、着色処理を行う着色処理手段と、着色処理後のラン
レングスデータと、指定文字除外手段によって除外した
情報と、を合成するデータ合成手段と、 を設けたものである。
The present invention provides a coloring processing apparatus that includes: a run-length data input means for inputting an image containing characters in the form of run-length data; and an area for specifying an area containing predetermined characters in the image based on instructions from an operator. From the specifying means and input run length data,
A specified character exclusion means for excluding information related to characters in a specified area; a coloring processing means for coloring run-length data from which information related to characters has been excluded; The information excluded by the exclusion means is provided with a data synthesis means for synthesizing the information.

〔作 用〕[For production]

前述のように、無地網画像は、同一の色で着色されるべ
き閉領域の集合から構成される。したかって、ラスター
データで表現するよりも、ランレングスデータで表現し
た方が着色処理を行いやすい。ところが、細かな文字列
の部分については、ランレングスデータによる着色処理
は、演算負担が大きくなり、非常に時間がかかってしま
う。本発明の着色処理装置では、オペレータは、このよ
うに演算時間が長くかかりそうな部分、すなわち、細か
な文字列が存在する領域を予め指定しておくことができ
る。指定された領域内の文字に関する情報は、もとのラ
ンレングスデータから除外され、着色処理が行われる。
As mentioned above, a plain mesh image is composed of a set of closed regions to be colored with the same color. Therefore, it is easier to perform coloring processing when expressed using run-length data than when expressed using raster data. However, for small character strings, coloring using run-length data requires a large computational load and takes a very long time. In the coloring processing apparatus of the present invention, the operator can specify in advance a portion where calculation time is likely to be long, that is, an area where a detailed character string exists. Information regarding characters within the designated area is excluded from the original run length data and coloring processing is performed.

そして、着色処理が完了した後、除外してあった細かな
文字列が合成される。
Then, after the coloring process is completed, the detailed character strings that were excluded are combined.

このため、細かな文字列を含む画像についても、効率良
い着色処理を行うことができるようになる。
For this reason, it becomes possible to perform efficient coloring processing even for images containing detailed character strings.

〔実施例〕〔Example〕

以下、本発明を図示する一実施例に基づいて説明する。 The present invention will be described below based on an illustrated embodiment.

第1図は本発明による着色処理装置の基本構成を示すブ
ロック図である。この図において、四角いブロックは、
この装置の各構成要素を示し、丸いブロックは、この装
置で取り扱われるデータを示す。この装置の基本的な構
成要素は、画像をランレングスデータの形式で入力する
ランレングスデータ入力手段10と、この画像内でオペ
レータの指定する領域を指定する領域指定手段20と、
入力したランレングスデータから指定領域内の文字に関
する情報を除外する指定文字除外手段30と、文字に関
する情報を除外したランレングスデータ、に対して着色
処理を行う着色処理手段40と、着色処理後のランレン
グスデータと除外した文字に関する情報とを合成するデ
ータ合成手段50と、の5つのブロックで示されている
。以下、この各構成要素を、その機能とともに詳述する
FIG. 1 is a block diagram showing the basic configuration of a coloring processing apparatus according to the present invention. In this diagram, the square blocks are
Each component of this device is shown, and the round blocks represent data handled by this device. The basic components of this device are a run-length data input means 10 for inputting an image in the form of run-length data, an area specifying means 20 for specifying an area specified by an operator within this image,
a specified character exclusion means 30 for excluding information about characters in a specified area from input run-length data; a coloring processing means 40 for coloring the run-length data from which information about the characters has been excluded; It is shown by five blocks: data synthesis means 50 for synthesizing run length data and information regarding excluded characters; Each of these components will be explained in detail below along with their functions.

ランレングスデータ入力手段10は、この実施例では、
スキャナ11、二値化処理部12、データ変換部13、
から構成されている。スキャナ11は、処理対象となる
画像が描かれた原稿を走査し、この画像を構成する線画
や文字などをラスターデータの形式で取り込む機能を有
する。二値化処理部12は、取り込んだラスターデータ
の各画素のもつ値か所定の設定値以上かとうかを判断し
、すべての画素を二値化処理する。これにより、取り込
んだ画像は、「0」または「1」のいずれかの情報をも
った画素の配列で構成されるラスターデータで表現され
ることになる。第2図に、このようなラスターデータの
一例を示す。ここに、示す例では、横に12カラム、縦
に8ラインの画素が配列されており、図のハツチングを
施した部分の画素は「1」、それ以外の画素は「0」な
る情報をもつ。データ変換部13は、このようにして取
り込んだラスターデータを、ランレングスデータに変換
する装置である。ここで用いているランレングスデータ
の1単位は、(C,a)なる形をとり、Cは画素の色値
、aはその色値をもつ画素がどこまで連続するかを示す
カラム値である。第2図に示す画像をランレングスデー
タの形式で表現した結果を第3図に示す。各ラインごと
に1単位あるいは複数単位のランレングスデータが定義
されている。二値化処理部12て、既に二値化が行われ
ているため、すべての画素は、「0」または[]]のい
ずれかの色値を有する。たとえば、ライン1における(
0.12)なるデータは、「0」なる色値の画素が12
カラム目まで連続していることを示す。また、ライン2
における(0゜5)、  (1,7)、  (0,12
)なるデータは、「0」なる色値の画素が5カラム目ま
で連続し、次の画素(6カラム目)からは「1」なる色
値の画素が7カラム目まで連続し、次の画素(8カラム
目)からは「0」なる色値の画素が12カラム目まで連
続していることを示す。第3図の各ラインごとのランレ
ングスデータを、第2図に示す画像の各ラインと比較す
ると、両者が対応していることが理解できよう。このよ
うな無地網画像に対する着色処理を行う場合、ラスター
データのままで処理を行うと、各画素1つ1つに色値を
定義したデータが必要になるのに対し、ランレングスデ
ータの形式で処理を行うと、1つのライン上で同一の色
が連続している限りは、1単位のランレングスデータを
用意すればよい。こうして、この着色処理装置では、デ
ータ変換部13によりランレングスデータの形式のデー
タD1が用意され、以下、このランレングスデータの形
式のまま着色処理が行われる。
In this embodiment, the run length data input means 10 includes:
scanner 11, binarization processing section 12, data conversion section 13,
It consists of The scanner 11 has a function of scanning a document on which an image to be processed is drawn, and capturing line drawings, characters, etc. constituting this image in the form of raster data. The binarization processing unit 12 judges whether the value of each pixel of the captured raster data is greater than or equal to a predetermined set value, and binarizes all the pixels. As a result, the captured image is represented by raster data composed of an array of pixels having information of either "0" or "1". FIG. 2 shows an example of such raster data. In the example shown here, pixels are arranged in 12 columns horizontally and 8 lines vertically, and the pixels in the hatched area in the figure have the information "1" and the other pixels have the information "0". . The data conversion unit 13 is a device that converts the raster data imported in this manner into run-length data. One unit of run length data used here has the form (C, a), where C is the color value of a pixel and a is a column value indicating how far pixels having that color value are continuous. FIG. 3 shows the result of expressing the image shown in FIG. 2 in the form of run-length data. One or more units of run length data are defined for each line. Since binarization has already been performed by the binarization processing unit 12, all pixels have a color value of either "0" or []]. For example, in line 1 (
The data 0.12) has 12 pixels with a color value of 0.
Indicates continuity up to the column. Also, line 2
(0°5), (1,7), (0,12
), pixels with a color value of "0" continue up to the 5th column, and from the next pixel (6th column), pixels with a color value of "1" continue up to the 7th column, and then the next pixel (8th column) indicates that pixels with a color value of "0" continue up to the 12th column. If the run length data for each line in FIG. 3 is compared with each line in the image shown in FIG. 2, it will be understood that the two correspond. When performing coloring processing on such a plain mesh image, if the raster data is used as is, data that defines the color value for each pixel would be required, but in the form of run-length data. When processing is performed, as long as the same color continues on one line, it is sufficient to prepare one unit of run length data. In this manner, in this coloring processing device, the data D1 in the run-length data format is prepared by the data conversion unit 13, and coloring processing is thereafter performed in this run-length data format.

なお、(C,a)なる形式をもつランレングスデータの
定義方法としては、aをカラム値とする代わりに、同一
の色値をもった画素の連続数とする方法もあり、ここで
は、単に一例を示しているにすぎない。また、ランレン
グスデータ入力手段10として、画像を直接ランレング
スデータの形式で入力する機能をもったスキャナを利用
することもてきる。更に、画像は必ずしもスキャナで入
力する必要はなく、たとえば、文字については電算写植
機などのデータから入力するようにしてもよい。要する
に、ランレングスデータ入力手段10としては、処理対
象となる画像を、何らかの方法でランレングスデータと
して取り込む機能をもった装置であれば、どのような装
置を用いてもよい。
In addition, as a way to define run length data having the format (C, a), instead of setting a as a column value, there is also a method of setting it as the consecutive number of pixels with the same color value, and here, simply This is just an example. Further, as the run-length data input means 10, a scanner having a function of directly inputting an image in the form of run-length data can be used. Furthermore, images do not necessarily need to be input using a scanner; for example, characters may be input from data such as a computer typesetting machine. In short, any device may be used as the run-length data input means 10 as long as it has a function of capturing the image to be processed as run-length data by some method.

さて、ここでは、ランレングスデータ入力手段10によ
って、第4図に示すような旅行用のチラシに用いる画像
が取り込まれたものとして、以下の説明を続けることに
する。この画像には、地図の表示部A1、[四国」なる
大きな文字の表示部A2、イラストの表示部A3、「美
しい島々めぐり」なる小さな文字列の表示部A4、「東
京からフェリー」なる小さな文字列の表示部A5、が下
地部AO上に割り付けられている。ここで、各表示部A
1〜A5に対して、それぞれ網伏せ処理がなされるもの
とする。すなわち、これらに対しては、各閉領域ごとに
着色指定がなされ、各閉領域ごとに色情報が与えられる
ことになる。一般に、印刷では、C(シアン)、M(マ
ゼンタ)、Y(黄)、K(スミ)の4色が用いられ、網
伏せ処理では、各閉領域に対して、これらの色の網点密
度を示す情報が色情報として与えられる。たとえば、表
示部A1の地図を構成する閉領域AllについてはY5
0%、A12についてはC30%+M20%、A13に
ついてはM80%、A14についてはY80%+C10
%十に5%、というような色指定が行われる。ところで
、表示部A1〜A3における着色対象は、ランレングス
デ〜りで表現した場合に比較的少ない情報量で表現され
る。
Now, the following explanation will be continued on the assumption that an image used for a travel flyer as shown in FIG. 4 has been captured by the run-length data input means 10. This image includes a map display area A1, a large text display area A2 that reads "Shikoku," an illustration display area A3, a small text display area A4 that reads "Beautiful Island Tour," and a small text display that reads "Ferry from Tokyo." A column display section A5 is allocated on the base section AO. Here, each display section A
1 to A5 are each subjected to a half-screening process. That is, for these, coloring is specified for each closed area, and color information is given for each closed area. Generally, four colors, C (cyan), M (magenta), Y (yellow), and K (black) are used in printing, and in halftone processing, the halftone density of these colors is determined for each closed area. Information indicating this is given as color information. For example, for the closed area All that makes up the map on display section A1, Y5
0%, C30% + M20% for A12, M80% for A13, Y80% + C10 for A14
Colors such as %10 to 5% are specified. By the way, the objects to be colored in the display sections A1 to A3 are expressed with a relatively small amount of information when expressed in terms of run length.

これに対して、表示部A4.A5における着色対象は、
細かな文字列を含むため、ランレングスデータで表現し
た場合の情報量はかなり多くなる。
On the other hand, display section A4. The coloring target in A5 is
Since it contains detailed character strings, the amount of information when expressed as run-length data is quite large.

ここでは、説明の便宜上、比較的簡単なチラシの例を示
しであるが、実際にはより多数の細かな文字が割り付け
られることが多い。したがって、表示部A4.A5に対
する着色処理演算は、演算量が膨大なものとなり、演算
時間が長くかかり、効率的な作業を阻害する要因となる
。本発明の要点は、このような細かな文字列を含む部分
を予め除外してから、着色作業に取り掛かる点にある。
For convenience of explanation, a relatively simple example of a leaflet is shown here, but in reality, a larger number of small characters are often allocated. Therefore, display section A4. The coloring processing calculation for A5 requires a huge amount of calculation, takes a long calculation time, and becomes a factor that impedes efficient work. The key point of the present invention is to exclude portions including such detailed character strings in advance before starting the coloring work.

そこで、オペレータは、領域指定手段20から、除外対
象となる領域の指定を行う。この指定操作は、たとえば
、マウスなどの入力機器で、デイスプレィ上の所定領域
を指定する操作を行うようにすればよい。ここでは、オ
ペレータが、表示部A4およびA5の矩形内の領域を指
定したものとして、説明を進める。このような指定を受
けると、指定文字除外手段30は、入力したランレング
スデータD1の中から、指定領域内の文字に関する情報
を除外する処理を行う。すなわち、ランレングスデータ
D1に対応する画像は、第5図に示すようなものになる
。一方、除外した指定文字についてのランレングスデー
タD2は、後の合成処理に用いられる。
Therefore, the operator specifies an area to be excluded using the area specifying means 20. This designation operation may be performed by, for example, using an input device such as a mouse to designate a predetermined area on the display. Here, the explanation will proceed assuming that the operator has designated areas within the rectangles of display sections A4 and A5. Upon receiving such a designation, the designated character exclusion means 30 performs a process of excluding information regarding characters within the designated area from the input run-length data D1. That is, the image corresponding to the run length data D1 is as shown in FIG. On the other hand, the run length data D2 regarding the excluded designated characters is used in the subsequent compositing process.

こうして、細かな文字に関する情報が除外された後のラ
ンレングスデータD1に対して、着色処理手段40にお
ける着色処理かなされる。前述のように、着色前のラン
レングスデータ(C,a)は、色値Cが「0」または「
1」のいずれかであり、色値「1」の部分は閉領域を定
義する境界線に相当する。したがって、ここで行う着色
処理は、(0,a)なるランレングスデータを、色値X
をもつ(X、a)なるデータに変更する処理となる。
In this way, the run-length data D1 after information regarding small characters has been removed is subjected to coloring processing in the coloring processing means 40. As mentioned above, the run length data (C, a) before coloring has a color value C of "0" or "
1", and the portion with the color value "1" corresponds to a boundary line that defines a closed region. Therefore, the coloring process performed here converts the run length data (0, a) into the color value
The process is to change the data to (X, a) with .

このような着色処理を行った結果、着色処理後のランレ
ングスデータD3が得られる。最後に、データ合成手段
50において、指定文字についてのランレングスデータ
D2と、着色処理後のランレングスデータD3とが合成
され、合成データD4が作成される。
As a result of performing such coloring processing, run length data D3 after coloring processing is obtained. Finally, the data synthesizing means 50 synthesizes the run length data D2 for the specified character and the run length data D3 after the coloring process to create synthesized data D4.

以上のような処理を行うことにより、着色処理手段40
における着色処理演算の負担が大幅に軽減される。たと
えば、第6図に示すように、表示部A4の矩形内をY5
0%に着色し、「美しい・・・」なる文字の部分をに1
00%に着色する場合、このままの状態で着色処理を行
うと、かなりの量のランレングスデータに対する色値の
変更処理が必要になる。すなわち、文字のない、いわゆ
る地の部分の画素については、Y50%なる色値を与え
、文字の部分の画素については、Y50%十K100%
なる色値を与える必要がある。ところが、前述のように
、文字の部分を除外してしまえば、この表示部A4の矩
形内は単にY50%なる着色をするだけですむ。
By performing the above-described processing, the coloring processing means 40
The burden of coloring processing calculations is significantly reduced. For example, as shown in FIG.
Color it to 0% and mark the part that says "Beautiful..." to 1.
When coloring to 00%, if the coloring process is performed in this state, it will be necessary to change the color value for a considerable amount of run length data. In other words, pixels in the so-called ground area without text are given a color value of Y50%, and pixels in the text area are given a color value of Y50% + K100%.
It is necessary to give a color value of However, as described above, if the text portion is excluded, the inside of the rectangle of this display area A4 only needs to be colored with Y50%.

続いて、上述の各処理における具体的なデータ処理方法
を更に詳しく説明する。いま、第2図に示すような8×
12画素で構成される矩形領域が、領域指定手段20に
よって指定された場合を考える。この矩形領域内には、
「1」なる文字が1文字だけ割り付けられている(実際
には、領域指定手段20によって指定される領域は、細
かな多数の文字列を有する領域であるが、ここでは、説
明の便宜上、第2図に示すような単純な例について考え
る)。したがって、この場合、指定文字除外手段30に
よって除外される指定文字は「1」なる文字1つだけで
ある。そこで、第2図に示す指定領域内からrlJなる
文字を取り去ると、第7図のようになる。これに対する
ランレングスデータを第8図に示す。指定文字除外手段
30は、入力したランレングスデータDI(これは、第
3図に示すようなランレングスデータを含んだ画像全体
についてのデータである)のうち、指定された領域内の
ランレングスデータを改変する作業を行う。すなわち、
この指定領域内を、色値「0」の画素の集合に置き換え
たランレングスデータ(第8図に示すランレングスデー
タ)に置換するのである。その一方で、「1」なる文字
に関する情報を含んだもともとのランレングスデータ(
第3図に示すランレングスデータ)を、指定文字につい
てのランレングスデータD2として抜き出して保存して
おく。以上が、指定文字除外手段30の仕事である。
Next, specific data processing methods in each of the above-mentioned processes will be explained in more detail. Now, 8× as shown in Figure 2
Consider a case where a rectangular area composed of 12 pixels is specified by the area specifying means 20. Within this rectangular area,
Only one character "1" is assigned (actually, the area specified by the area specifying means 20 is an area having a large number of detailed character strings, but here, for convenience of explanation, Consider a simple example as shown in Figure 2). Therefore, in this case, the only designated character excluded by the designated character exclusion means 30 is the character "1". Therefore, if the characters rlJ are removed from the designated area shown in FIG. 2, the result will be as shown in FIG. 7. Run length data for this is shown in FIG. The specified character exclusion means 30 extracts run-length data within a specified area from the input run-length data DI (this is data for the entire image including run-length data as shown in FIG. 3). Perform work to modify the . That is,
The area within this specified area is replaced with run-length data (run-length data shown in FIG. 8) that is replaced with a set of pixels with a color value of "0". On the other hand, the original run length data containing information about the character "1" (
The run length data shown in FIG. 3) is extracted and saved as run length data D2 for the specified character. The above is the work of the designated character exclusion means 30.

さて、着色処理手段40ては、指定文字除外手段30に
よって改変されたランレングスデータD1に対して、着
色処理が行われる。たとえば、指定領域内をY2O5な
る色(この色値をrYJて示すことにする)に着色する
場合は、第8図に示すランレングスデータを第9図に示
すように改変する着色処理がなされる。この処理を行う
ための演算は非常に簡単である。第8図に示す各ランレ
ングスデータの色値「0」を−括して色値rYJに置換
すればよい。このように、細かな文字に関する情報を除
外した後の指定領域への着色処理は、非常に単純になり
、演算時間も短縮される。こうして、着色処理が完了す
れば、着色処理後のランレングスデータD3(第9図に
示すようなランレングスデータを含んだ画像全体につい
てのデータ)が得られる。
Now, the coloring processing means 40 performs coloring processing on the run length data D1 modified by the designated character exclusion means 30. For example, when coloring the designated area with the color Y2O5 (this color value is indicated by rYJ), the coloring process is performed to modify the run length data shown in FIG. 8 as shown in FIG. 9. . The calculation for performing this process is very simple. The color value "0" of each run length data shown in FIG. 8 may be bracketed and replaced with the color value rYJ. In this way, the process of coloring the specified area after removing information regarding small characters becomes extremely simple and reduces the calculation time. When the coloring process is completed in this manner, run length data D3 after the coloring process (data regarding the entire image including run length data as shown in FIG. 9) is obtained.

最後に、データ合成手段50により、ランレングスデー
タD3とランレングスデータD2とを合成する処理が行
われる。すなわち、指定領域については、第9図に示す
ランレングスデータと、第3図に示すランレングスデー
タとが合成される。
Finally, the data synthesizing means 50 performs a process of synthesizing the run length data D3 and the run length data D2. That is, for the designated area, the run length data shown in FIG. 9 and the run length data shown in FIG. 3 are combined.

この合成処理は、次のような演算を行えばよい。This compositing process may be performed by performing the following calculations.

まず、第9図に示すランレングスデータから、指定領域
内の色値は「Y」 (すなわち、Y2O5)であること
が認識できる。そこで、第3図に示すランレングスデー
タのうち、色値「0」の部分を一括して色値rYJに置
換する。また、色値「1」の部分は、この除外した文字
に与える色と指定領域内の色とを合成した色の色値に置
換する。たとえば、除外した文字をに100%なる色に
する場合、Y50%十に100%という合成色(この色
値をrKYJで示すことにする)の色値に置換すること
になる。このような置換作業を行った結果、第10因に
示すようなランレングスデータが得られる。結局、合成
データD4は、指定領域について第10図に示すランレ
ングスデータを含んだデータとなる。一般に、チラシな
どで用いられる細かな文字列は、K100%の着色がな
される。したがって、データ合成手段50の行う合成処
理は、上述のように、ランレングスデータD2の中の色
値「0」の部分を色値rYJに、色値「1」の部分を色
値rKYJに、それぞれ置換する単純な処理となり、演
算処理に負担は生じない。このように、細かな文字列に
ついては、予め除外して着色処理を行い、後に合成する
という方法を採ることにより、全体としての演算処理負
担を軽減することが可能になる。
First, from the run length data shown in FIG. 9, it can be recognized that the color value within the specified area is "Y" (ie, Y2O5). Therefore, in the run-length data shown in FIG. 3, the color value "0" portion is collectively replaced with the color value rYJ. Furthermore, the color value "1" portion is replaced with the color value of a color that is a combination of the color given to the excluded character and the color within the specified area. For example, if the excluded characters are to be changed to a color of 100%, they will be replaced with a color value of a composite color of Y50%100% (this color value will be expressed as rKYJ). As a result of performing such a replacement operation, run length data as shown in the tenth factor is obtained. In the end, the composite data D4 becomes data including the run length data shown in FIG. 10 for the designated area. Generally, detailed character strings used in flyers and the like are colored with 100% K. Therefore, as described above, the compositing process performed by the data composing means 50 converts the color value "0" part in the run length data D2 into the color value rYJ, the color value "1" part into the color value rKYJ, It is a simple process of replacing each, and there is no burden on the calculation process. In this way, by adopting a method in which detailed character strings are excluded in advance, subjected to coloring processing, and then combined later, it is possible to reduce the overall calculation processing load.

以上、第1図に示すブロック図に基づいて、本発明の一
実施例を説明したが、本発明はこの実施例のみに限定さ
れるものではなく、この他にも種々の態様で実施可能で
ある。たとえば、第1図にブロックで示した各構成要素
は、実際にはコンピュータのソフトウェアで実現される
べき要素であり、具体的なハードウェア構成としては、
このコンピュータにデイスプレィ装置、キーボードやマ
ウスなどの入力機器などを接続したものが用いられるこ
とになろう。
Although one embodiment of the present invention has been described above based on the block diagram shown in FIG. 1, the present invention is not limited to this embodiment only, and can be implemented in various other ways. be. For example, each component shown as a block in FIG. 1 is actually an element that should be realized by computer software, and the specific hardware configuration is as follows.
A computer with a display device, keyboard, mouse, and other input devices connected to it will probably be used.

〔発明の効果〕〔Effect of the invention〕

以上のとおり本発明の着色処理装置によれば、着色処理
の演算に時間が長くかかりそうな部分、すなわち、細か
な文字列が存在する領域を予め除外しておき、着色処理
が完了した後、除外してあった細かな文字列に関する情
報を合成するようにしたため、細かな文字列を含む画像
についても、効率良い着色処理を行うことのできるよう
になる。
As described above, according to the coloring processing device of the present invention, areas where the calculation of coloring processing is likely to take a long time, that is, areas where small character strings exist, are excluded in advance, and after the coloring processing is completed, Since the information regarding the detailed character strings that have been excluded is combined, it becomes possible to perform efficient coloring processing even for images containing detailed character strings.

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

第1図は本発明に係る着色処理装置の基本構成を示すブ
ロック図、第2図は第1図に示す装置で着色処理すべき
画像の一例を示す図、第3図は第2図に示す画像に対応
するランレングスデータを示す図、第4図は第1図に示
す装置で着色処理すべきチラシ画像の一例を示す図、第
5図は第4図に示すチラシ画像から細かな文字列を除外
した状態を示す図、第6図は第4図に示す画像の部分拡
大図、第7図は第2図に示す画像から「1」なる文字を
除外した状態を示す図、第8図は第7図に示す画像に対
応するランレングスデータを示す図、第9図は第8図に
示すランレングスデータに着色処理を施した状態を示す
図、第10図は第3図に示すランレングスデータと第9
図に示すランレングスデータとを合成した状態を示す図
である。 10・・・ランレングスデータ人力手段、11・・・ス
キャナ、12・・・二値化処理部、13・・・データ変
換部、20・・・領域指定手段、30・・・指定文字除
外手段、40・・・着色処理手段、50・・・データ合
成手段、AO・・・下地部、A1〜A5・・・表示部、
D1〜D3・・・ランレングスデータ。 特許出願人 大日本印刷株式会社 出願人代理人  弁理士 志 村  浩カラム 1(0,12) 2    C0,5)  <1.ワ’)C0,72’)
+   3   (Q、4)  (7,’7)(0,7
2)フ イ    4       (0,5)   (7,’
7)   (、,0,12)ン 5   (0,5)(7,’7)  ([、/2)6’
   (0,5)  (7,’7)  CO,l2)7
    C0,5)  (7,’7)  (0,72)
8   (0,4)  <7.8)(0,/2)莞3図 莞4図 尭6図 兜7図 ン   : 8   C0,12) 瞭of”71 )     CY、I2 2    (Y、5 6(y、s: )   (Ky、7)  (’/、  I2 )r、q
)(:y’、  12) 7−、’7)  (’/、  72) f、’7)  (Y、  12> )   (/<’/、7)(Y、 12 )y、7) 
 (Y、72) (,8)  (’/、  72>
FIG. 1 is a block diagram showing the basic configuration of a coloring processing device according to the present invention, FIG. 2 is a diagram showing an example of an image to be colored by the device shown in FIG. 1, and FIG. 3 is shown in FIG. A diagram showing run length data corresponding to an image, FIG. 4 is a diagram showing an example of a flyer image to be colored by the apparatus shown in FIG. 1, and FIG. 5 is a diagram showing a fine character string from the flyer image shown in FIG. 4. FIG. 6 is a partially enlarged view of the image shown in FIG. 4, FIG. 7 is a diagram showing the image shown in FIG. 2 with the character "1" removed, and FIG. is a diagram showing the run length data corresponding to the image shown in FIG. 7, FIG. 9 is a diagram showing the run length data shown in FIG. 8 after coloring processing, and FIG. 10 is a diagram showing the run length data shown in FIG. Length data and 9th
It is a figure which shows the state which combined the run length data shown in the figure. DESCRIPTION OF SYMBOLS 10... Run length data manual means, 11... Scanner, 12... Binarization processing section, 13... Data conversion section, 20... Area specification means, 30... Specified character exclusion means , 40... Coloring processing means, 50... Data synthesis means, AO... Base part, A1 to A5... Display part,
D1-D3...Run length data. Patent applicant: Dai Nippon Printing Co., Ltd. Applicant's agent: Patent attorney Hiroshi Shimura Column 1 (0,12) 2 C0,5) <1. Wa')C0,72')
+ 3 (Q, 4) (7,'7) (0,7
2) Fi 4 (0,5) (7,'
7) (,,0,12)n5 (0,5)(7,'7) ([,/2)6'
(0,5) (7,'7) CO,l2)7
C0,5) (7,'7) (0,72)
8 (0,4) <7.8) (0, /2) 3 figures, 4 figures, 6 figures, 7 figures: 8 C0,12) clear of”71 ) CY, I2 2 (Y, 5 6 (y, s: ) (Ky, 7) ('/, I2) r, q
)(:y', 12) 7-,'7) ('/, 72) f,'7) (Y, 12>) (/<'/, 7) (Y, 12)y, 7)
(Y, 72) (, 8) ('/, 72>

Claims (1)

【特許請求の範囲】 文字を含んだ画像を、ランレングスデータの形式で入力
するランレングスデータ入力手段と、前記画像内で、オ
ペレータの指示に基づき所定の文字を含む領域を指定す
る領域指定手段と、入力した前記ランレングスデータか
ら、前記領域指定手段によって指定された領域内の文字
に関する情報を除外する指定文字除外手段と、 前記文字に関する情報を除外したランレングスデータに
対して、着色処理を行う着色処理手段と、着色処理後の
ランレングスデータと、前記指定文字除外手段によって
除外した情報と、を合成するデータ合成手段と、 を備えることを特徴とする着色処理装置。
[Scope of Claims] Run-length data input means for inputting an image containing characters in the form of run-length data; and area specifying means for specifying an area containing predetermined characters in the image based on instructions from an operator. specified character exclusion means for excluding information regarding characters within the area specified by the area specifying means from the input run length data; and coloring processing on the run length data from which information regarding the characters has been excluded. A coloring processing apparatus comprising: a coloring processing means for performing the coloring process; and a data synthesis means for synthesizing the run length data after the coloring process and the information excluded by the designated character exclusion means.
JP2339954A 1990-11-30 1990-11-30 Coloring equipment Expired - Fee Related JP2989261B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2339954A JP2989261B2 (en) 1990-11-30 1990-11-30 Coloring equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2339954A JP2989261B2 (en) 1990-11-30 1990-11-30 Coloring equipment

Publications (2)

Publication Number Publication Date
JPH04207857A true JPH04207857A (en) 1992-07-29
JP2989261B2 JP2989261B2 (en) 1999-12-13

Family

ID=18332340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2339954A Expired - Fee Related JP2989261B2 (en) 1990-11-30 1990-11-30 Coloring equipment

Country Status (1)

Country Link
JP (1) JP2989261B2 (en)

Also Published As

Publication number Publication date
JP2989261B2 (en) 1999-12-13

Similar Documents

Publication Publication Date Title
DE3486494T2 (en) Graphic pattern processing device
JPS6255137B2 (en)
KR0167616B1 (en) Image processing apparatus and method of the same
JPH01321578A (en) Picture display system
JPH08147453A (en) Method and device for look-up table generation
US6693644B1 (en) Graphic accelerator reducing and processing graphics data
US5615281A (en) Method of and apparatus for generating reduced image
WO1999067745A1 (en) A method and apparatus for defining color borders in a raster image
JPH04207857A (en) Coloration processor
JPH0767136B2 (en) Image processing device
JPH0564000A (en) Method for compressing and expanding image data
JP2713677B2 (en) Color image color change processing method and color image synthesis processing method
JP2915700B2 (en) Image processing method and apparatus
JP2878477B2 (en) Image processing device
JPH05342340A (en) Method for picture processing and device therefor
JPS61274473A (en) Color picture information forming system
JP3585036B2 (en) Image generation method
JP2640591B2 (en) How to create a border image
JP2006252443A (en) Image processing device, image processing method, image processing program and recording medium in which image processing program is recorded
KR100363965B1 (en) Method of optimizing color image for 4 gray-level display
JPS6366557A (en) Generating method for mask with pattern
JP2007174522A (en) Image processing device, image processing method, program code, and storage medium
JP2007108900A (en) Image processor
JPS62261293A (en) Image data converting method
JPH04573A (en) Image processor

Legal Events

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