JP2001169083A - Picture processing method, picture processor and recording medium - Google Patents

Picture processing method, picture processor and recording medium

Info

Publication number
JP2001169083A
JP2001169083A JP34657699A JP34657699A JP2001169083A JP 2001169083 A JP2001169083 A JP 2001169083A JP 34657699 A JP34657699 A JP 34657699A JP 34657699 A JP34657699 A JP 34657699A JP 2001169083 A JP2001169083 A JP 2001169083A
Authority
JP
Japan
Prior art keywords
circular
bright
data
region
image
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.)
Withdrawn
Application number
JP34657699A
Other languages
Japanese (ja)
Inventor
Toshihiko Kako
俊彦 加來
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP34657699A priority Critical patent/JP2001169083A/en
Publication of JP2001169083A publication Critical patent/JP2001169083A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Studio Circuits (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an appropriate line flare regardless of the shape of high light at the time of giving line flare to a picture including high light. SOLUTION: A reading means 1 reads picture data S0 and a picture processing means 2 extracts a high light pixel whose luminance becomes not less than a prescribed value in the picture displayed by picture data S0 and a high light area where the high light pixels are concentrated is extracted. The high light area is sorted to a circular high light area and the high light area of a shape except for the circle in accordance with a circular degree. Line flare data corresponding to the high light area is calculated. Calculated high light data is given to picture data S0, processed picture data S1 to which line flare is given is obtained and it is outputted from an output means 3.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像に含まれる光
輝に光条を付与する画像処理方法および装置並びに画像
処理方法をコンピュータに実行させるためのプログラム
を記録したコンピュータ読取り可能な記録媒体に関する
ものである。
[0001] 1. Field of the Invention [0002] The present invention relates to an image processing method and apparatus for applying striations to glitter contained in an image, and a computer-readable recording medium storing a program for causing a computer to execute the image processing method. It is.

【0002】[0002]

【従来の技術】デジタル電子スチルカメラ(以下デジタ
ルカメラとする)において取得したデジタル画像データ
や、フイルムに記録された画像を読取ることにより得ら
れたデジタル画像データを、プリント等のハードコピー
としてあるいはディスプレイ上にソフトコピーとして再
現する画像処理システムが提案されている。このよう
に、デジタル画像データを再現する場合においては、画
像データに対して階調処理や色変換処理等の種々の画像
処理を施した後に画像が出力されることとなる。
2. Description of the Related Art Digital image data obtained by a digital electronic still camera (hereinafter referred to as a digital camera) or digital image data obtained by reading an image recorded on a film can be converted into a hard copy such as a print or a display. An image processing system for reproducing as a soft copy has been proposed above. As described above, when reproducing digital image data, an image is output after performing various image processing such as gradation processing and color conversion processing on the image data.

【0003】ところで、カメラによってフイルムに画像
を記録する際に、カメラに装着されて使用されるフィル
タとしては、例えば色補正フィルタ、NDフィルタ、偏
光フィルタなどが知られているが、輝く水面や夜景を撮
影した際に、画像中の高輝度部となる光輝を中心として
1本または複数本の光条が画像上に放射状に現れるよう
にするためのクロスフィルタも用いられる。例えば、図
3に示すように窓灯りが灯った建物10および外灯11
を含むシーンをクロスフィルタを使用せずに撮影した場
合は光条が含まれない画像が得られるが、クロスフィル
タを使用して撮影を行うと、図9に示すように建物10
の窓灯りおよび外灯11の灯りのように画像中の高輝度
の部分に光条が放射状に現れることとなる。
By the way, when an image is recorded on a film by a camera, as a filter mounted on the camera and used, for example, a color correction filter, an ND filter, a polarization filter and the like are known. When photographing is performed, a cross filter for causing one or a plurality of striations to appear radially on the image, centering on the luminosity which is a high luminance portion in the image, is also used. For example, as shown in FIG.
When the scene including the image is photographed without using the cross filter, an image containing no striation is obtained. However, when the image is photographed using the cross filter, as shown in FIG.
The streaks appear radially in the high-brightness portion in the image, such as the window light and the outside light 11.

【0004】一方、クロスフィルタは撮影時に常に使用
されるものではなく、クロスフィルタの効果を得たいと
きにのみ撮影者によってカメラに装着されることから、
クロスフィルタを使用せずに撮影した画像には光条が含
まれない。一方、このように光条が含まれない画像に対
して、光条を付与したいという要望もある。このため、
画像処理により画像中に含まれる光輝に対して光条を付
与する方法が提案されている。この方法は、画像中にお
ける輝度が所定値以上となる光輝画素を抽出し、抽出さ
れた各光輝画素に対して光条を付与するものであり、こ
れによりクロスフィルタを使用しなくとも、クロスフィ
ルタを用いて撮影を行った場合と同様に、光輝に光条が
付与された画像を得ることができる。
On the other hand, the cross filter is not always used at the time of photographing, and is mounted on the camera by the photographer only when it is desired to obtain the effect of the cross filter.
Images taken without using a cross filter do not include striations. On the other hand, there is also a demand for providing a streak to an image that does not include such streaks. For this reason,
There has been proposed a method of applying a streak to glitter contained in an image by image processing. This method extracts a bright pixel whose luminance in an image is equal to or more than a predetermined value, and imparts a streak to each extracted bright pixel, whereby a cross filter is used without using a cross filter. In the same manner as in the case where photographing is performed using, it is possible to obtain an image in which striations are added to the glitter.

【0005】[0005]

【発明が解決しようとする課題】ところで、上述したよ
うに光条を付与する方法では、例えば車のヘッドライト
や外灯のように、光輝画素がある程度集中して円形状の
光輝領域を形成している場合には、円形の光輝領域内の
各画素に対して光条が付与されるため、光条が重なり合
ってしまい、図10に示すように外灯に現れる光条が丸
みを帯びたものとなってしまう。このため、画像中にお
いて光輝画素を抽出するとともに、この光輝画素が集中
して円形状となっている円形光輝領域をさらに抽出し、
この円形光輝領域に対してその形状に応じた光条を付与
するようにした方法が提案されている(特願平10−8
9893号)。
By the way, as described above, in the method of applying striations, for example, bright pixels are concentrated to some extent to form a circular bright region, such as a car headlight or an outside light. In this case, the streak is applied to each pixel in the circular bright region, so that the streaks overlap each other, and the streaks appearing in the external light become round as shown in FIG. Would. For this reason, a bright pixel is extracted in the image, and a circular bright area in which the bright pixels are concentrated to form a circular shape is further extracted,
A method has been proposed in which a streak corresponding to the shape is provided to the circular bright region (Japanese Patent Application No. 10-8 / 1998).
No. 9893).

【0006】しかしながら、この特願平10−8989
3号の方法では、円形状の光輝領域に対しては図11に
示すように、適切な光条を付与することができるが、波
のある水面や建物の窓灯りのように、光輝が集中してい
るものの円形でない場合や、光輝画素がそれほど集中し
ていない場合には、その光輝には光条が現れなくなって
しまう(図11参照)。このため、画像に対する光条の
量が少なくなり、不自然な画像となってしまう。
[0006] However, Japanese Patent Application No. Hei 10-8989 discloses this patent application.
According to the method of No. 3, an appropriate streak can be given to the circular shining area as shown in FIG. 11, but the shining is concentrated like a water surface with waves or a window light of a building. However, if the shape is not circular, or if the bright pixels are not so concentrated, no streak appears in the bright (see FIG. 11). For this reason, the amount of striations on the image is reduced, resulting in an unnatural image.

【0007】本発明は上記事情に鑑みなされたものであ
り、画像に対して適切に光条を付与することができる画
像処理方法および装置並びに画像処理方法をコンピュー
タに実行させるためのプログラムを記録したコンピュー
タ読取り可能な記録媒体を提供することを目的とするも
のである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and records an image processing method and apparatus capable of appropriately applying striations to an image and a program for causing a computer to execute the image processing method. It is an object of the present invention to provide a computer-readable recording medium.

【0008】[0008]

【課題を解決するための手段】本発明による画像処理方
法は、画像データに基づいて、該画像データにより表さ
れる画像中の光輝画素を抽出し、該光輝画素が集中して
いる領域を光輝領域として抽出し、該光輝領域を、その
円形度に応じて円形光輝領域と非円形光輝領域とに選別
し、前記円形光輝領域の形状に応じて該円形光輝領域か
ら延びる光条を表す第1の光条データを生成し、前記非
円形光輝領域内の各光輝画素および前記光輝領域以外の
光輝画素から延びる光条を表す第2の光条データを生成
し、前記第1および第2の光条データと前記画像データ
とを合成して処理済み画像データを得ることを特徴とす
るものである。
An image processing method according to the present invention extracts, based on image data, bright pixels in an image represented by the image data, and highlights a region where the bright pixels are concentrated. A first region representing a streak extending from the circular brilliant region according to the shape of the circular brilliant region, extracting the brilliant region into a circular brilliant region and a non-circular brilliant region according to the degree of circularity. And second light data representing light extending from each of the bright pixels in the non-circular bright area and the bright pixels other than the bright area, and generating the first and second light. It is characterized in that processed image data is obtained by synthesizing the line data and the image data.

【0009】ここで、「画像中の光輝画素を抽出する」
とは、画像データを構成する例えばR,G,Bデータか
ら輝度を求め、この輝度が所定の閾値以上となる画素を
光輝画素として抽出すればよい。
[0009] Here, "extracting bright pixels in an image"
This means that the luminance may be obtained from, for example, R, G, B data constituting the image data, and a pixel having the luminance equal to or higher than a predetermined threshold value may be extracted as a bright pixel.

【0010】また、「第1および第2の光条データ」と
しては、光輝領域から放射状に延びる複数本の光条を表
すデータや、光輝領域から延び多角形状の高輝度領域を
含んだ光条を表すデータ等を用いることができる。
The "first and second striation data" includes data representing a plurality of striations extending radially from the glittering region and striations extending from the glittering region and including a polygonal high-luminance region. Can be used.

【0011】さらに、第1および第2の光条データの生
成は、いずれの光条データの生成を先に行ってもよく、
第1および第2の光条データの生成を同時に行ってもよ
い。
Further, the generation of the first and second striation data may be performed before the generation of any striation data.
The generation of the first and second striation data may be performed simultaneously.

【0012】本発明による画像処理装置は、画像データ
に基づいて、該画像データにより表される画像中の光輝
画素を抽出する光輝画素抽出手段と、該光輝画素が集中
している領域を光輝領域として抽出する光輝領域抽出手
段と、該光輝領域を、その円形度に応じて円形光輝領域
と非円形光輝領域とに選別する選別手段と、前記円形光
輝領域の形状に応じて該円形光輝領域から延びる光条を
表す第1の光条データを生成する第1の光条データ生成
手段と、前記非円形光輝領域内の各光輝画素および前記
光輝領域以外の光輝画素から延びる光条を表す第2の光
条データを生成する第2の光条データ生成手段と、前記
第1および第2の光条データと前記画像データとを合成
して処理済み画像データを得る合成手段とを備えたこと
を特徴とするものである。
[0012] An image processing apparatus according to the present invention includes a brilliant pixel extracting means for extracting a brilliant pixel in an image represented by the image data, based on the image data, and a brilliant area where the brilliant pixels are concentrated. A glittering area extracting means for extracting the glittering area, a sorting means for sorting the glittering area into a circular glittering area and a non-circular glittering area according to the degree of circularity, and the circular glittering area according to the shape of the circular glittering area. First streak data generating means for generating first streak data representing an extending streak; and second streak indicating a streak extending from each of the bright pixels in the non-circular bright region and the bright pixels other than the bright region. Second streak data generating means for generating streak data, and synthesizing means for synthesizing the first and second streak data with the image data to obtain processed image data. Features A.

【0013】なお、本発明による画像処理装置において
は、第1の光条データ生成手段と第2の光条データ生成
手段とを共通の手段としてもよい。
In the image processing apparatus according to the present invention, the first striation data generating means and the second striation data generating means may be shared.

【0014】なお、本発明による画像処理方法をコンピ
ュータに実行させるためのプログラムとして、コンピュ
ータ読取り可能な記録媒体に記録して提供してもよい。
[0014] A computer-readable recording medium may be provided as a program for causing a computer to execute the image processing method according to the present invention.

【0015】[0015]

【発明の効果】本発明によれば、選別により得られた円
形光輝領域については、その形状に応じてこの円形光輝
領域から延びる光条を表す第1の光条データにより光条
を付与するとともに、非円形光輝領域および光輝領域以
外の光輝画素については、非円形領域内の各光輝画素お
よび光輝領域以外の光輝画素から延びる光条を表す第2
の光条データにより光条を付与するようにしたものであ
る。このため、画像中の円形光輝領域についても、光条
が丸みを帯びることがないように適切に光条を付与する
ことができる。また、建物の窓灯りや水面の波などの非
円形の光輝領域や光輝画素がそれほど集中していない部
分にも光条を付与することができるため、画像に対する
光条の量が少なくなることを防止でき、これにより不自
然さのない画像を得ることができる。したがって、クロ
スフィルタを用いて撮影を行った場合と同様に、画像中
の光輝に適切に光条が付与された画像を得ることができ
る。
According to the present invention, with respect to the circular luminous region obtained by the sorting, the luminous streak is given by the first luminous line data representing the luminous line extending from the circular luminous region according to the shape. For the bright pixels other than the non-circular bright region and the bright region, the second stripe representing the bright line extending from each bright pixel in the non-circular region and the bright pixel other than the bright region.
The striations are given by the striation data. For this reason, it is possible to appropriately apply a streak to the circular bright region in the image so that the streak is not rounded. In addition, since streaks can be given to non-circular bright areas such as window lights of buildings and waves on the water surface and portions where bright pixels are not so concentrated, the amount of streaks in an image is reduced. Thus, an image free from unnaturalness can be obtained. Therefore, similarly to the case where the photographing is performed using the cross filter, it is possible to obtain an image in which the glitter in the image is appropriately provided with the streak.

【0016】[0016]

【発明の実施の形態】以下図面を参照して本発明の実施
形態について説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0017】図1は本発明の実施形態による画像処理装
置の構成を示す概略ブロック図である。図1に示すよう
に、本実施形態による画像処理装置は、MO、CD−R
等の記録媒体に記録された、あるいはネットワークを介
して転送された画像データS0を読出す読出手段1と、
画像データS0に対して後述するように光条を付与する
処理を施して処理済み画像データS1を得る画像処理手
段2と、処理済み画像データS1により表される処理済
み画像を再生するプリンタ、モニタなどの出力手段3と
を備える。
FIG. 1 is a schematic block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention. As shown in FIG. 1, the image processing apparatus according to the present embodiment includes an MO, a CD-R
Reading means 1 for reading image data S0 recorded on a recording medium such as
An image processing means 2 for performing a process of imparting striations to the image data S0 to obtain processed image data S1, a printer and a monitor for reproducing the processed image represented by the processed image data S1 And other output means 3.

【0018】なお、画像データS0は、デジタルカメラ
により被写体を撮影することにより得られたものであっ
てもよく、フイルムに記録された画像をスキャナ等の読
取手段により光電的に読取ることにより得られたもので
あってもよい。
The image data S0 may be obtained by photographing a subject with a digital camera, or by photoelectrically reading an image recorded on a film by a reading means such as a scanner. May be used.

【0019】また、画像処理手段2は、後述するように
画像中の光輝に光条を付与する画像処理を施すものであ
るが、必要に応じて階調処理や色変換処理等の他の画像
処理をも行う。
The image processing means 2 performs image processing for adding a streak to the radiance in the image as described later, and performs other image processing such as gradation processing and color conversion processing as necessary. Also performs processing.

【0020】次いで、本実施形態の動作について説明す
る。図2は本実施形態の動作を示すフローチャートであ
る。まず、読出手段1において画像データS0を読出
し、画像処理手段2に入力する(ステップS1)。な
お、本実施形態においては、画像データS0は図3に示
すように、窓灯りが灯った建物10および外灯11を含
む画像を表すものとする。次いで、画像データS0に基
づいて、画像データS0により表される画像の各画素に
おける輝度を算出する(ステップS2)。ここで、輝度
をY、画像データS0を構成する色データをR0,G
0,B0とすると、輝度Yは、例えば下記の式(1)に
より算出される。
Next, the operation of this embodiment will be described. FIG. 2 is a flowchart showing the operation of the present embodiment. First, the image data S0 is read by the reading means 1 and input to the image processing means 2 (step S1). In the present embodiment, as shown in FIG. 3, the image data S <b> 0 represents an image including the building 10 and the outside light 11 illuminated by window lights. Next, based on the image data S0, the luminance of each pixel of the image represented by the image data S0 is calculated (step S2). Here, the luminance is Y, and the color data constituting the image data S0 are R0, G
Assuming 0 and B0, the luminance Y is calculated by, for example, the following equation (1).

【0021】 Y=0.299R0+0.587G0+0.114B0 (1) なお、輝度Yに代えて、色データR0,G0,B0の平
均濃度を用いてもよい。
Y = 0.299R0 + 0.587G0 + 0.114B0 (1) Note that the average density of the color data R0, G0, and B0 may be used instead of the luminance Y.

【0022】このようにして輝度Yを算出した後、輝度
Yが所定の閾値Th1以上となる光輝画素を抽出する
(ステップS3)。次いで、多数の光輝画素が集中して
いる領域、すなわち多数個の光輝画素が隣接あるいは近
接して存在している領域を、光輝領域Kとして抽出する
(ステップS4)。図4は、抽出された光輝領域Kを示
す図である。図4に示すように、ステップS4の処理に
より建物10の窓灯りの部分および外灯11の灯りの部
分が光輝領域Kとして抽出される。
After calculating the luminance Y in this way, a bright pixel whose luminance Y is equal to or more than a predetermined threshold Th1 is extracted (step S3). Next, a region where many bright pixels are concentrated, that is, a region where many bright pixels are adjacent or close to each other is extracted as a bright region K (step S4). FIG. 4 is a diagram showing the extracted bright region K. As shown in FIG. 4, the window light portion of the building 10 and the light portion of the outside light 11 are extracted as the bright region K by the processing in step S4.

【0023】次いで、光輝領域Kをその領域の円形度に
応じて選別する(ステップS5)。この選別は、例えば
光輝領域Kの形状の複雑度eに基づいて行う。ここで、
複雑度eは下記の式(2)により表すことができ、光輝
領域Kの形状が円形のときに最小となり、形状が複雑に
なるにしたがって値が大きくなる。
Next, the bright region K is selected according to the circularity of the region (step S5). This selection is performed based on, for example, the complexity e of the shape of the bright region K. here,
The complexity e can be expressed by the following equation (2). The complexity e is minimum when the shape of the bright region K is circular, and increases as the shape becomes more complicated.

【0024】 e=(光輝領域Kの周囲長)/(光輝領域の面積) (2) このようにして求められた複雑度eを所定の閾値Th2
と比較し、光輝領域Kを、複雑度eが閾値Th2未満と
なる円形光輝領域K1と、閾値Th2以上となる非円形
光輝領域K2とに選別する。ここで、外灯11の灯りに
おける光輝領域Kは略円形状であることから複雑度eの
値は比較的小さくなるが、建物10の窓灯りにおける光
輝領域Kは略矩形状であることから複雑度eの値は比較
的大きくなる。したがって、外灯11の灯りの光輝領域
Kは図5に示すように円形光輝領域K1、建物10の窓
灯りにおける光輝領域Kは図6に示すように非円形光輝
領域K2として選別される。
E = (perimeter of the glittering area K) 2 / (area of the glittering area) (2) The complexity e obtained in this way is determined by a predetermined threshold Th2.
The bright region K is sorted into a circular bright region K1 whose complexity e is less than the threshold Th2 and a non-circular bright region K2 whose complexity e is equal to or greater than the threshold Th2. Here, the value of the complexity e is relatively small because the bright region K in the lighting of the outside light 11 is substantially circular, but the complexity is small because the bright region K in the window light of the building 10 is substantially rectangular. The value of e is relatively large. Therefore, the bright region K of the light of the outside light 11 is selected as a circular bright region K1 as shown in FIG. 5, and the bright region K of the window light of the building 10 is selected as a non-circular bright region K2 as shown in FIG.

【0025】そして、ステップS5における選別によっ
て得られた円形光輝領域K1に付与する光条を表す第1
の光条データが算出される(ステップS6)。一方、非
円形光輝領域K2については、この非円形光輝領域K2
に付与する光条を表す第2の光条データが算出される
(ステップS7)。なお、第2の光条データによって表
される光条は、非円形光輝領域K2の光条のみならず、
ステップS4の処理において光輝領域Kとして抽出され
なかった光輝画素に対して付与する光条も含むものであ
る。
Then, the first streak representing the striation to be given to the circular bright region K1 obtained by the sorting in step S5.
Is calculated (step S6). On the other hand, regarding the non-circular bright region K2, the non-circular bright region K2
The second striation data representing the striations to be given to is calculated (step S7). The striations represented by the second striation data are not only striations in the non-circular bright region K2, but also
It also includes striations to be given to the brilliant pixels that are not extracted as the brilliant region K in the process of step S4.

【0026】第1の光条データの算出は、円形光輝領域
K1の平均輝度、色味、大きさに基づいて、光条の形
状、長さ、太さ、色味、本数、光条の交差角度、消失度
等を決定することにより行われる。ここで、光輝領域の
平均輝度としては、円形光輝領域K1内における輝度の
加算値を画素数で除算した値を用いることができ、色味
としては、例えば円形光輝領域K1内のR,G,B毎の
平均濃度の差または比を用いることができ、円形光輝領
域K1の大きさとしては例えば円形光輝領域K1内の画
素数を用いることができる。
The first striation data is calculated based on the average luminance, color, and size of the circular bright region K1 based on the shape, length, thickness, color, number, and intersection of the striations. This is performed by determining the angle, the degree of disappearance, and the like. Here, as the average luminance of the glittering area, a value obtained by dividing the added value of the luminance in the circular glittering area K1 by the number of pixels can be used. As the color, for example, R, G, and R in the circular glittering area K1 can be used. The difference or ratio of the average density for each B can be used, and the size of the circular bright region K1 can be, for example, the number of pixels in the circular bright region K1.

【0027】光条の形状としては、図7(a)、(b)
に示すように円形光輝領域K1から放射状に延びる複数
本の光条や、図7(c)に示すように円形光輝領域K1
から延びる多角形状の高輝度領域を含んだ光条を表すも
の等、複数種類の光条の形状からユーザが所望とする形
状を予め選択することにより設定することができる。
FIGS. 7A and 7B show the shapes of the striations.
As shown in FIG. 7C, a plurality of striations extending radially from the circular bright region K1 or a circular bright region K1 as shown in FIG.
Can be set by previously selecting a desired shape from a plurality of types of streaks, such as a streak including a polygonal high-brightness region extending from.

【0028】光条の長さについては、例えば円形光輝領
域K1の輝度が大きくなるにしたがって長くなり、円形
光輝領域K1の大きさが大きくなるにしたがって長くな
るように定めることができる。また、画像データS0に
より表される画像全体の濃度を求め、この濃度が低いほ
ど光条の長さを短くすることにより、処理済み画像の見
栄を向上させることができる。
The length of the striations can be determined, for example, so as to increase as the luminance of the circular luminous region K1 increases and to increase as the size of the circular luminous region K1 increases. In addition, the appearance of the processed image can be improved by obtaining the density of the entire image represented by the image data S0 and reducing the length of the striation as the density is lower.

【0029】光条の太さについては、例えば円形光輝領
域K1の輝度が大きくなるにしたがって太くなり、円形
光輝領域K1の大きさが大きくなるにしたがって太くな
るように定めることができる。
The thickness of the streak can be determined, for example, such that the thickness increases as the luminance of the circular luminous region K1 increases and increases as the size of the circular luminous region K1 increases.

【0030】光条の色味については、例えば画像データ
S0により表される画像の色味に一致するように定める
ことができる。また、光条上の円形光輝領域K1に近接
する部分については、画像データS0により表される画
像上での円形光輝領域K1の色味に一致するようにし、
円形光輝領域K1から離れた部分については、円形光輝
領域K1からの距離に応じて色味が周期的に変化(色相
が回転)するようにしてもよい。
The color of the striations can be determined, for example, so as to match the color of the image represented by the image data S0. In addition, a portion close to the circular brilliant region K1 on the streak is made to match the color of the circular brilliant region K1 on the image represented by the image data S0,
For a portion distant from the circular bright region K1, the color may periodically change (hue rotates) according to the distance from the circular bright region K1.

【0031】光条の交差角度については、例えば予め定
められた角度を設定することができるが、これに代え
て、画像データS0により表される画像中に人物の顔に
相当する顔領域が存在しているか否かを判断し、顔領域
が存在していた場合には、付与する光条が顔領域と重な
らないように光条の角度を自動的に設定するようにして
もよい。
For example, a predetermined angle can be set as the intersection angle of the striations. Alternatively, a face area corresponding to a person's face exists in the image represented by the image data S0. It is determined whether or not the striation is performed, and if the face region exists, the angle of the striation may be automatically set so that the striation to be applied does not overlap the face region.

【0032】光条の消失度とは、光条は円形光輝領域K
1から離れるにつれて輝度が減少するがその減少の程度
を表した数値である。ここで、消失度をx、画像データ
S0により表される画像の画素値をp、光輝領域K1,
K2の画素値をqとした場合、光条データの画素値Lは
下記の式(3)により表すことができる。
The degree of disappearance of striations means that the striations are circular bright regions K
The luminance decreases as the distance from 1 decreases, and is a numerical value representing the degree of the decrease. Here, the extinction degree is x, the pixel value of the image represented by the image data S0 is p, and the luminous area K1,
Assuming that the pixel value of K2 is q, the pixel value L of the striation data can be expressed by the following equation (3).

【0033】 L=x×q+(1−x)×p (3) 但し、0≦x≦1 一方、第2の光条データについては、非円形光輝領域K
2内および光輝領域K以外の光輝画素の輝度、色味に基
づいて、第1の光条データと同様に光条の形状、長さ、
太さ、色味、本数、光条の交差角度、消失度等を決定す
ることにより行われる。この際、光条の形状は第1の光
条データと同一であってもよいが、別であってもよい。
なお、第2の光条データにより表される光条は、非円形
光輝領域K2内および光輝領域K以外の各画素毎に付与
されるものとなる。
L = x × q + (1−x) × p (3) where 0 ≦ x ≦ 1 On the other hand, for the second striation data, the non-circular bright region K
2 based on the brightness and color of the brilliant pixels other than the brilliant region K and the shape and length of the striations as in the first striation data.
The determination is performed by determining the thickness, color, number, crossing angle of striations, degree of disappearance, and the like. At this time, the shape of the striations may be the same as the first striation data, but may be different.
The streak represented by the second streak data is provided for each pixel in the non-circular brilliant region K2 and the brilliant region K.

【0034】そして、このようにして第1および第2の
光条データが算出されると、これら第1および第2の光
条データに基づいて、画像データS0により表される画
像上における光条に対応する部分の画素値を書き換えて
処理済み画像データS0を得(ステップS8)、これを
出力手段3において出力して(ステップS9)、処理を
終了する。図8は処理済み画像データS0により表され
る処理済み画像を示す図である。図8に示すように、本
実施形態において得られる処理済み画像は、外灯11の
灯りのように光輝領域Kが円形であっても光条が丸みを
帯びることがなくなり、さらに、建物10の窓灯りにつ
いても、適切に光条が付与されたものとなる。
When the first and second striation data are calculated in this manner, the striations on the image represented by the image data S0 are calculated based on the first and second striation data. Is rewritten to obtain the processed image data S0 (step S8), which is output by the output means 3 (step S9), and the processing is terminated. FIG. 8 is a diagram showing a processed image represented by the processed image data S0. As shown in FIG. 8, the processed image obtained in the present embodiment is such that the streak does not become round even if the bright region K is circular like the light of the outside lamp 11, and further, the window of the building 10 Lights are also appropriately provided with striations.

【0035】なお、上記実施形態においては、第1およ
び第2の光条データを算出し、これらの光条データに基
づいて各光輝領域K1,K2の双方の領域に同時に光条
を付与しているが、まず円形光輝領域K1に光条を付与
した後、この光条の付与の状況に応じて非円形光輝領域
K2および光輝領域K以外の光輝画素に光条を付与する
ようにしてもよく、先に非円形光輝領域K2および光輝
領域K以外の画素に光条を付与した後に円形光輝領域K
1に光条を付与するようにしてもよい。
In the above embodiment, the first and second striation data are calculated, and striations are simultaneously applied to both the bright regions K1 and K2 based on the striation data. However, it is also possible to first apply a streak to the circular bright region K1, and then to apply a streak to the non-circular bright region K2 and the bright pixels other than the bright region K in accordance with the condition of the striation. First, after applying striations to the pixels other than the non-circular bright region K2 and the bright region K, the circular bright region K
Light striations may be added to 1.

【0036】また、上記実施形態においては、図7に示
すように光条の形状を定めているが、これに限定される
ものではなく、例えば光条の本数が3本あるいは5本以
上となる光条の形状を用いてもよい。
In the above embodiment, the shape of the striation is determined as shown in FIG. 7, but the shape is not limited to this. For example, the number of striations is three or five or more. A striation shape may be used.

【0037】さらに、上記実施形態においては、本発明
による画像処理装置を単独で使用する場合について説明
したが、本発明による画像処理装置をデジタルカメラに
設け、デジタルカメラにおいて撮像した画像に光条を付
与するようにしてもよい。
Further, in the above embodiment, the case where the image processing apparatus according to the present invention is used alone has been described. You may make it give.

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

【図1】本発明の実施形態による画像処理装置の構成を
示す概略ブロック図
FIG. 1 is a schematic block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention.

【図2】本実施形態の動作を示すフローチャートFIG. 2 is a flowchart showing the operation of the embodiment;

【図3】画像データS0により表される画像を示す図FIG. 3 is a diagram showing an image represented by image data S0.

【図4】抽出された光輝領域を示す図FIG. 4 is a diagram showing an extracted bright region.

【図5】選別により得られた光輝領域K1を示す図FIG. 5 is a diagram showing a bright region K1 obtained by sorting.

【図6】選別により得られた光輝領域K2を示す図FIG. 6 is a diagram showing a bright region K2 obtained by sorting.

【図7】光条の形状を示す図FIG. 7 is a view showing the shape of a striation.

【図8】処理済み画像を示す図FIG. 8 is a diagram showing a processed image.

【図9】クロスフィルタを使用して撮影を行うことによ
り得られる画像を示す図
FIG. 9 is a diagram showing an image obtained by performing photographing using a cross filter.

【図10】従来の画像処理において光条が付与された画
像を示す図(その1)
FIG. 10 is a view showing an image to which striations are added in conventional image processing (part 1);

【図11】従来の画像処理において光条が付与された画
像を示す図(その2)
FIG. 11 is a diagram showing an image to which striations are added in conventional image processing (part 2);

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

1 読出手段 2 画像処理手段 3 出力手段 10 建物 11 外灯 DESCRIPTION OF SYMBOLS 1 Readout means 2 Image processing means 3 Output means 10 Building 11 Outside light

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 画像データに基づいて、該画像データ
により表される画像中の光輝画素を抽出し、 該光輝画素が集中している領域を光輝領域として抽出
し、 該光輝領域を、その円形度に応じて円形光輝領域と非円
形光輝領域とに選別し、 前記円形光輝領域の形状に応じて該円形光輝領域から延
びる光条を表す第1の光条データを生成し、 前記非円形光輝領域内の各光輝画素および前記光輝領域
以外の光輝画素から延びる光条を表す第2の光条データ
を生成し、 前記第1および第2の光条データと前記画像データとを
合成して処理済み画像データを得ることを特徴とする画
像処理方法。
1. A method for extracting a bright pixel in an image represented by the image data based on the image data, extracting a region where the bright pixels are concentrated as a bright region, and Selecting a circular luminous region and a non-circular luminous region according to the degree, and generating first vein data representing a vein extending from the circular luminous region according to the shape of the circular luminous region; Generating second streak data representing streaks extending from each of the bright pixels in the area and the bright pixels other than the bright area, and combining and processing the first and second streak data and the image data; An image processing method characterized by obtaining completed image data.
【請求項2】 画像データに基づいて、該画像データ
により表される画像中の光輝画素を抽出する光輝画素抽
出手段と、 該光輝画素が集中している領域を光輝領域として抽出す
る光輝領域抽出手段と、 該光輝領域を、その円形度に応じて円形光輝領域と非円
形光輝領域とに選別する選別手段と、 前記円形光輝領域の形状に応じて該円形光輝領域から延
びる光条を表す第1の光条データを生成する第1の光条
データ生成手段と、 前記非円形光輝領域内の各光輝画素および前記光輝領域
以外の光輝画素から延びる光条を表す第2の光条データ
を生成する第2の光条データ生成手段と、 前記第1および第2の光条データと前記画像データとを
合成して処理済み画像データを得る合成手段とを備えた
ことを特徴とする画像処理装置。
2. A brilliant pixel extracting means for extracting a brilliant pixel in an image represented by the image data based on the image data, and a brilliant area extracting unit for extracting an area where the brilliant pixels are concentrated as a brilliant area. Means, a sorting means for sorting the glittering region into a circular glittering region and a non-circular glittering region according to the degree of circularity, and a stripe representing a stripe extending from the circular glittering region according to the shape of the circular glittering region. First streak data generating means for generating one streak data; and second streak data representing streaks extending from each of the bright pixels in the non-circular bright area and the bright pixels other than the bright area. An image processing apparatus comprising: a second striation data generating unit that performs processing; and a synthesizing unit that combines the first and second striation data and the image data to obtain processed image data. .
【請求項3】 画像データに基づいて、該画像データ
により表される画像中の光輝画素を抽出する手順と、 該光輝画素が集中している領域を光輝領域として抽出す
る手順と、 該光輝領域を、その円形度に応じて円形光輝領域と非円
形光輝領域とに選別する手順と、 前記円形光輝領域の形状に応じて該円形光輝領域から延
びる光条を表す第1の光条データを生成する手順と、 前記非円形光輝領域内の各光輝画素および前記光輝領域
以外の光輝画素から延びる光条を表す第2の光条データ
を生成する手順と、 前記第1および第2の光条データと前記画像データとを
合成して処理済み画像データを得る手順とを有する画像
処理方法をコンピュータに実行させるためのプログラム
を記録したコンピュータ読取り可能な記録媒体。
3. A procedure for extracting a bright pixel in an image represented by the image data based on the image data, a procedure for extracting an area where the bright pixels are concentrated as a bright area, And selecting a circular luminous region and a non-circular luminous region according to the degree of circularity, and generating the first luminous line data representing the luminous line extending from the circular luminous region according to the shape of the circular luminous region. Generating second streak data representing streaks extending from each of the bright pixels in the non-circular bright area and the bright pixels other than the bright area; and the first and second striation data. And a computer-readable recording medium storing a program for causing a computer to execute an image processing method, comprising: combining the image data with the image data to obtain processed image data.
JP34657699A 1999-12-06 1999-12-06 Picture processing method, picture processor and recording medium Withdrawn JP2001169083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34657699A JP2001169083A (en) 1999-12-06 1999-12-06 Picture processing method, picture processor and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34657699A JP2001169083A (en) 1999-12-06 1999-12-06 Picture processing method, picture processor and recording medium

Publications (1)

Publication Number Publication Date
JP2001169083A true JP2001169083A (en) 2001-06-22

Family

ID=18384365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34657699A Withdrawn JP2001169083A (en) 1999-12-06 1999-12-06 Picture processing method, picture processor and recording medium

Country Status (1)

Country Link
JP (1) JP2001169083A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009177508A (en) * 2008-01-24 2009-08-06 Nikon Corp Imaging apparatus, and image-effect adding program
US8559059B2 (en) 2010-07-29 2013-10-15 Brother Kogyo Kabushiki Kaisha Image processing device superimposing supplemental image to encompass area of original based on luminance difference between nearby pixels

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009177508A (en) * 2008-01-24 2009-08-06 Nikon Corp Imaging apparatus, and image-effect adding program
US8559059B2 (en) 2010-07-29 2013-10-15 Brother Kogyo Kabushiki Kaisha Image processing device superimposing supplemental image to encompass area of original based on luminance difference between nearby pixels
US8760723B2 (en) 2010-07-29 2014-06-24 Brother Kogyo Kabushiki Kaisha Image processing device superimposing supplemental image on original image

Similar Documents

Publication Publication Date Title
JP5761946B2 (en) Image processing apparatus, image processing method, and storage medium
JP3668014B2 (en) Image processing method and apparatus
US20070247474A1 (en) Method, apparatus and recording medium for image processing
JP2001126075A (en) Method and device for picture processing, and recording medium
WO2020034701A1 (en) Imaging control method and apparatus, electronic device, and readable storage medium
JP2010220184A (en) Dark space exposure compensation method for simulating high dynamic range by single image and image processor employing the same
JP5804857B2 (en) Image processing apparatus, image processing method, and program
US20170154437A1 (en) Image processing apparatus for performing smoothing on human face area
US20210168273A1 (en) Control Method and Electronic Device
WO2020034702A1 (en) Control method, device, electronic equipment and computer readable storage medium
JP2008283291A (en) Development processor for undeveloped image data, development processing method, and computer program for development processing
US7359571B2 (en) Method, apparatus and program for image processing
JP2003199115A (en) Method for contrast enhancement in color digital image
RU2503060C2 (en) Image processing device and method of driving image processing device
JP5070921B2 (en) Development processing apparatus for undeveloped image data, development processing method, and computer program for development processing
JP2001169083A (en) Picture processing method, picture processor and recording medium
JPH07113961B2 (en) Signal processor
US6658163B1 (en) Image processing method
JP2001045303A (en) Image thresholding method
JP2011151454A (en) Image processor, imaging apparatus and image processing method
JP4807315B2 (en) Development processing apparatus for undeveloped image data, development processing method, and computer program for executing development processing
JPH11346303A (en) Image processing method
JP3473832B2 (en) Digital image automatic correction method and system
JP3817371B2 (en) Image processing method, apparatus, and recording medium
JP2006209795A (en) Image processing method, image processing program and image processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070206