JP2703219B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2703219B2
JP2703219B2 JP61255732A JP25573286A JP2703219B2 JP 2703219 B2 JP2703219 B2 JP 2703219B2 JP 61255732 A JP61255732 A JP 61255732A JP 25573286 A JP25573286 A JP 25573286A JP 2703219 B2 JP2703219 B2 JP 2703219B2
Authority
JP
Japan
Prior art keywords
color
image
image data
valued
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP61255732A
Other languages
Japanese (ja)
Other versions
JPS63111582A (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.)
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 JP61255732A priority Critical patent/JP2703219B2/en
Publication of JPS63111582A publication Critical patent/JPS63111582A/en
Application granted granted Critical
Publication of JP2703219B2 publication Critical patent/JP2703219B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はカラー画像処理装置に関する。 [従来の技術] 従来よりカラー画像上の所望する矩形領域を色変換す
る技術がある。また、矩形以外の領域に編集処理を施す
技術として、複数の非矩形をメモリに記憶させ、そこか
ら所望する非矩形を選択して、選択した非矩形に従って
入力画像をマスクするものがある。 [発明が解決しようとする課題] 階調性を有する自然画像、例えば、海と空が描かれて
いる画像において、空の色を青から赤に変えて夕焼け空
にしたい場合、海と空の境界は曲線によって表わされて
いる可能性が高く、色変換する領域を矩形でしか指示で
きない場合は良好な処理結果を得ることができない。ま
た、前述した非矩形を選択する方法でも、形状が複雑な
非矩形領域を正確に指定することは困難である。 本発明は、上述した課題を解決するためになされたも
のであり、階調性を有する画像すなわち多値カラー画像
上の非矩形領域の色変換を可能にし、さらには、非矩形
領域を指定する際に正確な指定が可能なカラー画像処理
装置を提供することを目的とする。 [課題を解決するための手段] 上記の解題を解決するために、本発明にかかるカラー
画像処理装置は、処理対象のカラー画像を表す、複数の
色成分にそれぞれ対応する多値データを含む多値画像デ
ータを入力する入力手段と、前記入力手段により入力さ
れた多値画像データにより表される多値カラー画像を可
視化するために、前記多値画像データをカラー多値モニ
タへ出力する出力手段と、前記カラー多値モニタ上にお
いて画像の領域を指示するためのポインティングデバイ
スと、前記ポインティングデバイスにより指示された非
矩形領域を示す領域情報を記憶する第一の記憶手段と、
前記非矩形領域内を所望する色に変換するために変換後
の色を指定する指定手段と、前記指定手段により指定さ
れた変換後の色を示す色情報を記憶する第二の記憶手段
と、前記第一および第二の記憶手段に記憶された領域情
報および色情報に応じて、前記処理対象のカラー画像を
表わす多値画像データに含まれる前記非矩形領域内の画
像データを前記変換後の色に対応するカラー画像データ
に変換する処理手段とを有することを特徴とする。 [実施例] 以下、添付図面を参照して本発明の実施例を詳細に説
明する。 [画像処理装置の説明(第1図)] 第1図は本実施例の画像処理装置の構成図である。 図中、1は装置全体を制御するCPU、2はCPU1の制御
プログラムやデータ等を格納するROM、3はCPU1のワー
クエリアとして使用されるRAMである。4はマルチプレ
クサ付のA/D変換器で、CPU1よりの制御信号5に従つて
R(赤)、G(緑)、B(青)の信号を切換えて入力
し、それぞれ8ビツトのデジタル画像データに変換す
る。6はビデオバス、7はイメージメモリで、各色(RG
B)毎に3つのフレームメモリを備えている。 8は後述する制御メモリで、1つのフレームメモリと
同じメモリ空間を有しており、LUT9のアドレス信号とし
て4ビツトデータを出力する。10はイメージメモリ7お
よび制御メモリ8の読出しを制御するメモリ読出部で、
CPU1よりの制御信号に従つて動作を開始する。12はI/O
インタフエース部で、座標入力装置であるデジタイザや
各種コマンド等を入力するキーボード、画像データの格
納、読出等を行うデイスク装置等との入出力を行う。13
はD/A変換器で、ビデオバス6上の8ビツトのデジタル
画像データをアナログ信号に変換して、モニタデイスプ
レイ14に表示する。モニタデイスプレイ14は、例えば64
0×480ドツト表示可能なカラーデイスプレイである。 [LUTの説明(第2図)] 第2図は本実施例のLUT9のブロツク図で、第1図と共
通部分は同一記号で示している。 26〜28はそれぞれR,G,B用のLUTRAMで、アドレス信号
として8ビツトの各色の画像データと4ビツトの制御デ
ータ20、計12ビツトを入力している4KバイトのRAMであ
る。 いま、例えばメモリ読出部10の制御により、イメージ
メモリ(R)のイメージデータを読出されている時は、
メモリ読出部10よりイメージメモリ(R)に出力されて
いるアドレスデータがそのまま制御メモリ8のアドレス
として入力され、R用RAM26に12ビツトのアドレスが入
力される。またこの時、メモリ読出部10よりの制御信号
24によりR用RAM26のみが選択されている。こうして赤
色(R)の画像データがLUT9により変換されて出力され
る。尚、各テーブルRAM26〜28はCPU1によりバス29を介
して書き換え可能な構成となつている。 [動作説明(第3図〜第5図)] 第3図は本実施例の画像処理動作のフローチャート
で、プログラムはROM2に格納されている。 まずステツプS1で画像データを入力してイメージメモ
リ7に格納する。これはRGBのアナログ画像信号をA/D変
換器4によりデジタル化して入力しても良く、又はI/O
インタフエース部12を介してデイスク等の外部記憶装置
より入力しても良い。 ステツプS2でモニタデイスプレイ14に画像を表示し、
ステツプS3ではデジタイザやキーボード等により、モニ
タ画面上で画像の領域及び色の指定を行う。 第4図は画像データの具体例を示したもので、山々を
背景として車が表示されている。いま、例えば車の車体
部分30、窓部分31、タイヤ部分32をそれぞれデジタイザ
で指示し、それぞれの色を、例えば車体は赤、窓部分31
では山なみが透けて見える様に、タイヤ部分32は黒いと
いうように指定した場合を考える。 この指定に基づき、例えば第5図に示す如く、制御メ
モリ8の制御データ20のビツトとLUTRAM26〜28の内容と
を対応づけ、ステツプS4でRAM26〜28の内容を、ステツ
プS5で制御メモリ8の内容を書換える。 これは即ち、窓部分31に対応する制御メモリ8の領域
ではビツト3を“1"にする。LUTRAM26〜28の制御データ
20のビツト3が“1"となるアドレスには、アドレスとし
て入力される8ビツトのR,G,Bデータの1/2のデータを書
込む。また車体部分30に対応する制御メモリ8の領域の
ビツト2を“1"にし、LUTRAM226の該当するアドレスに
は、“255"を、他のLUTRAM27,28の該当するアドレスに
は“0"を書込む。また更にタイヤ部分32に対応する制御
メモリ8ではその領域のビツト1を“1"にし、LUTRAM26
〜28の該当するアドレスには(8ビツト画像データ(8
ビツトアドレス)+255)/2のデータを書込む。尚、制
御メモリ8の他の領域には“0"を、LUTRAM26〜28の他の
領域には8ビツト画像データの入力値に等しい値を順次
格納する。 以上の動作後ステツプS6に進み、メモリ読出部10にイ
メージメモリ7と制御メモリ8の読出しを指示すること
により、制御データ20のビツト1が“1"であるタイヤ部
分32は黒く、制御データ20のビツト2が“1"の車体部分
30は赤色となり、ビツト3が“1"の窓部分31は値の色が
白つぽくなつて窓越しに山が見える雰囲気になる。 以上説明した様に、イメージメモリの画像データを変
更することなく表示画像を種々に変更できる。また必要
ならば、ビデオバス6を介してイメージメモリ7に変換
した画像データ書き込むことも可能である。 また画像データの変更は本実施例に限定されるもので
はなく、LUTRAMを書き換えることにより、例えばγ変
換、ネガ/ポジ変換、多値化等の画像処理が実行可能と
なる。 以上説明した様に本実施例によれば、LUTのアドレス
となる制御データとLUTの内容を書換えることにより、
複数種類の画像処理を実行できるという効果がある。 [発明の効果] 以上説明したように、本発明によれば、多値カラー画
像上の色変換を行う非矩形領域を、その多値カラー画像
が表示されたカラー多値モニタ上で指定することができ
るので、多値カラー画像上の非矩形領域の色変換を可能
にし、さらには、非矩形領域を正確かつ容易に指定する
ことが可能になる。
Description: TECHNICAL FIELD The present invention relates to a color image processing apparatus. [Prior Art] Conventionally, there is a technique for performing color conversion of a desired rectangular area on a color image. Further, as a technique for performing an editing process on an area other than a rectangle, there is a technique of storing a plurality of non-rectangles in a memory, selecting a desired non-rectangle from the memory, and masking an input image according to the selected non-rectangle. [Problem to be Solved by the Invention] In a natural image having a gradation, for example, in an image in which the sea and the sky are drawn, when the color of the sky is changed from blue to red to make the sunset sky, the sea and the sky It is highly probable that the boundary is represented by a curve, and a good processing result cannot be obtained if the area for color conversion can be indicated only by a rectangle. Also, it is difficult to accurately specify a non-rectangular area having a complicated shape even by the above-described method of selecting a non-rectangular shape. The present invention has been made to solve the above-described problem, and enables color conversion of a non-rectangular area on an image having gradation, that is, a multi-valued color image, and further specifies a non-rectangular area. It is an object of the present invention to provide a color image processing device capable of accurately specifying a color image processing device. [Means for Solving the Problems] In order to solve the above-described problem, the color image processing apparatus according to the present invention includes a multi-valued image representing a color image to be processed and including multi-valued data respectively corresponding to a plurality of color components. Input means for inputting value image data, and output means for outputting the multi-value image data to a color multi-value monitor in order to visualize a multi-value color image represented by the multi-value image data input by the input means A pointing device for indicating a region of an image on the color multi-value monitor, and first storage means for storing region information indicating a non-rectangular region specified by the pointing device,
Specifying means for specifying a color after conversion in order to convert the non-rectangular area into a desired color, and second storage means for storing color information indicating the converted color specified by the specifying means, According to the area information and the color information stored in the first and second storage means, the image data in the non-rectangular area included in the multi-valued image data representing the color image to be processed after the conversion Processing means for converting the image data into color image data corresponding to a color. Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings. [Description of Image Processing Apparatus (FIG. 1)] FIG. 1 is a configuration diagram of the image processing apparatus of the present embodiment. In FIG. 1, reference numeral 1 denotes a CPU for controlling the entire apparatus, 2 denotes a ROM for storing a control program and data of the CPU 1, and 3 denotes a RAM used as a work area of the CPU 1. Reference numeral 4 denotes an A / D converter with a multiplexer, which switches and inputs R (red), G (green), and B (blue) signals in accordance with a control signal 5 from the CPU 1, and outputs 8-bit digital image data. Convert to 6 is a video bus, 7 is an image memory, and each color (RG
B) Each has three frame memories. Reference numeral 8 denotes a control memory described later, which has the same memory space as one frame memory, and outputs 4-bit data as an address signal of the LUT 9. Reference numeral 10 denotes a memory reading unit that controls reading of the image memory 7 and the control memory 8.
The operation starts according to the control signal from CPU1. 12 is I / O
The interface unit performs input / output with a digitizer, which is a coordinate input device, a keyboard for inputting various commands, and a disk device for storing and reading image data. 13
A D / A converter converts 8-bit digital image data on the video bus 6 into an analog signal and displays it on the monitor display 14. The monitor display 14 is, for example, 64
This is a color display that can display 0x480 dots. [Explanation of LUT (FIG. 2)] FIG. 2 is a block diagram of the LUT 9 of this embodiment, and the same parts as in FIG. 1 are indicated by the same symbols. Reference numerals 26 to 28 denote RUTRAMs for R, G and B, each of which is a 4-Kbyte RAM for inputting image data of each color of 8 bits and control data 20 of 4 bits, that is, 12 bits in total, as address signals. Now, for example, when the image data of the image memory (R) is being read under the control of the memory reading unit 10,
The address data output from the memory reading unit 10 to the image memory (R) is directly input as an address of the control memory 8, and a 12-bit address is input to the R RAM 26. At this time, the control signal from the memory reading unit 10
24, only the R RAM 26 is selected. Thus, the red (R) image data is converted by the LUT 9 and output. Each of the table RAMs 26 to 28 is configured to be rewritable by the CPU 1 via the bus 29. [Explanation of Operation (FIGS. 3 to 5)] FIG. 3 is a flowchart of the image processing operation of the present embodiment, and the program is stored in the ROM 2. First, in step S1, image data is input and stored in the image memory 7. This may be performed by converting the RGB analog image signal into a digital signal by the A / D converter 4 and inputting it.
The data may be input from an external storage device such as a disk via the interface unit 12. Display the image on the monitor display 14 in step S2,
In step S3, an image area and a color are specified on the monitor screen by a digitizer, a keyboard, or the like. FIG. 4 shows a specific example of image data, in which a car is displayed with mountains as a background. Now, for example, the car body part 30, the window part 31, and the tire part 32 of the car are respectively indicated by the digitizer, and the respective colors, for example, the car body is red, the window part 31
Now, consider a case where the tire portion 32 is specified to be black so that the mountain can be seen through. Based on this designation, as shown in FIG. 5, for example, the bits of the control data 20 of the control memory 8 are associated with the contents of the LUTRAMs 26 to 28, and the contents of the RAMs 26 to 28 are stored in step S4, and the contents of the control memory 8 are stored in step S5. Rewrite the contents. This means that bit 3 is set to "1" in the area of the control memory 8 corresponding to the window portion 31. LUTRAM26 ~ 28 control data
At the address where the 20 bit 3 becomes "1", 1/2 of the 8-bit R, G, B data input as the address is written. The bit 2 of the area of the control memory 8 corresponding to the vehicle body part 30 is set to "1", "255" is written to the corresponding address of the LUTRAM 226, and "0" is written to the corresponding address of the other LUTRAMs 27 and 28. Put in. Further, in the control memory 8 corresponding to the tire portion 32, the bit 1 of that area is set to "1", and the LUTRAM 26
The addresses corresponding to (.about.28) are (8-bit image data (8
Write (bit address) + 255) / 2 data. In the other areas of the control memory 8, "0" is stored, and in the other areas of the LUTRAMs 26 to 28, values equal to the input values of the 8-bit image data are sequentially stored. After the above operation, the process proceeds to step S6, in which the memory reading unit 10 is instructed to read the image memory 7 and the control memory 8, so that the tire portion 32 where the bit 1 of the control data 20 is "1" is black and the control data 20 is black. Bit 2 of the body is "1"
30 is red, and the window portion 31 where bit 3 is “1” has an atmosphere in which the value color becomes whitish and a mountain can be seen through the window. As described above, the display image can be variously changed without changing the image data in the image memory. If necessary, the converted image data can be written to the image memory 7 via the video bus 6. Further, the change of the image data is not limited to the present embodiment. By rewriting the LUTRAM, for example, image processing such as γ conversion, negative / positive conversion, and multi-value conversion can be executed. As described above, according to the present embodiment, by rewriting the control data serving as the address of the LUT and the contents of the LUT,
There is an effect that a plurality of types of image processing can be executed. [Effects of the Invention] As described above, according to the present invention, a non-rectangular area for performing color conversion on a multi-valued color image is specified on a color multi-value monitor on which the multi-valued color image is displayed. Therefore, the color conversion of the non-rectangular area on the multi-valued color image can be performed, and the non-rectangular area can be specified accurately and easily.

【図面の簡単な説明】 第1図は本実施例の画像処理装置の構成図、 第2図は本実施例のルツクアツプテーブルのブロツク
図、 第3図は本実施例の画像処理のフローチヤート、 第4図は画像データの具体例を示す図、 第5図は制御データとLUTRAMの内容との関係を示す図で
ある。 図中、1……CPU、2……ROM、3……RAM、4……A/D変
換器、7……イメージメモリ、8……制御メモリ、9…
…ルツクアツプテーブル(LUT)、10……メモリ読出
部、12……I/Oインタフエース部、13……D/A変換器、14
……モニタデイスプレイ、26〜28……LUTRAM、30……車
体部分、31……窓部分、32……タイヤ部分である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of an image processing apparatus of the present embodiment, FIG. 2 is a block diagram of a lookup table of the present embodiment, and FIG. 3 is a flowchart of image processing of the present embodiment. FIG. 4 is a diagram showing a specific example of image data, and FIG. 5 is a diagram showing the relationship between control data and the contents of LUTRAM. In the drawing, 1 ... CPU, 2 ... ROM, 3 ... RAM, 4 ... A / D converter, 7 ... Image memory, 8 ... Control memory, 9 ...
... Lookup table (LUT), 10 ... Memory readout unit, 12 ... I / O interface unit, 13 ... D / A converter, 14
... monitor display, 26 to 28 ... LUTRAM, 30 ... body part, 31 ... window part, 32 ... tire part.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭59−67587(JP,A) 特開 昭61−48890(JP,A) 特開 昭60−225192(JP,A) 特開 昭59−211179(JP,A) 特開 昭59−116784(JP,A) 特開 昭56−25785(JP,A) 特開 昭61−134796(JP,A)   ────────────────────────────────────────────────── ─── Continuation of front page    (56) References JP-A-59-67587 (JP, A)                 JP-A-61-48890 (JP, A)                 JP-A-60-225192 (JP, A)                 JP-A-59-211179 (JP, A)                 JP-A-59-116784 (JP, A)                 JP-A-56-25785 (JP, A)                 JP-A-61-134796 (JP, A)

Claims (1)

(57)【特許請求の範囲】 1.処理対象のカラー画像を表す、複数の色成分にそれ
ぞれ対応する多値データを含む多値画像データを入力す
る入力手段と、 前記入力手段により入力された多値画像データが表す多
値カラー画像を可視化するために、前記多値画像データ
をカラー多値モニタへ出力する出力手段と、 前記カラー多値モニタ上において画像の領域を指示する
ためのポインティングデバイスと、 前記ポインティングデバイスにより指示された非矩形領
域を示す領域情報を記憶する第一の記憶手段と、 前記非矩形領域内を所望する色に変換するために変換後
の色を指定する指定手段と、 前記指定手段により指定された変換後の色を示す色情報
を記憶する第二の記憶手段と、 前記第一および第二の記憶手段に記憶された領域情報お
よび色情報に応じて、前記処理対象のカラー画像を表わ
す多値画像データに含まれる前記非矩形領域内の画像デ
ータを前記変換後の色に対応するカラー画像データに変
換する処理手段とを有することを特徴とするカラー画像
処理装置。
(57) [Claims] Input means for inputting multi-valued image data including multi-valued data respectively corresponding to a plurality of color components, representing a color image to be processed, and a multi-valued color image represented by the multi-valued image data input by the input means. Output means for outputting the multi-valued image data to a color multi-valued monitor for visualization; a pointing device for specifying an image area on the color multi-valued monitor; and a non-rectangular pointed by the pointing device First storage means for storing area information indicating an area; specifying means for specifying a color after conversion in order to convert the inside of the non-rectangular area into a desired color; and after conversion specified by the specifying means. A second storage unit that stores color information indicating a color; and the processing target according to the area information and the color information stored in the first and second storage units. Color image processing apparatus characterized by having processing means for converting the image data of the non-rectangular area included in the multivalued image data into color image data corresponding to the color of the converted representing a color image.
JP61255732A 1986-10-29 1986-10-29 Image processing device Expired - Fee Related JP2703219B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61255732A JP2703219B2 (en) 1986-10-29 1986-10-29 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61255732A JP2703219B2 (en) 1986-10-29 1986-10-29 Image processing device

Publications (2)

Publication Number Publication Date
JPS63111582A JPS63111582A (en) 1988-05-16
JP2703219B2 true JP2703219B2 (en) 1998-01-26

Family

ID=17282861

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61255732A Expired - Fee Related JP2703219B2 (en) 1986-10-29 1986-10-29 Image processing device

Country Status (1)

Country Link
JP (1) JP2703219B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56169965A (en) * 1980-06-02 1981-12-26 Ricoh Co Ltd Data conversion circuit
JPS6081686A (en) * 1983-10-11 1985-05-09 Hitachi Ltd Specifying circuit of area
JPS6141274A (en) * 1984-08-02 1986-02-27 Matsushita Electric Ind Co Ltd Digital gradation converter
JPS61115183A (en) * 1984-11-09 1986-06-02 Toshiba Corp Density gradation converting system in dark and light image processing

Also Published As

Publication number Publication date
JPS63111582A (en) 1988-05-16

Similar Documents

Publication Publication Date Title
US4639771A (en) Image processing system
US5124688A (en) Method and apparatus for converting digital YUV video signals to RGB video signals
US4183046A (en) Electronic apparatus for converting digital image or graphics data to color video display formats and method therefor
JPH0222957B2 (en)
US5254977A (en) Color display
JPS6255137B2 (en)
JP2578170B2 (en) Image display device
JPS6042943B2 (en) display device
JP2703219B2 (en) Image processing device
EP0403081A1 (en) Colour display
JP2635309B2 (en) Image processing device
JPH1188712A (en) Image processing method and image processor
JP2878477B2 (en) Image processing device
JPS61223894A (en) Contrast conversion control system
JPH0728444A (en) Method for revising tone of image data
JP3106496B2 (en) Image processing apparatus and method
JP2775748B2 (en) Method and apparatus for expressing limited color of color image
JPH11187419A (en) Unit and method for signal processing
JP2674755B2 (en) Color drawing device
JP2650988B2 (en) Image display device
JPS62222370A (en) Image processor
JPS62117080A (en) Picture processing device
JPH0467672B2 (en)
JPH0219459B2 (en)
JPH08328539A (en) Image display method and device

Legal Events

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