JP2010103934A - Image processing apparatus, digital camera, and image processing program - Google Patents

Image processing apparatus, digital camera, and image processing program Download PDF

Info

Publication number
JP2010103934A
JP2010103934A JP2008275730A JP2008275730A JP2010103934A JP 2010103934 A JP2010103934 A JP 2010103934A JP 2008275730 A JP2008275730 A JP 2008275730A JP 2008275730 A JP2008275730 A JP 2008275730A JP 2010103934 A JP2010103934 A JP 2010103934A
Authority
JP
Japan
Prior art keywords
image
feature amount
pixel
luminance value
calculation
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.)
Granted
Application number
JP2008275730A
Other languages
Japanese (ja)
Other versions
JP5412791B2 (en
Inventor
Takashi Nishi
岳志 西
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.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2008275730A priority Critical patent/JP5412791B2/en
Publication of JP2010103934A publication Critical patent/JP2010103934A/en
Application granted granted Critical
Publication of JP5412791B2 publication Critical patent/JP5412791B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus for obtaining a result equal to conventional contour processing with computational complexity reduced as compared with the prior arts. <P>SOLUTION: When a subject image is imaged by an imaging element 15, an image signal is output to a control circuit 16. The control circuit 16 performs various kinds of image processing on the image signal, and calculation processing of a feature amount is performed on the image signal by a feature amount calculator 16a. Thereafter, an image corrector 16b performs predetermined arithmetic operation on luminance values of pixels on the basis of the features value calculated by the featured value calculator 16a. Predetermined compression processing or the like is performed after the arithmetic operation, thereby creating image data. The created image data are recorded onto a storage medium 22. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、画像の輪郭の強弱を制御する技術に関する。   The present invention relates to a technique for controlling the strength of an image outline.

画像の輪郭を暈かしたり強調したりすることができる画像処理が知られている。このような処理を行うに当たっては、例えば3×3や5×5のサイズの画像フィルタを適用することが一般的である。例えば特許文献1には、画像をm×nの画像フィルタで走査することにより画像の輪郭を強調する画像フィルタリング方法が示されている。
特許第3512581号公報
Image processing capable of blurring or enhancing the outline of an image is known. In performing such processing, for example, an image filter having a size of 3 × 3 or 5 × 5 is generally applied. For example, Patent Document 1 discloses an image filtering method that enhances the contour of an image by scanning the image with an m × n image filter.
Japanese Patent No. 3512581

例えば5×5の画像フィルタを適用する場合、25個の画素値を用いて1個の画素を処理することになる。従って、処理を行う対象の画像が大きい場合や、複数の画像に対して繰り返し処理を行う場合には、膨大な計算量が必要となってしまうという問題があった。   For example, when a 5 × 5 image filter is applied, one pixel is processed using 25 pixel values. Therefore, when the target image to be processed is large or when iteratively processing a plurality of images, there is a problem that a huge amount of calculation is required.

請求項1に係る発明は、画像信号を入力する入力手段と、前記入力手段に入力された画像信号に含まれる各々の画素について、処理対象となる注目画素の輝度値と隣接周辺画素の輝度値との差をユークリッド距離に換算して特徴量を算出する特徴量算出手段と、前記入力手段に入力された画像信号に含まれる各画素の輝度値について、前記特徴量算出手段により算出された特徴量に基づき所定の演算を行う演算手段と、を備えることを特徴とする画像処理装置である。   The invention according to claim 1 is an input unit for inputting an image signal, and for each pixel included in the image signal input to the input unit, the luminance value of the target pixel to be processed and the luminance value of adjacent peripheral pixels The feature amount calculating means for calculating the feature amount by converting the difference between the Euclidean distance and the feature value calculated by the feature amount calculating means for the luminance value of each pixel included in the image signal input to the input means An image processing apparatus comprising: an operation unit that performs a predetermined operation based on a quantity.

請求項4に係る発明は、撮像素子から得られた信号を前記画像信号として入力する請求項1〜3のいずれか一項に記載の画像処理装置を備えることを特徴とするデジタルカメラである。   According to a fourth aspect of the present invention, there is provided a digital camera comprising the image processing apparatus according to any one of the first to third aspects, wherein a signal obtained from an image sensor is input as the image signal.

請求項7に係る発明は、画像信号を入力する入力工程と、前記入力工程において入力された画像信号に含まれる各々の画素について、処理対象となる注目画素の輝度値と隣接周辺画素の輝度値との差をユークリッド距離に換算して特徴量を算出する特徴量算出工程と、前記入力工程において入力された画像信号に含まれる各画素の輝度値について、前記特徴量算出工程により算出された特徴量に基づき所定の演算を行う演算工程と、をコンピュータに実行させることを特徴とする画像処理プログラムである。   The invention according to claim 7 is an input step of inputting an image signal, and for each pixel included in the image signal input in the input step, a luminance value of a target pixel to be processed and a luminance value of adjacent peripheral pixels A feature amount calculation step of calculating a feature amount by converting the difference between the two into a Euclidean distance, and a feature value calculated by the feature amount calculation step with respect to a luminance value of each pixel included in the image signal input in the input step An image processing program that causes a computer to execute a calculation step of performing a predetermined calculation based on a quantity.

本発明によれば、従来に比べ少ない計算量で従来の輪郭処理と同等の結果を得られる。   According to the present invention, a result equivalent to that of the conventional contour processing can be obtained with a smaller calculation amount than the conventional one.

――第1の実施の形態――
図1は本実施の形態によるデジタルカメラの回路構成を示すブロック図である。デジタルカメラ1は、入力装置13,焦点調節装置14,撮像素子15,制御回路16,DRAM17,フラッシュメモリ18,LCD駆動回路19,液晶モニタ20,およびメモリカードインタフェース(I/F)21を備える。
-First embodiment-
FIG. 1 is a block diagram showing a circuit configuration of a digital camera according to this embodiment. The digital camera 1 includes an input device 13, a focus adjustment device 14, an image sensor 15, a control circuit 16, a DRAM 17, a flash memory 18, an LCD drive circuit 19, a liquid crystal monitor 20, and a memory card interface (I / F) 21.

撮像素子15は、画素に対応する複数の光電変換素子を備えたCCDやCMOSイメージセンサによって構成される。撮像素子15は、撮像面上に結像されている被写体像を撮像し、被写体像の明るさに応じた光電変換信号(画像信号)を出力する。撮像素子15の撮像面には、それぞれR(赤)、G(緑)およびB(青)のカラーフィルタが画素位置に対応するように設けられている。撮像素子15がカラーフィルタを通して被写体像を撮像するため、各撮像素子から出力される画像信号は、それぞれRGB表色系の色情報を有する。   The imaging element 15 is configured by a CCD or CMOS image sensor including a plurality of photoelectric conversion elements corresponding to pixels. The imaging element 15 captures a subject image formed on the imaging surface and outputs a photoelectric conversion signal (image signal) corresponding to the brightness of the subject image. R (red), G (green), and B (blue) color filters are provided on the imaging surface of the imaging element 15 so as to correspond to the pixel positions, respectively. Since the image pickup device 15 picks up a subject image through the color filter, the image signal output from each image pickup device has RGB color system color information.

撮像素子15から出力された画像信号は制御回路16に入力される。制御回路16は、画像信号に対して種々の画像処理を行い、画像データを生成する。そして、制御回路16は生成された画像データに対してJPEGなどの所定の方式により圧縮処理を行い、EXIFなどの形式の画像ファイルとして記憶媒体22へ記録する。制御回路16は、たとえばRISCなどで構成され、図1に示す各回路を制御する。   The image signal output from the image sensor 15 is input to the control circuit 16. The control circuit 16 performs various image processing on the image signal to generate image data. Then, the control circuit 16 performs compression processing on the generated image data by a predetermined method such as JPEG, and records it in the storage medium 22 as an image file in a format such as EXIF. The control circuit 16 is composed of, for example, a RISC and controls each circuit shown in FIG.

制御回路16は、不図示のAFセンサーモジュールから出力される検出信号に基づいて周知の焦点評価値演算を行い、演算結果を焦点調節装置14へ出力する。焦点調節装置14は、上記演算結果に基づいて、焦点評価値が最大となる位置へ撮影レンズ10を移動する。   The control circuit 16 performs a known focus evaluation value calculation based on a detection signal output from an AF sensor module (not shown), and outputs the calculation result to the focus adjustment device 14. The focus adjustment device 14 moves the photographing lens 10 to a position where the focus evaluation value is maximized based on the calculation result.

DRAM17は、画像処理、画像圧縮処理および表示用画像データ作成処理の途中や処理後のデータを一時的に格納するために使用される。表示用画像データは、制御回路16が撮像素子15からの出力に基づいて生成した画像データ、もしくは記憶媒体22に記録されている画像データに基づいて、制御回路16により生成される。生成された表示用画像データは、制御回路16によりDRAM17に格納される。フラッシュメモリ18は、たとえば制御回路16が演算を行なうための各種の処理プログラムが記録された不揮発性メモリである。   The DRAM 17 is used to temporarily store data during or after image processing, image compression processing, and display image data creation processing. The display image data is generated by the control circuit 16 based on the image data generated by the control circuit 16 based on the output from the image sensor 15 or the image data recorded in the storage medium 22. The generated display image data is stored in the DRAM 17 by the control circuit 16. The flash memory 18 is a non-volatile memory in which various processing programs for the operation of the control circuit 16 are recorded, for example.

LCD駆動回路19は制御回路16の命令に基づいて液晶モニタ20を駆動し、液晶モニタ20はDRAM17に格納された表示用画像データに基づいて画像を表示する。また、液晶モニタ20は、デジタルカメラの各種設定メニュー画面の表示を行なう。入力装置13は、レリーズボタンや再生ボタンなどの種々の操作ボタンを含み、ユーザによる各操作ボタンの操作信号を制御回路16へ出力する。   The LCD drive circuit 19 drives the liquid crystal monitor 20 based on a command from the control circuit 16, and the liquid crystal monitor 20 displays an image based on display image data stored in the DRAM 17. The liquid crystal monitor 20 displays various setting menu screens of the digital camera. The input device 13 includes various operation buttons such as a release button and a playback button, and outputs an operation signal of each operation button by the user to the control circuit 16.

制御回路16は、特徴量算出部16a,および画像補正部16bを有する。特徴量算出部16aは、画像信号に含まれる全ての画素について、ユークリッド距離に基づいた特徴量を算出する。画像補正部16bは、特徴量算出部16aが算出した画素ごとの特徴量に基づいて、画素ごとの輝度値へ所定の演算を行う。制御回路16により実行される、撮像素子15が出力した画像信号への画像処理には、特徴量算出部16aによる特徴量の算出、ならびに、画像補正部16bによる輝度値への演算が含まれる。   The control circuit 16 includes a feature amount calculation unit 16a and an image correction unit 16b. The feature amount calculation unit 16a calculates a feature amount based on the Euclidean distance for all the pixels included in the image signal. The image correction unit 16b performs a predetermined calculation on the luminance value for each pixel based on the feature amount for each pixel calculated by the feature amount calculation unit 16a. The image processing performed on the image signal output from the image sensor 15 executed by the control circuit 16 includes calculation of the feature amount by the feature amount calculation unit 16a and calculation on the luminance value by the image correction unit 16b.

次に、特徴量算出部16aが算出する特徴量について説明する。特徴量算出部16aは、画像信号に含まれる全ての画素に対して、右方向の隣接画素と下方向の隣接画素とに基づき、特徴量を算出する。この特徴量は、例えばHSI色空間におけるI成分など、画素の輝度値を用いて算出される。   Next, the feature amount calculated by the feature amount calculation unit 16a will be described. The feature amount calculation unit 16a calculates a feature amount for all the pixels included in the image signal based on the adjacent pixel in the right direction and the adjacent pixel in the downward direction. This feature amount is calculated using a luminance value of the pixel such as an I component in the HSI color space.

図2は、特徴量の算出手順を説明する図である。図2には、図の左上を起点に整列する9つの画素(P11,P21,P31,P12,P22,P32,P13,P23,P33)が示されている。例えば画素P11は座標(1,1)に位置しており、画素P21は座標(2,1)に位置している。また、各々の画素を表す四角形の中には、画素の輝度を表す数値が記載されている。例えば、画素P11の輝度値は60であり、画素P21の輝度値は70である。   FIG. 2 is a diagram for explaining a feature amount calculation procedure. FIG. 2 shows nine pixels (P11, P21, P31, P12, P22, P32, P13, P23, and P33) that are aligned starting from the upper left of the figure. For example, the pixel P11 is located at the coordinates (1, 1), and the pixel P21 is located at the coordinates (2, 1). In addition, in the quadrangle representing each pixel, a numerical value representing the luminance of the pixel is described. For example, the luminance value of the pixel P11 is 60, and the luminance value of the pixel P21 is 70.

特徴量算出部16aは、画像信号に含まれる全ての画素について、その画素の特徴量を次式(1)を用いて算出する。   The feature amount calculation unit 16a calculates the feature amount of all the pixels included in the image signal using the following equation (1).

ここで、C(x,y)は座標(x,y)の画素の特徴量を、I(x,y)は座標(x,y)の画素の輝度値をそれぞれ表す。上式(1)は、3つの画素の輝度値を平面上の2点に見立て、この2点間のユークリッド距離を特徴量C(x,y)とした式である。すなわち、点(I(x,y),I(x,y))と、点(I(x+1,y),I(x,y+1))との間のユークリッド距離が特徴量C(x,y)である。   Here, C (x, y) represents the feature amount of the pixel at coordinates (x, y), and I (x, y) represents the luminance value of the pixel at coordinates (x, y). The above equation (1) is an equation in which the luminance values of the three pixels are regarded as two points on the plane, and the Euclidean distance between the two points is the feature quantity C (x, y). That is, the Euclidean distance between the point (I (x, y), I (x, y)) and the point (I (x + 1, y), I (x, y + 1)) is the feature quantity C (x, y ).

定義より、隣り合う画素の輝度値が大きく変化していれば、特徴量は大きくなる。逆に、隣り合う画素の輝度値がゆるやかに変化している場合には、特徴量は小さくなる。例えば、図2において画素P11の特徴量C(1,1)を算出することを考える。このとき、I(1,1)は画素P11の輝度値60、I(2,1)は画素P21の輝度値70、I(1,2)は画素P12の輝度値40である。これらの値を式(1)に当てはめると、画素P11の特徴量C(1,1)は22となる。一方で、画素P11よりも周囲の画素との輝度値の差が大きい画素P12の場合、特徴量は50となる。   From the definition, if the luminance value of an adjacent pixel changes greatly, the feature amount becomes large. On the other hand, when the luminance value of the adjacent pixel changes gently, the feature amount becomes small. For example, consider calculating the feature amount C (1, 1) of the pixel P11 in FIG. At this time, I (1,1) is the luminance value 60 of the pixel P11, I (2,1) is the luminance value 70 of the pixel P21, and I (1,2) is the luminance value 40 of the pixel P12. When these values are applied to the equation (1), the characteristic amount C (1, 1) of the pixel P11 becomes 22. On the other hand, in the case of the pixel P12 in which the difference in luminance value from the surrounding pixels is larger than that of the pixel P11, the feature amount is 50.

次に、画像補正部16bによる輝度値への演算について説明する。画像補正部16bは、特徴量算出部16aにより上述のようにして算出された画素ごとの特徴量を、各画素の輝度値に対し加算もしくは減算する。   Next, the calculation to the luminance value by the image correction unit 16b will be described. The image correction unit 16b adds or subtracts the feature amount for each pixel calculated as described above by the feature amount calculation unit 16a to the luminance value of each pixel.

図3は、画像補正部16bにより行われる輝度値への加減算処理の第1例を示す図である。以下では、説明を簡単にするため、図3(a)に示すように水平方向に一列に並んだ画素群31について述べる。なお、以下で説明する内容は、図2に示した縦横に並んだ画素についても図3(a)と同様に適用可能である。   FIG. 3 is a diagram illustrating a first example of the addition / subtraction process to the luminance value performed by the image correction unit 16b. Hereinafter, in order to simplify the description, the pixel group 31 arranged in a line in the horizontal direction as shown in FIG. 3A will be described. The contents described below can be applied to the pixels arranged in the vertical and horizontal directions shown in FIG. 2 in the same manner as in FIG.

いま、図3(a)に示した、水平方向に一列に並んだ画素群31が、図3(b)にグラフで示した輝度値を備えるものとする。図3(b)に示した通り、隣り合う画素の輝度値は、緩やかに変化している。これらの画素に対して特徴量算出部16aにより算出された特徴量を図3(c)に示す。図3(b)に示したように、画素群31は、隣り合う画素の輝度値がゆるやかに変化しているので、図3(c)に示す画素の特徴量は小さな値となっている。   Now, it is assumed that the pixel group 31 arranged in a line in the horizontal direction shown in FIG. 3A has the luminance values shown in the graph in FIG. As shown in FIG. 3B, the luminance values of adjacent pixels change gently. FIG. 3C shows the feature amounts calculated by the feature amount calculation unit 16a for these pixels. As shown in FIG. 3B, in the pixel group 31, the luminance value of the adjacent pixels is gradually changed, so that the feature amount of the pixel shown in FIG. 3C is a small value.

画像補正部16bは、図3(c)に示した特徴量を、図3(b)に示した輝度値と加算あるいは減算する。加算と減算のどちらが行われるかは、ユーザがデジタルカメラ1に設定した演算モードにより決定される。図3(b)に示した輝度値から、画像補正部16bにより図3(c)に示した特徴量が減じられた結果を図3(d)に示す。特徴量が小さな値となっているため、全体の輝度値が少しずつ減少している。同様に、画像補正部により図3(c)に示した特徴量が加算された結果を図3(e)に示す。減算の場合と同様に、全体の輝度値が少しずつ増加している。以上のように、第1例の画素群31においては、隣り合う画素の輝度値に急激な変化が含まれていないので、輝度値には大きな変化が与えられない。   The image correction unit 16b adds or subtracts the feature amount shown in FIG. 3C with the luminance value shown in FIG. Whether the addition or subtraction is performed is determined by the calculation mode set in the digital camera 1 by the user. FIG. 3D shows a result obtained by subtracting the feature amount shown in FIG. 3C from the luminance value shown in FIG. 3B by the image correction unit 16b. Since the feature amount is a small value, the overall luminance value gradually decreases. Similarly, FIG. 3E shows the result of adding the feature amounts shown in FIG. 3C by the image correction unit. As in the case of subtraction, the overall luminance value gradually increases. As described above, in the pixel group 31 of the first example, since the brightness value of the adjacent pixel does not include a rapid change, the brightness value is not greatly changed.

図4は、画像補正部16bにより行われる輝度値への加減算処理の第2例を示す図である。図3と同様に、図4(a)に示した画素群41が、図4(b)に示す輝度値を備えるものとする。画素群41は、図3の画素群31と比べ、隣り合う画素において輝度値が大きく変化している箇所が存在する。そのため、図4(c)に示した画素群41の特徴量には、図3と比べ大きな値が確認できる。   FIG. 4 is a diagram illustrating a second example of the addition / subtraction process to the luminance value performed by the image correction unit 16b. Similarly to FIG. 3, it is assumed that the pixel group 41 shown in FIG. 4A has the luminance value shown in FIG. In the pixel group 41, there is a portion where the luminance value greatly changes in adjacent pixels as compared to the pixel group 31 in FIG. Therefore, a large value can be confirmed in the feature amount of the pixel group 41 shown in FIG.

図4(c)に示した特徴量を図4(b)に示した輝度値から減じた結果を図4(d)に、加算した結果を図4(e)に示す。図4(d)では、比較的大きな輝度値を備える画素の集まりにおいて、集まりの前後に位置していた画素の輝度値が大きく減っていることがわかる。すなわち、画像補正部16bによる輝度値の減算処理は、画像の輪郭に対して光量を減らす効果を与える。その結果、画像の輪郭が強調される。   FIG. 4D shows the result of subtracting the feature amount shown in FIG. 4C from the luminance value shown in FIG. 4B, and FIG. 4E shows the result of addition. In FIG. 4D, it can be seen that in a group of pixels having relatively large luminance values, the luminance values of the pixels located before and after the group are greatly reduced. That is, the luminance value subtraction processing by the image correction unit 16b has an effect of reducing the light amount with respect to the contour of the image. As a result, the contour of the image is enhanced.

他方、図4(e)に示した特徴量の加算結果では、比較的大きな輝度値を備える画素の集まりにおいて、集まりの前後に位置していた画素の輝度値が大きく増加している。すなわち、画像補正部16bによる輝度値への加算処理は、画像の輪郭に対して光量が増加する効果を与える。その結果、画像の輪郭がぼやける。   On the other hand, in the feature value addition result shown in FIG. 4E, the luminance values of the pixels located before and after the group of pixels having relatively large luminance values are greatly increased. That is, the addition processing to the luminance value by the image correction unit 16b has an effect of increasing the light amount with respect to the contour of the image. As a result, the contour of the image is blurred.

次に、上述した距離算出部16aおよび画像補正部16bによる画像処理を含む、撮像から画像データの記録までの処理について、具体的な処理の流れを図を用いて説明する。   Next, a specific processing flow from the imaging to the recording of image data including the image processing by the distance calculation unit 16a and the image correction unit 16b described above will be described with reference to the drawings.

図5は、撮像から画像データの記録までの処理の流れを示す図である。まずステップS1で、撮像素子15により被写体像の撮像が行われ、画像信号が制御回路16へ出力される。ステップS2では、制御回路16により画像信号に対して種々の画像処理が行われる。ステップS3では、特徴量算出部16aにより画像信号に対して特徴量の算出処理が行われる。なお、制御回路16は、ステップS2およびステップS3の処理を順に実行してもよいし、並列に実行してもよい。   FIG. 5 is a diagram showing a flow of processing from imaging to recording of image data. First, in step S <b> 1, a subject image is picked up by the image pickup device 15, and an image signal is output to the control circuit 16. In step S2, the control circuit 16 performs various image processing on the image signal. In step S3, a feature amount calculation process is performed on the image signal by the feature amount calculation unit 16a. Note that the control circuit 16 may execute the processes of step S2 and step S3 in order or in parallel.

ステップS4では、画像補正部16bにより、ステップS3により算出された特徴量に基づいた演算が各画素の輝度値に対して行われる。ステップS5では、所定の圧縮処理などが行われ、画像データが作成される。ステップS6では、ステップS5で作成された画像データが記憶媒体22へ記録される。   In step S4, the image correction unit 16b performs an operation on the luminance value of each pixel based on the feature amount calculated in step S3. In step S5, predetermined compression processing or the like is performed, and image data is created. In step S6, the image data created in step S5 is recorded on the storage medium 22.

上述した第1の実施の形態によるデジタルカメラによれば、次の作用効果が得られる。
(1)特徴量算出部16aが右方向および下方向の隣接画素の輝度値を用いて算出する、ユークリッド距離に基づく特徴量を、画像補正部16bが輝度値へ加算および減算する。これにより、画像の輪郭の鮮鋭度を弱めたり強めたりすることができる。
(2)特徴量算出部16aは、右方向に隣接する画素ならびに下方向に隣接する画素の2つの画素に基づいて、1つの画素の特徴量を算出する。これにより、各画素に対応する特徴量を少ない計算量で算出することができる。
――第2の実施の形態――
上述した第1の実施の形態では、特徴量算出部16aおよび画像補正部16bによる画像処理が、画像データを記憶媒体に記録する際に行われていた。第2の実施の形態によるデジタルカメラは、同様の画像処理を、液晶モニタへ画像を表示する際に行う。
According to the digital camera according to the first embodiment described above, the following operational effects can be obtained.
(1) The image correction unit 16b adds and subtracts the feature amount based on the Euclidean distance, which the feature amount calculation unit 16a calculates using the luminance values of the adjacent pixels in the right direction and the downward direction, to the luminance value. Thereby, the sharpness of the outline of an image can be weakened or strengthened.
(2) The feature amount calculation unit 16a calculates a feature amount of one pixel based on two pixels, a pixel adjacent in the right direction and a pixel adjacent in the downward direction. Thereby, the feature amount corresponding to each pixel can be calculated with a small amount of calculation.
-Second embodiment-
In the first embodiment described above, the image processing by the feature amount calculation unit 16a and the image correction unit 16b is performed when image data is recorded on a storage medium. The digital camera according to the second embodiment performs similar image processing when displaying an image on a liquid crystal monitor.

以下、本実施形態のデジタルカメラにおいて、ライブビュー機能が有効になっている場合の動作について説明する。ライブビュー機能が有効となっているとき、制御回路は撮像素子からの画像信号の入力を毎秒30回行う。このときの画像信号は、撮像素子が備える全ての画素の画素値を含むのではなく、液晶モニタの解像度に合わせていくつかの画素が間引かれている。   Hereinafter, an operation when the live view function is enabled in the digital camera of the present embodiment will be described. When the live view function is enabled, the control circuit inputs an image signal from the image sensor 30 times per second. The image signal at this time does not include the pixel values of all the pixels included in the image sensor, but some pixels are thinned out in accordance with the resolution of the liquid crystal monitor.

制御回路はこの画像信号について、第1の実施形態と同様に、特徴量算出部および画像補正部による補正処理を実行する。これにより、輪郭が強調された表示用画像データが得られる。そして、制御回路により、表示用画像データが液晶モニタに表示される。   The control circuit executes correction processing on the image signal by the feature amount calculation unit and the image correction unit, as in the first embodiment. Thereby, display image data in which the contour is emphasized is obtained. Then, the display image data is displayed on the liquid crystal monitor by the control circuit.

さらに、本実施の形態によるデジタルカメラは、特徴量を輝度値に加算および減算する際、所定の係数を特徴量に乗じる。この係数は、ユーザが任意に設定できるようにしてもよいし、デジタルカメラが測定した環境光の強さに応じて自動的に設定されるようにしてもよい。係数を1よりも大きくした場合には、特徴量が輝度値に与える影響が大きくなり、逆に係数を1よりも小さくした場合には、特徴量が輝度値に与える影響が小さくなる。   Furthermore, the digital camera according to the present embodiment multiplies the feature amount by a predetermined coefficient when adding and subtracting the feature amount to the luminance value. This coefficient may be arbitrarily set by the user, or may be automatically set according to the intensity of ambient light measured by the digital camera. When the coefficient is larger than 1, the influence of the feature amount on the luminance value is increased. Conversely, when the coefficient is smaller than 1, the influence of the feature amount on the luminance value is reduced.

上述した第2の実施の形態によるデジタルカメラによれば、第1の実施の形態によるデジタルカメラで得られる作用効果に加えて、次の作用効果が得られる。
(1)制御回路が、撮像素子から入力された画像信号へ画像補正処理を行った後に、液晶モニタへこの画像信号に基づいて作成された画像を表示する。これにより、液晶モニタには輪郭が強調された画像が表示されるので、液晶モニタの視認性が向上する。
(2)液晶モニタに表示される画像へ適用される補正処理の強度は、環境光あるいはユーザの指示に基づいて決定される。これにより、デジタルカメラの操作環境に起因する液晶モニタの視認性の低下を抑制することができる。
According to the digital camera according to the second embodiment described above, the following functions and effects can be obtained in addition to the functions and effects obtained by the digital camera according to the first embodiment.
(1) The control circuit performs image correction processing on the image signal input from the image sensor, and then displays an image created based on the image signal on the liquid crystal monitor. As a result, an image with an enhanced outline is displayed on the liquid crystal monitor, so that the visibility of the liquid crystal monitor is improved.
(2) The intensity of the correction process applied to the image displayed on the liquid crystal monitor is determined based on ambient light or a user instruction. Thereby, the fall of the visibility of the liquid crystal monitor resulting from the operating environment of a digital camera can be suppressed.

次のような変形も本発明の範囲内であり、変形例の一つ、もしくは複数を上述の実施形態と組み合わせることも可能である。
(1)画像補正部による演算は、加算と減算とに限定せず、それ以外の演算であってもよい。例えば任意の関数によるものであってもよい。
(2)特徴量を算出する式(1)へ、所定の係数を追加してもよい。例えば、右隣の画素との輝度値の差が特徴量へより大きな影響を与えるよう、I(x+1,y)−I(x,y)へ1より大きな係数を乗じるようにしてもよい。
(3)特徴量算出部および画像補正部による補正処理は、撮影時およびライブビュー機能の有効時以外に実行してもよい。例えば、記憶媒体に記録されている画像を表示する際に補正処理を実行するようにしてもよいし、記憶媒体に記録されている画像を加工して記録し直す際に実行できるようにしてもよい。
(4)特徴量の算出を行う際に、右方向に隣接する画素ならびに下方向に隣接する画素以外の画素を参照してもよい。例えば、左方向に隣接する画素と上方向に隣接する画素を用いて特徴量の算出を行ってもよい。
(5)上述した各実施の形態の制御回路を、フラッシュメモリに格納されている所定の制御プログラムを実行するCPUとしてもよい。この場合、各実施形態において制御回路が実行する各処理は、CPUが所定の制御プログラムを実行することにより実現される。
The following modifications are also within the scope of the present invention, and one or a plurality of modifications can be combined with the above-described embodiment.
(1) The calculation by the image correction unit is not limited to addition and subtraction, but may be other calculations. For example, it may be based on an arbitrary function.
(2) A predetermined coefficient may be added to Expression (1) for calculating the feature amount. For example, I (x + 1, y) −I (x, y) may be multiplied by a coefficient larger than 1 so that the difference in luminance value with the right adjacent pixel has a greater influence on the feature amount.
(3) The correction processing by the feature amount calculation unit and the image correction unit may be executed at a time other than when shooting and when the live view function is enabled. For example, the correction process may be executed when an image recorded on the storage medium is displayed, or may be executed when the image recorded on the storage medium is processed and re-recorded. Good.
(4) When calculating the feature amount, a pixel other than the pixel adjacent in the right direction and the pixel adjacent in the downward direction may be referred to. For example, the feature amount may be calculated using pixels adjacent in the left direction and pixels adjacent in the upward direction.
(5) The control circuit of each embodiment described above may be a CPU that executes a predetermined control program stored in the flash memory. In this case, each process executed by the control circuit in each embodiment is realized by the CPU executing a predetermined control program.

本発明の特徴を損なわない限り、本発明は上記実施の形態に限定されるものではなく、本発明の技術的思想の範囲内で考えられるその他の形態についても、本発明の範囲内に含まれる。   As long as the characteristics of the present invention are not impaired, the present invention is not limited to the above-described embodiments, and other forms conceivable within the scope of the technical idea of the present invention are also included in the scope of the present invention. .

第1の実施の形態によるデジタルカメラの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the digital camera by 1st Embodiment. 特徴量の算出手順を説明する図である。It is a figure explaining the calculation procedure of a feature-value. 画像補正部16bにより行われる輝度値への加減算処理の第1例を示す図である。It is a figure which shows the 1st example of the addition / subtraction process to the luminance value performed by the image correction part 16b. 画像補正部16bにより行われる輝度値への加減算処理の第2例を示す図である。It is a figure which shows the 2nd example of the addition / subtraction process to the luminance value performed by the image correction part 16b. 撮像から画像データの記録までの処理の流れを示す図である。It is a figure which shows the flow of a process from imaging to recording of image data.

符号の説明Explanation of symbols

1 デジタルカメラ
15 撮像素子
16 制御回路
16a 特徴量算出部
16b 画像補正部
22 記憶媒体
DESCRIPTION OF SYMBOLS 1 Digital camera 15 Image pick-up element 16 Control circuit 16a Feature-value calculation part 16b Image correction part 22 Storage medium

Claims (7)

画像信号を入力する入力手段と、
前記入力手段に入力された画像信号に含まれる各々の画素について、処理対象となる注目画素の輝度値と隣接周辺画素の輝度値との差をユークリッド距離に換算して特徴量を算出する特徴量算出手段と、
前記入力手段に入力された画像信号に含まれる各画素の輝度値について、前記特徴量算出手段により算出された特徴量に基づき所定の演算を行う演算手段と、
を備えることを特徴とする画像処理装置。
An input means for inputting an image signal;
For each pixel included in the image signal input to the input means, a feature amount for calculating a feature amount by converting a difference between a luminance value of a target pixel to be processed and a luminance value of an adjacent peripheral pixel into a Euclidean distance A calculation means;
A calculation unit that performs a predetermined calculation on the luminance value of each pixel included in the image signal input to the input unit based on the feature amount calculated by the feature amount calculation unit;
An image processing apparatus comprising:
請求項1に記載の画像処理装置において、
前記演算手段は、前記所定の演算として、各々の画素の輝度値に前記特徴量を加算することを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
The image processing apparatus, wherein the calculation means adds the feature amount to a luminance value of each pixel as the predetermined calculation.
請求項1に記載の画像処理装置において、
前記演算手段は、前記所定の演算として、各々の画素の輝度値から前記特徴量を減算することを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
The image processing apparatus, wherein the calculation means subtracts the feature amount from a luminance value of each pixel as the predetermined calculation.
撮像素子から得られた信号を前記画像信号として入力する請求項1〜3のいずれか一項に記載の画像処理装置を備えることを特徴とするデジタルカメラ。   The digital camera provided with the image processing apparatus as described in any one of Claims 1-3 which inputs the signal obtained from the image pick-up element as the said image signal. 請求項4に記載のデジタルカメラにおいて、
前記演算手段により所定の演算が行われた画像信号を記憶媒体に記憶することを特徴とするデジタルカメラ。
The digital camera according to claim 4, wherein
A digital camera characterized in that an image signal subjected to a predetermined calculation by the calculation means is stored in a storage medium.
請求項4または5に記載のデジタルカメラにおいて、
前記演算手段により所定の演算が行われた画像信号に基づいて、画像を表示することを特徴とするデジタルカメラ。
The digital camera according to claim 4 or 5,
An image is displayed on the basis of an image signal subjected to a predetermined calculation by the calculation means.
画像信号を入力する入力工程と、
前記入力工程において入力された画像信号に含まれる各々の画素について、処理対象となる注目画素の輝度値と隣接周辺画素の輝度値との差をユークリッド距離に換算して特徴量を算出する特徴量算出工程と、
前記入力工程において入力された画像信号に含まれる各画素の輝度値について、前記特徴量算出工程により算出された特徴量に基づき所定の演算を行う演算工程と、
をコンピュータに実行させることを特徴とする画像処理プログラム。
An input process for inputting an image signal;
For each pixel included in the image signal input in the input step, a feature amount for calculating a feature amount by converting a difference between a luminance value of a target pixel to be processed and a luminance value of an adjacent peripheral pixel into a Euclidean distance A calculation process;
A calculation step of performing a predetermined calculation based on the feature amount calculated by the feature amount calculation step for the luminance value of each pixel included in the image signal input in the input step;
An image processing program for causing a computer to execute.
JP2008275730A 2008-10-27 2008-10-27 Digital camera and image processing program Expired - Fee Related JP5412791B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008275730A JP5412791B2 (en) 2008-10-27 2008-10-27 Digital camera and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008275730A JP5412791B2 (en) 2008-10-27 2008-10-27 Digital camera and image processing program

Publications (2)

Publication Number Publication Date
JP2010103934A true JP2010103934A (en) 2010-05-06
JP5412791B2 JP5412791B2 (en) 2014-02-12

Family

ID=42294125

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008275730A Expired - Fee Related JP5412791B2 (en) 2008-10-27 2008-10-27 Digital camera and image processing program

Country Status (1)

Country Link
JP (1) JP5412791B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10941280B2 (en) 2014-12-02 2021-03-09 Namics Corporation Liquid sealing material for copper bump, and resin composition for use as same

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07177531A (en) * 1993-12-16 1995-07-14 Canon Inc Image pickup device
JP2004118335A (en) * 2002-09-24 2004-04-15 Hamamatsu Photonics Kk Image processing method and image processing apparatus
JP2004341422A (en) * 2003-05-19 2004-12-02 Hitachi Ltd Map generation device, map distribution method, and map generation program
WO2005064920A1 (en) * 2003-12-25 2005-07-14 Nokia Corporation Digital photographing apparatus, method for adjusting focus of digital photographing apparatus, and program for digital photographing apparatus
JP2008167461A (en) * 1997-06-02 2008-07-17 Seiko Epson Corp Edge-enhancement processing apparatus, output device, edge-enhancement processing method and computer readable recording medium
WO2008102677A1 (en) * 2007-02-19 2008-08-28 Olympus Corporation Image picking-up system, image processing program and image processing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07177531A (en) * 1993-12-16 1995-07-14 Canon Inc Image pickup device
JP2008167461A (en) * 1997-06-02 2008-07-17 Seiko Epson Corp Edge-enhancement processing apparatus, output device, edge-enhancement processing method and computer readable recording medium
JP2004118335A (en) * 2002-09-24 2004-04-15 Hamamatsu Photonics Kk Image processing method and image processing apparatus
JP2004341422A (en) * 2003-05-19 2004-12-02 Hitachi Ltd Map generation device, map distribution method, and map generation program
WO2005064920A1 (en) * 2003-12-25 2005-07-14 Nokia Corporation Digital photographing apparatus, method for adjusting focus of digital photographing apparatus, and program for digital photographing apparatus
WO2008102677A1 (en) * 2007-02-19 2008-08-28 Olympus Corporation Image picking-up system, image processing program and image processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10941280B2 (en) 2014-12-02 2021-03-09 Namics Corporation Liquid sealing material for copper bump, and resin composition for use as same

Also Published As

Publication number Publication date
JP5412791B2 (en) 2014-02-12

Similar Documents

Publication Publication Date Title
JP4186699B2 (en) Imaging apparatus and image processing apparatus
JP5246078B2 (en) Object location program and camera
WO2015196896A1 (en) Focusing state prompting method and shooting device
JP2009017223A (en) Imaging device, image processing device, and their image processing method and program
JP4868046B2 (en) Image processing apparatus, image processing method, and program
JP2017175364A (en) Image processing device, imaging device, and control method of image processing device
US9137506B2 (en) User interface (UI) providing method and photographing apparatus using the same
JP5589660B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP5949559B2 (en) Image processing apparatus, imaging apparatus, and image processing program
KR101599885B1 (en) Digital photographing apparatus and method
JP2013225779A (en) Image processing device, imaging device, and image processing program
JP4632417B2 (en) Imaging apparatus and control method thereof
JP6099973B2 (en) Subject area tracking device, control method thereof, and program
JP5412791B2 (en) Digital camera and image processing program
JP5673454B2 (en) Image processing apparatus, image processing method, and program
JP4306687B2 (en) Image processing method, image processing program, and image processing apparatus
JP4661957B2 (en) Image matching device and camera
JP6003974B2 (en) Image processing apparatus, image processing method, and program
JP4770965B2 (en) Image matching device and camera
JP5750934B2 (en) Image processing apparatus and image processing program
JP2012213075A (en) Image processor and image processing program
JP5092958B2 (en) Image processing apparatus and program
JP6314281B1 (en) Image processing method and foreground region acquisition method
JP2012222508A (en) Image processor and image processing program
JP2012222509A (en) Image processor and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110929

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120322

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120813

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120911

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130716

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130917

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131015

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131028

R150 Certificate of patent or registration of utility model

Ref document number: 5412791

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees