JP2008182350A - Imaging apparatus and method thereof - Google Patents
Imaging apparatus and method thereof Download PDFInfo
- Publication number
- JP2008182350A JP2008182350A JP2007012855A JP2007012855A JP2008182350A JP 2008182350 A JP2008182350 A JP 2008182350A JP 2007012855 A JP2007012855 A JP 2007012855A JP 2007012855 A JP2007012855 A JP 2007012855A JP 2008182350 A JP2008182350 A JP 2008182350A
- Authority
- JP
- Japan
- Prior art keywords
- image processing
- image
- noise removal
- resolution
- image data
- 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
Links
Images
Landscapes
- Studio Devices (AREA)
Abstract
【課題】画面全体の明るさや主要被写体の明るさに応じたノイズ除去処理をおこなうことにより、簡単に良好な画質を得る。
【解決手段】画面全体の各画素の輝度値から平均値を算出し、この平均値と解像感優先閾値aとの比較を行う。輝度の平均値がa以上の場合は、明るい画像でありノイズ部が気にならないと判断して、解像感優先の画像処理を行う。逆に輝度の平均値がa未満の場合は、暗い画像でありノイズ部が多いと判断して、ノイズ除去優先の画像処理を行う。
【選択図】 図4[PROBLEMS] To easily obtain a good image quality by performing noise removal processing in accordance with the brightness of the entire screen and the brightness of a main subject.
An average value is calculated from the luminance value of each pixel of the entire screen, and the average value is compared with a resolution priority threshold a. If the average luminance value is a or more, it is determined that the image is bright and the noise part is not concerned, and image processing with priority on resolution is performed. On the contrary, when the average value of luminance is less than a, it is determined that the image is dark and there are many noise portions, and image processing with priority to noise removal is performed.
[Selection] Figure 4
Description
本発明は撮像装置及びその方法に係り、特に画像のノイズを除去しながら解像感を残す撮像装置及びその方法に関する。 The present invention relates to an imaging apparatus and method, and more particularly to an imaging apparatus and method that leaves a sense of resolution while removing noise in an image.
画像撮影をおこなう際に撮像素子に生ずるノイズ量は、被写体の輝度に依存しないため、同じノイズでも被写体が高輝度の場合は目立たないが、低輝度では目立つようになる。また高感度撮影時には、低感度撮影時よりも撮像系のランダムノイズによる画質劣化が目立つようになる。 The amount of noise generated in the image sensor when taking an image does not depend on the luminance of the subject, so even if the subject is the same noise, it is inconspicuous when the subject has high luminance, but becomes noticeable at low luminance. In high-sensitivity shooting, image quality deterioration due to random noise in the imaging system becomes more noticeable than in low-sensitivity shooting.
高感度撮影時にノイズを除去しながら解像感を残す画像処理として、従来から、画面の輝度に応じてノイズ低減処理をおこうことがおこなわれている。特許文献1には、逆光及び過順光度合いを判別して階調補正を行うが、AGC(自動利得制御回路)での利得が大きくなる場合には、低輝度部での階調補正を抑圧し、ノイズがめだたないようにする技術が開示されている。
しかしながら、ノイズ低減処理をおこなうにあたっては画面全体の明るさや主要被写体の明るさが重要であり、特許文献1のような輝度依存型ノイズ低減処理をおこなっても高画質に見えない場合があるという問題があった。また画像の部分処理は画面内の連続性が失われ、不自然な感じになるというデメリットがあった。
However, when performing noise reduction processing, the brightness of the entire screen and the brightness of the main subject are important, and even if the luminance-dependent noise reduction processing as in
本発明はこのような事情に鑑みてなされたもので、画像全体の明るさ、または主要被写体の明るさを調べ、画像が暗い場合はノイズ部が多いと判断してノイズ除去優先の画質とし、画像が明るい場合はノイズ部が気にならないと判断して解像感優先の画質とすることによって、簡単に良好な画質を得ることができる撮像装置およびその方法を提供することを目的とする。 The present invention has been made in view of such circumstances, the brightness of the entire image or the brightness of the main subject is examined, and when the image is dark, it is determined that there are many noise portions, and the image quality is given priority to noise removal. An object of the present invention is to provide an imaging apparatus and method that can easily obtain a good image quality by determining that the noise part is not a concern when the image is bright and setting the image quality with priority on resolution.
前記目的を達成するために請求項1に係る撮像装置は、撮像レンズを介して受光した被写体像を画像データに変換する撮像手段と、前記画像データから画像の明るさを算出する明るさ算出手段と、前記明るさ算出手段が算出した画像の明るさと所定の閾値とを比較することにより、画像が明るいか否かを判定する判定手段と、前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によって画像が明るいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、画像が暗いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段とを備えたことを特徴とする。
In order to achieve the object, an imaging apparatus according to
このように、算出した画面の明るさによって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal according to the calculated brightness of the screen.
請求項2に示すように請求項1に記載の撮像装置において、前記画像データの画面全体の各画素の輝度データを算出する輝度算出手段を備え、前記明るさ算出手段は、前記画面全体の各画素の輝度データの平均値を算出することを特徴とする。 According to a second aspect of the present invention, in the imaging apparatus according to the first aspect of the present invention, the apparatus includes a luminance calculation unit that calculates luminance data of each pixel of the entire screen of the image data, and the brightness calculation unit An average value of luminance data of pixels is calculated.
このように、画面の明るさとして画面全体の各画素の輝度データの平均値を用いることにより、簡単に画面の明るさを判定することができる。 Thus, the brightness of the screen can be easily determined by using the average value of the luminance data of each pixel of the entire screen as the brightness of the screen.
請求項3に係る撮像装置は、撮像レンズを介して受光した被写体像を画像データに変換する撮像手段と、前記画像データの画面全体の各画素の輝度データを算出する輝度算出手段と、前記輝度データが所定の第1の閾値以下である画素の数を計数する計数手段と、前記計数手段が計数した画素の数と所定の第2の閾値とを比較することにより、画像の暗部面積が広いか否かを判定する判定手段と、前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によって前記暗部面積が狭いと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、前記暗部面積が広いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段とを備えたことを特徴とする。 An imaging apparatus according to a third aspect includes an imaging unit that converts a subject image received through an imaging lens into image data, a luminance calculation unit that calculates luminance data of each pixel of the entire screen of the image data, and the luminance By comparing the number of pixels whose data is less than or equal to a predetermined first threshold with the number of pixels counted by the counting means and a predetermined second threshold, the dark area of the image is wide. Determining means for determining whether or not the image processing means performs image processing including noise removal on the image data, and if the determination means determines that the dark area is narrow, the noise removal And image processing means for performing image processing giving priority to resolution and performing image processing giving priority to noise removal over resolution when the dark area is determined to be wide.
このように、画面の暗部面積によって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal depending on the dark area of the screen.
請求項4に係る撮像装置は、撮像レンズを介して受光した被写体像を画像データに変換する撮像手段と、前記画像データの画面全体の各画素の輝度データを算出する輝度算出手段と、前記輝度データのヒストグラムの中央値又は最頻値と所定の閾値とを比較することにより、ヒストグラムの中央値又は最頻値が大きいか否かを判定する判定手段と、前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によってヒストグラムの中央値又は最頻値が大きいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、ヒストグラムの中央値又は最頻値が小さいと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段とを備えたことを特徴とする。 An imaging apparatus according to a fourth aspect includes an imaging unit that converts a subject image received through an imaging lens into image data, a luminance calculation unit that calculates luminance data of each pixel of the entire screen of the image data, and the luminance Determining means for determining whether the median or mode of the histogram is large by comparing the median or mode of the data histogram with a predetermined threshold, and noise removal for the image data If the determination means determines that the median or mode of the histogram is large, it performs image processing giving priority to resolution over noise removal, When it is determined that the median value or the mode value is small, an image processing unit that performs image processing that prioritizes noise removal over resolution is provided.
このように、ヒストグラムの中央値又は最頻値によって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal based on the median or mode value of the histogram.
請求項5に係る撮像装置は、撮像レンズを介して受光した被写体像を画像データに変換する撮像手段と、前記画像データから人物の顔領域を検出する顔検出手段と、前記検出した顔領域の画像データから顔領域の明るさを算出する明るさ検出手段と、前記明るさ検出手段が検出した顔領域の明るさと所定の閾値とを比較することにより、顔画像が明るいか否かを判定する判定手段と、前記画像データに対してノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によって顔領域が明るいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、顔領域が暗いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段とを備えたことを特徴とする。 An imaging apparatus according to a fifth aspect includes an imaging unit that converts a subject image received through an imaging lens into image data, a face detection unit that detects a human face area from the image data, and the detected face area. It is determined whether or not the face image is bright by comparing brightness detection means for calculating the brightness of the face area from image data and the brightness of the face area detected by the brightness detection means with a predetermined threshold value. An image processing unit that performs image processing including noise removal on the image data, and when the determination unit determines that the face area is bright, an image that gives priority to resolution over noise removal When the face area is determined to be dark after processing, the image processing means performs image processing that prioritizes noise removal over resolution.
このように、顔領域の明るさによって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal depending on the brightness of the face area.
請求項6に示すように請求項5に記載の撮像装置において、前記画像データの顔領域の各画素の輝度データを算出する輝度算出手段を備え、前記明るさ算出手段は、前記顔領域の各画素の輝度データの平均値を算出することを特徴とする。 The imaging apparatus according to claim 5, further comprising luminance calculation means for calculating luminance data of each pixel of the face area of the image data, wherein the brightness calculation means An average value of luminance data of pixels is calculated.
このように、顔領域の明るさとして顔領域の各画素の輝度データの平均値を用いることにより、簡単に画面の明るさを判定することができる。 Thus, the brightness of the screen can be easily determined by using the average value of the luminance data of each pixel in the face area as the brightness of the face area.
請求項7に係る撮像装置は、撮像レンズを介して受光した被写体像を画像データに変換する撮像手段と、前記画像データから人物の顔領域を検出する顔検出手段と、前記画像データの顔領域の各画素の輝度データを算出する輝度算出手段と、前記輝度データが所定の第1の閾値以下である画素の数を計数する計数手段と、前記計数手段が計数した画素の数と所定の第2の閾値とを比較することにより、顔領域の暗部面積が広いか否かを判定する判定手段と、前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によって前記暗部面積が狭いと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、前記暗部面積が広いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段とを備えたことを特徴とする撮像装置。 An image pickup apparatus according to claim 7 includes an image pickup unit that converts a subject image received through an image pickup lens into image data, a face detection unit that detects a human face area from the image data, and a face area of the image data. Brightness calculating means for calculating the brightness data of each pixel, counting means for counting the number of pixels for which the brightness data is equal to or less than a predetermined first threshold, and the number of pixels counted by the counting means and a predetermined first number A determination unit that determines whether or not the dark area of the face region is wide by comparing the threshold value of 2, and an image processing unit that performs image processing including noise removal on the image data, When the determination unit determines that the dark area is narrow, image processing is performed with priority on resolution over noise removal. When the dark area is determined to be wide, noise removal is prioritized over resolution. Perform image processing Imaging apparatus characterized by comprising an image processing unit.
このように、顔領域の暗部面積によって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal depending on the dark area of the face region.
請求項8に係る撮像装置は、撮像レンズを介して受光した被写体像を画像データに変換する撮像手段と、前記画像データから人物の顔領域を検出する顔検出手段と、前記画像データの顔領域の各画素の輝度データを算出する輝度算出手段と、前記輝度算出手段が算出した輝度データの、ヒストグラムの中央値又は最頻値と、所定の閾値とを比較することにより、ヒストグラムの中央値又は最頻値が大きいか否かを判定する判定手段と、前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によってヒストグラムの中央値又は最頻値が大きいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、ヒストグラムの中央値又は最頻値が小さいと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段とを備えたことを特徴とする。
An imaging apparatus according to
このように、顔部の輝度のヒストグラムの中央値又は最頻値によって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal based on the median or mode value of the histogram of the luminance of the face. .
請求項9に示すように請求項1、2、4、5、6、8のいずれかに記載の撮像装置において、撮影感度を設定する撮影感度設定手段を備え、前記判定手段は、前記撮影感度設定手段が設定した感度に応じて前記感度が高い程、前記所定の閾値が高くなるように前記閾値を変更することを特徴とする。
The imaging apparatus according to any one of
請求項10に示しように請求項3又は請求項7に記載の撮像装置において、撮影感度を設定する撮影感度設定手段を備え、前記判定手段は、前記撮影感度設定手段が設定した感度に応じて前記感度が高い程、前記所定の第1の閾値が高くなる、又は前記所定の第2の閾値が低くなるように、前記所定の第1の閾値又は前記所定の第2の閾値の少なくとも一方を変更することを特徴とする。 According to a tenth aspect of the present invention, in the imaging device according to the third or seventh aspect, the imaging apparatus includes a photographing sensitivity setting unit that sets a photographing sensitivity, and the determination unit is configured according to the sensitivity set by the photographing sensitivity setting unit. As the sensitivity is higher, at least one of the predetermined first threshold or the predetermined second threshold is set so that the predetermined first threshold becomes higher or the predetermined second threshold becomes lower. It is characterized by changing.
このように、撮影感度に応じて明るさの判定閾値を変更することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by changing the brightness determination threshold according to the photographing sensitivity.
請求項11に示すように請求項1から10のいずれかに記載の撮像装置において、前記画像処理手段は、ノイズ除去パラメータの値を変更することで、解像感を優先した画像処理又はノイズ除去を優先した画像処理を行うことを特徴とする。
The imaging apparatus according to any one of
請求項12に示すように請求項11に記載の撮像装置において、撮影感度を設定する撮影感度設定手段を備え、前記画像処理手段は、前記撮影感度設定手段が設定した感度に応じて前記感度が高い程、ノイズ除去パラメータの値が大きくなるように前記値を変更することを特徴とする。 According to a twelfth aspect of the present invention, in the imaging device according to the eleventh aspect, the imaging apparatus includes a photographing sensitivity setting unit that sets photographing sensitivity, and the image processing unit has the sensitivity according to the sensitivity set by the photographing sensitivity setting unit. The value is changed so that the value of the noise removal parameter increases as the value increases.
このように、撮影感度が高い程ノイズ除去パラメータの値を大きくすることにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by increasing the value of the noise removal parameter as the photographing sensitivity is higher.
請求項13に示すように請求項1から12のいずれかに記載の撮像装置において、撮影感度を設定する撮影感度設定手段と、前記撮影感度が高感度か否かを検出する高感度検出手段とを備え、前記画像処理手段は、前記高感度検出手段が撮影感度が高感度であると検出したときに、前記判定手段の判定結果により画像処理を行うことを特徴とする。
In the imaging device according to any one of
このように、ノイズ除去が有効な高感度撮影時において、解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。またノイズが目立たない低感度撮影のときの処理を減らすことができる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal at the time of high-sensitivity imaging in which noise removal is effective. In addition, it is possible to reduce processing at the time of low-sensitivity shooting where noise is not noticeable.
請求項14に係る撮像方法は、撮像レンズを介して受光した被写体像を画像データに変換する撮像ステップと、前記画像データから画像の明るさを算出する明るさ算出ステップと、前記明るさ算出ステップが算出した画像の明るさと所定の閾値とを比較することにより、画像が明るいか否かを判定する判定ステップと、前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによって画像が明るいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、画像が暗いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップと、
を備えたことを特徴とする。
The imaging method according to claim 14 includes an imaging step of converting a subject image received through an imaging lens into image data, a brightness calculation step of calculating image brightness from the image data, and the brightness calculation step. A determination step for determining whether or not the image is bright by comparing the brightness of the calculated image with a predetermined threshold, and an image processing step for performing image processing including noise removal on the image data. If the determination step determines that the image is bright, image processing that prioritizes resolution over noise removal is performed. If the image is determined to be dark, image processing prioritizes noise removal over resolution. Image processing steps for processing;
It is provided with.
このように、算出した画面の明るさによって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal according to the calculated brightness of the screen.
請求項15に係る撮像方法は、撮像レンズを介して受光した被写体像を画像データに変換する撮像ステップと、前記画像データの画面全体の各画素の輝度データを算出する輝度算出ステップと、前記輝度データが所定の第1の閾値以下である画素の数を計数する計数ステップと、前記計数ステップが計数した画素の数と所定の第2の閾値とを比較することにより、画像の暗部面積が広いか否かを判定する判定ステップと、前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによって前記暗部面積が狭いと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、前記暗部面積が広いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップとを備えたことを特徴とする。 An imaging method according to claim 15 includes an imaging step of converting a subject image received through an imaging lens into image data, a luminance calculation step of calculating luminance data of each pixel of the entire screen of the image data, and the luminance The counting step for counting the number of pixels whose data is equal to or less than a predetermined first threshold value and the number of pixels counted by the counting step are compared with a predetermined second threshold value, thereby increasing the dark area of the image. A determination step for determining whether or not, and an image processing step for performing image processing including noise removal on the image data, wherein the determination step determines that the dark area is narrow, Image processing that prioritizes resolution, and if the dark area is determined to be large, an image processing step that performs image processing prioritizing noise removal over resolution is provided. Characterized in that was.
このように、画面の暗部面積によって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal depending on the dark area of the screen.
請求項16に係る撮像方法は、撮像レンズを介して受光した被写体像を画像データに変換する撮像ステップと、前記画像データの画面全体の各画素の輝度データを算出する輝度算出ステップと、前記輝度データのヒストグラムの中央値又は最頻値と所定の閾値とを比較することにより、ヒストグラムの中央値又は最頻値が大きいか否かを判定する判定ステップと、前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによってヒストグラムの中央値又は最頻値が大きいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、ヒストグラムの中央値又は最頻値が小さいと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップとを備えたことを特徴とする。 An imaging method according to claim 16 includes an imaging step of converting a subject image received through an imaging lens into image data, a luminance calculation step of calculating luminance data of each pixel of the entire screen of the image data, and the luminance A determination step for determining whether the median value or mode value of the histogram is large by comparing the median value or mode value of the data histogram with a predetermined threshold, and noise removal for the image data Image processing step including image processing, and when the determination step determines that the median or mode of the histogram is large, image processing is performed with priority on resolution over noise removal, and An image processing step for performing image processing that prioritizes noise removal over resolution when it is determined that the median or mode is small. To.
このように、ヒストグラムの中央値又は最頻値によって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal based on the median or mode value of the histogram.
請求項17に係る撮像方法は、撮像レンズを介して受光した被写体像を画像データに変換する撮像ステップと、前記画像データから人物の顔領域を検出する顔検出ステップと、前記検出した顔領域の画像データから顔領域の明るさを算出する明るさ検出ステップと、前記明るさ検出ステップが検出した顔領域の明るさと所定の閾値とを比較することにより、顔画像が明るいか否かを判定する判定ステップと、前記画像データに対してノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによって顔領域が明るいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、顔領域が暗いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップと、を備えたことを特徴とする。 An imaging method according to claim 17 includes an imaging step of converting a subject image received through an imaging lens into image data, a face detection step of detecting a human face area from the image data, and the detected face area. The brightness detection step for calculating the brightness of the face area from the image data and the brightness of the face area detected by the brightness detection step are compared with a predetermined threshold value to determine whether or not the face image is bright. An image processing step for performing image processing including noise removal on the image data, wherein the determination step determines that the face area is bright; And an image processing step for performing image processing that prioritizes noise removal over resolution when the face area is determined to be dark.
このように、顔領域の明るさによって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal depending on the brightness of the face area.
請求項18に係る撮像方法は、撮像レンズを介して受光した被写体像を画像データに変換する撮像ステップと、前記画像データから人物の顔領域を検出する顔検出ステップと、前記画像データの顔領域の各画素の輝度データを算出する輝度算出ステップと、前記輝度データが所定の第1の閾値以下である画素の数を計数する計数ステップと、前記計数ステップが計数した画素の数と所定の第2の閾値とを比較することにより、顔領域の暗部面積が広いか否かを判定する判定ステップと、前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによって前記暗部面積が狭いと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、前記暗部面積が広いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップとを備えたことを特徴とする。 An imaging method according to claim 18, wherein an imaging step for converting a subject image received through an imaging lens into image data, a face detection step for detecting a human face area from the image data, and a face area of the image data A luminance calculating step for calculating luminance data of each pixel, a counting step for counting the number of pixels for which the luminance data is equal to or less than a predetermined first threshold, a number of pixels counted by the counting step and a predetermined first number A determination step of determining whether a dark area of a face region is wide by comparing the threshold value of 2, and an image processing step of performing image processing including noise removal on the image data, If it is determined in the determination step that the dark area is narrow, image processing prioritizing resolution is performed over noise removal, and if the dark area is determined to be wide, Characterized by comprising an image processing step of performing image processing with priority noise removal.
このように、顔領域の暗部面積によって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal depending on the dark area of the face region.
請求項19に係る撮像方法は、撮像レンズを介して受光した被写体像を画像データに変換する撮像ステップと、前記画像データから人物の顔領域を検出する顔検出ステップと、前記画像データの顔領域の各画素の輝度データを算出する輝度算出ステップと、前記輝度算出ステップが算出した輝度データの、ヒストグラムの中央値又は最頻値と、所定の閾値とを比較することにより、ヒストグラムの中央値又は最頻値が大きいか否かを判定する判定ステップと、前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによってヒストグラムの中央値又は最頻値が大きいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、ヒストグラムの中央値又は最頻値が小さいと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップとを備えたことを特徴とする。 An imaging method according to claim 19 includes an imaging step of converting a subject image received through an imaging lens into image data, a face detection step of detecting a human face area from the image data, and a face area of the image data The luminance calculation step for calculating the luminance data of each pixel of the pixel, the central value or the mode value of the histogram of the luminance data calculated by the luminance calculation step, and the predetermined threshold value are compared with each other. A determination step for determining whether or not the mode value is large, and an image processing step for performing image processing including noise removal on the image data, wherein the determination step determines whether the median or mode value of the histogram is If it is determined to be large, image processing is performed prioritizing resolution over noise removal, and it is determined that the median or mode of the histogram is small. When, characterized in that an image processing step of performing image processing with priority noise removal than sense of resolution.
このように、顔部の輝度のヒストグラムの中央値又は最頻値によって解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断することにより、適切な画像処理を行うことが可能になる。 As described above, it is possible to perform appropriate image processing by determining whether to perform image processing with priority on resolution or noise removal based on the median or mode value of the histogram of the luminance of the face. .
本発明によれば、画像全体や顔領域の、明るさ、又は暗部面積、又はヒストグラムの中央値又は最頻値に応じて、解像感優先の画像処理又はノイズ除去優先の画像処理のいずれを行うか判断し、その画像又は顔領域に適した画像処理を行うことにより、簡単に良好な画像を得ることができる。また画像処理を画像全体に対して行うため、画面の連続性が失われることもない。 According to the present invention, either the image processing with priority for resolution or the image processing with priority for noise removal is performed according to the brightness or dark area of the entire image or the face area, or the median or mode of the histogram. A good image can be easily obtained by determining whether or not to perform the image processing suitable for the image or the face area. Further, since image processing is performed on the entire image, the continuity of the screen is not lost.
以下、添付図面に従って本発明に係る撮像装置の好ましい実施の形態について説明する。 Hereinafter, preferred embodiments of an imaging device according to the present invention will be described with reference to the accompanying drawings.
<第1の実施の形態>
図1は本発明に係る第1の実施の形態のデジタルカメラ10を斜め前方から見た斜視図であり、同図(A)は鏡胴12がカメラ筐体内に沈胴してレンズカバー14が閉じている状態を示しており、同図(B)は鏡胴12が繰り出されている状態を示している。また、図2は上記デジタルカメラ10を斜め後方から見た斜視図である。
<First Embodiment>
FIG. 1 is a perspective view of the
このデジタルカメラ10は、静止画や動画の記録及び画像再生する機能を備えており、上面には、電源ボタン20、シャッターボタン22、及びモードレバー24が設けられている。モードレバー24は、回転させることにより、オート撮影モード、マニュアル撮影モード、人物モード、風景モード及び夜景モード等の選択が可能なシーンポジション、及び動画撮像モードのうちのいずれかを設定できるようになっている。
The
また、モードレバー24の中央に設けられたシャッターボタン22は、半押し時にONしてフォーカスロック、測光等の撮影準備を行わせるスイッチS1と、全押し時にONして画像の取り込みを行わせるスイッチS2とを有している。
A
デジタルカメラ10背面には、図2に示すようにズームキー26、再生ボタン28、ピクセル数、感度等を設定するためのメニュー画面を表示させるフォトモードボタン30、上下左右キーからなるマルチファンクションの十字キー32、メニュー/OKボタン34、表示/戻るボタン36及び液晶モニタ38が設けられている。
On the back of the
液晶モニタ38は、動画(スルー画)を表示して電子ビューファインダとして使用できるとともに、撮影した記録前の画像(プレビュー画像)やカメラに装填されたメモリカード72から読み出した再生画像等を表示することができる。また、液晶モニタ38は、カメラの動作モードやホワイトバランス、画像のピクセル数、感度等をマニュアル設定する際の各種のメニュー画面をメニュー/OKボタン34やフォトモードボタン30の操作に応じて表示させ、十字キー32及びメニュー/OKボタン34の操作に応じてマニュアル設定項目の設定が可能なグラフィカル・ユーザ・インターフェース(GUI)用の画面を表示する。
The liquid crystal monitor 38 displays a moving image (through image) and can be used as an electronic viewfinder, and also displays a photographed image before recording (preview image), a reproduced image read from the
図3は、図1及び図2に示したデジタルカメラ10の内部構成の一例を示すブロック図である。
FIG. 3 is a block diagram illustrating an example of an internal configuration of the
同図においてCPU50は、前述した電源ボタン20、シャッターボタン22、モードレバー24、ズームキー26、再生ボタン28、フォトモードボタン30、十字キー32、メニュー/OKボタン34、及び表示/戻るボタン36を含む操作スイッチ64の入力が操作スイッチインターフェース63を介して入力され、この入力に基づいてデジタルカメラ10内の各回路を統括制御するもので、カメラ制御プログラムにしたがった処理を実行する。
In the figure, the
このCPU50の各回路の制御は、BUS51を介しておこなう。またCPU50は、RAM68、ROM69との間で、メモリインターフェース67を介して必要なデータの授受を行う。
Control of each circuit of the
このROM69には、カメラ制御プログラム、起動時のオープニング画像、停止時のエンディング画像、デジタルカメラ10の操作に使用するメニュー画像等のGUI用の画像、スクリーンセイバー用の画像、処理中のプログレス表示用の画像(目盛りが変化する砂時計の画像等)、キー操作音(シャッター音等)、警告音、及びエラー音等を示す音声データ等が記録されている。
The
まず、電源ボタン20が操作されると、CPU50はこれを検出し、カメラ内電源をONにし、一定期間ROM69に格納されているオープニング画像を表示した後、撮影モードで撮影スタンバイ状態にする。この撮影スタンバイ状態では、CPU50は、モータ駆動部42を介して沈胴式の鏡胴12を繰り出し(図1(A)参照)、通常、液晶モニタ38に動画(スルー画)を表示させる。
First, when the
ユーザ(撮影者)は、液晶モニタ38に表示されるスルー画を見ながらフレーミングしたり、撮影したい被写体を確認したり、撮影後の画像を確認したり、撮影条件を設定したりする。
A user (photographer) performs framing while viewing a through image displayed on the
上記撮影スタンバイ状態時にシャッターボタン22が押されると、CPU50はこれを検知し、フォーカス制御、測光、露出制御を行い、モータ駆動部42を介して光学ユニット41内のフォーカスレンズや絞りを駆動し、光学ユニット41を介してCCD43の受光面上に被写体像を結像させる。このとき必要であれば、充電部61にて昇圧充電した電荷でフラッシュ62を発光させ、撮影補助光として使用する。
When the
CCD43は、受光面に結像された被写体像をその光量に応じた量の信号電荷に変換する。このようにして変換された信号電荷は、タイミングジェネレータ44から加えられるリードゲートパルスによってシフトレジスタに読み出され、レジスタ転送パルスによって信号電荷に応じた電圧信号として順次読み出される。
The
CCD43から出力された電圧信号は、アナログ信号処理部45によって相関二重サンプリングや増幅等のアナログ処理が施された後、各画素ごとのR、G、B信号としてA/D変換器46に加えられる。A/D変換器46は、アナログ信号処理部45から順次加えられるアナログのR、G、B信号をそれぞれデジタルのR、G、B信号に変換する。これらのR、G、B信号は、一旦RAM68に格納される。
The voltage signal output from the
デジタル信号処理部47は、上記RAM68に格納されたR、G、Bの生データを読み出し、これらに光源種に応じたデジタルゲインをかけることでホワイトバランス調整を行うとともに、ガンマ(階調特性)処理、シャープネス処理等を行ってR、G、B信号を生成する。更にYC信号処理して輝度信号Yとクロマ信号Cr、Cb(YC信号)を生成し、その後Y信号を用いてコアリング処理やメディアンフィルタ演算によるノイズ除去処理を施し、最終的に処理されたYC信号を再びRAM68に格納する。
The digital
このデジタル信号処理時に、画面輝度判定部52により画面の明るさを判定し、後述するように画面の明るさに応じてノイズ除去処理をおこなう。
During the digital signal processing, the screen
上記のようにしてRAM68に格納されたYC信号は、圧縮伸張処理回路70によって所定のフォーマットに圧縮されたのち、外部メモリインターフェース71を介してデジタルカメラ10に着脱自在なメモリカード72に記録される。
The YC signal stored in the
また、液晶モニタ38にスルー画が表示されている状態で、メニュー/OKボタン34が押されると、液晶モニタ38にメニュー画面が表示される。このメニュー画面が表示されている状態で、十字キー32を操作して撮影条件や画像サイズ等の所望の項目を選択したり、再度、メニュー/OKボタン34を押すことで、選択項目の確定や処理の実行を指示することができる。尚、表示/戻るボタン36は、液晶モニタ38の表示を切り替えたり、1つ前の操作状態に戻らせる場合等に使用される。
When the menu / OK button 34 is pressed while the through image is displayed on the
一方、再生ボタン28を操作して再生モードが選択されると、メモリカード78に記録されている最終コマの画像ファイルが外部メモリインターフェース71を介して読み出される。この読み出された画像ファイルの圧縮データは、圧縮伸張処理回路70を介して非圧縮のYC信号に伸張される。
On the other hand, when the playback mode is selected by operating the playback button 28, the image file of the last frame recorded on the memory card 78 is read out via the
伸張されたYC信号は、LCDインターフェース65によって表示用の信号形式に変換されて液晶モニタ38に出力される。これにより、液晶モニタ38にはメモリカード72に記録されている最終コマの画像が表示される。
The expanded YC signal is converted into a signal format for display by the
その後、順コマ送りスイッチ(十字キー32の右キー)が押されると、順方向にコマ送りされ、逆コマ送りスイッチ(十字キー32の左キー)が押されると、逆方向にコマ送りされる。そして、コマ送りされたコマ位置の画像ファイルがメモリカード72から読み出され、上記と同様にして画像が液晶モニタ38に再生される。
Thereafter, when the forward frame advance switch (the right key of the cross key 32) is pressed, the frame is advanced in the forward direction, and when the reverse frame advance switch (the left key of the cross key 32) is pressed, the frame is advanced in the reverse direction. . Then, the image file at the frame position where the frame is advanced is read from the
次に、デジタルカメラ10のデジタル信号処理時における、解像感優先又はノイズ除去優先の画像処理のいずれを行うかの決定方法について、図4を用いて説明する。本発明に係る第1の実施の形態のデジタルカメラ10は、画面全体の輝度の平均値に応じて解像感優先又はノイズ除去優先の画像処理のいずれを行うかの判断をする。
Next, a method for determining whether to perform image processing with priority on resolution or noise removal at the time of digital signal processing of the
図4は、解像感優先又はノイズ除去優先の画像処理のいずれを行うか判断する動作を示すフローチャートである。 FIG. 4 is a flowchart showing an operation for determining whether to perform image processing with priority on resolution or noise removal.
前述したように、撮影をおこなうと、CCD43から出力された電圧信号は所定の処理が施されてデジタル化され、RAM68に格納される。ここではまず、RAM68からデータを読み出し(ステップS41)、画面輝度判定部52によって画面の輝度の平均値を算出する(ステップS42)。
As described above, when photographing is performed, the voltage signal output from the
ここで、図示しない画面輝度判定部52の内部回路は、加算器、除算器等からなり、各画素の輝度値を入力することにより、入力された画素の輝度値の平均値を出力するように構成されている。CPU50は、画面輝度判定部52で求められた画面全体の輝度の平均値と、解像感優先閾値aとの比較をおこなう(ステップS43)。
Here, an internal circuit of the screen brightness determination unit 52 (not shown) includes an adder, a divider, and the like. By inputting the brightness value of each pixel, an average value of the brightness values of the input pixels is output. It is configured. The
解像感優先閾値aより画面全体の輝度の平均値の方が大きい場合には、CPU50は、この画像を明るい画像であると判断し、解像感優先の画像処理設定を行う(ステップS44)。逆に、解像感優先閾値aより画面全体の輝度の平均値の方が小さい場合には、CPU50は、この画像を暗い画像であると判断し、ノイズ除去優先の画像処理設定を行う(ステップS45)。
If the average value of the brightness of the entire screen is larger than the resolution priority threshold value a, the
解像感優先の画像処理とノイズ除去優先の画像処理では、ローパスフィルタ処理の重み付け係数(フィルタ行列)やメディアンフィルタ処理の有無、コアリング処理のコアリングレベル等のノイズ除去に関する処理が異なっており、ノイズ除去優先の画像処理の方が、ノイズ除去作用の強い処理となる。例えば、ローパスフィルタ処理のフィルタ行列が、解像感優先の場合は図5(a)、ノイズ除去優先の場合は図5(b)に示すようになっている。フィルタ行列はこの実施例に限ることはなく、また解像感優先の場合はローパスフィルタ処理を行わなくてもよい。 The image processing prioritizing resolution and the image processing prioritizing noise are different in noise removal processing such as weighting coefficient (filter matrix) of low-pass filter processing, presence / absence of median filter processing, coring level of coring processing, etc. The image processing with priority to noise removal is processing with a strong noise removing action. For example, the filter matrix of the low-pass filter processing is as shown in FIG. 5A when the resolution priority is given, and FIG. 5B when the noise removal priority is given. The filter matrix is not limited to this embodiment, and the low-pass filter process does not have to be performed when priority is given to resolution.
また、コアリング処理のコアリングレベルが、解像感優先の場合は図6(a)、ノイズ除去優先の場合は図6(b)に示すように、ノイズ除去優先の場合の方がレベルが高くなっている。また解像感優先の場合はコアリング処理を行わなくてもよい。 In addition, as shown in FIG. 6A when the coring level of the coring process is prioritized for resolution, as shown in FIG. It is high. In addition, when priority is given to resolution, the coring process need not be performed.
デジタル信号処理部47は、このようにして設定された解像感優先又はノイズ除去優先の画像処理設定に応じたデジタル信号処理をおこなう(ステップS46)。
The digital
このように、画面全体の輝度の平均値により画像の明るさを判定し、明るい画像は解像感優先の画像処理を、暗い画像はノイズ除去優先の画像処理を行うことにより、簡単に良好な画質を得ることができる。 In this way, the brightness of the image is determined based on the average value of the luminance of the entire screen, and a bright image is subjected to image processing prioritizing resolution, and a dark image is subjected to image processing prioritizing noise removal. Image quality can be obtained.
<第2の実施の形態>
本発明に係る第2の実施の形態のデジタルカメラ10における、デジタル信号処理時に解像感優先又はノイズ除去優先の画像処理のいずれを行うかの決定方法について、図7を用いて説明する。第2の実施の形態のデジタルカメラ10は、画面全体の暗部面積に応じて解像感優先又はノイズ除去優先の画像処理のいずれを行うかを判定する。
<Second Embodiment>
A method of determining whether to perform image processing with priority on resolution or noise removal in digital signal processing in the
第1の実施例と同様に、まずRAM68からデータを読み出し(ステップS71)、画面輝度判定部52により、画面の暗部面積を算出する(ステップS72)。図示しない第2の実施の形態の画面輝度判定部52の内部回路は、比較回路や計数回路等からなり、各画素の輝度を入力することにより、輝度が所定の閾値以下の画素の数(暗部面積)を出力するように構成されている。
As in the first embodiment, first, data is read from the RAM 68 (step S71), and the screen
CPU50は、画面輝度判定部52で求められた暗部面積と、解像感優先閾値b1との比較をおこなう(ステップS73)。
The
解像感優先閾値b1より暗部面積の方が小さい場合には、CPU50は、解像感優先の画像処理設定を行う(ステップS74)。逆に、解像感優先閾値b1より暗部面積の方が大きい場合には、CPU50は、ノイズ除去優先の画像処理設定を行う(ステップS75)。
If more sharpness priority threshold b 1 smaller for dark part area,
デジタル信号処理部47は、このようにして設定された解像感優先又はノイズ除去優先の画像処理設定に応じたデジタル信号処理をおこなう(ステップS76)。
The digital
<第3の実施の形態>
本発明に係る第3の実施の形態のデジタルカメラ10における、デジタル信号処理時に解像感優先又はノイズ除去優先の画像処理のいずれを行うかの決定方法について、図8を用いて説明する。第3の実施の形態のデジタルカメラ10は、画面全体における輝度のヒストグラムの中央値に応じて、解像感優先又はノイズ除去優先の画像処理のいずれを行うかを判定する。
<Third Embodiment>
A method for determining whether to perform image processing with priority on resolution or noise removal in digital signal processing in the
第1の実施例と同様に、まずRAM68からデータを読み出し(ステップS81)、画面輝度判定部52により、画面全体の輝度のヒストグラムを作成し、中央値を算出する(ステップS82)。図示しない第3の実施の形態の画面輝度判定部52の内部回路は、比較回路や画素数分のメモリ等からなり、各画素の輝度を入力することにより、入力された画素のヒストグラムの中央値を出力するように構成されている。
As in the first embodiment, first, data is read from the RAM 68 (step S81), the screen
CPU50は、画面輝度判定部52で求められたヒストグラムの中央値と、解像感優先閾値c1との比較をおこなう(ステップS83)。
CPU50 includes a central value of the histogram obtained in the screen
解像感優先閾値c1よりヒストグラムの中央値の方が小さい場合には、CPU50は、ノイズ除去優先M1の画像処理設定を行う(ステップS87)。
If more sharpness priority threshold c 1 is smaller median histogram,
解像感優先閾値c1よりヒストグラムの中央値の方が大きい場合には、さらにヒストグラムの中央値と、c1<c2の関係にある解像感優先閾値c2との比較をおこなう(ステップS84)。 If more sharpness priority threshold c 1 is larger median histogram further performs the median of the histogram is compared with sharpness priority threshold c 2 in the relation of c 1 <c 2 (step S84).
解像感優先閾値c2よりヒストグラムの中央値の方が大きい場合には、CPU50は、解像感優先の画像処理設定にする(ステップS85)。逆に、解像感優先閾値c2よりヒストグラムの中央値の方が小さい場合には、CPU50は、ノイズ除去優先M2の画像処理設定にする(ステップS86)。
If more sharpness priority threshold c 2 is larger median histogram,
前述したように、解像感優先の画像処理とノイズ除去優先の画像処理では、ローパスフィルタ処理のフィルタ行列やコアリング処理のコアリングレベルが異なっているが、ノイズ除去優先M1設定とノイズ除去優先M2設定でも、これらのパラメータが異なっており、M2よりM1の方がノイズ除去作用の強い処理となる。 As described above, in the image processing of the image processing and noise removal priority sharpness priority is coring level of the filter matrix and coring of the low-pass filter process is different, the noise removal Priority M 1 set and noise removal Even in the priority M 2 setting, these parameters are different, and M 1 is a process having a stronger noise removing action than M 2 .
デジタル信号処理部47は、このようにして設定された解像感優先又はノイズ除去優先の画像処理設定に応じたデジタル信号処理をおこなう(ステップS88)。
The digital
本実施の形態のように、複数の閾値を用いて、ノイズ除去処理の補正量を段階的に設定してもよい。 As in the present embodiment, the correction amount of the noise removal process may be set stepwise using a plurality of threshold values.
また本実施の形態では、ヒストグラムの中央値を用いて、解像感優先又はノイズ除去優先の画像処理のいずれを行うかを判定したが、ヒストグラムの最頻値を用いてもよい。 In this embodiment, it is determined whether to perform image processing with priority on resolution or noise removal using the median value of the histogram. However, the mode value of the histogram may be used.
<第4の実施の形態>
本発明に係る第4の実施の形態のデジタルカメラ10における、デジタル信号処理時に解像感優先又はノイズ除去優先の画像処理のいずれを行うかの決定方法について、図9及び図10を用いて説明する。第4の実施の形態のデジタルカメラ10は、主要被写体を顔として、画像データから顔検出を行い、人物の顔が検出された場合はその顔部の輝度の平均値を用いて、解像感優先又はノイズ除去優先の画像処理のいずれを行うかを判定する。
<Fourth embodiment>
A method for determining whether to perform image processing with priority on resolution or noise removal in digital signal processing in the
図9は、第4の実施の形態のデジタルカメラ10の内部構成の一例を示すブロック図であり、第1の実施の形態のデジタルカメラ10とは、顔検出部80を備えた点が異なる。
FIG. 9 is a block diagram illustrating an example of an internal configuration of the
図10は、第4の実施の形態のデジタルカメラ10の動作を示すフローチャートである。
FIG. 10 is a flowchart illustrating the operation of the
まずこれまでと同様に、RAM68からデータを読み出す(ステップS101)。次にこの読み出したデータから、顔検出部80は、画像内の顔を検出する(ステップS102)。顔検出部80は、画像照合回路及び顔画像テンプレートを含み、RAM68から読み出した画像データに含まれる人物の顔を検出し、その顔の位置や大きさの情報をCPU50に出力する。即ち、顔検出部80の画像照合回路は、予め設定した顔エリアを検出するための最も大きな対象エリアを、画面内で少しずつ移動させながら顔画像テンプレートとの相関を調べる。そして、相関スコアが予め設定された閾値を越えると、その対象エリアを顔エリアとして認定する。続いて、対象エリアを少し小さくし、再度、顔画像テンプレートとの相関を調べる。これを検出したい最小の検出エリアまで繰り返し、顔エリアを求める。このようにして求めた顔部の情報(顔部の大きさ及び位置を示す情報)をCPU50に出力する。
First, data is read from the
ここで顔が検出されると、画面輝度判定部52は顔部の平均輝度値を算出する(ステップS103)。ここで、図示しない画面輝度判定部52は、顔部の画素の輝度値のみを入力した場合は、入力された顔部の画素の輝度値の平均値を出力するように構成されている。
If a face is detected here, the screen
CPU50は、画面輝度判定部52で求められた顔部の平均輝度値と、解像感優先閾値aとの比較をおこなう(ステップS104)。
The
解像感優先閾値aより顔部の平均輝度値の方が大きい場合には、CPU50は、顔部の明るい画像であると判断し、解像感優先の画像処理設定とする(ステップS105)。逆に、解像感優先閾値aより顔部の平均輝度値の方が小さい場合には、CPU50は、顔部の暗い画像であると判断し、ノイズ除去優先の画像処理設定とする(ステップS106)。
If the average brightness value of the face is greater than the resolution priority threshold a, the
また、顔が検出されなかった場合は、画面輝度判定部52は画面全体の平均輝度値を算出する(ステップS107)。CPU50は、画面輝度判定部52で求められた画面全体の平均輝度値と、解像感優先閾値aとの比較をおこなう(ステップS108)。
If no face is detected, the screen
解像感優先閾値aより画面全体の平均輝度値の方が大きい場合には、CPU50は、この画像を明るい画像であると判断し、解像感優先の画像処理設定とする(ステップS105)。逆に、解像感優先閾値aより画面全体の平均輝度値の方が小さい場合には、CPU50は、この画像を暗い画像であると判断し、ノイズ除去優先の画像処理設定とする(ステップS106)。
When the average luminance value of the entire screen is larger than the resolution priority threshold a, the
デジタル信号処理部47は、このようにして設定された解像感優先又はノイズ除去優先の画像処理設定に応じてデジタル信号処理をおこなう(ステップS109)。
The digital
なお、顔検出において複数の顔が検出された場合は、最も大きい顔が主要被写体であると判断し、その最も大きい顔の領域について輝度の平均値を算出すればよい。また最も画面中央に近い顔を主要被写体と判断し、その最も画面中央に近い顔について輝度の平均値を算出してもよい。 When a plurality of faces are detected in the face detection, it is determined that the largest face is the main subject and the average value of luminance is calculated for the largest face area. Alternatively, the face closest to the center of the screen may be determined as the main subject, and the average luminance value may be calculated for the face closest to the center of the screen.
<第5の実施の形態>
本発明に係る第5の実施の形態のデジタルカメラ10の、デジタル信号処理時の解像感優先又はノイズ除去優先の画像処理のいずれを行うかの決定方法について、図11を用いて説明する。第5の実施の形態のデジタルカメラ10は、主要被写体を顔として、画像データから顔検出を行い、人物の顔が検出された場合はその顔部の暗部面積を用いて、解像感優先又はノイズ除去優先の画像処理のいずれを行うかを判定する。
<Fifth embodiment>
A method for determining whether to perform image processing prioritizing resolution or noise removal prior to digital signal processing in the
図11は、第5の実施の形態のデジタルカメラ10の動作を示すフローチャートである。
FIG. 11 is a flowchart illustrating the operation of the
これまでと同様に、RAM68からデータを読み出す(ステップS111)。次にこの読み出したデータから、顔検出部80は、第4の実施の形態と同様に画像内の顔を検出する(ステップS112)。
As before, data is read from the RAM 68 (step S111). Next, from this read data, the
ここで顔が検出されると、画面輝度判定部52は顔部の暗部面積を算出する(ステップS113)。ここで画面輝度判定部52は第2の実施の形態と同様の構成となっており、顔部の暗部面積を算出することができる。
When a face is detected here, the screen
CPU50は、画面輝度判定部52で求められた顔部の暗部面積と、解像感優先閾値b2との比較をおこなう(ステップS114)。
CPU50 includes a dark portion area of the face portion obtained in screen
解像感優先閾値b2より顔部の暗部面積の方が小さい場合には、CPU50は、解像感優先の画像処理設定とする(ステップS115)。逆に、解像感優先閾値b2より顔部の暗部面積の方が大きい場合には、CPU50は、ノイズ除去優先の画像処理設定とする(ステップS116)。
If more sharpness priority threshold b 2 smaller for dark part area of the face portion,
また、顔が検出されなかった場合は、画面輝度判定部52は画面全体の暗部面積を算出する(ステップS117)。
If no face is detected, the screen
CPU50は、画面輝度判定部52で求められた画面全体の暗部面積と、解像感優先閾値b1との比較をおこなう(ステップS118)。
CPU50 includes a dark portion area of the entire screen determined by the screen
解像感優先閾値b1より画面全体の暗部面積の方が小さい場合には、CPU50は、解像感優先の画像処理設定とする(ステップS115)。逆に、解像感優先閾値b1より画面全体の暗部面積の方が大きい場合には、CPU50は、ノイズ除去優先の画像処理設定とする(ステップS116)。
When the dark area of the entire screen is smaller than the resolution priority threshold b 1 , the
デジタル信号処理部47は、このようにして設定された解像感優先又はノイズ除去優先の画像処理設定に応じてデジタル信号処理をおこなう(ステップS119)。
The digital
このように、顔部が検出された場合とされない場合で、異なる解像感優先閾値を使用してもよい。 Thus, different resolution priority thresholds may be used depending on whether or not a face is detected.
また顔部の暗部面積については顔部の面積との比率を算出するようにしてもよい。これにより、撮影画像に占める顔部の面積に寄らずに、主要被写体である顔の明るさを適切に判断することが可能となる。 The ratio of the dark area of the face to the area of the face may be calculated. Accordingly, it is possible to appropriately determine the brightness of the face that is the main subject without depending on the area of the face occupied in the captured image.
<第6の実施の形態>
本発明に係る第6の実施の形態のデジタルカメラ10の、デジタル信号処理時の解像感優先又はノイズ除去優先の画像処理のいずれを行うかの決定方法について、図12を用いて説明する。第6の実施の形態のデジタルカメラ10は、主要被写体を顔として、画像データから顔検出を行い、人物の顔が検出された場合はその顔部の輝度のヒストグラムの中央値を用いて、解像感優先又はノイズ除去優先の画像処理のいずれを行うかの判定をする。
<Sixth Embodiment>
With reference to FIG. 12, a description will be given of a method for determining whether to perform image processing prioritizing resolution or noise removal prior to digital signal processing in the
図12は、第6の実施の形態のデジタルカメラ10の動作を示すフローチャートである。
FIG. 12 is a flowchart illustrating the operation of the
これまでと同様に、RAM68からデータを読み出す(ステップS121)。次にこの読み出したデータから、顔検出部80は、画像内の顔を検出する(ステップS122)。
As before, data is read from the RAM 68 (step S121). Next, from the read data, the
ここで顔が検出されると、画面輝度判定部52は顔部の各画素の輝度のヒストグラムを作成し、中央値を算出する(ステップS123)。ここで画面輝度判定部52は第3の実施の形態と同様の構成となっており、顔部の各画素の輝度についてヒストグラムを作成し、ヒストグラムの中央値を算出することが可能である。
If a face is detected here, the screen
CPU50は、画面輝度判定部52で求められた顔部の輝度のヒストグラムの中央値と、解像感優先閾値c2との比較をおこなう(ステップS124)。
CPU50 includes a central value of the luminance histogram of the face portion obtained in screen
解像感優先閾値c2より顔部の輝度のヒストグラムの中央値の方が大きい場合には、CPU50は、解像感優先の画像処理設定とする(ステップS125)。逆に、解像感優先閾値c2より顔部の輝度のヒストグラムの中央値の方が小さい場合には、CPU50は、ノイズ除去優先の画像処理設定とする(ステップS126)。
If more sharpness priority threshold c 2 is larger in the central value of the luminance histogram of the face portion,
また、顔が検出されなかった場合は、画面輝度判定部52は画面全体の輝度のヒストグラムを作成し、中央値を算出する(ステップS127)。
If no face is detected, the screen
CPU50は、画面輝度判定部52で求められた画面全体の輝度のヒストグラムの中央値と、解像感優先閾値c1との比較をおこなう(ステップS128)。
CPU50 includes a central value of the histogram of the luminance of the entire screen determined by the screen
解像感優先閾値c1より画面全体の輝度のヒストグラムの中央値の方が大きい場合には、CPU50は、解像感優先の画像処理設定とする(ステップS125)。逆に、解像感優先閾値c1より画面全体の輝度のヒストグラムの中央値の方が小さい場合には、CPU50は、ノイズ除去優先の画像処理設定とする(ステップS126)。
If the larger median of luminance histogram of the entire screen from the sharpness priority threshold c 1 is
デジタル信号処理部47は、このようにして設定された解像感優先又はノイズ除去優先の画像処理に応じてデジタル信号処理をおこなう(ステップS109)。
The digital
また本実施の形態では、ヒストグラムの中央値を用いて、解像感優先又はノイズ除去優先の画像処理のいずれを行うかを判定したが、ヒストグラムの最頻値を用いてもよい。 In this embodiment, it is determined whether to perform image processing with priority on resolution or noise removal using the median value of the histogram. However, the mode value of the histogram may be used.
また、第4〜第6の実施の形態においては、顔が検出された場合とされない場合で、同じパラメータを用いて解像感優先又はノイズ除去優先の画像処理のいずれを行うかを判定したが、異なるパラメータを用いてもよい。即ち、顔が検出された場合は顔部の輝度の平均値と解像感優先閾値aを比較し、顔が検出されない場合は画面全体の暗部面積と解像感優先閾値b1を比較する等のようにしてもよく、この組み合わせはマトリクス的に可能である。 In the fourth to sixth embodiments, it is determined whether to perform image processing with priority on resolution or noise removal using the same parameter when a face is detected or not. Different parameters may be used. That is, when a face is detected, the average value of the brightness of the face is compared with the resolution priority threshold a, and when the face is not detected, the dark area of the entire screen is compared with the resolution priority threshold b 1. This combination is possible in a matrix form.
<第7の実施の形態>
本発明に係る第7の実施の形態のデジタルカメラ10の、デジタル信号処理時の解像感優先又はノイズ除去優先の画像処理のいずれを行うかの決定方法について、図13を用いて説明する。第7の実施の形態のデジタルカメラ10は、第1の実施の形態と同様に画面の明るさに応じて解像感優先又はノイズ除去優先の画像処理のいずれを行うかの判定をするが、設定された撮影感度によって、ノイズ除去処理の補正量や解像感優先閾値を変更するところが異なる。
<Seventh embodiment>
A method of determining whether to perform image processing prioritizing resolution or noise removal prior to digital signal processing in the
これまでと同様に、まずRAM68からデータを読み出し(ステップS1301)、画面輝度判定部52により、画面全体の輝度値の平均値を算出する(ステップS1302)。
As before, data is first read from the RAM 68 (step S1301), and the screen
第1の実施の形態のデジタルカメラ10と同様に、このデジタルカメラ10は、フォトモードボタン30、十字キー32、メニュー/OKボタン34等を操作することにより、撮影感度をマニュアルで設定することが可能である。またオートモードの場合は、CCDから入力される光量に応じてCPU50が自動で感度設定を行う。
Similar to the
ここで、いま撮影されたデータについて、マニュアル設定、またはオート設定された撮影感度の判定を行う(ステップS1303、S1304)。 Here, with respect to the data that has been shot now, determination of the shooting sensitivity set manually or automatically is performed (steps S1303 and S1304).
ISO感度が200、100、またはそれ以下の場合には、CPU50は、画面輝度判定部52で求められた画面全体の輝度の平均値と、解像感優先閾値a3との比較をおこなう(ステップS1305)。
If the ISO sensitivity is 200, 100 or less and,
解像感優先閾値a3より画面全体の輝度の平均値の方が大きい場合には、CPU50は、この画像を明るい画像であると判断し、解像感優先の画像処理設定とする(ステップS1306)。逆に、解像感優先閾値a3より画面全体の輝度の平均値の方が小さい場合には、CPU50は、この画像を暗い画像であると判断し、ノイズ除去優先の画像処理設定とする(ステップS1307)。
If more sharpness priority threshold a 3 is larger the average value of the luminance of the entire screen,
ISO感度が400、800の場合も、CPU50は、画面輝度判定部52で求められた画面全体の輝度の平均値と、解像感優先閾値a3との比較をおこなう(ステップS1308)。
Even if ISO sensitivity is 400, 800,
解像感優先閾値a3より画面全体の輝度の平均値の方が大きい場合には、CPU50は、この画像を明るい画像であると判断するが、高感度撮影のため、ノイズ除去優先N2の画像処理設定とする(ステップS1307)。逆に、解像感優先閾値a3より画面全体の輝度の平均値の方が小さい場合には、CPU50は、この画像を暗い画像であると判断し、ノイズ除去優先N1の画像処理設定とする(ステップS1309)。
When people than sharpness priority threshold a 3 of the average value of the luminance of the entire screen is large,
第3の実施の形態と同様に、ノイズ除去優先N1設定とノイズ除去優先N2設定では、ノイズ除去処理のパラメータが異なっており、N2よりN1の方がノイズ除去作用の強い処理となる。 As in the third embodiment, the noise removal priority N 1 setting and the noise removal priority N 2 setting have different noise removal processing parameters, and N 1 has a stronger noise removal action than N 2. Become.
ISO感度が1600、3200、またはそれ以上の場合には、CPU50は、画面輝度判定部52で求められた画面全体の輝度の平均値と、解像感優先閾値a4との比較をおこなう(ステップS1310)。
If the ISO sensitivity is 1600,3200 or more, the
解像感優先閾値a4より画面全体の輝度の平均値の方が大きい場合には、CPU50は、この画像を明るい画像であると判断するが、超高感度撮影のため、ノイズ除去優先N2の画像処理設定とする(ステップS1307)。逆に、解像感優先閾値a4より画面全体の輝度の平均値の方が小さい場合には、CPU50は、この画像を暗い画像であると判断し、ノイズ除去優先N1の画像処理設定とする(ステップS1309)。
If more sharpness priority threshold a 4 is larger the average value of the luminance of the entire screen,
デジタル信号処理部47は、このようにして設定された解像感優先又はノイズ除去優先の画像処理設定に応じてデジタル信号処理をおこなう(ステップS1311)。
The digital
このように、ISO100の場合とISO400の場合では、解像感優先閾値a3は同じであるが、判定後の処理が異なっている。またISO400の場合とISO1600の場合では、解像感優先閾値が異なっている。ここで解像感優先閾値a3、a4については、a3<a4であることが好ましい。これは、高感度であるほどノイズ除去の必要性が大きいと考えられるためである。 Thus, in the case of the case of ISO100 ISO400, although perceived resolution priority threshold a 3 are the same, processing after the determination is different. Further, the resolution priority threshold is different between ISO400 and ISO1600. Here, the resolution priority thresholds a 3 and a 4 are preferably a 3 <a 4 . This is because the higher the sensitivity, the greater the need for noise removal.
また、解像感優先又はノイズ除去優先の画像処理のいずれを行うかの判断に用いるパラメータは、画面全体の輝度の平均値に限らず、画面全体の暗部面積や輝度値のヒストグラムの中央値、最頻値でもよい。 In addition, the parameters used to determine whether to perform image processing with priority on resolution or noise removal are not limited to the average value of the luminance of the entire screen, but the dark area of the entire screen and the median value of the histogram of luminance values, The mode may be used.
また、画面全体ではなく、主要被写体の輝度に応じて判断してもよい。即ち、顔部の輝度の平均値、顔部の暗部面積、顔部の輝度のヒストグラムの中央値、最頻値によって判断するのに伴い、設定された撮影感度によって、判定後の処理や解像感優先閾値を変更してもよい。 The determination may be made according to the brightness of the main subject, not the entire screen. In other words, processing and resolution after determination are performed according to the set shooting sensitivity according to the determination based on the average value of the brightness of the face, the dark area of the face, the median value of the histogram of the brightness of the face, and the mode value. The feeling priority threshold may be changed.
<第8の実施の形態>
本発明に係る第8の実施の形態のデジタルカメラ10の、デジタル信号処理時の解像感優先又はノイズ除去優先の画像処理のいずれを行うかの決定方法について、図14を用いて説明する。第8の実施の形態のデジタルカメラ10は、撮影感度が高感度のときのみ、画面全体の輝度の平均値に応じて解像感優先又はノイズ除去優先の画像処理を行う。
<Eighth Embodiment>
A method of determining whether to perform image processing prioritizing resolution or noise removal prior to digital signal processing in the
まずRAM68からデータを読み出し(ステップS141)、次に設定された撮影感度の判定を行う(ステップS142)。ここで、ISO感度が800未満の場合は、解像感優先の画像処理設定とする(ステップS145)。 First, data is read from the RAM 68 (step S141), and then the set photographing sensitivity is determined (step S142). Here, if the ISO sensitivity is less than 800, the image processing setting is given priority to resolution (step S145).
ISO感度が800以上の場合は、画面輝度判定部52により、画面全体の輝度値の平均値を算出する(ステップS143)。
When the ISO sensitivity is 800 or more, the screen
CPU50は、画面輝度判定部52で求められた画面全体の輝度の平均値と、解像感優先閾値aとの比較をおこなう(ステップS144)。
The
解像感優先閾値aより画面全体の輝度の平均値の方が大きい場合には、CPU50は、解像感優先の画像処理設定とする(ステップS145)。逆に、解像感優先閾値aより画面全体の輝度の平均値の方が小さい場合には、CPU50は、ノイズ除去優先の画像処理設定とする(ステップS146)。
When the average value of the luminance of the entire screen is larger than the resolution priority threshold a, the
デジタル信号処理部47は、このようにして設定された解像感優先又はノイズ除去優先の画像処理設定に応じてデジタル信号処理をおこなう(ステップS147)。
The digital
このように、高感度のときのみ画面の明るさに応じて解像感優先又はノイズ除去優先の画像処理設定の判定を行うことにより、処理を減らすことができ、また高感度撮影時の画質劣化を防止することが可能となる。 In this way, processing can be reduced by determining image processing settings that prioritize resolution or noise removal according to the brightness of the screen only when the sensitivity is high, and image quality degradation during high-sensitivity shooting Can be prevented.
本実施の形態では、ISO感度が800以上の場合に解像感優先又はノイズ除去優先の画像処理のいずれを行うかを判断したが、この閾値となるISO感度は他の値もよい。 In the present embodiment, it is determined whether to perform image processing with priority on resolution or noise removal when the ISO sensitivity is 800 or more. However, other values may be used as the ISO sensitivity as the threshold.
また、解像感優先又はノイズ除去優先の画像処理のいずれを行うかの判断に用いるパラメータは、画面全体の輝度の平均値に限らず、画面全体の暗部面積や輝度値のヒストグラムの中央値、最頻値、顔部の輝度の平均値、顔部の暗部面積、顔部の輝度のヒストグラムの中央値、最頻値等でもよいことはいうまでもない。 In addition, the parameters used to determine whether to perform image processing with priority on resolution or noise removal are not limited to the average value of the luminance of the entire screen, but the dark area of the entire screen and the median value of the histogram of luminance values, Needless to say, the mode value, the average value of the brightness of the face, the dark area of the face, the median value of the histogram of the brightness of the face, the mode, etc. may be used.
10…デジタルカメラ、22…シャッターボタン、32…十字キー、34…メニュー/OKボタン、38…液晶モニタ、41…光学ユニット、43…CCD、45…アナログ信号処理部、46…A/Dコンバータ、47…デジタル信号処理部、50…CPU、52…画面輝度判定部、67…メモリインターフェース、68…RAM、69…ROM、80…顔検出部
DESCRIPTION OF
Claims (19)
前記画像データから画像の明るさを算出する明るさ算出手段と、
前記明るさ算出手段が算出した画像の明るさと所定の閾値とを比較することにより、画像が明るいか否かを判定する判定手段と、
前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によって画像が明るいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、画像が暗いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段と、
を備えたことを特徴とする撮像装置。 Imaging means for converting a subject image received through the imaging lens into image data;
Brightness calculation means for calculating the brightness of the image from the image data;
A determination unit that determines whether the image is bright by comparing the brightness of the image calculated by the brightness calculation unit with a predetermined threshold;
An image processing unit that performs image processing including noise removal on the image data, and when the determination unit determines that the image is bright, performs image processing that prioritizes resolution over noise removal, When it is determined that the image is dark, image processing means for performing image processing that prioritizes noise removal over resolution,
An imaging apparatus comprising:
前記明るさ算出手段は、前記画面全体の各画素の輝度データの平均値を算出することを特徴とする請求項1に記載の撮像装置。 Luminance calculation means for calculating luminance data of each pixel of the entire screen of the image data,
The imaging apparatus according to claim 1, wherein the brightness calculation unit calculates an average value of luminance data of each pixel of the entire screen.
前記画像データの画面全体の各画素の輝度データを算出する輝度算出手段と、
前記輝度データが所定の第1の閾値以下である画素の数を計数する計数手段と、
前記計数手段が計数した画素の数と所定の第2の閾値とを比較することにより、画像の暗部面積が広いか否かを判定する判定手段と、
前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によって前記暗部面積が狭いと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、前記暗部面積が広いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段と、
を備えたことを特徴とする撮像装置。 Imaging means for converting a subject image received through the imaging lens into image data;
Luminance calculation means for calculating luminance data of each pixel of the entire screen of the image data;
Counting means for counting the number of pixels whose luminance data is equal to or less than a predetermined first threshold;
A determination unit that determines whether the dark area of the image is wide by comparing the number of pixels counted by the counting unit with a predetermined second threshold;
Image processing means for performing image processing including noise removal on the image data, and when the determination means determines that the dark area is narrow, image processing prioritizing resolution over noise removal is performed. And when it is determined that the dark area is wide, image processing means for performing image processing that prioritizes noise removal over resolution,
An imaging apparatus comprising:
前記画像データの画面全体の各画素の輝度データを算出する輝度算出手段と、
前記輝度データのヒストグラムの中央値又は最頻値と所定の閾値とを比較することにより、ヒストグラムの中央値又は最頻値が大きいか否かを判定する判定手段と、
前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によってヒストグラムの中央値又は最頻値が大きいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、ヒストグラムの中央値又は最頻値が小さいと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段と、
を備えたことを特徴とする撮像装置。 Imaging means for converting a subject image received through the imaging lens into image data;
Luminance calculation means for calculating luminance data of each pixel of the entire screen of the image data;
A determination means for determining whether the median or mode of the histogram is large by comparing the median or mode of the histogram of the luminance data with a predetermined threshold;
An image processing unit that performs image processing including noise removal on the image data, and when the determination unit determines that the median or mode of the histogram is large, the image data has a higher resolution than noise removal. Image processing means for performing image processing with priority on noise removal over a sense of resolution when performing priority image processing and determining that the median or mode of the histogram is small;
An imaging apparatus comprising:
前記画像データから人物の顔領域を検出する顔検出手段と、
前記検出した顔領域の画像データから顔領域の明るさを算出する明るさ検出手段と、
前記明るさ検出手段が検出した顔領域の明るさと所定の閾値とを比較することにより、顔画像が明るいか否かを判定する判定手段と、
前記画像データに対してノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によって顔領域が明るいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、顔領域が暗いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段と、
を備えたことを特徴とする撮像装置。 Imaging means for converting a subject image received through the imaging lens into image data;
Face detection means for detecting a human face region from the image data;
Brightness detection means for calculating brightness of the face area from the image data of the detected face area;
A determination unit that determines whether the face image is bright by comparing the brightness of the face area detected by the brightness detection unit with a predetermined threshold;
An image processing unit that performs image processing including noise removal on the image data, and when the determination unit determines that the face area is bright, performs image processing that prioritizes resolution over noise removal, When it is determined that the face area is dark, image processing means for performing image processing that prioritizes noise removal over resolution,
An imaging apparatus comprising:
前記明るさ算出手段は、前記顔領域の各画素の輝度データの平均値を算出することを特徴とする請求項5に記載の撮像装置。 Luminance calculation means for calculating luminance data of each pixel of the face area of the image data,
The imaging apparatus according to claim 5, wherein the brightness calculation unit calculates an average value of luminance data of each pixel of the face area.
前記画像データから人物の顔領域を検出する顔検出手段と、
前記画像データの顔領域の各画素の輝度データを算出する輝度算出手段と、
前記輝度データが所定の第1の閾値以下である画素の数を計数する計数手段と、
前記計数手段が計数した画素の数と所定の第2の閾値とを比較することにより、顔領域の暗部面積が広いか否かを判定する判定手段と、
前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によって前記暗部面積が狭いと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、前記暗部面積が広いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段と、
を備えたことを特徴とする撮像装置。 Imaging means for converting a subject image received through the imaging lens into image data;
Face detection means for detecting a human face region from the image data;
Luminance calculation means for calculating luminance data of each pixel of the face area of the image data;
Counting means for counting the number of pixels whose luminance data is equal to or less than a predetermined first threshold;
A determination unit that determines whether the dark area of the face region is wide by comparing the number of pixels counted by the counting unit with a predetermined second threshold;
Image processing means for performing image processing including noise removal on the image data, and when the determination means determines that the dark area is narrow, image processing prioritizing resolution over noise removal is performed. And when it is determined that the dark area is wide, image processing means for performing image processing that prioritizes noise removal over resolution,
An imaging apparatus comprising:
前記画像データから人物の顔領域を検出する顔検出手段と、
前記画像データの顔領域の各画素の輝度データを算出する輝度算出手段と、
前記輝度算出手段が算出した輝度データの、ヒストグラムの中央値又は最頻値と、所定の閾値とを比較することにより、ヒストグラムの中央値又は最頻値が大きいか否かを判定する判定手段と、
前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理手段であって、前記判定手段によってヒストグラムの中央値又は最頻値が大きいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、ヒストグラムの中央値又は最頻値が小さいと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理手段と、
を備えたことを特徴とする撮像装置。 Imaging means for converting a subject image received through the imaging lens into image data;
Face detection means for detecting a human face region from the image data;
Luminance calculation means for calculating luminance data of each pixel of the face area of the image data;
Determining means for determining whether or not the median or mode of the histogram is large by comparing the median or mode of the histogram of the brightness data calculated by the brightness calculating unit with a predetermined threshold; ,
An image processing unit that performs image processing including noise removal on the image data, and when the determination unit determines that the median or mode of the histogram is large, the image data has a higher resolution than noise removal. Image processing means for performing image processing with priority on noise removal rather than resolution when performing priority image processing and determining that the median or mode of the histogram is small;
An imaging apparatus comprising:
前記判定手段は、前記撮影感度設定手段が設定した感度に応じて前記感度が高い程、前記所定の閾値が高くなるように前記閾値を変更することを特徴とする請求項1、2、4、5、6、8のいずれかに記載の撮像装置。 It is equipped with shooting sensitivity setting means to set shooting sensitivity,
The said determination means changes the said threshold value so that the said predetermined threshold value becomes high, so that the said sensitivity is high according to the sensitivity set by the said imaging sensitivity setting means, The said threshold value is characterized by the above-mentioned. The imaging device according to any one of 5, 6, and 8.
前記判定手段は、前記撮影感度設定手段が設定した感度に応じて前記感度が高い程、前記所定の第1の閾値が高くなる、又は前記所定の第2の閾値が低くなるように、前記所定の第1の閾値又は前記所定の第2の閾値の少なくとも一方を変更することを特徴とする請求項3または請求項7に記載の撮像装置。 It is equipped with shooting sensitivity setting means to set shooting sensitivity,
The determination unit is configured to increase the predetermined first threshold or decrease the predetermined second threshold as the sensitivity increases according to the sensitivity set by the imaging sensitivity setting unit. The imaging apparatus according to claim 3 or 7, wherein at least one of the first threshold value or the predetermined second threshold value is changed.
前記画像処理手段は、前記撮影感度設定手段が設定した感度に応じて前記感度が高い程、ノイズ除去パラメータの値が大きくなるように前記値を変更することを特徴とする請求項11に記載の撮像装置。 It is equipped with shooting sensitivity setting means to set shooting sensitivity,
12. The image processing unit according to claim 11, wherein the image processing unit changes the value so that the value of the noise removal parameter increases as the sensitivity increases according to the sensitivity set by the imaging sensitivity setting unit. Imaging device.
前記撮影感度が高感度か否かを検出する高感度検出手段と、を備え、
前記画像処理手段は、前記高感度検出手段が撮影感度が高感度であると検出したときに、前記判定手段の判定結果により画像処理を行うことを特徴とする請求項1から12のいずれかに係る撮像装置。 Shooting sensitivity setting means for setting shooting sensitivity;
A high-sensitivity detection means for detecting whether or not the photographing sensitivity is high sensitivity,
13. The image processing unit according to claim 1, wherein the image processing unit performs image processing based on a determination result of the determination unit when the high sensitivity detection unit detects that the photographing sensitivity is high. Such an imaging apparatus.
前記画像データから画像の明るさを算出する明るさ算出ステップと、
前記明るさ算出ステップが算出した画像の明るさと所定の閾値とを比較することにより、画像が明るいか否かを判定する判定ステップと、
前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによって画像が明るいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、画像が暗いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップと、
を備えたことを特徴とする撮像方法。 An imaging step of converting a subject image received through the imaging lens into image data;
A brightness calculation step of calculating the brightness of the image from the image data;
A determination step of determining whether the image is bright by comparing the brightness of the image calculated by the brightness calculation step with a predetermined threshold;
An image processing step for performing image processing including noise removal on the image data, and when the determination step determines that the image is bright, performing image processing giving priority to resolution over noise removal, When it is determined that the image is dark, an image processing step for performing image processing that prioritizes noise removal over resolution,
An imaging method comprising:
前記画像データの画面全体の各画素の輝度データを算出する輝度算出ステップと、
前記輝度データが所定の第1の閾値以下である画素の数を計数する計数ステップと、
前記計数ステップが計数した画素の数と所定の第2の閾値とを比較することにより、画像の暗部面積が広いか否かを判定する判定ステップと、
前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによって前記暗部面積が狭いと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、前記暗部面積が広いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップと、
を備えたことを特徴とする撮像方法。 An imaging step of converting a subject image received through the imaging lens into image data;
A luminance calculation step of calculating luminance data of each pixel of the entire screen of the image data;
A counting step for counting the number of pixels in which the luminance data is equal to or less than a predetermined first threshold;
A determination step of determining whether the dark area of the image is wide by comparing the number of pixels counted in the counting step with a predetermined second threshold;
An image processing step for performing image processing including noise removal on the image data, and when the determination step determines that the dark area is narrow, image processing prioritizing resolution over noise removal is performed. And when it is determined that the dark area is wide, an image processing step for performing image processing prioritizing noise removal over resolution,
An imaging method comprising:
前記画像データの画面全体の各画素の輝度データを算出する輝度算出ステップと、
前記輝度データのヒストグラムの中央値又は最頻値と所定の閾値とを比較することにより、ヒストグラムの中央値又は最頻値が大きいか否かを判定する判定ステップと、
前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによってヒストグラムの中央値又は最頻値が大きいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、ヒストグラムの中央値又は最頻値が小さいと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップと、
を備えたことを特徴とする撮像方法。 An imaging step of converting a subject image received through the imaging lens into image data;
A luminance calculation step of calculating luminance data of each pixel of the entire screen of the image data;
A determination step of determining whether the median or mode of the histogram is large by comparing the median or mode of the histogram of the luminance data with a predetermined threshold;
An image processing step for performing image processing including noise removal on the image data, and when the determination step determines that the median or mode value of the histogram is large, the sense of resolution is better than noise removal. Image processing step for performing image processing prioritizing and performing image processing prioritizing noise removal over a sense of resolution when it is determined that the median or mode of the histogram is small;
An imaging method comprising:
前記画像データから人物の顔領域を検出する顔検出ステップと、
前記検出した顔領域の画像データから顔領域の明るさを算出する明るさ検出ステップと、
前記明るさ検出ステップが検出した顔領域の明るさと所定の閾値とを比較することにより、顔画像が明るいか否かを判定する判定ステップと、
前記画像データに対してノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによって顔領域が明るいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、顔領域が暗いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップと、を備えたことを特徴とする撮像方法。 An imaging step of converting a subject image received through the imaging lens into image data;
A face detection step of detecting a human face region from the image data;
A brightness detection step of calculating brightness of the face area from the image data of the detected face area;
A determination step of determining whether or not the face image is bright by comparing the brightness of the face area detected by the brightness detection step with a predetermined threshold;
An image processing step that performs image processing including noise removal on the image data, and when the determination step determines that the face area is bright, performs image processing giving priority to resolution over noise removal, An image processing method comprising: an image processing step of performing image processing in which noise removal is prioritized over resolution when it is determined that a face area is dark.
前記画像データから人物の顔領域を検出する顔検出ステップと、
前記画像データの顔領域の各画素の輝度データを算出する輝度算出ステップと、
前記輝度データが所定の第1の閾値以下である画素の数を計数する計数ステップと、
前記計数ステップが計数した画素の数と所定の第2の閾値とを比較することにより、顔領域の暗部面積が広いか否かを判定する判定ステップと、
前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによって前記暗部面積が狭いと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、前記暗部面積が広いと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップと、
を備えたことを特徴とする撮像方法。 An imaging step of converting a subject image received through the imaging lens into image data;
A face detection step of detecting a human face region from the image data;
A luminance calculation step of calculating luminance data of each pixel of the face area of the image data;
A counting step for counting the number of pixels in which the luminance data is equal to or less than a predetermined first threshold;
A determination step of determining whether the dark area of the face region is wide by comparing the number of pixels counted in the counting step with a predetermined second threshold;
An image processing step for performing image processing including noise removal on the image data, and when the determination step determines that the dark area is narrow, image processing prioritizing resolution over noise removal is performed. And when it is determined that the dark area is wide, an image processing step for performing image processing prioritizing noise removal over resolution,
An imaging method comprising:
前記画像データから人物の顔領域を検出する顔検出ステップと、
前記画像データの顔領域の各画素の輝度データを算出する輝度算出ステップと、
前記輝度算出ステップが算出した輝度データの、ヒストグラムの中央値又は最頻値と、所定の閾値とを比較することにより、ヒストグラムの中央値又は最頻値が大きいか否かを判定する判定ステップと、
前記画像データに対して、ノイズ除去を含む画像処理を行う画像処理ステップであって、前記判定ステップによってヒストグラムの中央値又は最頻値が大きいと判定されると、ノイズ除去よりも解像感を優先した画像処理を行い、ヒストグラムの中央値又は最頻値が小さいと判定されると、解像感よりもノイズ除去を優先した画像処理を行う画像処理ステップと、
を備えたことを特徴とする撮像方法。 An imaging step of converting a subject image received through the imaging lens into image data;
A face detection step of detecting a human face area from the image data;
A luminance calculation step of calculating luminance data of each pixel of the face area of the image data;
A determination step of determining whether the median value or mode value of the histogram is large by comparing the median value or mode value of the histogram of the brightness data calculated by the brightness calculating step with a predetermined threshold value; ,
An image processing step for performing image processing including noise removal on the image data, and when the determination step determines that the median or mode value of the histogram is large, the sense of resolution is better than noise removal. Image processing step for performing image processing prioritizing and performing image processing prioritizing noise removal over a sense of resolution when it is determined that the median or mode of the histogram is small;
An imaging method comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007012855A JP2008182350A (en) | 2007-01-23 | 2007-01-23 | Imaging apparatus and method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007012855A JP2008182350A (en) | 2007-01-23 | 2007-01-23 | Imaging apparatus and method thereof |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2008182350A true JP2008182350A (en) | 2008-08-07 |
Family
ID=39725935
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007012855A Pending JP2008182350A (en) | 2007-01-23 | 2007-01-23 | Imaging apparatus and method thereof |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2008182350A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009239396A (en) * | 2008-03-26 | 2009-10-15 | Mega Chips Corp | Image processor |
| JP2013191936A (en) * | 2012-03-12 | 2013-09-26 | Canon Inc | Image processing apparatus and control method |
| WO2016129404A1 (en) * | 2015-02-09 | 2016-08-18 | ソニー株式会社 | Image processing device, image processing method, and program |
| CN112565915A (en) * | 2020-06-04 | 2021-03-26 | 海信视像科技股份有限公司 | Display apparatus and display method |
-
2007
- 2007-01-23 JP JP2007012855A patent/JP2008182350A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009239396A (en) * | 2008-03-26 | 2009-10-15 | Mega Chips Corp | Image processor |
| JP2013191936A (en) * | 2012-03-12 | 2013-09-26 | Canon Inc | Image processing apparatus and control method |
| WO2016129404A1 (en) * | 2015-02-09 | 2016-08-18 | ソニー株式会社 | Image processing device, image processing method, and program |
| CN112565915A (en) * | 2020-06-04 | 2021-03-26 | 海信视像科技股份有限公司 | Display apparatus and display method |
| CN112565915B (en) * | 2020-06-04 | 2023-05-05 | 海信视像科技股份有限公司 | Display apparatus and display method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8199203B2 (en) | Imaging apparatus and imaging method with face detection based on scene recognition results | |
| JP4626425B2 (en) | Imaging apparatus, imaging method, and imaging program | |
| JP4746295B2 (en) | Digital camera and photographing method | |
| US8284264B2 (en) | Imaging apparatus, method, and program | |
| US8797423B2 (en) | System for and method of controlling a parameter used for detecting an objective body in an image and computer program | |
| JP5025532B2 (en) | Imaging apparatus, imaging apparatus control method, and imaging apparatus control program | |
| US8248484B2 (en) | Imaging apparatus and method | |
| US7711190B2 (en) | Imaging device, imaging method and imaging program | |
| JP6325841B2 (en) | Imaging apparatus, imaging method, and program | |
| JP4533593B2 (en) | Imaging device | |
| JP5027580B2 (en) | Imaging apparatus, method, and program | |
| JP5048599B2 (en) | Imaging device | |
| JP2004201228A (en) | Method and device for extracting face area | |
| JP2008182350A (en) | Imaging apparatus and method thereof | |
| JP2007221284A (en) | Imaging apparatus, method, and program | |
| JP2006163496A (en) | Apparatus, method and program for image recording | |
| KR101613617B1 (en) | Apparatus and method for digital picturing image | |
| JP2008298847A (en) | Photography method and digital camera | |
| JP2010050703A (en) | Imaging apparatus, method, and program | |
| JP2008131094A (en) | Imaging apparatus and imaging method | |
| JP2005328224A (en) | Digital camera | |
| JP2008263424A (en) | camera | |
| JP2008160290A (en) | Imaging apparatus and imaging method | |
| JP5355124B2 (en) | Imaging apparatus and scene discrimination method thereof | |
| JP2006287814A (en) | Imaging apparatus and method of determining motion vector |