JPH088697B2 - How to convert image data to black and white - Google Patents

How to convert image data to black and white

Info

Publication number
JPH088697B2
JPH088697B2 JP2152698A JP15269890A JPH088697B2 JP H088697 B2 JPH088697 B2 JP H088697B2 JP 2152698 A JP2152698 A JP 2152698A JP 15269890 A JP15269890 A JP 15269890A JP H088697 B2 JPH088697 B2 JP H088697B2
Authority
JP
Japan
Prior art keywords
black
white
components
level
image data
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 - Lifetime
Application number
JP2152698A
Other languages
Japanese (ja)
Other versions
JPH0445689A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2152698A priority Critical patent/JPH088697B2/en
Publication of JPH0445689A publication Critical patent/JPH0445689A/en
Publication of JPH088697B2 publication Critical patent/JPH088697B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Color Image Communication Systems (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Digital Computer Display Output (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、画像データの白黒変換方法に関するもの
であり、特に、画像データを印画するプリンタに白黒変
換処理機構を持たせることに関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for converting image data into black and white, and more particularly to providing a printer for printing image data with a black and white conversion processing mechanism. .

[従来の技術] 第4図は、画像データの従来の白黒変換方法を説明す
るためのフローチャート図である。この第4図において
は、3成分例えばYーMーC成分の全ての階調数がOOH
のときには対応する画像を白とみなし、最大値FFHのと
きには対応する画像を黒とみなす場合が例示されてい
る。
[Prior Art] FIG. 4 is a flow chart for explaining a conventional monochrome conversion method of image data. In FIG. 4, all the gradation numbers of three components, for example, Y-MC components are OOH.
In the case of, the corresponding image is regarded as white, and when the maximum value FFH, the corresponding image is regarded as black.

まず、ステップ(S1)において任意の画像データをY
ーMーC成分に分解し、OOH〜FFHの中の適当な数値で階
調数を表す。次のステップ(S2)において、白黒変換を
行うかどうかを決め、行わない場合であれば処理を終了
し、分解されたYーMーC成分はそのままの階調数で印
画される。逆に、白黒変換を行う場合であれば、これに
続くステップ(S3)において、分解されたYーMーC成
分の全ての階調数かOOHであるか否かの判定がされる。
このステップ(S3)における判定の結果がYESであった
時、即ち、YーMーC成分の全ての階調数がOOHであっ
た時には、対応する画像を白とみなし、次に続くステッ
プ(S4)において、白黒変換を行い、YーMーC成分の
全ての階調数をFFHにし、処理を終了する。従って、OOH
の白レベル画像がFFHの黒レベル画像に変換され、印画
が行われる。これに対して、先のステップ(S3)におけ
る判定の結果がNOであった時、即ち、分解されたYーM
ーC成分の中のいずれか1個でもその階調数がOOHでな
かった時には、ステップ(S5)において、このYーMー
C成分の全ての階調数がFFHであるか否かの判定がされ
る。このステップ(S5)における判定の結果がYESであ
った時、即ち、分解されたYーMーC成分の全ての階調
数がFFHであった時には、対応する画像を黒とみなし、
次に続くステップ(S6)において、白黒変換を行い、Y
ーMーC成分の全ての階調数をOOHにし、処理を終了す
る。従って、FFHの黒レベル画像がOOHの白レベル画像に
変換され、印画が行われる。
First, in step (S1), Y is set to arbitrary image data.
-Decompose into M-C component and express the gradation number with an appropriate value from OOH to FFH. In the next step (S2), it is decided whether or not the black-and-white conversion is to be performed, and if not, the processing is terminated, and the decomposed Y-MC component is printed with the same gradation number. On the other hand, if black-and-white conversion is to be performed, in the subsequent step (S3), it is determined whether or not all the gradation numbers of the decomposed Y-MC components are OOH.
When the result of the determination in this step (S3) is YES, that is, when all the gradation numbers of the YMC components are OOH, the corresponding image is regarded as white, and the following step ( In S4), black-and-white conversion is performed, all the gradation numbers of the Y-MC components are set to FFH, and the process ends. Therefore, OOH
The white level image of is converted into the FFH black level image, and printing is performed. On the other hand, when the result of the judgment in the previous step (S3) is NO, that is, the decomposed Y-M
If even one of the -C components is not OOH, it is determined in step (S5) whether all the Y-MC components are FFH. Will be done. When the result of the determination in this step (S5) is YES, that is, when all the gradation numbers of the decomposed Y-MC components are FFH, the corresponding image is regarded as black,
In the next step (S6), black and white conversion is performed and Y
All the gradation numbers of -MC components are set to OOH, and the processing is finished. Therefore, the FFH black level image is converted into the OOH white level image and printing is performed.

なお、分解されたYーMーC成分の中のいずれか1個
でもその階調数がOOHまたはFFHではない時には、そのよ
うな画像に対する白黒変換は行われることなく、処理を
終了し、分解されたYーMーC成分の階調数のまま印画
が行われる。
If any one of the decomposed YMC components does not have OOH or FFH, the black and white conversion is not performed for such an image, and the processing is terminated and the decomposition is performed. Printing is performed with the number of gradations of the Y, M, and C components thus changed.

このようにして、上述した従来例によれば、第5図の
ように、YーMーC成分の全ての階調数がOOHである画
像は、第6図のように、全ての階調数がFFHである画像
に変換され、逆に、第7図のように、YーMーC成分の
全ての階調数がFFHである画像は、第8図のように、全
ての階調数がOOHである画像に変換されるが、それ以外
の画像、例えば第2図のように、YーMーC成分の階調
数がOOHでもFFHでもない画像は、白黒変換が行われない
ことになる。
Thus, according to the conventional example described above, an image in which all the gradation numbers of the Y-MC components are OOH as shown in FIG. The image is converted into an image whose number is FFH, and conversely, an image in which all the numbers of gradations of Y-MC components are FFH as shown in FIG. 7 has all the gradations as shown in FIG. The image is converted into an image whose number is OOH, but other images, for example, the image in which the number of gradations of Y-M-C components is neither OOH nor FFH, as shown in Fig. 2, is not converted into black and white. It will be.

[発明が解決しょうとする課題] 従来の白黒変換方法では、白黒変換が行われる画像は
上述のように完全な白または黒に限られているので、中
間調の画像は白黒変換が行われず、色の連続性が保たれ
ない。また、ビデオI/F回路から入力された画像信号を
白黒変換する場合、ビデオ信号は不安定であり、白画像
であつても、完全な白レベル(OOH)にならないことが
あるので、本来、白黒変換されなければならない画像が
変換されないという問題点があつた。
[Problems to be Solved by the Invention] In the conventional black-and-white conversion method, since the image to be black-and-white converted is limited to perfect white or black as described above, half-tone images are not black-and-white converted. Color continuity cannot be maintained. Also, when converting the image signal input from the video I / F circuit to black and white, the video signal is unstable, and even if it is a white image, it may not reach the perfect white level (OOH). There is a problem in that an image that has to be converted into black and white is not converted.

この発明は、このような問題点を解決するためになさ
れたものであつて、色の連続性を保ち、ビデオ信号の不
安定さにも追従できる白黒変換方法を得ることを目的と
する。
The present invention has been made in order to solve such a problem, and an object thereof is to obtain a black-and-white conversion method that can maintain color continuity and follow instability of a video signal.

[課題を解決するための手段] この発明に係る画像データの白黒変換方法は、任意の
画像データをYーMーC成分またはRーGーB成分に分
解して白レベルと黒レベルを求めるステップと、このよ
うにして得られた白レベルと黒レベルから白黒変換を行
うステップとを含むものである。
[Means for Solving the Problems] In the black-and-white conversion method of image data according to the present invention, arbitrary image data is decomposed into Y-M-C components or R-G-B components to obtain a white level and a black level. The steps include steps and a step of performing black-and-white conversion from the white level and the black level thus obtained.

[作 用] この発明においては、白黒変換を行う際の白レベルと
黒レベルは固定ではなく、例えば分解されたYーMーC
成分の階調数により決定される。
[Operation] In the present invention, the white level and the black level at the time of black-and-white conversion are not fixed, and for example, decomposed Y-MC
It is determined by the number of gradations of the component.

[実施例] 以下、この発明を、その一実施例を示す第1図のフロ
ーチャート図に基づいて説明する。この第1図において
は、YーMーC成分の階調数の最小値,最大値をそれぞ
れOOH,FFHとした場合が例示されている。
[Embodiment] The present invention will be described below with reference to the flowchart of FIG. 1 showing an embodiment thereof. FIG. 1 exemplifies a case where the minimum value and the maximum value of the number of gradations of the Y-MC component are OOH and FFH, respectively.

まず、従来例と同様に、ステップ(S1)において任意
の画像データをYーMーC成分に分解し、OOH〜FFHの中
の適当な数値で階調数を表し、次のステップ(S2)にお
いて白黒変換を行わない場合であれば処理を終了し、分
解されたYーMーC成分はそのままの階調数で印画され
る。
First, similarly to the conventional example, in step (S1), arbitrary image data is decomposed into YMC components, the gradation number is represented by an appropriate numerical value from OOH to FFH, and the next step (S2) If the black-and-white conversion is not performed in step 1, the processing is terminated, and the decomposed Y-MC component is printed with the same number of gradations.

逆に、白黒変換を行う場合であれば、これに続くステ
ップ(S7)において、分解されたYーMーC成分のう
ち、最小となる階調数、即ち、3次色成分の階調数を求
め、これを黒レベルとする。また、次に続くステップ
(S8)において、YーMーC成分のうち、最大となる階
調数、即ち1次色成分の階調数を求め、その値を階調数
の最大値FFHから引き、白レベルとする。上述したよう
にして得られた黒レベルと白レベルにより、続くステッ
プ(S9)において、白黒変換を行い、処理を終了する。
On the contrary, in the case of performing black-and-white conversion, in the subsequent step (S7), the minimum number of gradations among the decomposed Y-MC components, that is, the number of gradations of the tertiary color component. And set this as the black level. Further, in the next step (S8), the maximum number of gradations among the Y-MC components, that is, the number of gradations of the primary color component is obtained, and the value is calculated from the maximum value FFH of the number of gradations. Subtract the white level. Based on the black level and the white level obtained as described above, in the subsequent step (S9), black-and-white conversion is performed, and the process ends.

即ち、白黒変換は、分解されたYーMーC成分の各々の
階調数から、先のステップ(S7)で求めた黒レベルを引
き、その値に先のステップ(S8)で求めた白レベルを足
し、各々の階調数とする。従って、黒レベルと白レベル
が入れ替えられ、印画が行われる。
That is, in the black-and-white conversion, the black level obtained in the previous step (S7) is subtracted from the number of gradations of each of the decomposed Y-MC components, and the white level obtained in the previous step (S8) Add the levels to obtain each gradation number. Therefore, the black level and the white level are exchanged, and the printing is performed.

例えば第2図のように、分解されたYーMーC成分の
階調数が、Y:8FH,M:6FH,C:3FHの場合には、黒レベルは
最小の階調数=3FHとなり、白レベルはFFH−8FH(最大
の階調数)=70Hとなる。従って、白黒変換後のYーM
ーC成分の階調数は、第3図のように、Y:8FH−3FH+70
H=COH,M:6FH−3FH+70H=AOH,C:3FH−3FH+70H=70Hと
なる。
For example, as shown in Fig. 2, when the gradation number of the decomposed Y-MC component is Y: 8FH, M: 6FH, C: 3FH, the black level is the minimum gradation number = 3FH. , The white level is FFH-8FH (maximum number of gradations) = 70H. Therefore, Y-M after black and white conversion
-The gradation number of C component is Y: 8FH-3FH + 70 as shown in Fig. 3.
H = COH, M: 6FH-3FH + 70H = AOH, C: 3FH-3FH + 70H = 70H.

なお、上記した実施例においては、YーMーC成分の
階調数の最大値をFFHとした場合について説明したが、
これは単なる例示であって、この値に限定されるもので
はない。
In the above-mentioned embodiment, the case where the maximum value of the number of gradations of the Y-MC component is set to FFH has been described.
This is merely an example and the present invention is not limited to this value.

また、任意の画像データを、YーMーC成分に分解
し、分解されたYーMーC成分から白黒変換の際に用い
られる白レベルと黒レベルを求めたが、RーGーB成分
に分解し、同様な方法で白レベルと黒レベルを求めても
良い。但し、この場合、分解されたRーGーB成分のう
ち、最小の階調数、即ち、3次色成分の階調数を白レベ
ルとし、RーGーB成分のうち最大の階調数を、階調数
の最大値から引いた値を黒レベルとする。
In addition, arbitrary image data was decomposed into Y-MC components, and the white level and black level used in black-and-white conversion were obtained from the decomposed Y-MC components. The white level and the black level may be obtained by decomposing into components and using the same method. However, in this case, the minimum gradation number of the decomposed R-G-B components, that is, the gradation number of the tertiary color component is set as the white level, and the maximum gradation of the R-G-B components is set. The value obtained by subtracting the number from the maximum value of the number of gradations is the black level.

[発明の効果] 以上、詳しく説明したように、この発明は、画像デー
タをYーMーC成分またはRーGーB成分の3成分に分
解するステップとこの分解された3成分から白レベルと
黒レベルを求めるステップと、このようにして得られた
白レベルと黒レベルから白黒変換を行うステップとを含
むので白黒変換を行う際の白レベルと黒レベルは固定で
はなく、完全な白レベルおよび完全な黒レベルの画像に
限られることなく、白黒変換が行われるようになる。従
って、例えば、赤っぽい黒という中間調の画像も、赤っ
ぽい白に変換され、色の連続性が保たれる。また、ビデ
オ信号の不安定さにも追従できるという効果がある。
[Effects of the Invention] As described in detail above, according to the present invention, a step of decomposing image data into three components of Y-M-C components or R-G-B components and a white level from the three components thus decomposed. And the step of obtaining the black level and the step of performing the black and white conversion from the white level and the black level obtained in this way, the white level and the black level when performing the black and white conversion are not fixed, but a perfect white level. And, the black and white conversion is performed without being limited to the image of the complete black level. Therefore, for example, a halftone image of reddish black is also converted to reddish white, and color continuity is maintained. Further, there is an effect that it is possible to follow the instability of the video signal.

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

第1図はこの発明の一実施例による白黒変換動作を説明
するためのフローチャート図、第2図および第3図はこ
の発明の説明図、第4図は従来の白黒変換方法を説明す
るためのフローチャート図、第5図〜第8図は従来方法
の説明図である。 なお、各図中、同一符号は同一又は相当部分を示す。
FIG. 1 is a flow chart for explaining a monochrome conversion operation according to an embodiment of the present invention, FIGS. 2 and 3 are explanatory views of the present invention, and FIG. 4 is a conventional monochrome conversion method. Flow charts and FIGS. 5 to 8 are explanatory views of the conventional method. In each figure, the same reference numerals indicate the same or corresponding parts.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/387 1/46 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI technical display location H04N 1/387 1/46

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】画像データをYーMーCの3成分に分解す
るステップと、この分解された3成分のうちの最小の階
調数を黒レベルとすると共に所定の階調数から前記3成
分のうちの最大の階調数を引いて白レベルとするステッ
プと、前記3成分の各々の階調数から前記黒レベルを引
きかつ前記白レベルを足して白黒変換を行うステップと
を含むことを特徴とする画像データの白黒変換方法。
1. A step of decomposing image data into three components Y-M-C, and a minimum gradation number of the decomposed three components is set to a black level, and the predetermined gradation number A step of subtracting the maximum number of gradations of the components to obtain a white level, and a step of subtracting the black level from the number of gradations of each of the three components and adding the white level to perform black and white conversion. A method for black and white conversion of image data.
【請求項2】画像データをRーGーBの3成分に分解す
るステップと、この分解された3成分のうちの最小の階
調数を白レベルとすると共に所定の階調数から前記3成
分のうちの最大の階調数を引いて黒レベルとするステッ
プと、前記3成分の各々の階調数から前記黒レベルを引
きかつ前記白レベルを足して白黒変換を行うステップと
を含むことを特徴とする画像データの白黒変換方法。
2. A step of decomposing image data into three components of R, G, and B, and a minimum gradation number of the decomposed three components is set to a white level, and the predetermined gradation number is used to obtain the three gradation values. A step of subtracting the maximum number of gradations of the components to obtain a black level, and a step of subtracting the black level from the number of gradations of each of the three components and adding the white level to perform black and white conversion. A method for black and white conversion of image data.
JP2152698A 1990-06-13 1990-06-13 How to convert image data to black and white Expired - Lifetime JPH088697B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2152698A JPH088697B2 (en) 1990-06-13 1990-06-13 How to convert image data to black and white

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2152698A JPH088697B2 (en) 1990-06-13 1990-06-13 How to convert image data to black and white

Publications (2)

Publication Number Publication Date
JPH0445689A JPH0445689A (en) 1992-02-14
JPH088697B2 true JPH088697B2 (en) 1996-01-29

Family

ID=15546191

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2152698A Expired - Lifetime JPH088697B2 (en) 1990-06-13 1990-06-13 How to convert image data to black and white

Country Status (1)

Country Link
JP (1) JPH088697B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111016487A (en) * 2019-12-20 2020-04-17 苏州美盈森环保科技有限公司 High-precision ink printing process

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01299041A (en) * 1988-05-27 1989-12-01 Seiko Instr Inc Color conversion processing circuit for color hard copier

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111016487A (en) * 2019-12-20 2020-04-17 苏州美盈森环保科技有限公司 High-precision ink printing process

Also Published As

Publication number Publication date
JPH0445689A (en) 1992-02-14

Similar Documents

Publication Publication Date Title
JP3676402B2 (en) Method and apparatus for cascading natural scene images
JP2887158B2 (en) Image processing device
US5734801A (en) Method of and apparatus for producing color proof
EP0622952A1 (en) A method and a device for generating printing data
US5781709A (en) Method of and apparatus for generating proof
JPH0879784A (en) Video signal processing device
GB2233187A (en) Video signal colour emphasizing/de-emphasizing apparatus
JPH088697B2 (en) How to convert image data to black and white
JPH08317229A (en) Color image processor
JPS62206556A (en) How to artificially color images
JP2001285638A (en) Image processing method
JP2006505970A (en) Method for optimizing color reproduction of color originals
JPH0580193B2 (en)
JP3387509B2 (en) Image processing method and image processing apparatus
JPH0614315B2 (en) Color correction method
JP3391816B2 (en) Color image processing apparatus and method
JP3117989B2 (en) Color image processing equipment
JPS6110362A (en) Color picture output device
JP3932862B2 (en) Image processing method and apparatus
JP3103083B2 (en) Image processing method
JP2869200B2 (en) Color conversion method and color conversion device
JP3053425B2 (en) Image recording device
JP3244405B2 (en) Image processing device
JP3206031B2 (en) Color image forming equipment
JPS58106955A (en) Picture processing device