JPH1051630A - Image processor - Google Patents

Image processor

Info

Publication number
JPH1051630A
JPH1051630A JP8219126A JP21912696A JPH1051630A JP H1051630 A JPH1051630 A JP H1051630A JP 8219126 A JP8219126 A JP 8219126A JP 21912696 A JP21912696 A JP 21912696A JP H1051630 A JPH1051630 A JP H1051630A
Authority
JP
Japan
Prior art keywords
image
luminance
pattern
memory
predetermined
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
JP8219126A
Other languages
Japanese (ja)
Inventor
Kakuya Komuro
覚哉 小室
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP8219126A priority Critical patent/JPH1051630A/en
Publication of JPH1051630A publication Critical patent/JPH1051630A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve workability by analyzing image data sequentially for each specific unit thereby calculating the luminance, discriminating whether or not the luminance is a specific luminance and processing the data. SOLUTION: A CPU 1 reads an RGB value of a pixel whose address is designated by a value of an image position pointer 2-3 and calculates the luminance and compares the calculated luminance with a reference value in a setting value memory 2-4 so as to check a pixel having a high luminance more than the reference value. The value of the image position pointer 2-3 over the reference value is set to a work memory 2-5, stored in a luminance pattern memory 2-7, in which a pattern of a kind selected and designated is overwritten on the pixels. The similar operation is repeated for each pixel and the luminance pattern is synthesized for each dot of a high luminance set parts to easily obtain an image with reality thereby improving the workability.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、パーソナルコン
ピュータやワードプロセッサ等において、画像データを
加工する画像処理装置に関する。
The present invention relates to an image processing apparatus for processing image data in a personal computer, a word processor, or the like.

【0002】[0002]

【従来の技術】従来、画像処理装置においては、イメー
ジセンサ等から取り込んだ画像データを手作業によって
加工し、使用者の好みに合った画像を得るようにしてい
る。この場合、画像データの加工部分をカーソル指定す
ると共に、予め用意されている各種の画像パターンの中
から所望する画像パターンを選択することにより、画像
パターンの付加あるいは置き換えを行ったり、あるいは
指定画像部分を消去したり、画像強調を施す等の手法に
よって画像を加工するようにしていた。
2. Description of the Related Art Conventionally, in an image processing apparatus, image data fetched from an image sensor or the like is manually processed to obtain an image suitable for a user's preference. In this case, by adding a cursor to the processed part of the image data and selecting a desired image pattern from various prepared image patterns, an image pattern is added or replaced, or The image is processed by a technique such as erasing or emphasizing the image.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うにして画像を加工する方法では、加工対象をカーソル
指定する等、全て手作業を前提とするため、作業性が悪
く、間違いも多かった。この発明の課題は、画像データ
内のどの部分を加工するかの加工対象を予め手作業によ
って指定しておかなくても、所望する部分の画像を自動
的に加工できるようにすることである。
However, in the method of processing an image in this way, since all operations are premised on, for example, designating a processing target with a cursor, the workability is poor and there are many mistakes. SUMMARY OF THE INVENTION It is an object of the present invention to automatically process an image of a desired portion without manually specifying a processing target to be processed in the image data in advance.

【0004】[0004]

【課題を解決するための手段】この発明の手段は次の通
りである。 (1)、輝度算出手段は画像データを所定単位毎に順次
解析してその輝度を算出する。 (2)、判別手段はこの輝度算出手段によって算出され
た輝度が所定輝度であるか否かを判別する。 (3)、画像加工手段はこの判別手段によって所定輝度
であることが判別された当該画像部分を基準として、少
なくとも画像データの一部を予め決められている画像加
工処理に基づいて加工する。なお、前記画像加工手段
は、所定輝度であることが判別された当該画像部分を所
定の画像パターンに置き換えるようにしてもよい。ま
た、前記画像加工手段は、所定輝度であることが判別さ
れた当該画像部分に、所定の画像パターンを付加するよ
うにしてもよい。この場合、前記画像加工手段は、所定
輝度であることが判別された当該画像部分に、所定の画
像パターンを付加する際に、当該画像部分から放射状に
延びる輝きパターンを付加するようにしてもよい。ま
た、前記画像加工手段は、所定輝度であることが判別さ
れた当該画像部分に、所定の画像パターンを付加する際
に、当該画像部分の色に基づいて前記画像パターンにグ
ラデーションを施すようにしてもよい。更に、前記画像
加工手段は、所定輝度であることが判別された当該画像
部分の色を変更するようにしてもよい。いま、画像デー
タの加工が指示された際に、輝度算出手段は画像データ
を所定単位毎に順次解析してその輝度を算出すると共
に、判別手段はこの輝度算出手段によって算出された輝
度が所定輝度であるか否かを判別する。ここで、所定輝
度であることが判別された場合に、画像加工手段は当該
画像部分を基準として画像データの一部を加工する。し
たがって、画像データ内のどの部分を加工するかの加工
対象を予め手作業によって指定しておかなくても、所望
する部分の画像を自動的に加工することができる。
The means of the present invention are as follows. (1) The brightness calculating means sequentially analyzes the image data for each predetermined unit and calculates the brightness. (2) The determining means determines whether or not the luminance calculated by the luminance calculating means is a predetermined luminance. (3) The image processing means processes at least a part of the image data based on a predetermined image processing based on the image portion determined to have the predetermined luminance by the determination means. The image processing means may replace the image portion determined to have the predetermined luminance with a predetermined image pattern. Further, the image processing means may add a predetermined image pattern to the image portion determined to have the predetermined luminance. In this case, when adding the predetermined image pattern to the image portion determined to have the predetermined luminance, the image processing means may add a radiant pattern extending radially from the image portion. . Further, the image processing means may apply a gradation to the image pattern based on the color of the image portion when adding a predetermined image pattern to the image portion determined to have the predetermined luminance. Is also good. Further, the image processing means may change the color of the image portion determined to have the predetermined luminance. Now, when processing of the image data is instructed, the luminance calculating means sequentially analyzes the image data for each predetermined unit to calculate the luminance, and the determining means determines that the luminance calculated by the luminance calculating means is the predetermined luminance. Is determined. Here, when it is determined that the brightness is the predetermined brightness, the image processing means processes a part of the image data based on the image portion. Therefore, it is possible to automatically process an image of a desired portion without having to manually specify in advance which processing target in the image data is to be processed.

【0005】[0005]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(第1実施形態)以下、図1〜図6を参照してこの発明
の第1実施形態を説明する。図1はカラー画像処理機能
を備えたワードプロセッサのブロック構成図である。C
PU1はRAM2内のプログラムメモリ2−1に格納さ
れている各種プログラムにしたがってこのワードプロセ
ッサの全体動作を制御する中央演算処理装置である。可
搬型記憶媒体3は着脱自在に装着可能なフロッピーディ
スク、光ディスク、RAMカード等の磁気的・光学的記
憶媒体、半導体メモリによって構成され、プログラムや
データが格納されている。この可搬型記憶媒体3がワー
ドプロセッサ本体に装着されている状態において、可搬
型記憶媒体3内のプログラムやデータは、記憶媒体制御
部4を介してCPU1に取り込まれ、記憶装置5に格納
される。記憶装置5はROM、ハードディスク、光ディ
スク等によって構成され、オペレーティングシステムや
各種のアプリケーションプログラム、データファイル、
文字フォントデータ等を記憶するもので、CPU1は通
信回線等を介して他の機器からプログラムやデータが送
信されて来た際には、それを取り込んで記憶装置5に格
納する。また、CPU1はその入出力周辺デバイスであ
る入力部6、画像入力装置7、表示部8、印字部9に対
してその入出力動作を制御する。入力部6は各種のデー
タやコマンドを入力するキー入力装置およびマウス等の
ポインティングデバイスを有している。画像入力装置7
はデジタルカメラやイメージセンサで、画像入力装置7
から画像データが入力されると、CPU1はこれを取り
込んで表示部8に表示出力させたり、RAM2内の画像
メモリ2−2に格納する。
(First Embodiment) Hereinafter, a first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram of a word processor having a color image processing function. C
PU1 is a central processing unit that controls the overall operation of the word processor according to various programs stored in the program memory 2-1 in the RAM2. The portable storage medium 3 is constituted by a magnetic / optical storage medium such as a floppy disk, an optical disk, a RAM card or the like, which is detachably mountable, and a semiconductor memory, and stores programs and data. When the portable storage medium 3 is attached to the main body of the word processor, programs and data in the portable storage medium 3 are taken into the CPU 1 via the storage medium control unit 4 and stored in the storage device 5. The storage device 5 includes a ROM, a hard disk, an optical disk, and the like, and includes an operating system, various application programs, data files,
The CPU 1 stores character font data and the like. When a program or data is transmitted from another device via a communication line or the like, the CPU 1 captures the program or data and stores it in the storage device 5. The CPU 1 controls the input / output operations of the input unit 6, the image input device 7, the display unit 8, and the printing unit 9 which are the input / output peripheral devices. The input unit 6 has a key input device for inputting various data and commands, and a pointing device such as a mouse. Image input device 7
Is a digital camera or an image sensor, and an image input device 7
When the CPU 1 receives image data, the CPU 1 captures the image data and causes the display unit 8 to display and output the image data, or stores the image data in the image memory 2-2 in the RAM 2.

【0006】RAM2はプログラムメモリ2−1の他
に、画像メモリ2−2、画像位置ポインタ2−3、設定
値メモリ2−4、ワークメモリ2−5、サイズ判定メモ
リ2−6、輝きパターンメモリ2−7を有する構成で、
画像メモリ2−2は画像入力装置7あるいは可搬型記憶
媒体3等から外部供給されたRGBカラー画像データを
記憶するイメージメモリである。画像位置ポインタ2−
3はこの画像メモリ2−2内の画像データを1画素毎に
順次指定するもので、CPU1はこの画像位置ポインタ
2−3の値で示される位置の画素をアクセスしてそのR
GB値から輝度を求め、それが基準値以上かを判断す
る。設定値メモリ2−4はこの場合の基準値を記憶する
メモリで、CPU1は輝度が基準値以上であれば、その
ときの画像位置ポインタ2−3の値をワークメモリ2−
5にセットする。ワークメモリ2−5は画像位置ポイン
タ2−3の値を画素の位置を指定する座標値として保持
記憶するもので、基準値以上の輝度を持つ各画素の座標
列データに基づいてCPU1は、そのかたまり部分、つ
まり基準値以上の輝度を持つ画素が集合している高輝度
集合部分を検出すると共に、この高輝度集合部分の大き
さを検出する。ここで、サイズ判定メモリ2−6は高輝
度集合部がある範囲内の大きさにあるかを判定するため
のデータを記憶するもので、その範囲を示す最小サイズ
と最大サイズとを記憶する。
The RAM 2 includes an image memory 2-2, an image position pointer 2-3, a set value memory 2-4, a work memory 2-5, a size determination memory 2-6, a brightness pattern memory, in addition to the program memory 2-1. 2-7.
The image memory 2-2 is an image memory for storing RGB color image data externally supplied from the image input device 7, the portable storage medium 3, or the like. Image position pointer 2-
Numeral 3 designates the image data in the image memory 2-2 sequentially for each pixel, and the CPU 1 accesses the pixel at the position indicated by the value of the image position pointer 2-3 to access its R.
The luminance is obtained from the GB value, and it is determined whether the luminance is equal to or larger than the reference value. The set value memory 2-4 is a memory for storing a reference value in this case. If the luminance is equal to or higher than the reference value, the CPU 1 stores the value of the image position pointer 2-3 at that time in the work memory 2--4.
Set to 5. The work memory 2-5 holds and stores the value of the image position pointer 2-3 as a coordinate value designating the position of a pixel. Based on the coordinate sequence data of each pixel having a luminance equal to or higher than the reference value, the CPU 1 A cluster portion, that is, a high-luminance set portion in which pixels having a luminance equal to or higher than the reference value are detected, and the size of the high-luminance set portion is detected. Here, the size determination memory 2-6 stores data for determining whether or not the high-intensity aggregation portion is within a certain range, and stores a minimum size and a maximum size indicating the range.

【0007】輝きパターンメモリ2−7は図2に示すよ
うな形状の輝きパターンを記憶するイメージメモリで、
輝きパターンとしては4本クロスパターンと、6本クロ
スパターンを有し、そのいずれかが入力部6から選択的
に指定されると、CPU1は指定された輝きパターンを
読み出す。ここで、輝きパターンはその中心点から放射
状に延びる複数本(4本あるいは6本)の直線(破線)
によって構成されたもので、白系統の色が付加されてい
る。この輝きパターンを画像データ内の高輝度集合部分
に多数配置して合成することにより、発光物の輝きを疑
似的に表現する。ワーク位置ポインタ2−8は高輝度集
合部分がある大きさの範囲内にあることが判定された際
に、この高輝度集合部分に対応するワークメモリ2−5
内の各位置座標を指定するもので、CPU1はこのワー
ク位置ポインタ2−8の値で示される各位置にある画素
を順次指定し、各画素に輝きパターンの中心を合わせて
画像データに輝きパターンを合成する。なお、パターン
展開メモリ2−9については後述する。
The shine pattern memory 2-7 is an image memory for storing a shine pattern having a shape as shown in FIG.
The shine pattern has four cross patterns and six cross patterns. When one of the shine patterns is selectively designated from the input unit 6, the CPU 1 reads the designated shine pattern. Here, the shine pattern is a plurality of (four or six) straight lines (broken lines) extending radially from the center point.
And a white color is added. By arranging and combining a large number of such shine patterns in the high-brightness aggregation portion in the image data, the shine of the light-emitting object is represented in a pseudo manner. When the work position pointer 2-8 determines that the high-brightness set portion is within a certain size range, the work memory 2-5 corresponding to the high-brightness set portion
The CPU 1 sequentially designates the pixels at each position indicated by the value of the work position pointer 2-8, and adjusts the center of the shining pattern to each pixel to add the shining pattern to the image data. Are synthesized. The pattern development memory 2-9 will be described later.

【0008】次に、画像加工処理を図3に示すフローチ
ャートにしたがって説明する。なお、図3のフローチャ
ートに記述されている各機能を実現するためのプログラ
ムは、CPU1が読み取り可能なプログラムコードの形
態で可搬型記憶媒体3や記憶装置5に記憶されており、
その内容がRAM2内のプログラムメモリ2−1にロー
ドされている。図3は画像メモリ2−2内の画像データ
に輝きパターンメモリ2−7の内容を合成すべきことが
入力部6から入力指示された際に実行開始される画像加
工処理を示したフローチャートである。いま、画像入力
装置7であるデジタルカメラによって撮影した1枚分の
カラー画像(例えば、夜景)が加工対象として画像メモ
リ2−2に格納されているものとする。
Next, the image processing will be described with reference to the flowchart shown in FIG. A program for realizing each function described in the flowchart of FIG. 3 is stored in the portable storage medium 3 or the storage device 5 in the form of a program code readable by the CPU 1,
The contents are loaded into the program memory 2-1 in the RAM 2. FIG. 3 is a flowchart showing the image processing which is started when the input unit 6 gives an instruction to synthesize the content of the shining pattern memory 2-7 with the image data in the image memory 2-2. . Now, it is assumed that one color image (for example, a night scene) captured by a digital camera as the image input device 7 is stored in the image memory 2-2 as a processing target.

【0009】先ず、輝きパターンメモリ2−7に格納さ
れている2種類の輝きパターンのうち、使用者の好みに
合ったパターンを選択的に指定しておく(ステップA
1)。ここで、CPU1は画像位置ポインタ2−3に初
期値をセットして画像メモリ2−2内の先頭画素を指定
するイニシャライズ処理を行う(ステップA2)。そし
て、画像位置ポインタ2−3内の全画素を指定し終った
かをチェックするが(ステップA3)、いま、先頭画素
を指定した場合であるからステップA4に進み、画像位
置ポインタ2−3の値でアドレス指定される画素のRG
B値を読み出してその輝度を算出する。ここで、一般に
カラー画像はRGBの各色を8ビットで構成し、256
階調の明るさを持ち、その組み合わせ16クロオ色を表
現するようにしているが、輝度はRGB値によってそれ
ぞれ相違し、赤は青の3倍明るく、緑は赤の2倍近い明
るさを持っているために次式にしたがって輝度を求める
ようにしている。「輝度=1/8B+3/8R+1/2G」この
ようにして輝度が算出されると、CPU1はこの輝度と
設定値メモリ2−4内の基準値とを比較し、基準値以上
の高輝度を持った画素であるかをチェックする(ステッ
プA5)。ここで、基準値以上であることを条件にCP
U1は、画像位置ポインタ2−3の値をその画像位置と
してワークメモリ2−5にセットする(ステップA
6)。そして、画像位置ポインタ2−3の内容に「1」
を加算してその値を更新したのち(ステップA7)、全
画素を指定し終るまで(ステップA3)、上述の輝度算
出処理を繰り返し(ステップA4)、算出した輝度が基
準値以上であれば、それを条件にその画像位置を順次、
ワークメモリ2−5に格納してゆく(ステップA6)。
First, of the two types of shine patterns stored in the shine pattern memory 2-7, a pattern suitable for the user's preference is selectively designated (step A).
1). Here, the CPU 1 sets an initial value in the image position pointer 2-3 and performs an initialization process for designating a head pixel in the image memory 2-2 (step A2). Then, it is checked whether or not all the pixels in the image position pointer 2-3 have been specified (step A3). Since the head pixel has been specified, the process proceeds to step A4, and the value of the image position pointer 2-3 is determined. RG of the pixel addressed by
The B value is read and its luminance is calculated. Here, in general, a color image is composed of 8 bits for each color of RGB, and 256 bits.
It has the brightness of gradation and the combination of 16 colors is expressed, but the brightness differs depending on the RGB value, red is three times brighter than blue, and green is nearly twice as bright as red. Therefore, the luminance is calculated according to the following equation. "Brightness = 1 / 8B + 3 / 8R + 1 / 2G" When the brightness is calculated in this way, the CPU 1 compares this brightness with the reference value in the set value memory 2-4, and determines that the brightness is higher than the reference value. It is checked whether or not the pixel is a defective pixel (step A5). Here, on condition that it is equal to or more than the reference value, CP
U1 sets the value of the image position pointer 2-3 as the image position in the work memory 2-5 (step A).
6). Then, "1" is added to the content of the image position pointer 2-3.
Is added to update the value (step A7), and the above-described luminance calculation process is repeated (step A4) until all the pixels have been designated (step A3). On that condition, the image position is sequentially
The data is stored in the work memory 2-5 (step A6).

【0010】このようにして全画素分の処理が終ると、
CPU1はワークメモリ2−5の内容をその先頭からア
クセスし、高輝度集合部分(かたまり部分)があるかを
チェックする(ステップA8)。この場合、ワークメモ
リ2−5には高輝度画素の位置座標が格納されており、
その位置座標の値に基づいて画素が横方向および縦方向
に連続しているかをチェックすることによって高輝度集
合部分の有無をチェックする。ここで、高輝度集合部分
が1つも存在していなければ、この時点で、画像加工処
理は終了し、このフローから抜けるが、高輝度集合部分
が存在していれば、ステップA10に進み、サイズ判定
メモリ2−6の内容を読み出して高輝度集合部分の大き
さを判定する。すなわち、サイズ判定メモリ2−6には
その範囲を示す最小サイズと最大サイズが格納されてお
り、高輝度集合部がこの範囲内にあるかをチェックす
る。ここで、高輝度集合部分が小さすぎたり、大きすぎ
た場合には、当該高輝度集合部分を無効としてステップ
A8に戻り、次の高輝度集合部分を検索する。
When the processing for all pixels is completed in this way,
The CPU 1 accesses the contents of the work memory 2-5 from the beginning, and checks whether or not there is a high-luminance set portion (lump portion) (step A8). In this case, the work memory 2-5 stores the position coordinates of the high luminance pixel,
Based on the value of the position coordinates, it is checked whether or not the pixel is continuous in the horizontal direction and the vertical direction, thereby checking whether or not there is a high-luminance set portion. Here, if there is no high-luminance set portion, the image processing is terminated at this point and the process exits from this flow. If there is a high-luminance set portion, the process proceeds to step A10, and the size is reduced. The contents of the judgment memory 2-6 are read to judge the size of the high-luminance set portion. In other words, the minimum size and the maximum size indicating the range are stored in the size determination memory 2-6, and it is checked whether or not the high-luminance set is within this range. Here, if the high-brightness set is too small or too large, the high-brightness set is invalidated and the process returns to step A8 to search for the next high-brightness set.

【0011】いま、所定サイズの高輝度集合部分が検索
されると(ステップA10)、CPU1は当該高輝度集
合部分を構成する先頭の位置座標をワークメモリ2−5
から読み出してワーク位置ポインタ2−8にセットして
おくと共に(ステップA11)、上述のステップA1で
選択指定された種類の輝きパターンをそのパターンメモ
リ2−7から読み出しておく(ステップA12)。そし
て、ワーク位置ポインタ2−8の値で画像メモリ2−2
をアクセスし、その値で示される位置の画素を指定する
と共に(ステップA13)、この指定画素位置に、ステ
ップA12で読み出した輝きパターンの中心を配置して
画像データ上に輝きパターンを上書き合成する(ステッ
プA14)。図4はこの場合の状態を示し、図中、丸印
で示した部分が高輝度集合部分であり、また輝きパター
ンとして4本クロスパターンを合成配置する場合を例示
したものである。ここで、図4(A)はワーク位置ポイ
ンタ2−8の値が高輝度集合部分の中心点である場合、
(B)はその上端部である場合、(C)はその左端部で
ある場合において輝きパターンが合成配置された状態を
示している。
When a high-luminance set portion having a predetermined size is retrieved (step A10), the CPU 1 stores the position coordinates of the top of the high-luminance set portion in the work memory 2-5.
And sets it in the work position pointer 2-8 (step A11), and reads out the shine pattern of the type selected and designated in step A1 from the pattern memory 2-7 (step A12). Then, the value of the work position pointer 2-8 is used for the image memory 2-2.
Is accessed, and the pixel at the position indicated by the value is designated (step A13). At the designated pixel position, the center of the glitter pattern read out in step A12 is arranged to overwrite the glitter pattern on the image data. (Step A14). FIG. 4 shows the state in this case. In the figure, the circled portion is a high-luminance set portion, and illustrates a case where four cross patterns are combined and arranged as a shine pattern. Here, FIG. 4A shows a case where the value of the work position pointer 2-8 is the center point of the high-luminance set portion.
(B) shows a state in which the shining patterns are combined and arranged in the case of the upper end and (C) in the case of the upper end thereof.

【0012】このようにして輝きパターンを上書き合成
すると、ワーク位置ポインタ2−8の値を更新してプラ
ス「1」すると共に(ステップA15)、その値が高輝
度集合部分を越えたか、つまり、高輝度集合部分を構成
する全ドット分、輝きパターンを合成配置したかを調べ
る(ステップA16)。いま、先頭の1画素に輝きパタ
ーンを配置した場合であるからステップA12に戻り、
以下、同様の動作を1画素毎に繰り返し、高輝度集合部
分を構成する各ドット毎に輝きパターンを合成する(図
4(D)、(E)参照)。この結果、高輝度集合部分が
輝きパターンによって埋めつくされるため、高輝度集合
部分は輝きパターンに置き換えられたものとなる。この
場合、図4(E)に示すように4本クロスを構成する各
線分の横幅は高輝度集合部分の大きさに対応し、またそ
の先端部は高輝度集合部分の形状がそのまま再現された
ものとなる。このようにして1つ分の高輝度集合部分に
ついての処理が終ると、ステップA8に進み、次の高輝
度集合部分を検索し、以下、同様の動作を繰り返す。
When the shine pattern is overwritten and synthesized as described above, the value of the work position pointer 2-8 is updated to "1" (step A15), and whether the value has exceeded the high-luminance set portion, that is, It is checked whether or not the luminous patterns have been combined and arranged for all the dots constituting the high-luminance set portion (step A16). Now, since it is the case where the shining pattern is arranged in the first pixel, the process returns to step A12,
Hereinafter, the same operation is repeated for each pixel, and a shining pattern is synthesized for each dot constituting the high-brightness aggregation portion (see FIGS. 4D and 4E). As a result, the high-brightness gathering portion is filled with the brilliant pattern, and the high-brightness gathering portion is replaced with the brilliant pattern. In this case, as shown in FIG. 4E, the width of each line constituting the four crosses corresponds to the size of the high-brightness aggregation portion, and the shape of the high-brightness aggregation portion is reproduced as it is at the tip. It will be. When the process for one high-luminance set portion is completed in this way, the process proceeds to step A8, where the next high-luminance set portion is searched, and thereafter, the same operation is repeated.

【0013】図5、図6は輝きパターンを合成配置した
後の画像を具体的に示したものである。すなわち、夜景
の撮影画像において、その光源部分の輝きを良好に撮影
することができなかったような場合でも、この撮影画像
に輝きパターンを合成することで、図5に示すように現
実味のある画像に変換することが可能となる。この場
合、極端に小さすぎる光源には輝きパターンが合成され
ないため、更に現実味のある画像を得ることができると
共に、画像の煩雑化を防止することが可能となる。ここ
で、図5は4本クロスの輝きパターンをX型に合成した
例を示し、図6は薄暮の太陽を撮影した画像例で、6本
クロスの輝きパターンを合成した場合であり、極め現実
味のある画像を得ることが可能となる。
FIGS. 5 and 6 specifically show images after the luminescent patterns are combined and arranged. That is, even if it is not possible to satisfactorily photograph the illuminance of the light source portion in the photographed image of the night view, a realistic image as shown in FIG. Can be converted to In this case, since a bright pattern is not synthesized with a light source that is extremely small, a more realistic image can be obtained and the image can be prevented from being complicated. Here, FIG. 5 shows an example in which the shining patterns of four crosses are combined in an X-shape, and FIG. 6 shows an example of an image of the dusk sun, in which the shining patterns of six crosses are combined. It is possible to obtain an image having a certain quality.

【0014】(第2実施形態)以下、図7を参照してこ
の発明の第2実施形態を説明する。なお、上述した第1
実施形態は、画像内の高輝度集合部分に輝きパターンを
合成する際に、高輝度集合部分の内部も輝きパターンで
埋め込むようにしたが、この第2実施形態は、高輝度集
合部分の内部を除き、その外側に輝きパターンを合成す
ることにより、高輝度集合部分の色をそのまま残すと共
に、この高輝度集合部分の外側から放射状に延びる輝き
パターンにおいてその色が高輝度集合部分の色に基づい
て除々に変化するようにグラデーションを付加するよう
にしたものである。すなわち、ステップB1は上述した
図3のステップA1〜A7と同様の処理を実行するもの
で、加工対象のカラー画像の全画素についてその輝度を
求め、基準値以上の輝度を持つ画素の位置座標をワーク
メモリ2−5に格納してゆく。このような処理が終る
と、ステップB2〜B4に進み、上述した図3のステッ
プA8〜A10と同様の処理を実行し、ワークメモリ2
−5の内容を解析することによって所定サイズ大の高輝
度集合部分を検索する。この結果、所定サイズ大の高輝
度集合部分が有れば、その先頭の位置座標をワーク位置
ポインタ2−8にセットしておくと共に(ステップA
5)、高輝度集合部分に相当する輪郭(最外郭線)をワ
ークメモリ2−5の内容を解析することによって抽出し
ておく(ステップB6)。
(Second Embodiment) Hereinafter, a second embodiment of the present invention will be described with reference to FIG. Note that the first
In the embodiment, when a bright pattern is combined with a high-brightness aggregate portion in an image, the inside of the high-brightness aggregate portion is embedded with the bright pattern, but in the second embodiment, the inside of the high-brightness aggregate portion is embedded. Except, by combining the shine pattern on the outside, the color of the high-brightness set portion is left as it is, and in the shine pattern extending radially from the outside of the high-brightness set portion, the color is based on the color of the high-brightness set portion A gradation is added so as to change gradually. That is, Step B1 executes the same processing as Steps A1 to A7 in FIG. 3 described above. The luminance is obtained for all the pixels of the color image to be processed, and the position coordinates of the pixels having the luminance equal to or more than the reference value are calculated. The data is stored in the work memory 2-5. When such processing is completed, the process proceeds to steps B2 to B4, and executes the same processing as in steps A8 to A10 in FIG.
By analyzing the contents of -5, a high-luminance set portion having a predetermined size and a large size is searched. As a result, if there is a high-luminance set portion having a predetermined size, the head position coordinate is set in the work position pointer 2-8 (step A).
5) The contour (outermost line) corresponding to the high-luminance set portion is extracted by analyzing the contents of the work memory 2-5 (step B6).

【0015】この状態において、選択指定された種類の
輝きパターンをそのパターンメモリ2−7から読み出す
と共に(ステップB7)、ワーク位置ポインタ2−8の
値で示される指定画素に対応する位置に輝きパターンの
中心を配置してパターン展開メモリ2−9に輝きパター
ンを展開する(ステップB8)。パターン展開メモリ2
−9は輝きパターンを展開するために用いられるイメー
ジメモリである。そして、ワーク位置ポインタ2−8の
値を更新し(ステップB9)、高輝度集合部分の全画素
を全て指定し終ったかをチェックするが(ステップB1
0)、いま、高輝度集合部分の先頭の画素を指定した場
合であるからステップB7に戻り、以下、1画素毎に上
述の動作を繰り返し、パターン展開メモリ2−9に輝き
パターンを順次展開してゆく。
In this state, the shine pattern of the type selected and designated is read out from the pattern memory 2-7 (step B7), and the shine pattern is set at the position corresponding to the designated pixel indicated by the value of the work position pointer 2-8. Are arranged in the pattern development memory 2-9 (step B8). Pattern development memory 2
Reference numeral -9 denotes an image memory used to develop a luminous pattern. Then, the value of the work position pointer 2-8 is updated (step B9), and it is checked whether all the pixels in the high-luminance set portion have been specified (step B1).
0) Since the first pixel of the high-luminance set portion has now been designated, the process returns to step B7, and the above-described operation is repeated for each pixel to sequentially develop the shine pattern in the pattern development memory 2-9. Go on.

【0016】これによって高輝度集合部分の全画素分の
処理が終了すると、パターン展開メモリ2−9内の各輝
きパターンから高輝度集合部分の輪郭内部に相当する部
分を除去する輝きパターン加工処理を行う(ステップB
12)。この場合、高輝度集合部分の輪郭は上述のステ
ップB6によって抽出されているので、この輪郭に基づ
いてその内部に相当するパターン展開メモリ2−9の内
容を消去する。このようにして加工された各輝きパター
ンを画像データの対応位置に上書き合成すると共に、各
輝きパターンにグラデーションを付加する(ステップB
13)。つまり、パターン展開メモリ2−9には高輝度
集合部分の輪郭内部に相当する部分が消去された各輝き
パターンが格納されており、その消去部分の中心を画像
データ内の高輝度集合部分の中心に合わせ込むようにパ
ターン展開メモリ2−9の内容を画像メモリ2−2に上
書き合成すると共に、合成された各輝きパターンの色を
高輝度集合部分の色に基づいてグラデーションを施す。
その際、高輝度集合部分に近い程、高輝度集合部分の色
に近似する色となり、高輝度集合部分から遠ざかる程、
輝きパターンの自色に近似する色となるように輝きパタ
ーンの色を除々に変化させてゆく。このようにして1つ
分の高輝度集合部分についての処理が終ると、ステップ
B2に戻り、次の高輝度集合部分が検索されると、以
下、同様の画像加工処理が繰り返される。以上のように
この第2実施形態によれば、高輝度集合部分の内部を除
き、その外側に輝きパターンを合成することができるの
で、高輝度集合部分の色をそのまま残すことが可能とな
り、また、輝きパターンの色は高輝度集合部分の色に基
づいて除々に変化するようになるので、更に現実味のあ
る画像加工が可能となる。
When the processing for all the pixels of the high-brightness set is completed, a shine pattern processing for removing a portion corresponding to the inside of the outline of the high-brightness set from each shine pattern in the pattern development memory 2-9. Perform (Step B
12). In this case, since the outline of the high-luminance set portion has been extracted in step B6, the contents of the pattern development memory 2-9 corresponding to the outline are erased based on this outline. Each shine pattern processed in this manner is overwritten on the corresponding position of the image data, and a gradation is added to each shine pattern (step B).
13). That is, in the pattern development memory 2-9, each radiance pattern in which a portion corresponding to the inside of the outline of the high-luminance set portion has been deleted is stored, and the center of the deleted portion is set to the center of the high-luminance set portion in the image data. The content of the pattern development memory 2-9 is overwritten on the image memory 2-2 so as to match the color, and the color of each synthesized shine pattern is subjected to gradation based on the color of the high luminance set portion.
At that time, the closer to the high-brightness set part, the closer to the color of the high-brightness set part, and the further away from the high-brightness set part,
The color of the shine pattern is gradually changed so as to be a color close to the shine pattern's own color. When the process for one high-brightness set is completed in this way, the process returns to step B2, and when the next high-brightness set is retrieved, the same image processing is repeated thereafter. As described above, according to the second embodiment, it is possible to synthesize a shining pattern outside the high-luminance set portion except for the inside thereof, so that the color of the high-luminance set portion can be left as it is, and Since the color of the shining pattern gradually changes on the basis of the color of the high-luminance set portion, more realistic image processing is possible.

【0017】なお、上述した各実施形態においては輝き
パターンを画像データに合成するようにしたが、この発
明はこれに限らず、図8(A)、(B)に示すような画
像加工処理であっても適用可能である。すなわち、図8
(A)においては、加工前の画像から高輝度集合部分
(太陽)を検出し、この高輝度集合部分を別の画像(三
日月)に置き換えると共に、他の全ての画像の輝度を全
体的に落とすように加工したものである。この場合、高
輝度集合部分を他の画像に置き換えることは第1実施形
態と基本的には同様であるが、置き換え画像の大きさ等
は加工前の画像に影響されず、任意である。また、画像
の置き換えに合わせて画像全体の輝度を制御するように
してもよい。図8(B)においては、加工前の画像から
高輝度集合部分(赤い容器)を検出し、この容器の色を
青色に変更するように加工したものである。この場合、
第1実施形態においても、高輝度集合部分(光源)の色
は輝きパターンの色に変更されるため、第1実施形態と
基本的には同様であるが、この場合、加工前後における
画像の形状は、変更されず、色のみが変更されることに
なる。
In each of the above-described embodiments, the shining pattern is combined with the image data. However, the present invention is not limited to this, and the image processing may be performed by image processing as shown in FIGS. 8A and 8B. Even if there is, it is applicable. That is, FIG.
In (A), a high-luminance set portion (sun) is detected from an image before processing, and the high-intensity set portion is replaced with another image (crescent moon), and the brightness of all other images is reduced entirely. It was processed as follows. In this case, replacing the high-luminance set portion with another image is basically the same as in the first embodiment, but the size of the replaced image is arbitrary without being affected by the image before processing. Further, the luminance of the entire image may be controlled in accordance with the replacement of the image. In FIG. 8B, a high-luminance set portion (red container) is detected from the image before processing, and processing is performed so that the color of this container is changed to blue. in this case,
Also in the first embodiment, since the color of the high-brightness aggregate portion (light source) is changed to the color of the shining pattern, it is basically the same as that of the first embodiment. Is not changed, only the color is changed.

【0018】また、上述した各実施形態においては、画
像データの中から基準値以上の輝度を持つ高輝度集合部
分を加工対象として検出するようにしたが、基準値以下
の画像部分を加工対象として検出するようにしてもよ
い。更に、輝きパターンを付加する場合、「ゆらぎ」や
「ぼかし」等を付加するようにしてもよく、更に輝きパ
ターンの形状や種類は限定されず、任意である。
In each of the above-described embodiments, a high-luminance set portion having a luminance equal to or higher than the reference value is detected as the processing target from the image data. You may make it detect. Furthermore, when adding a shining pattern, "fluctuation", "blur", etc. may be added, and the shape and type of the shining pattern are not limited and are arbitrary.

【0019】[0019]

【発明の効果】この発明によれば、画像データ内のどの
部分を加工するかの加工対象を予め手作業によって指定
しておかなくても、所望する部分の画像を自動的に加工
することができるので、作業性を大幅に向上させること
が可能となる。
According to the present invention, it is possible to automatically process an image of a desired portion without having to manually specify in advance what to process in the image data. Therefore, workability can be greatly improved.

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

【図1】カラー画像処理機能を備えたワードプロセッサ
のブロック構成図。
FIG. 1 is a block diagram of a word processor having a color image processing function.

【図2】輝きパターンメモリ2−7の内容を示した図。FIG. 2 is a diagram showing the contents of a shine pattern memory 2-7.

【図3】画像加工処理を示したフローチャート。FIG. 3 is a flowchart illustrating image processing.

【図4】画像加工を具体的に説明するための図。FIG. 4 is a diagram for specifically explaining image processing.

【図5】4本クロスの輝きパターンによって画像加工さ
れた加工後の画像例を示した図。
FIG. 5 is a diagram showing an example of a processed image obtained by processing an image using a bright pattern of four cloths.

【図6】6本クロスの輝きパターンによって画像加工さ
れた加工後の画像例を示した図。
FIG. 6 is a diagram showing an example of an image after processing by image processing using a shining pattern of six cloths.

【図7】第2実施形態における画像加工処理を示したフ
ローチャート。
FIG. 7 is a flowchart illustrating image processing according to the second embodiment.

【図8】この発明の変形応用例を示すための図で、
(A)は画像の置き換えを例示した図、(B)は色の変
更を例示した図。
FIG. 8 is a diagram showing a modified application example of the present invention;
(A) is a diagram illustrating an example of image replacement, and (B) is a diagram illustrating a color change.

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

1 CPU 2 RAM 2−1 プログラムメモリ 2−2 画像メモリ 2−3 画像位置ポインタ 2−4 設定値メモリ 2−5 ワークメモリ 2−6 サイズ判定メモリ 2−7 輝きパターンメモリ 2−8 ワーク位置ポインタ 2−9 パターン展開メモリ 3 可搬型記憶媒体 4 記憶媒体制御部 5 記憶装置 6 入力部 7 画像入力装置 8 表示部 1 CPU 2 RAM 2-1 Program memory 2-2 Image memory 2-3 Image position pointer 2-4 Setting value memory 2-5 Work memory 2-6 Size judgment memory 2-7 Brightness pattern memory 2-8 Work position pointer 2 -9 pattern development memory 3 portable storage medium 4 storage medium control unit 5 storage device 6 input unit 7 image input device 8 display unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】画像データを所定単位毎に順次解析してそ
の輝度を算出する輝度算出手段と、 この輝度算出手段によって算出された輝度が所定輝度で
あるか否かを判別する判別手段と、 この判別手段によって所定輝度であることが判別された
当該画像部分を基準として、少なくとも画像データの一
部を予め決められている画像加工処理に基づいて加工す
る画像加工手段とを具備したことを特徴とする画像処理
装置。
1. A luminance calculating means for sequentially analyzing image data for each predetermined unit to calculate the luminance, a determining means for determining whether or not the luminance calculated by the luminance calculating means is a predetermined luminance; Image processing means for processing at least a part of the image data based on a predetermined image processing based on the image portion determined to have a predetermined luminance by the determination means. Image processing apparatus.
【請求項2】前記画像加工手段は、所定輝度であること
が判別された当該画像部分を所定の画像パターンに置き
換えるようにしたことを特徴とする請求項1記載の画像
処理装置。
2. The image processing apparatus according to claim 1, wherein said image processing means replaces the image portion determined to have a predetermined luminance with a predetermined image pattern.
【請求項3】前記画像加工手段は、所定輝度であること
が判別された当該画像部分に、所定の画像パターンを付
加するようにしたことを特徴とする請求項1記載の画像
処理装置。
3. An image processing apparatus according to claim 1, wherein said image processing means adds a predetermined image pattern to the image portion determined to have a predetermined luminance.
【請求項4】前記画像加工手段は、所定輝度であること
が判別された当該画像部分に、所定の画像パターンを付
加する際に、当該画像部分から放射状に延びる輝きパタ
ーンを付加するようにしたことを特徴とする請求項3記
載の画像処理装置。
4. The image processing means, when adding a predetermined image pattern to the image portion determined to have the predetermined luminance, adds a radiant pattern extending radially from the image portion. The image processing apparatus according to claim 3, wherein:
【請求項5】前記画像加工手段は、所定輝度であること
が判別された当該画像部分に、所定の画像パターンを付
加する際に、当該画像部分の色に基づいて前記画像パタ
ーンにグラデーションを施すようにしたことを特徴とす
る請求項3記載の画像処理装置。
5. The image processing means, when adding a predetermined image pattern to the image portion determined to have a predetermined luminance, applies gradation to the image pattern based on the color of the image portion. 4. The image processing apparatus according to claim 3, wherein:
【請求項6】前記画像加工手段は、所定輝度であること
が判別された当該画像部分の色を変更するようにしたこ
とを特徴とする請求項1記載の画像処理装置。
6. An image processing apparatus according to claim 1, wherein said image processing means changes a color of the image portion determined to have a predetermined luminance.
JP8219126A 1996-08-02 1996-08-02 Image processor Pending JPH1051630A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8219126A JPH1051630A (en) 1996-08-02 1996-08-02 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8219126A JPH1051630A (en) 1996-08-02 1996-08-02 Image processor

Publications (1)

Publication Number Publication Date
JPH1051630A true JPH1051630A (en) 1998-02-20

Family

ID=16730653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8219126A Pending JPH1051630A (en) 1996-08-02 1996-08-02 Image processor

Country Status (1)

Country Link
JP (1) JPH1051630A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008283574A (en) * 2007-05-11 2008-11-20 Canon Inc Image processor and image processing method
JP2012014645A (en) * 2010-07-05 2012-01-19 Olympus Imaging Corp Image processing device, imaging device, image processing method, and image processing program
JP2014147047A (en) * 2013-01-30 2014-08-14 Fujitsu Semiconductor Ltd Image processing device, method, and program, and image pickup device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008283574A (en) * 2007-05-11 2008-11-20 Canon Inc Image processor and image processing method
JP2012014645A (en) * 2010-07-05 2012-01-19 Olympus Imaging Corp Image processing device, imaging device, image processing method, and image processing program
JP2014147047A (en) * 2013-01-30 2014-08-14 Fujitsu Semiconductor Ltd Image processing device, method, and program, and image pickup device

Similar Documents

Publication Publication Date Title
CN106548455B (en) Apparatus and method for adjusting brightness of image
US6868189B1 (en) Image processing apparatus, an image processing method, and a computer readable medium having recorded thereon a processing program for permitting a computer to perform image processing routines
US5790134A (en) Hardware architecture for image generation and manipulation
US5546518A (en) System and method for composing a display frame of multiple layered graphic sprites
US5611027A (en) Image enhancement with mask having fuzzy edges
JP2003271125A (en) Device, method and program for image display
JP2000134486A (en) Image processing unit, image processing method and storage medium
JP3293946B2 (en) Image processing device
KR101136195B1 (en) Defective pixel management for flat panel displays
JPH06230760A (en) Display device
JPH10302061A (en) Digital processing method combining color cast removal and contrast emphasis of digital color image
US7916969B2 (en) Varying the exposure of a digital image by region
US8760723B2 (en) Image processing device superimposing supplemental image on original image
JPH1051630A (en) Image processor
US7161531B1 (en) High performance radar display
JPH0325493A (en) Color display
JPH07225575A (en) Multi-window device
JP3769823B2 (en) Image processing device
JPS62200471A (en) Color image information input device
JPS63316888A (en) Processing system for coloring image
JPH05165592A (en) Color adjustment processing system for color image
JP2003256832A (en) Image processor and image processing method and computer program
JP2547347B2 (en) Image display controller
JPH0378669B2 (en)
JPH07199884A (en) Graphic display device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050427

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050506

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050630

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050823

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050916

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20051121

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20051216