JPH11112801A - Method for converting image, its device and storage medium - Google Patents

Method for converting image, its device and storage medium

Info

Publication number
JPH11112801A
JPH11112801A JP9271219A JP27121997A JPH11112801A JP H11112801 A JPH11112801 A JP H11112801A JP 9271219 A JP9271219 A JP 9271219A JP 27121997 A JP27121997 A JP 27121997A JP H11112801 A JPH11112801 A JP H11112801A
Authority
JP
Japan
Prior art keywords
image
color
color information
pixel
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9271219A
Other languages
Japanese (ja)
Inventor
Tetsuo Sakai
哲夫 酒井
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP9271219A priority Critical patent/JPH11112801A/en
Publication of JPH11112801A publication Critical patent/JPH11112801A/en
Pending legal-status Critical Current

Links

Landscapes

  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To generate a monochrome image after color information comparison by comparing selecting part color information with image color information during display in an image display device. SOLUTION: Color information of a pixel selected by a pointing device 111 is obtained from image data and its pixel color information is stored in an RAM 103. Information such as the longitudinal and horizontal sizes of the image which is being displayed at present or the number of used colors, etc., is obtained from header information of the image and a loop counter is set. A pixel pointer for indicating the pixel to be processed next is set to the leading pixel of the image under display. Color information of the pixel indicated by the pixel pointer is obtained and stored in the RAM 103. Color information obtained next is compared and the color of the selected pixel coincides with that of the pixel under a processing so that the color of the pixel during the processing is converted into monochromic black at the time of coincidence. Unless they coincide, the color of the pixel is converted into white.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はイメージ変換方法、
装置および記憶媒体に関し、特に、パソコン、ワープ
ロ、DTP装置等に代表される、画面上でカラーイメー
ジおよびグレースケールイメージの表示が可能なアプリ
ケーションプログラムにおけるカラーイメージおよびグ
レースケールイメージをモノクロ2値化する際に用いて
好適なものである。
The present invention relates to an image conversion method,
In the case of binarizing a color image and a gray scale image in an application program capable of displaying a color image and a gray scale image on a screen, such as a personal computer, a word processor, a DTP device, etc. It is suitable for use in

【0002】[0002]

【従来の技術】従来、画面上に表示したカラーイメージ
およびグレースケールイメージをモノクロ2値化する際
には、イメージ中のビット値が、ある特定の値(しきい
値)よりも大きなものを黒に変換し、小さな物を白に変
換するか、あるいは大きな物を白に変換したり、小さな
物を黒に変換したりしている。また、イメージ変換を行
うに際しては自由度を持たせるために、しきい値を指定
可能にしているものもある。
2. Description of the Related Art Conventionally, when a color image and a grayscale image displayed on a screen are converted into a monochrome binary image, if the bit value in the image is larger than a specific value (threshold), the image is converted to black. To convert small objects to white, large objects to white, and small objects to black. In some cases, a threshold value can be specified in order to give a degree of freedom when performing image conversion.

【0003】[0003]

【発明が解決しようとする課題】前記従来技術では、カ
ラーイメージおよびグレースケールイメージ中のある特
定な部分を黒のイメージに変換しようとするためには、
しきい値を変えて試行錯誤しなければならなかった。
In the prior art, in order to convert a specific portion in a color image and a grayscale image into a black image,
I had to change the threshold and try and error.

【0004】また、従来は望んだ部分以外の部分のイメ
ージも黒になってしまう場合があり、この場合は後から
不要な部分のイメージを削除する作業を行わなければな
らない問題ががあった。
Conventionally, an image of a portion other than a desired portion may also be black, and in this case, there is a problem that an operation of deleting an image of an unnecessary portion must be performed later.

【0005】本発明は前述の問題点にかんがみ、指定し
た部分の色情報とイメージ表示装置に表示中のイメージ
の色情報とを比較してモノクロイメージを作成できるよ
うにすることを第1の目的とする。
SUMMARY OF THE INVENTION In view of the above problems, a first object of the present invention is to make it possible to create a monochrome image by comparing color information of a designated portion with color information of an image being displayed on an image display device. And

【0006】また、マウスなどに代表されるポインティ
ングデバイスにより、カラーイメージまたはグレースケ
ールイメージ中のある特定な部分をユーザにより指定さ
れると、前記指定された部分の色を元に黒のイメージに
変換し、その他の色を白にするようにして、ユーザーが
指定した部分のみを抽出したモノクロイメージを作成で
きるようにすることを第2の目的とする。
When a user designates a specific portion in a color image or a gray scale image by a pointing device such as a mouse, the image is converted into a black image based on the color of the designated portion. A second object is to make a monochrome image in which only the portion designated by the user is extracted by setting the other colors to white.

【0007】[0007]

【課題を解決するための手段】本発明のイメージ変換方
法は、コンピューターによって制御されるイメージ表示
装置に表示されるカラーイメージまたはグレースケール
イメージを2値化するイメージ変換方法であって、前記
イメージ表示装置に表示されているイメージの一部分を
選択する選択ステップと、前記選択ステップで選択され
た部分の色情報を取得する取得ステップと、前記取得ス
テップで選択された部分の色情報と前記イメージ表示装
置に表示中のイメージの色情報とを比較する比較ステッ
プとを含むことを特徴と示している。
According to the present invention, there is provided an image conversion method for binarizing a color image or a gray scale image displayed on an image display device controlled by a computer, the image conversion method comprising: A selection step of selecting a part of an image displayed on the device; an acquisition step of acquiring color information of the part selected in the selection step; a color information of the part selected in the acquisition step; and the image display device. And comparing the color information of the image being displayed with the color information of the currently displayed image.

【0008】また、本発明のイメージ変換方法の他の特
徴とするところは、前記イメージの一部分を選択する選
択ステップは、選択された部分の色情報と同一の色情報
を持つ連続した領域を抽出する処理を含むことを特徴と
示している。
In another feature of the image conversion method of the present invention, the selecting step of selecting a part of the image includes extracting a continuous area having the same color information as the color information of the selected part. This is characterized by including a process of performing

【0009】また、本発明のイメージ変換方法のその他
の特徴とするところは、前記イメージの色情報を比較す
る比較ステップは、ユーザーによる有効値を入力する処
理を含み、前記入力された有効値を加味した比較を行う
ことを特徴と示している。
Another feature of the image conversion method of the present invention is that the comparing step of comparing the color information of the image includes a process of inputting a valid value by a user, and This is characterized by performing a comparison with consideration.

【0010】また、本発明のイメージ変換方法のその他
の特徴とするところは、前記イメージの色情報を比較す
る比較ステップは、ユーザーによるRGB個別の有効値
を入力する処理を含み、前記入力されたRGB個別の有
効値を加味した比較を行うことを特徴と示している。
According to another feature of the image conversion method of the present invention, the comparing step of comparing the color information of the image includes a process of inputting a valid value of each of RGB by a user. The feature is that comparison is performed in consideration of the effective values of RGB.

【0011】また、本発明のイメージ変換方法のその他
の特徴とするところは、前記ユーザーによる有効値を入
力する処理は、マウスなどに代表されるポインティング
デバイスを用いて行われることを特徴と示している。
Another feature of the image conversion method of the present invention is that the process of inputting a valid value by the user is performed using a pointing device such as a mouse. I have.

【0012】また、本発明のイメージ変換方法のその他
の特徴とするところは、前記ポインティングデバイスに
より、前記イメージ表示装置に表示されているカラーイ
メージまたはグレースケールイメージ中のある特定な部
分がユーザにより指定されたときに、前記指定された部
分の色を元に黒のイメージに変換し、その他の色を白に
変換して、前記ユーザーが指定した部分のみを抽出した
モノクロイメージを作成することを特徴と示している。
Another feature of the image conversion method according to the present invention is that the pointing device allows a user to specify a specific part of a color image or a gray scale image displayed on the image display device by a user. When the color is changed, the color of the designated portion is converted into a black image based on the color of the designated portion, and the other colors are converted into white to create a monochrome image in which only the portion designated by the user is extracted. It is shown.

【0013】本発明のイメージ変換装置は、コンピュー
ターによって制御されるイメージ表示装置に表示される
カラーイメージまたはグレースケールイメージを2値化
するイメージ変換装置であって、前記イメージ表示装置
に表示されているイメージの一部分を選択する選択手段
と、前記選択手段で選択された部分の色情報を取得する
取得手段と、前記取得手段で選択された部分の色情報と
前記イメージ表示装置に表示中のイメージの色情報とを
比較する比較手段とを含むことを特徴と示している。
An image conversion apparatus according to the present invention is an image conversion apparatus for binarizing a color image or a gray scale image displayed on an image display device controlled by a computer, wherein the image is displayed on the image display device. Selecting means for selecting a part of the image; obtaining means for obtaining color information of the part selected by the selecting means; and color information of the part selected by the obtaining means and the image displayed on the image display device. It is characterized by including a comparing means for comparing with color information.

【0014】また、本発明のイメージ変換装置の他の特
徴とするところは、前記イメージの一部分を選択する選
択手段は、選択された部分の色情報と同一の色情報を持
つ連続した領域を抽出する処理を行うことを特徴と示し
ている。
According to another feature of the image conversion apparatus of the present invention, the selecting means for selecting a part of the image extracts a continuous area having the same color information as the color information of the selected part. Is performed.

【0015】また、本発明のイメージ変換装置のその他
の特徴とするところは、前記イメージの色情報を比較す
る比較手段は、ユーザーによる有効値の入力手段を有
し、前記入力手段から入力される有効値を加味した比較
を行うことを特徴と示している。
Another feature of the image conversion apparatus of the present invention is that the comparing means for comparing the color information of the image has a valid value input means by a user and is inputted from the input means. The feature is that the comparison is performed in consideration of the effective value.

【0016】また、本発明のイメージ変換装置のその他
の特徴とするところは、前記イメージの色情報を比較す
る比較手段は、ユーザーによるRGB個別の有効値を入
力する入力手段を有し、前記入力手段から入力されるR
GB個別の有効値を加味した比較を行うことを特徴と示
している。
Another feature of the image conversion apparatus of the present invention is that the comparing means for comparing the color information of the image has input means for inputting a valid value for each of RGB by a user, R input from the means
This is characterized in that comparison is performed taking into account the effective values of the individual GBs.

【0017】また、本発明のイメージ変換装置のその他
の特徴とするところは、前記ユーザーによる有効値を入
力する入力手段は、マウスなどに代表されるポインティ
ングデバイスであることを特徴と示している。
Another feature of the image converter of the present invention is that the input means for inputting the effective value by the user is a pointing device represented by a mouse or the like.

【0018】また、本発明のイメージ変換装置のその他
の特徴とするところは、前記ポインティングデバイスに
より、カラーイメージまたはグレースケールイメージ中
のある特定な部分がユーザにより指定されたときに、前
記指定された部分の色を元に黒のイメージに変換し、そ
の他の色を白に変換して、前記ユーザーが指定した部分
のみを抽出したモノクロイメージを作成することを特徴
と示している。
Another feature of the image conversion apparatus of the present invention is that, when a specific portion in a color image or a grayscale image is specified by a user by the pointing device, the specified image is designated. It is characterized in that a color is converted into a black image based on the color of the part, and the other colors are converted into white to create a monochrome image in which only the part specified by the user is extracted.

【0019】また、本発明の記憶媒体は、前記イメージ
変換方法の手順をコンピュータが読み出し可能に格納し
たことを特徴と示している。
Further, the storage medium of the present invention is characterized in that the procedure of the image conversion method is stored so as to be readable by a computer.

【0020】[0020]

【発明の実施の形態】以下、図面を参照しながら本発明
のイメージ変換方法、装置および記憶媒体について詳細
に説明する。先ず、本発明の第1の実施の形態を詳細に
説明する前に、プログラムを実行するまでの基本的な処
理の流れを図1を用いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an image conversion method, apparatus and storage medium of the present invention will be described in detail with reference to the drawings. First, before describing the first embodiment of the present invention in detail, a basic processing flow up to execution of a program will be described with reference to FIG.

【0021】図1は、本実施の形態のシステムが動作す
るための基本的なハード構成を示すブロック図である。
図1において、101は中央処理装置(CPU)であ
り、この装置全体の制御及び演算処理等を行うものであ
る。102はROM、すなわち、読み出し専用メモリで
あり、システム起動プログラム等の種々のプログラムお
よびデータを記憶しておくためのものである。
FIG. 1 is a block diagram showing a basic hardware configuration for operating the system of the present embodiment.
In FIG. 1, reference numeral 101 denotes a central processing unit (CPU) which controls the entire apparatus, performs arithmetic processing, and the like. Reference numeral 102 denotes a ROM, that is, a read-only memory, for storing various programs and data such as a system startup program.

【0022】103はRAM、すなわち、ランダムアク
セスメモリである。前記RAM3は、使用制限のないデ
ータ記憶領域であり、様々な処理毎に後述するフローチ
ャートで表される各々のプログラム及びデータがロード
される領域である。104はキーボード制御部(KB
C)であり、キーボード(KB)105よりキー入力デ
ータを受け取りCPU101へ伝達するものである。
Reference numeral 103 denotes a RAM, that is, a random access memory. The RAM 3 is a data storage area with no usage restriction, and is an area into which programs and data represented by flowcharts described later are loaded for various processes. 104 is a keyboard control unit (KB
C), which receives key input data from the keyboard (KB) 105 and transmits it to the CPU 101.

【0023】106はディスプレイ装置制御部(CRT
C)であり、システムバス112からデータを受け取っ
てCRT107へ表示するためのものである。108は
外部記憶装置制御部(DKC)であり、フロッピーディ
スク装置(FD)、あるいはハードディスク装置(H
D)等の外部記憶装置109の制御を行うものである。
これらの外部記憶装置109は、プログラム及びデータ
を記憶しておくためのものであり、必要に応じて実行時
に参照されたり、またはRAM103へロードしたりす
るために用いられる。
Reference numeral 106 denotes a display device control unit (CRT)
C) for receiving data from the system bus 112 and displaying the data on the CRT 107. Reference numeral 108 denotes an external storage device control unit (DKC), which is a floppy disk device (FD) or a hard disk device (H
D) and the like to control the external storage device 109.
These external storage devices 109 are for storing programs and data, and are referred to at the time of execution or loaded into the RAM 103 as necessary.

【0024】110は、ポインティングデバイス制御部
(PDC)であり、マウスやタブレットなどのポインテ
ィングデバイス(PD)111からの入力データを制御
するものである。112はシステムバスであり、前述の
各構成要素問のデータの通路となるものである。
A pointing device controller (PDC) 110 controls input data from a pointing device (PD) 111 such as a mouse or a tablet. Reference numeral 112 denotes a system bus, which serves as a data path for each of the above-described components.

【0025】このように構成されたシステムは、基本I
/Oプログラム、OS、およびイメージ編集方法制御プ
ログラムをCPU101が実行することにより動作す
る。基本I/OプログラムはROM102に書き込まれ
ており、OSおよびイメージ編集方法制御プログラム
は、ハードディスク装置(HD)109に書き込まれて
いる。
The system configured as described above has a basic I
The CPU 101 operates by executing a / O program, an OS, and an image editing method control program. The basic I / O program is written in the ROM 102, and the OS and the image editing method control program are written in the hard disk device (HD) 109.

【0026】そして、本システムにおいては電源がON
されたときに、基本I/Oプログラム中のイニシャルプ
ログラムロード機能により、ハードディスク装置(H
D)109から、OSおよびイメージ編集方法制御プロ
グラムがRAM103に読み込まれ、OSおよびイメー
ジ編集方法制御プログラムの動作が開始される。以下、
実施の形態について詳細に説明する。
In this system, the power is turned on.
When the hard disk drive (H) is loaded by the initial program loading function in the basic I / O program,
D) From 109, the OS and the image editing method control program are read into the RAM 103, and the operations of the OS and the image editing method control program are started. Less than,
Embodiments will be described in detail.

【0027】〔第1の実施の形態〕本実施の形態は、C
RT107に表示中のカラーイメージおよびグレースケ
ールイメージのある特定な部分を指定し、前記指定した
部分の色を黒に変換し、それ以外の色を白に変換するよ
うにした例を示している。
[First Embodiment] In this embodiment, C
An example is shown in which a specific part of a color image and a grayscale image being displayed on the RT 107 is specified, the color of the specified part is converted to black, and the other colors are converted to white.

【0028】先ず、図2を用いて一般的なイメージデー
タの形式について説明する。図2に示したヘッダー情報
部には、イメージデータのサイズや使用されている色数
等のような、イメージデータ部に格納されているデータ
形式に関する情報が格納されている。
First, a general image data format will be described with reference to FIG. The header information section shown in FIG. 2 stores information about the data format stored in the image data section, such as the size of the image data and the number of colors used.

【0029】イメージデータ部には、実際のイメージデ
ータのピクセルごとの色情報がRGB値(RED,GR
EEN,BLUE)が格納されているのが一般的であ
る。ここでは、一般的なデータの持ち方を表す例を示し
ており、使用可能な色数や、処理系に依存する値の表現
方法や、使用可能な値の範囲に関しては特に言及しな
い。
In the image data portion, the color information of each pixel of the actual image data is represented by an RGB value (RED, GR).
EEN, BLUE) is generally stored. Here, an example showing a general way of holding data is shown, and the number of usable colors, a method of expressing a value depending on a processing system, and a range of usable values are not particularly described.

【0030】すなわち、ここでは、便宜上RGBそれぞ
れの値の範囲は、0〜255迄であるものとする。ま
た、モノクロイメージにおける黒を表すピクセルのRG
B値は(R,G,B)=(0,0,0)であるものと
し、白を表すピクセルのRGB値は(R,G,B)=
(255,255,255)であるものとする。
That is, here, for convenience, it is assumed that the range of each value of RGB is from 0 to 255. In addition, RG of a pixel representing black in a monochrome image
The B value is (R, G, B) = (0, 0, 0), and the RGB value of a pixel representing white is (R, G, B) =
(255, 255, 255).

【0031】次に、表示中のイメージから特定の部分を
指定する方法について、図3を用いて説明する。図3に
おいて、との部分はRED(R,G,B)=(25
5,0,0)、との部分はGREEN(R,G,
B)=(0,255,0)、の部分はBLUE(R,
G,B)=(0,0,255)、その他の部分は白
(R,G,B〉=(255,255,255)であるも
のとする。
Next, a method of designating a specific portion from the displayed image will be described with reference to FIG. In FIG. 3, the portion with is RED (R, G, B) = (25
5,0,0) and GREEN (R, G,
B) = (0,255,0) is a part of BLUE (R,
G, B) = (0, 0, 255), and the other portions are white (R, G, B> = (255, 255, 255).

【0032】次に、マウスなどに代表されるポインティ
ングデバイスで前記の部分を選択した場合の2値化処
理を、図4のフローチャートを用いて詳細に説明する。
ステップS401では、ポインティングデバイスで選択
されたピクセルの色情報をイメージデータから取得す
る。取得されたピクセルの色情報は、RAM103上に
格納され、必要に応じて後から参照される。
Next, the binarization process when the above-mentioned portion is selected by a pointing device such as a mouse will be described in detail with reference to the flowchart of FIG.
In step S401, the color information of the pixel selected by the pointing device is obtained from the image data. The acquired color information of the pixel is stored in the RAM 103 and is referred to later as needed.

【0033】次に、ステップS402では、イメージの
ヘッダー情報から、現在表示されているイメージの縦横
サイズ、使用されている色数等の情報を取得し、イメー
ジ全体を処理するためのループカウンターを設定する。
Next, in step S402, information such as the vertical and horizontal sizes of the currently displayed image and the number of colors used is acquired from the header information of the image, and a loop counter for processing the entire image is set. I do.

【0034】次に、ステップS403では、処理すべき
ピクセルを指し示すピクセルポインタを、表示中のイメ
ージの先頭のピクセルにセットする。次に、ステップS
404では、前記ピクセルポインタが指し示したピクセ
ルの色情報を取得してRAM103上に格納する。
Next, in step S403, a pixel pointer indicating the pixel to be processed is set to the first pixel of the image being displayed. Next, step S
In step 404, the color information of the pixel pointed by the pixel pointer is obtained and stored in the RAM 103.

【0035】次に、ステップS405では、ステップS
401において取得した色情報とステップS404で取
得した色情報とを比較し、同じ色の場合にはステップS
406へ進み、違う色の場合にはステップS407へ進
む。
Next, in step S405, step S
The color information acquired in step 401 is compared with the color information acquired in step S404, and if the color is the same, step S404 is executed.
The process advances to step S406, and if the color is different, the process advances to step S407.

【0036】ステップS406では、ステップS401
で選択されたピクセルの色と、処理中のピクセルの色と
がー致したので、処理中のピクセルの色をモノクロの黒
に変換し、その後ステップS408へ進む。
In step S406, step S401
Since the color of the pixel selected in step 1 and the color of the pixel being processed match, the color of the pixel being processed is converted to monochrome black, and then the flow proceeds to step S408.

【0037】一方、ステップS407では、ステップS
401で選択されたピクセルの色と、処理中のピクセル
の色とが一致しなかったので、処理中のピクセルの色を
モノクロの白に変換する処理を行い、その後ステップS
408へ進む。
On the other hand, in step S407, step S407
Since the color of the pixel selected in 401 and the color of the pixel being processed do not match, a process of converting the color of the pixel being processed to monochrome white is performed, and then step S
Proceed to 408.

【0038】ステップS408では、表示中のイメージ
のピクセルポインタを次のピクセルの位置に進める。次
に、ステップS409では、ステップS402で取得し
たヘッダー情報から、イメージ全体を処理したかどうか
を判定し、未処理のピクセルがある場合にはステップS
404へ進んで前記の処理を繰り返し行う。また、全て
のピクセルを処理した場合には処理を終了する。図3の
イメージに対して前記の変換処理を行った結果を図5に
示す。
In step S408, the pixel pointer of the image being displayed is advanced to the position of the next pixel. Next, in step S409, it is determined from the header information acquired in step S402 whether or not the entire image has been processed.
Proceeding to 404, the above processing is repeated. If all the pixels have been processed, the process ends. FIG. 5 shows the result of performing the above-described conversion processing on the image of FIG.

【0039】〔第2の実施の形態〕本実施の形態は、表
示中のカラーイメージおよびグレースケールイメージの
ある特定な部分が指定されると、前記指定された部分を
含む連続領域の色を黒に変換し、それ以外の色を白に変
換する例を示している。
[Second Embodiment] In this embodiment, when a specific part of a color image and a gray scale image being displayed is specified, the color of a continuous area including the specified part is changed to black. Is converted to white, and other colors are converted to white.

【0040】次に、図6のフローチャートを用いて表示
中のイメージから、マウスなどに代表されるポインティ
ングデバイスで、図3におけるの部分を選択した場合
の2値化処理を詳細に説明する。
Next, the binarization process when the portion shown in FIG. 3 is selected by the pointing device such as a mouse from the image being displayed with reference to the flowchart of FIG. 6 will be described in detail.

【0041】最初のステップS601では、選択された
ピクセルの色情報をイメージデータから取得する。前記
取得したピクセルの色情報は、RAM103上に格納さ
れ、必要に応じて後から参照される。
In the first step S601, the color information of the selected pixel is obtained from the image data. The acquired color information of the pixel is stored in the RAM 103 and is referred to later as needed.

【0042】次に、ステップS602では、指定された
ピクセルから取得した色情報を元にして、図7に示すよ
うに、その色を含む連続領域の情報を作成する。なお、
連続領域の判定方法には様々な方法が存在しており、こ
こではその方法を限定するものではないので、連続領域
の判定が可能であればその方法に関しては特に規定しな
い。
Next, in step S602, based on the color information acquired from the designated pixel, as shown in FIG. 7, information of a continuous area including the color is created. In addition,
There are various methods for determining a continuous area, and the method is not limited here. Therefore, if a continuous area can be determined, the method is not particularly defined.

【0043】次に、ステップS603では、イメージの
ヘッダー情報から、現在表示されているイメージの縦横
サイズ、使用されている色数等の情報を取得し、イメー
ジ全体を処理するためのループカウンターを設定する。
In step S603, information such as the vertical and horizontal sizes of the currently displayed image and the number of colors used is acquired from the header information of the image, and a loop counter for processing the entire image is set. I do.

【0044】次に、ステップS604では、処理すべき
ピクセルを指し示すピクセルポインタを、表示中のイメ
ージの先頭のピクセルにセットする。次に、ステップS
605では、ピクセルポインタが指し示すピクセルがス
テップS602において作成した連続領域に含まれるか
どうかの判定を行う。この判定の結果、領域内に含まれ
る場合にはステップS606へ進み、領域内に含まれな
い場合にはステップS607へ進む。
Next, in step S604, a pixel pointer indicating the pixel to be processed is set to the first pixel of the image being displayed. Next, step S
In 605, it is determined whether or not the pixel indicated by the pixel pointer is included in the continuous area created in step S602. If the result of this determination is that it is included in the area, the flow proceeds to step S606; otherwise, the flow proceeds to step S607.

【0045】ステップS606では、処理中のピクセル
の色をモノクロの黒に変換し、変換後ステップS608
へ進む。一方、ステップS607では、処理中のピクセ
ルの色をモノクロの白に変換し、変換後にステップS6
08へ進む。
In step S606, the color of the pixel being processed is converted to monochrome black, and after conversion, step S608 is performed.
Proceed to. On the other hand, in step S607, the color of the pixel being processed is converted to monochrome white, and after the conversion, the process proceeds to step S6.
Proceed to 08.

【0046】ステップS608では、表示中のイメージ
のピクセルポインタをインクリメントして次のピクセル
の位置に進める。次に、ステップS609では、ステッ
プS603で取得したヘッダー情報から、イメージ全体
を処理したかどうかを判定し、未処理のピクセルがある
場合にはステップS605へ進んで前記の処理を繰り返
し行う。また、ステップS609の判定の結果、全ての
ピクセルを処理した場合には処理を終了する。図3のイ
メージに対して前記の処理を行った結果を図8に示す。
In step S608, the pixel pointer of the image being displayed is incremented to advance to the position of the next pixel. Next, in step S609, it is determined from the header information acquired in step S603 whether or not the entire image has been processed. If there is an unprocessed pixel, the process proceeds to step S605 to repeat the above processing. If the result of determination in step S609 is that all pixels have been processed, the process ends. FIG. 8 shows the result of performing the above-described processing on the image of FIG.

【0047】〔第3の実施の形態〕本実施の形態は、表
示中のカラーイメージおよびグレースケールイメージの
ある特定な部分を指定し、前記指定した部分の色に対し
てユーザーが設定した有効値の範囲に含まれるものを黒
に変換し、それ以外の色を白に変換するようにした例を
示している。
[Third Embodiment] In the present embodiment, a specific part of a color image and a gray scale image being displayed is specified, and an effective value set by a user for the color of the specified part. Are converted to black, and the other colors are converted to white.

【0048】先ず、図9を用いて、複数の色が連続的に
使われているカラーイメージの最も単純な例について説
明する。図9(a)におけるのはそれぞ
れ異なった色が使用されており、それぞれ図9(b)に
示す色が使用されているものとする。
First, the simplest example of a color image in which a plurality of colors are continuously used will be described with reference to FIG. In FIG. 9A, different colors are used, and it is assumed that the colors shown in FIG. 9B are used.

【0049】の部分は(R,G,B)=(255,
0,0)、の部分は(R,G,B)=(254,
0,0)、(10)の部分は(R,G,B)=(25
3,0,0)、(11)の部分は(R,G,B)=
(252,0,0)、(12)の部分は(R,G,
B)=(251,0,0)、(13)の部分は(R,
G,B)=〈250,0,0)、(14)の部分は
(R,G,B)=(249,0,0)、その他の部分は
白(R,G,B)=(255,255,255)である
ものとする。
The part of (R, G, B) = (255,
(0,0) is (R, G, B) = (254,
(R, G, B) = (25, 0), (10)
(3, 0, 0) and (11) are (R, G, B) =
(252, 0, 0) and (12) are (R, G,
B) = (251,0,0) and (13) are (R,
(G, B) = <250, 0, 0), the portion (14) is (R, G, B) = (249, 0, 0), and the other portions are white (R, G, B) = (255) , 255, 255).

【0050】次に、マウスなどに代表されるポインティ
ングデバイスでの部分を選択した場合の2値化処理
を、図10のフローチャートを用いて詳細に説明する。
先ず、最初のステップS1001では、選択されたピク
セルの色情報をイメージデータから取得する。
Next, the binarization processing in the case where a portion of a pointing device represented by a mouse or the like is selected will be described in detail with reference to the flowchart of FIG.
First, in a first step S1001, color information of a selected pixel is obtained from image data.

【0051】前記イメージデータから取得されたピクセ
ルの色情報はRAM103上に格納され、必要に応じて
後から参照される。次に、ステップS1002では、イ
メージのヘッダー情報から、現在表示されているイメー
ジの縦横サイズ、使用されている色数等の情報を取得
し、イメージ全体を処理するためのループカウンターを
設定する。
The color information of the pixels obtained from the image data is stored in the RAM 103 and is referred to later as needed. Next, in step S1002, information such as the vertical and horizontal sizes of the currently displayed image and the number of colors used is acquired from the header information of the image, and a loop counter for processing the entire image is set.

【0052】次に、ステップS1003では、設定され
ている有効値の値をRAM103から取得する。前記有
効値は、本プログラムの環境設定時に初期設定値がセッ
トされており、その情報はFDやHDなどの外部記憶装
置109、またはROM102から本プログラム起動時
に読み出され、RAM103の中に後から参照可能な形
式で記憶されている。なお、有効値に関しては、図11
に示すようなユーザーインターフェースを用意すること
で、任意の値を設定することが可能である。
Next, in step S1003, the set effective value is obtained from the RAM 103. The effective value is set to an initial setting value when the environment of the program is set. The information is read from the external storage device 109 such as FD or HD, or the ROM 102 when the program is started, and is stored in the RAM 103 later. It is stored in a format that can be referred to. The valid values are shown in FIG.
Arbitrary values can be set by preparing a user interface as shown in FIG.

【0053】図11(a)のインターフェースでは、一
つの値を入力させることで、RAM103上に図12
(a)に示すような有効値の情報を作成し、RED,G
REEN,BLUE共に同一の有効値を用いてイメージ
データのモノクロ変換を行うものである。
In the interface shown in FIG. 11A, by inputting one value, the value shown in FIG.
The information of the effective value as shown in FIG.
Both REEN and BLUE perform monochrome conversion of image data using the same effective value.

【0054】また図11(b)のインターフェースで
は、RED,GREEN,BLUEそれぞれ独立した値
を指定させることで、図12(b)に示すような有効値
の情報を作成し、それぞれ個別の有効値を用いてイメー
ジデータのモノクロ変換を行うものである。なお、ここ
に示したユーザーインターフェースの例はあくまでも一
例を示すものであり、任意のユーザーインターフェース
を用いることが可能であることは言うまでもない。
In the interface shown in FIG. 11B, by specifying independent values for RED, GREEN, and BLUE, effective value information as shown in FIG. 12B is created. Is used to perform monochrome conversion of image data. Note that the example of the user interface shown here is merely an example, and it goes without saying that any user interface can be used.

【0055】次に、ステップS1004では、処理すべ
きピクセルを指し示すピクセルポインタを、表示中のイ
メージの先頭のピクセルにセットする。次に、ステップ
S1005では、ピクセルポインタの指し示すピクセル
の色情報を取得してRAM103に格納する。
Next, in step S1004, a pixel pointer indicating the pixel to be processed is set to the first pixel of the image being displayed. Next, in step S1005, the color information of the pixel indicated by the pixel pointer is obtained and stored in the RAM 103.

【0056】次に、ステップS1006では、ステップ
S1001において取得した色情報とステップS100
5で取得した色情報とを比較し、ステップS1001に
おいて取得した色情報±有効値の範囲内であればステッ
プS1007へ進み、範囲外であればステップS100
8へ進む。ここでは範囲内、範囲外の判定は、有効値ま
でを含むものとして説明する。
Next, in step S1006, the color information acquired in step S1001 and the
The color information acquired in step 5 is compared with the color information acquired in step S1001, and if it is within the range of the color information acquired in step S1001, the process proceeds to step S1007.
Proceed to 8. Here, the description will be made on the assumption that the determination within the range and the determination outside the range include up to the effective value.

【0057】この際、図11(a)のインターフェース
が使用されている場合にはRGB共に同じ有効値が使用
され、図11(b)のインターフェースが使用されてい
る場合にはRGB個別の有効値が使用される。
At this time, when the interface shown in FIG. 11A is used, the same effective value is used for both RGB. When the interface shown in FIG. 11B is used, the effective value for each of RGB is used. Is used.

【0058】次に、ステップS1007では、ステップ
S1001で選択されたピクセルの色と、処理中のピク
セルの色とが有効値の範囲内で一致したので、処理中の
ピクセルの色をモノクロの黒に変換し、変換後ステップ
S1009へ進む。
Next, in step S1007, since the color of the pixel selected in step S1001 matches the color of the pixel being processed within the range of valid values, the color of the pixel being processed is changed to monochrome black. After the conversion, the process proceeds to step S1009.

【0059】一方、ステップS1008では、ステップ
S1001で選択されたピクセルの色と、処理中のピク
セルの色とが有効値の範囲内で一致しなかったので、処
理中のピクセルの色をモノクロの白に変換し、変換後ス
テップS1009へ進む。ステップS1009では、表
示中のイメージのピクセルポインタを次のピクセルの位
置に進める。
On the other hand, in step S1008, since the color of the pixel selected in step S1001 does not match the color of the pixel being processed within the range of valid values, the color of the pixel being processed is changed to monochrome white. And the process proceeds to step S1009. In step S1009, the pixel pointer of the image being displayed is advanced to the position of the next pixel.

【0060】ステップS1010では、ステップS10
02で取得したヘッダー情報から、イメージ全体を処理
したかどうかを判定し、未処理のピクセルがある場合に
はステップS1005へ進んで前記の処理を繰り返し行
う。また、全てのピクセルを処理した場合には終了す
る。図9(a)のイメージに対して、の部分を選択し
有効値=2で前記の処理を行った結果を図13に示す。
In step S1010, step S10
From the header information acquired in step 02, it is determined whether or not the entire image has been processed. If there is an unprocessed pixel, the process advances to step S1005 to repeat the above processing. If all the pixels have been processed, the process ends. FIG. 13 shows a result obtained by selecting the portion of the image of FIG. 9A and performing the above-described processing with the effective value = 2.

【0061】〔第4の実施の形態〕本実施の形態は、表
示中のカラーイメージおよびグレースケールイメージの
ある特定な部分を指定し、指定された部分の色に対しユ
ーザーが設定した有効値の範囲に含まれる連続した領域
を黒に変換し、それ以外の色を白に変換するようにした
例を示している。
[Fourth Embodiment] In this embodiment, a specific portion of a color image and a grayscale image being displayed is specified, and the effective value set by the user for the color of the specified portion is specified. An example is shown in which a continuous area included in the range is converted to black, and other colors are converted to white.

【0062】最初のステップS1401では、選択した
ピクセルの色情報をイメージデータから取得する。取得
されたピクセルの色情報はRAM103上に格納され、
必要に応じて後から参照される。
In the first step S1401, the color information of the selected pixel is obtained from the image data. The acquired color information of the pixel is stored in the RAM 103,
It will be referred later if necessary.

【0063】次に、ステップS1402では、設定され
ている有効値の値をRAM103から取得する。有効値
の値は本プログラムの環境設定時に初期設定値がセット
されており、その情報はFDやHDなどの外部記憶装置
109、またはROM102から本プログラム起動時に
読み出され、RAM103の中に後から参照可能な形式
で記憶されている。なお、有効値に関しては、図11に
示したようなユーザーインターフェースを用意すること
で、任意の値を設定することが可能である。
Next, in step S1402, the set effective value is obtained from the RAM 103. The effective value is set to an initial value at the time of setting the environment of the program. The information is read from the external storage device 109 such as FD or HD, or the ROM 102 when the program is started, and is stored in the RAM 103 later. It is stored in a format that can be referred to. As for the effective value, an arbitrary value can be set by preparing a user interface as shown in FIG.

【0064】図11(a)のインターフェースでは一つ
の値を入力させることで、RAM103上に図12
(a)に示したような有効値の情報を作成し、RED,
GREEN,BLUE共に同一の有効値を用いて連続領
域の判定を行い、イメージデータのモノクロ変換を行う
ものである。
In the interface shown in FIG. 11A, by inputting one value, the interface shown in FIG.
The information of the effective value as shown in (a) is created, and RED,
In both GREEN and BLUE, the same effective value is used to determine a continuous area, and monochrome conversion of image data is performed.

【0065】また、図11(b)のインターフェースで
は、RED,GREEN,BLUEそれぞれ独立した値
を指定させることで、図12(b)に示したような有効
値の情報を作成し、それぞれ個別の有効値を用いて連続
領域の判定を行いイメージデータのモノクロ変換を行う
ものである。
In the interface shown in FIG. 11B, by specifying independent values for RED, GREEN, and BLUE, information of effective values as shown in FIG. 12B is created. The determination of the continuous area is performed using the effective value, and the monochrome conversion of the image data is performed.

【0066】なお、ここに示したユーザーインターフェ
ースの例はあくまでも一例を示すものであり、任意のユ
ーザーインターフェースを用いることが可能であること
は言うまでもない。
The example of the user interface shown here is merely an example, and it goes without saying that any user interface can be used.

【0067】次に、ステップS1403では、指定され
たピクセルから取得された色情報とステップS1402
で取得した有効値を元に、その色を含む図15に示すよ
うな連続領域の情報を作成する。なお、連続領域の判定
方法には様々な方法が存在しており、ここではその方法
を限定するものではないので連続領域の判定が可能であ
ればその方法に関しては特に規定しない。
Next, in step S1403, the color information obtained from the designated pixel is compared with the color information obtained in step S1402.
Based on the effective value acquired in step (1), information on a continuous area including the color as shown in FIG. 15 is created. Note that there are various methods for determining a continuous area, and the method is not limited here. Therefore, the method is not particularly defined as long as the determination of a continuous area is possible.

【0068】次に、ステップS1404では、イメージ
のヘッダー情報から、現在表示されているイメージの縦
横サイズ、使用されている色数等の情報を取得し、イメ
ージ全体を処理するためのループカウンターを設定す
る。次に、ステップS1405では、処理すべきピクセ
ルを指し示すピクセルポインタを、表示中のイメージの
先頭のピクセルにセットする処理を行う。
Next, in step S1404, information such as the vertical and horizontal sizes of the currently displayed image and the number of colors used are acquired from the header information of the image, and a loop counter for processing the entire image is set. I do. Next, in step S1405, a process of setting a pixel pointer indicating the pixel to be processed to the first pixel of the image being displayed is performed.

【0069】次に、ステップS1406では、ピクセル
ポインタの指し示すピクセルがステップS1403にお
いて作成した連続領域に含まれるかどうかの判定を行
い、領域内に含まれる場合にはステップS1407へ進
み、また、領域内に含まれない場合にはステップS14
08へ進む。
Next, in step S1406, it is determined whether or not the pixel indicated by the pixel pointer is included in the continuous area created in step S1403. If the pixel is included in the area, the process proceeds to step S1407. If not included in step S14
Proceed to 08.

【0070】ステップS1407では、処理中のピクセ
ルの色をモノクロの黒に変換し、その後ステップS14
09へ進む。一方、ステップS1408に進んだ場合
は、処理中のピクセルの色をモノクロの白に変換し、そ
の後ステップS1409へ進む。
In step S1407, the color of the pixel being processed is converted to monochrome black.
Go to 09. On the other hand, if the process proceeds to step S1408, the color of the pixel being processed is converted to monochrome white, and then the process proceeds to step S1409.

【0071】次に、ステップS1409では、表示中の
イメージのピクセルポインタをインクリメントし、次の
ピクセルの位置に進める。次に、ステップS1410で
は、ステップS1404で取得したヘッダー情報から、
イメージ全体を処理したかどうかを判定し、未処理のピ
クセルがある場合にはステップS1406へ進んで前記
の処理を繰り返し行う。また、全てのピクセルを処理し
た場合には終了する。図9のイメージに対して、の部
分を選択し有効値=2で前記の処理を行った結果を図1
6に示す。
Next, in step S1409, the pixel pointer of the image being displayed is incremented, and the process proceeds to the position of the next pixel. Next, in step S1410, from the header information acquired in step S1404,
It is determined whether the entire image has been processed. If there is an unprocessed pixel, the process advances to step S1406 to repeat the above processing. If all the pixels have been processed, the process ends. FIG. 1 shows a result obtained by selecting a portion of the image of FIG.
6 is shown.

【0072】〔本発明の他の実施形態〕本発明は複数の
機器(例えば、ホストコンピュータ、インタフェース機
器、リーダ、プリンタ等)から構成されるシステムに適
用しても1つの機器からなる装置に適用しても良い。
[Other Embodiments of the Present Invention] The present invention can be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.) but also to an apparatus composed of one device. You may.

【0073】また、前述した実施の形態の機能を実現す
るように各種のデバイスを動作させるように、前記各種
デバイスと接続された装置あるいはシステム内のコンピ
ュータに対し、前記実施の形態の機能を実現するための
ソフトウェアのプログラムコードを供給し、そのシステ
ムあるいは装置のコンピュータ(CPUあるいはMP
U)に格納されたプログラムに従って前記各種デバイス
を動作させることによって実施したものも、本発明の範
疇に含まれる。
Further, the functions of the above-described embodiment are realized by an apparatus connected to the various devices or a computer in a system so that various devices are operated so as to realize the functions of the above-described embodiment. Supplies the software program code for performing the
The invention implemented by operating the various devices according to the program stored in U) is also included in the scope of the present invention.

【0074】また、この場合、前記ソフトウェアのプロ
グラムコード自体が前述した実施の形態の機能を実現す
ることになり、そのプログラムコード自体、およびその
プログラムコードをコンピュータに供給するための手
段、例えばかかるプログラムコードを格納した記憶媒体
は本発明を構成する。かかるプログラムコードを記憶す
る記憶媒体としては、例えばフロッピーディスク、ハー
ドディスク、光ディスク、光磁気ディスク、CD−RO
M、磁気テープ、不揮発性のメモリカード、ROM等を
用いることができる。
In this case, the program code of the software implements the functions of the above-described embodiment, and the program code itself and means for supplying the program code to a computer, for example, the program The storage medium storing the code constitutes the present invention. As a storage medium for storing such a program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-RO
M, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0075】また、コンピュータが供給されたプログラ
ムコードを実行することにより、前述の実施の形態の機
能が実現されるだけでなく、そのプログラムコードがコ
ンピュータにおいて稼働しているOS(オペレーティン
グシステム)あるいは他のアプリケーションソフト等の
共同して前述の実施の形態の機能が実現される場合にも
かかるプログラムコードは本発明の実施の形態に含まれ
ることは言うまでもない。
When the computer executes the supplied program code, not only the functions of the above-described embodiment are realized, but also the OS (operating system) or other operating system in which the program code runs on the computer. It goes without saying that such program codes are also included in the embodiment of the present invention when the functions of the above-described embodiment are realized in cooperation with the application software or the like.

【0076】さらに、供給されたプログラムコードがコ
ンピュータの機能拡張ボードやコンピュータに接続され
た機能拡張ユニットに備わるメモリに格納された後、そ
のプログラムコードの指示に基づいてその機能拡張ボー
ドや機能拡張ユニットに備わるCPU等が実際の処理の
一部または全部を行い、その処理によって前述した実施
の形態の機能が実現される場合にも本発明に含まれるこ
とは言うまでもない。
Further, after the supplied program code is stored in a memory provided in a function expansion board of a computer or a function expansion unit connected to the computer, the function expansion board or the function expansion unit is specified based on the instruction of the program code. It is needless to say that the present invention also includes a case where a CPU or the like provided for performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0077】[0077]

【発明の効果】本発明は前述したように、本発明によれ
ば、コンピューターによって制御されるイメージ表示装
置に表示されているイメージの一部分を選択するととも
に、前記選択された部分の色情報を取得し、前記選択さ
れた部分の色情報と前記イメージ表示装置に表示中のイ
メージの色情報とを比較してイメージ変換するようにし
たので、イメージ表示装置に表示されているカラーイメ
ージまたはグレースケールイメージ中のある特定名部分
を指定した部分の色を元にして黒のイメージに変換し、
その他の色を白にすることができ、ユーザーが指定した
部分のみを抽出したモノクロイメージを作成することが
可能となる。
According to the present invention, as described above, according to the present invention, a part of an image displayed on an image display device controlled by a computer is selected, and color information of the selected part is obtained. The color information or the gray scale image displayed on the image display device is converted by comparing the color information of the selected portion with the color information of the image being displayed on the image display device. Convert a specific name inside to a black image based on the color of the specified part,
Other colors can be white, and a monochrome image can be created by extracting only the part specified by the user.

【0078】また、本発明の他の特徴によれば、マウス
などに代表されるポインティングデバイスにより、カラ
ーイメージまたはグレースケールイメージ中のある特定
な部分がユーザにより指定されると、前記指定された部
分の色を元に黒のイメージに変換し、その他の色を白に
するようにして、ユーザーが指定した部分のみを抽出し
たモノクロイメージを作成することができる。
According to another feature of the present invention, when a user designates a specific portion in a color image or a grayscale image by a pointing device such as a mouse, the designated portion is designated. Is converted into a black image on the basis of the color and the other colors are converted to white, so that a monochrome image in which only the portion designated by the user is extracted can be created.

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

【図1】本発明のイメージ変換装置の基本構成を表す構
成図である。
FIG. 1 is a configuration diagram illustrating a basic configuration of an image conversion apparatus according to the present invention.

【図2】イメージデータの形式を表す図である。FIG. 2 is a diagram illustrating a format of image data.

【図3】表示中のイメージを表す図である。FIG. 3 is a diagram illustrating an image being displayed.

【図4】第1の実施の形態の処理の詳細を説明するフロ
ーチャートである。
FIG. 4 is a flowchart illustrating details of a process according to the first embodiment;

【図5】図3に対して第1の実施の形態の処理を施した
結果の一例を表す図である。
FIG. 5 is a diagram illustrating an example of a result obtained by performing a process according to the first embodiment on FIG. 3;

【図6】第2の実施の形態の処理の詳細を説明するフロ
ーチャートである。
FIG. 6 is a flowchart illustrating details of a process according to the second embodiment;

【図7】第2の実施の形態において作成された連続領域
情報を表す図である。
FIG. 7 is a diagram illustrating continuous area information created in a second embodiment.

【図8】図3に対して第2の実施の形態の処理を施した
結果の一例を表す図である。
FIG. 8 is a diagram illustrating an example of a result obtained by performing processing according to the second embodiment on FIG. 3;

【図9】連続領域に複数の色が含まれている表示中のイ
メージデータを表す図、およびイメージに使用されてい
る色の情報を示す図である。
FIG. 9 is a diagram illustrating image data being displayed in which a continuous area includes a plurality of colors, and a diagram illustrating information on colors used in the image.

【図10】第3の実施の形態の詳細な処理の詳細を説明
するフローチャートである。
FIG. 10 is a flowchart illustrating details of a detailed process according to the third embodiment;

【図11】ユーザーインターフェースの一例を表す図で
ある。
FIG. 11 is a diagram illustrating an example of a user interface.

【図12】有効値のメモリマップの一例を表す図であ
る。
FIG. 12 is a diagram illustrating an example of a memory map of valid values.

【図13】図9に対して第3の実施の形態を実行した結
果の例を表す図である。
FIG. 13 is a diagram illustrating an example of a result of executing the third embodiment with respect to FIG.

【図14】第4の実施の形態の詳細な処理の詳細を説明
するフローチャートである。
FIG. 14 is a flowchart illustrating details of a detailed process according to the fourth embodiment;

【図15】第4の実施の形態において作成された連続領
域情報を表す図である。
FIG. 15 is a diagram illustrating continuous area information created in a fourth embodiment.

【図16】図9に対して第4の実施の形態を実行した結
果の例を表す図である。
FIG. 16 is a diagram illustrating an example of a result of executing the fourth embodiment with respect to FIG.

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

101 中央処理装置(CPU) 102 ROM 103 RAM 104 キーボード制御部(KBC) 105 キーボード(KB) 106 ディスプレイ装置制御部(CRTC) 107 CRT 108 外部記憶装置制御部(DKC) 109 外部記憶装置 110 ポインティングデバイス制御部(PDC) 111 ポインティングデバイス(PD) 112 システムバス 101 Central Processing Unit (CPU) 102 ROM 103 RAM 104 Keyboard Control Unit (KBC) 105 Keyboard (KB) 106 Display Device Control Unit (CRTC) 107 CRT 108 External Storage Device Control Unit (DKC) 109 External Storage Device 110 Pointing Device Control Unit (PDC) 111 Pointing device (PD) 112 System bus

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 コンピューターによって制御されるイメ
ージ表示装置に表示されるカラーイメージまたはグレー
スケールイメージを2値化するイメージ変換方法であっ
て、 前記イメージ表示装置に表示されているイメージの一部
分を選択する選択ステップと、 前記選択ステップで選択された部分の色情報を取得する
取得ステップと、 前記取得ステップで選択された部分の色情報と前記イメ
ージ表示装置に表示中のイメージの色情報とを比較する
比較ステップとを含むことを特徴とするイメージ変換方
法。
1. An image conversion method for binarizing a color image or a gray scale image displayed on an image display device controlled by a computer, wherein a part of the image displayed on the image display device is selected. A selecting step, an obtaining step of obtaining color information of the part selected in the selecting step, and comparing the color information of the part selected in the obtaining step with the color information of the image being displayed on the image display device. A comparing step.
【請求項2】 前記イメージの一部分を選択する選択ス
テップは、選択された部分の色情報と同一の色情報を持
つ連続した領域を抽出する処理を含むことを特徴とする
請求項1に記載のイメージ変換方法。
2. The method according to claim 1, wherein the selecting step of selecting a part of the image includes a process of extracting a continuous area having the same color information as the color information of the selected part. Image conversion method.
【請求項3】 前記イメージの色情報を比較する比較ス
テップは、ユーザーによる有効値を入力する処理を含
み、前記入力された有効値を加味した比較を行うことを
特徴とする請求項1または2に記載のイメージ変換方
法。
3. The method according to claim 1, wherein the comparing step of comparing the color information of the images includes a process of inputting a valid value by a user, and performing the comparison in consideration of the input valid value. The image conversion method described in 1.
【請求項4】 前記イメージの色情報を比較する比較ス
テップは、ユーザーによるRGB個別の有効値を入力す
る処理を含み、前記入力されたRGB個別の有効値を加
味した比較を行うことを特徴とする請求項1〜3の何れ
か1項に記載のイメージ変換方法。
4. The comparing step of comparing the color information of the image includes a process of inputting a valid value of each of RGB by a user, and performing the comparison in consideration of the input valid value of each of the RGB. The image conversion method according to claim 1.
【請求項5】 前記ユーザーによる有効値を入力する処
理は、マウスなどに代表されるポインティングデバイス
を用いて行われることを特徴とする請求項3または4に
記載のイメージ変換方法。
5. The image conversion method according to claim 3, wherein the process of inputting a valid value by the user is performed using a pointing device such as a mouse.
【請求項6】 前記ポインティングデバイスにより、前
記イメージ表示装置に表示されているカラーイメージま
たはグレースケールイメージ中のある特定な部分がユー
ザにより指定されたときに、前記指定された部分の色を
元に黒のイメージに変換し、その他の色を白に変換し
て、前記ユーザーが指定した部分のみを抽出したモノク
ロイメージを作成することを特徴とする請求項5に記載
のイメージ変換方法。
6. When a specific portion in a color image or a grayscale image displayed on the image display device is designated by a user by the pointing device, the color of the designated portion is determined based on a color of the designated portion. 6. The image conversion method according to claim 5, wherein the image is converted into a black image, and the other colors are converted into white, and a monochrome image is created by extracting only a portion designated by the user.
【請求項7】 コンピューターによって制御されるイメ
ージ表示装置に表示されるカラーイメージまたはグレー
スケールイメージを2値化するイメージ変換装置であっ
て、 前記イメージ表示装置に表示されているイメージの一部
分を選択する選択手段と、 前記選択手段で選択された部分の色情報を取得する取得
手段と、 前記取得手段で選択された部分の色情報と前記イメージ
表示装置に表示中のイメージの色情報とを比較する比較
手段とを含むことを特徴とするイメージ変換装置。
7. An image converter for binarizing a color image or a gray scale image displayed on an image display device controlled by a computer, wherein a part of the image displayed on the image display device is selected. Selecting means; acquiring means for acquiring color information of a portion selected by the selecting means; comparing color information of the part selected by the acquiring means with color information of an image being displayed on the image display device. An image conversion device, comprising: a comparison unit.
【請求項8】 前記イメージの一部分を選択する選択手
段は、選択された部分の色情報と同一の色情報を持つ連
続した領域を抽出する処理を行うことを特徴とする請求
項7に記載のイメージ変換装置。
8. The apparatus according to claim 7, wherein the selecting means for selecting a part of the image performs a process of extracting a continuous area having the same color information as the color information of the selected part. Image conversion device.
【請求項9】 前記イメージの色情報を比較する比較手
段は、ユーザーによる有効値の入力手段を有し、前記入
力手段から入力される有効値を加味した比較を行うこと
を特徴とする請求項7または6に記載のイメージ変換装
置。
9. The comparison means for comparing the color information of the image has a means for inputting a valid value by a user, and performs the comparison in consideration of a valid value input from the input means. 7. The image conversion device according to 7 or 6.
【請求項10】 前記イメージの色情報を比較する比較
手段は、ユーザーによるRGB個別の有効値を入力する
入力手段を有し、前記入力手段から入力されるRGB個
別の有効値を加味した比較を行うことを特徴とする請求
項7〜9の何れか1項に記載のイメージ変換装置。
10. The comparing means for comparing the color information of the image has input means for inputting the RGB effective values by the user, and performs the comparison in consideration of the RGB individual effective values input from the input means. The image conversion apparatus according to any one of claims 7 to 9, wherein the image conversion is performed.
【請求項11】 前記ユーザーによる有効値を入力する
入力手段は、マウスなどに代表されるポインティングデ
バイスであることを特徴とする請求項9または10に記
載のイメージ変換装置。
11. The image conversion apparatus according to claim 9, wherein the input means for inputting a valid value by the user is a pointing device represented by a mouse or the like.
【請求項12】 前記ポインティングデバイスにより、
カラーイメージまたはグレースケールイメージ中のある
特定な部分がユーザにより指定されたときに、前記指定
された部分の色を元に黒のイメージに変換し、その他の
色を白に変換して、前記ユーザーが指定した部分のみを
抽出したモノクロイメージを作成することを特徴とする
請求項11に記載のイメージ変換装置。
12. The pointing device,
When a specific portion in a color image or a grayscale image is designated by a user, the color of the designated portion is converted into a black image based on the color of the designated portion, and the other colors are converted into white. 12. The image conversion apparatus according to claim 11, wherein a monochrome image is created by extracting only a portion designated by the user.
【請求項13】 請求項1〜6の何れか1項に記載のイ
メージ変換方法の手順をコンピュータが読み出し可能に
格納したことを特徴とする記憶媒体。
13. A storage medium storing the procedure of the image conversion method according to claim 1 in a computer-readable manner.
JP9271219A 1997-10-03 1997-10-03 Method for converting image, its device and storage medium Pending JPH11112801A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9271219A JPH11112801A (en) 1997-10-03 1997-10-03 Method for converting image, its device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9271219A JPH11112801A (en) 1997-10-03 1997-10-03 Method for converting image, its device and storage medium

Publications (1)

Publication Number Publication Date
JPH11112801A true JPH11112801A (en) 1999-04-23

Family

ID=17497017

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9271219A Pending JPH11112801A (en) 1997-10-03 1997-10-03 Method for converting image, its device and storage medium

Country Status (1)

Country Link
JP (1) JPH11112801A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005027507A1 (en) * 2003-09-11 2005-03-24 Sharp Kabushiki Kaisha Image processing device, image formation device, and image processing method
CN102055873A (en) * 2009-11-02 2011-05-11 夏普株式会社 Image processing apparatus, image processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005027507A1 (en) * 2003-09-11 2005-03-24 Sharp Kabushiki Kaisha Image processing device, image formation device, and image processing method
CN102055873A (en) * 2009-11-02 2011-05-11 夏普株式会社 Image processing apparatus, image processing method
JP2011097538A (en) * 2009-11-02 2011-05-12 Sharp Corp Image processing apparatus, program, recording medium

Similar Documents

Publication Publication Date Title
CN110930296B (en) Image processing method, device, equipment and storage medium
CN112328348A (en) Application program multi-language support method and device, computer equipment and storage medium
US11798161B2 (en) Method and apparatus for determining mid-sagittal plane in magnetic resonance images
US8620056B2 (en) Method, an apparatus, a system and a computer program for transferring scan geometry between subsequent scans
DK2126720T3 (en) PROCEDURE FOR CONNECTING AN AMENDED DOCUMENT AND ORIGINAL DOCUMENT FOR COMPARISON AND PREPARATION OF DIFFERENCES
CN108229270B (en) Method, device and electronic equipment for identifying road from remote sensing image
JP3619143B2 (en) Image processing apparatus and method
JPH11112801A (en) Method for converting image, its device and storage medium
WO2021072873A1 (en) Grayscale image processing method, system, device, and computer-readable storage medium
JP3503744B2 (en) Print control program, medium storing print control program, print control device, and print control method
JP2845380B2 (en) Printing apparatus and control method thereof
JPH07182319A (en) Character processor
JP4464313B2 (en) Print control apparatus, print control method, and print control program
CN108538379A (en) The processing method of parameter and magnetic resonance parameters card interface in magnetic resonance parameters card
CN112200242B (en) Color classification method, computer equipment, terminal and medium for drawing Thangka image
JP7032714B2 (en) Map converter, learning device, map conversion method, learning method, and program
JPH1051636A (en) Printing controller, information processor, printer and printing information processing method
JPH117517A (en) Picture processor, picture area setting method and recording medium recording program for executing picture area setting
JP2000066658A (en) Image processor and recording medium
JPH11187231A (en) Image retrieving device and image retrieval method
JP2004265433A (en) Construction method of image in image storage device
JP3610143B2 (en) Print control apparatus and print control method
JP2003058826A (en) Character information extraction device and its method, program and storage medium
CN112233206A (en) Character image generation method, device, equipment and storage medium
Hance Computer vision and image processing software tool with application to color segmentation for skin cancer diagnosis