JP2009105960A - Photographic device and program used in the same, as well as image storage method - Google Patents

Photographic device and program used in the same, as well as image storage method Download PDF

Info

Publication number
JP2009105960A
JP2009105960A JP2009021518A JP2009021518A JP2009105960A JP 2009105960 A JP2009105960 A JP 2009105960A JP 2009021518 A JP2009021518 A JP 2009021518A JP 2009021518 A JP2009021518 A JP 2009021518A JP 2009105960 A JP2009105960 A JP 2009105960A
Authority
JP
Japan
Prior art keywords
block noise
image
block
compressed image
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009021518A
Other languages
Japanese (ja)
Inventor
Poon Yunis
プーン ユニス
Megumi Kanda
めぐみ 神田
Clark Ian
クラーク イアン
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2009021518A priority Critical patent/JP2009105960A/en
Publication of JP2009105960A publication Critical patent/JP2009105960A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To store a photographed image in a storage medium after performing a compression at a compression rate corresponding to the photographed image. <P>SOLUTION: The photographed image is JPEG-compressed at a compression rate ρ that is a default value (S110) and degree of block noise in the JPEG-compressed image is determined (S120). A block noise evaluation value B calculated as the degree of block noise is compared with a set value Bset (S130). If the block noise evaluation value B is greater than the set value Bset, the JPEG-compression is performed until the block noise evaluation value B becomes not greater than the set value Bset while changing the compression rate ρ to lower rate (S140). When the block noise evaluation value B becomes not greater than the set value Bset, an ID of the order of photography is added to the compressed image data and the data is stored in a storage medium (S150). Consequently, the photographed image is compressed at the compression rate corresponding to the photographed image and the image can be stored in the storage medium. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、撮影装置およびこれに用いるプログラム並びに画像記憶方法に関する。   The present invention relates to a photographing apparatus, a program used therefor, and an image storage method.

従来、この種の撮影装置としては、撮影した画像を液晶モニタに表示するものが提案されている(例えば、特許文献1参照)。この装置では、撮影した画像をその場で液晶モニタに表示し、撮影者に撮影した内容(画像)を確認させ、着脱自在な記憶媒体に記憶する。   Conventionally, as this type of photographing apparatus, an apparatus that displays a photographed image on a liquid crystal monitor has been proposed (for example, see Patent Document 1). In this apparatus, the photographed image is displayed on the liquid crystal monitor on the spot, and the photographer confirms the photographed content (image) and stores it in a removable storage medium.

特開2000−209467号公報JP 2000-209467 A

しかしながら、上述の撮影装置では、撮影した画像をその場で目視によって確認することができるものの、その後にJPEG(Joint Photographic Experts Group)圧縮などを施して記憶媒体に記憶した画像に生じ得る圧縮に伴うノイズの確認はできない。   However, in the above-described photographing apparatus, although the photographed image can be visually confirmed on the spot, it is accompanied by compression that can occur in the image stored in the storage medium by performing JPEG (Joint Photographic Experts Group) compression or the like thereafter. Noise cannot be confirmed.

画像の圧縮に伴うノイズは、目視に対しては滑らかに色調や明るさが変化するような画像では比較的低圧縮率としても影響が生じやすく、色調や明るさが大きく変化する画像では比較的高圧縮率としても影響は生じにくい。即ち、画像の圧縮に伴うノイズは画像によって異なるものとなる。このため、画像の圧縮に伴うノイズの影響を小さくするために一律に圧縮率を低下することも考えられるが、圧縮率を低下すると、記憶媒体に記憶できる圧縮した画像の数が少なくなってしまう。   Noise due to image compression is likely to be affected even by a relatively low compression ratio for images that change color tone and brightness smoothly for visual observation, and relatively for images that change greatly in color tone and brightness. Even at a high compression rate, there is little effect. That is, the noise accompanying image compression differs depending on the image. For this reason, it may be possible to reduce the compression rate uniformly in order to reduce the influence of noise associated with image compression. However, if the compression rate is reduced, the number of compressed images that can be stored in the storage medium decreases. .

本発明の撮影装置は、撮影した画像に応じた圧縮率により圧縮して記憶媒体に記憶することを目的の一つとする。また、本発明の撮影装置は、画像を圧縮する際に生じ得るノイズの影響を確認することを目的の一つとする。さらに、本発明の撮影装置は、画像を圧縮する際に生じ得るノイズの影響をより適正に判定することを目的の一つとする。   An object of the imaging apparatus of the present invention is to compress and store in a storage medium at a compression rate corresponding to a captured image. Another object of the photographing apparatus of the present invention is to confirm the influence of noise that may occur when an image is compressed. Furthermore, an object of the imaging apparatus of the present invention is to more appropriately determine the influence of noise that may occur when an image is compressed.

本発明の撮影装置用のプログラムは、撮影装置を撮影した画像に応じた圧縮率により圧縮して記憶媒体に記憶するよう機能させることを目的の一つとする。また、本発明の撮影装置用のプログラムは、画像を圧縮する際に生じ得るノイズの影響をより適正に判定することを目的の一つとする。   One object of the program for the photographing apparatus of the present invention is to cause the photographing apparatus to function so as to be compressed and stored in a storage medium at a compression rate corresponding to the photographed image. Another object of the program for the photographing apparatus of the present invention is to more appropriately determine the influence of noise that may occur when an image is compressed.

本発明の画像記憶方法は、撮影した画像をより適正な圧縮率を用いて圧縮して記憶媒体に記憶することを目的の一つとする。また、本発明の画像記憶方法は、画像を圧縮する際に生じ得るノイズの影響をより適正に判定して画像を圧縮して記憶媒体に記憶することを目的の一つとする。   An object of the image storage method of the present invention is to compress a captured image using a more appropriate compression ratio and store the compressed image in a storage medium. Another object of the image storage method of the present invention is to more appropriately determine the influence of noise that may occur when compressing an image and to compress the image and store it in a storage medium.

本発明の撮影装置およびこれに用いるプログラム並びに画像記憶方法は、上述の目的の少なくとも一部を達成するために以下の手段を採った。   The photographing apparatus of the present invention, the program used therefor, and the image storage method employ the following means in order to achieve at least a part of the above object.

本発明の撮影装置は、
画像を撮影する撮影装置であって、
撮影した画像を縦横が所定の画素数のブロックに分割して圧縮した圧縮画像を生成する圧縮画像生成手段と、
前記圧縮画像を記憶可能な記憶手段と、
前記圧縮画像に対して圧縮に伴ってブロック境界に生じ得るブロックノイズの程度を判定するブロックノイズ判定手段と、
前記判定されたブロックノイズの程度が所定のブロックノイズの程度以上のときには前記撮影した画像の圧縮率を低減した圧縮画像が作成されるよう前記画像圧縮手段を制御し、前記判定されたブロックノイズの程度が前記所定のブロックノイズの程度以下のときには前記圧縮画像が前記記憶手段に記憶されるよう制御する画像圧縮記憶制御手段と、
を備えることを要旨とする。
The photographing apparatus of the present invention
An imaging device for taking an image,
A compressed image generating means for generating a compressed image obtained by dividing a photographed image into blocks each having a predetermined number of pixels in length and width;
Storage means capable of storing the compressed image;
Block noise determination means for determining the degree of block noise that may occur at a block boundary accompanying compression with respect to the compressed image;
When the determined block noise level is equal to or higher than a predetermined block noise level, the image compression unit is controlled so that a compressed image with a reduced compression rate of the captured image is generated, and the determined block noise level is determined. Image compression storage control means for controlling the compressed image to be stored in the storage means when the degree is equal to or less than the predetermined block noise;
It is a summary to provide.

この本発明の撮影装置では、撮影した画像を縦横が所定の画素数のブロックに分割して圧縮した圧縮画像を生成し、この圧縮画像に対して圧縮に伴ってブロック境界に生じ得るブロックノイズの程度を判定し、判定したブロックノイズの程度が所定のブロックノイズの程度以上のときには撮影した画像の圧縮率を低減した圧縮画像を作成する。こうして作成された圧縮画像は再びブロックノイズの程度が判定される。そして、判定したブロックノイズの程度が所定のブロックノイズの程度以下のときにはその圧縮画像を記憶手段に記憶する。したがって、撮影した画像を所定のブロックノイズの程度以下の圧縮画像として記憶することができる。即ち、撮影した画像に応じた圧縮率により圧縮して記憶手段に記憶することができるのである。   In the photographing apparatus of the present invention, a compressed image is generated by dividing a photographed image into blocks each having a predetermined number of pixels in the vertical and horizontal directions, and block noise that may occur at the block boundary due to compression of the compressed image is generated. The degree of block noise is determined, and when the determined block noise level is equal to or higher than a predetermined block noise level, a compressed image with a reduced compression rate of the captured image is created. The degree of block noise is determined again for the compressed image thus created. When the determined block noise level is less than or equal to the predetermined block noise level, the compressed image is stored in the storage means. Therefore, the photographed image can be stored as a compressed image having a predetermined block noise level or less. In other words, it can be compressed and stored in the storage means at a compression rate corresponding to the photographed image.

こうした本発明の撮影装置において、前記ブロックノイズ判定手段は、前記圧縮画像における各画素に対して所定の方向に隣接する画素に対する輝度成分に基づいて各画素間の輝度強度差を演算し、各画素間の輝度強度差の前記所定の方向における前後の差分に基づいて各画素における輝度の変化の滑らかさを演算し、前記ブロックの境界に位置しない画素における輝度の変化の滑らかさの平均に対する前記ブロックの境界に位置する画素における輝度の変化の滑らかさの平均の比に基づいてブロックノイズ評価指数を演算し、該演算したブロックノイズ評価指数に基づいてブロックノイズの程度を判定する手段であるものとすることもできる。こうすれば、ブロックの境界に位置する画素と隣接する画素とにおける輝度の変化の滑らかさに基づいてブロックノイズの程度を判定するから、より適正にブロックノイズの程度を判定することができる。また、規格的に演算するだけであるから、より迅速にブロックノイズの程度を判定することができる。   In such a photographing apparatus of the present invention, the block noise determination means calculates a luminance intensity difference between the pixels based on a luminance component with respect to a pixel adjacent in a predetermined direction with respect to each pixel in the compressed image. Calculating the smoothness of the luminance change in each pixel on the basis of the difference in luminance intensity between before and after in the predetermined direction, and the block with respect to the average of the smoothness of the luminance change in pixels not located at the block boundary A block noise evaluation index is calculated based on an average ratio of smoothness of changes in luminance at pixels located at the boundary of the block, and the degree of block noise is determined based on the calculated block noise evaluation index You can also By so doing, the degree of block noise is determined based on the smoothness of the luminance change between the pixel located at the boundary of the block and the adjacent pixel, and therefore the degree of block noise can be determined more appropriately. Moreover, since the calculation is performed only in accordance with the standard, the degree of block noise can be determined more quickly.

このブロックの境界に位置する画素と隣接する画素とにおける輝度の変化の滑らかさに基づいてブロックノイズの程度を判定する態様の本発明の撮影装置において、前記所定の方向は、縦方向と横方向との二方向であるものとすることもできる。この場合、ブロックノイズ判定手段は、縦方向における前記比と横方向における前記比との平均に基づいてブロックノイズ評価指数を演算する手段であるものとすることもできる。   In the photographing apparatus according to the aspect of the invention in which the degree of block noise is determined based on the smoothness of the luminance change between the pixel located at the boundary of the block and the adjacent pixel, the predetermined directions are the vertical direction and the horizontal direction. Or two directions. In this case, the block noise determination means may be means for calculating a block noise evaluation index based on an average of the ratio in the vertical direction and the ratio in the horizontal direction.

また、ブロックの境界に位置する画素と隣接する画素とにおける輝度の変化の滑らかさに基づいてブロックノイズの程度を判定する態様の本発明の撮影装置において、前記所定の方向は、縦方向または横方向のうちのいずれか一方向であるものとすることもできる。こうすれば、より迅速にブロックノイズの程度を判定することができる。   In the photographing apparatus of the present invention in which the degree of block noise is determined based on the smoothness of the luminance change between the pixel located at the block boundary and the adjacent pixel, the predetermined direction is the vertical direction or the horizontal direction. It can also be one of the directions. In this way, the degree of block noise can be determined more quickly.

さらに、ブロックの境界に位置する画素と隣接する画素とにおける輝度の変化の滑らかさに基づいてブロックノイズの程度を判定する態様の本発明の撮影装置において、前記ブロックノイズ判定手段は、各画素に対して所定の方向に隣接する画素に対する輝度成分の差分を前記各画素の輝度強度差として演算する手段であるものとすることもできる。また、前記ブロックノイズ判定手段は、各画素間の輝度強度差の前記所定の方向における前後の差分の絶対値の和を前記各画素における輝度の変化の滑らかさとして演算する手段であるものとすることもできる。あるいは、前記ブロックノイズ判定手段は、ブロックノイズの程度が大きくなるほど大きな値となるようブロックノイズ評価指数を演算する手段であるものとすることもできる。   Furthermore, in the photographing apparatus according to the aspect of the present invention in which the degree of block noise is determined based on the smoothness of the luminance change between the pixel located at the block boundary and the adjacent pixel, the block noise determination unit includes: On the other hand, it may be a means for calculating a difference in luminance components with respect to pixels adjacent in a predetermined direction as a luminance intensity difference between the pixels. Further, the block noise determination means is a means for calculating the sum of absolute values of differences in luminance intensity between the pixels in the predetermined direction as the smoothness of the luminance change in the pixels. You can also. Alternatively, the block noise determination means may be means for calculating a block noise evaluation index so that the block noise evaluation index becomes a larger value as the degree of block noise increases.

また、本発明の撮影装置において、前記圧縮画像作成手段は、デフォルト値として所定の圧縮率を用いて前記撮影した画像の圧縮画像を作成する手段であるものとすることもできる。こうすれば、まず、デフォルトの圧縮率を用いて圧縮画像を作成することができる。このデフォルトの圧縮率としては、スナップ写真などとして撮影される通常の画像において圧縮に伴うノイズの影響が生じにくい比較的大きな圧縮率とすることができる。こうすれば、多くの撮影した画像に対しては比較的大きな圧縮率による圧縮画像として記憶手段に記憶することができる。   In the photographing apparatus of the present invention, the compressed image creating means may be a means for creating a compressed image of the photographed image using a predetermined compression rate as a default value. In this way, first, a compressed image can be created using the default compression rate. The default compression ratio can be a relatively large compression ratio that is less susceptible to noise associated with compression in a normal image taken as a snapshot. In this way, a large number of captured images can be stored in the storage means as compressed images with a relatively large compression rate.

本発明の撮影装置において、前記画像圧縮記憶制御手段は、前記判定されたブロックノイズの程度が所定のブロックノイズの程度以上のときには予め定められた段階的に低減する圧縮率を順次選択して前記撮影した画像の圧縮画像が作成されるよう前記画像圧縮手段を制御する手段であるものとすることもできる。こうすれば、圧縮率を設定する必要がなく、効率よく圧縮率を変更して撮影した画像の圧縮画像を作成することができる。   In the photographing apparatus of the present invention, the image compression / storage control means sequentially selects a predetermined compression rate to be reduced in steps when the determined block noise level is equal to or higher than a predetermined block noise level. The image compression means may be a means for controlling the image compression means so that a compressed image of the photographed image is created. In this way, it is not necessary to set the compression rate, and it is possible to efficiently create a compressed image of an image taken by changing the compression rate.

本発明の撮影装置において、画像や文字などの表示情報を表示可能な表示手段と、前記判定されたブロックノイズの程度を前記表示手段に表示するブロックノイズ表示制御手段と、を備えるものとすることもできる。こうすれば、画像を圧縮する際に生じ得るノイズの程度を操作者に確認させることができる。   The imaging apparatus of the present invention includes display means capable of displaying display information such as images and characters, and block noise display control means for displaying the determined degree of block noise on the display means. You can also. By doing so, it is possible to make the operator confirm the degree of noise that may occur when compressing the image.

このブロックノイズの程度を表示手段に表示する態様の本発明の撮影装置において、前記ブロックノイズ表示制御手段は、前記判定されたブロックノイズの程度を数値および/またはグラフをもって前記表示手段に表示する手段であるものとすることもできる。こうすれば、ブロックノイズの程度をより的確に表示することができる。   In the photographing apparatus of the present invention in which the degree of block noise is displayed on the display means, the block noise display control means is means for displaying the determined degree of block noise on the display means with a numerical value and / or a graph. It can also be assumed. In this way, the degree of block noise can be displayed more accurately.

またブロックノイズの程度を表示手段に表示する態様の本発明の撮影装置において、前記画像圧縮記憶制御手段は、操作者による前記撮影した画像の圧縮率を低減した圧縮画像の作成の指示がなされたときに前記撮影した画像の圧縮率を低減した圧縮画像が作成されるよう前記画像圧縮手段を制御する手段であるものとすることもできる。こうすれば、操作者の所望のブロックノイズの程度として圧縮画像を記憶手段に記憶させることができる。   Further, in the photographing apparatus of the present invention in which the degree of block noise is displayed on the display means, the image compression storage control means is instructed by an operator to create a compressed image with a reduced compression rate of the photographed image. It is also possible to control the image compression means so that a compressed image with a reduced compression rate of the photographed image is sometimes created. In this way, the compressed image can be stored in the storage means as the degree of block noise desired by the operator.

本発明の撮影装置用のプログラムは、
撮影した画像を記憶可能な記憶手段を有する撮影装置用のプログラムであって、
(a)撮影した画像を縦横が所定の画素数のブロックに分割して圧縮した圧縮画像を生成するモジュールと、
(b)前記圧縮画像に対して圧縮に伴ってブロック境界に生じ得るブロックノイズの程度を判定するモジュールと、
(c)前記判定されたブロックノイズの程度が所定のブロックノイズの程度以上のときには前記撮影した画像の圧縮率を低減した圧縮画像が作成されるよう前記画像圧縮手段を制御し、前記判定されたブロックノイズの程度が前記所定のブロックノイズの程度以下のときには前記圧縮画像が前記記憶手段に記憶されるよう制御するモジュールと、
を備えることを要旨とする。
The program for the photographing apparatus of the present invention is
A program for a photographing apparatus having a storage means capable of storing a photographed image,
(A) a module that generates a compressed image obtained by dividing a captured image into blocks each having a predetermined number of pixels in the vertical and horizontal directions;
(B) a module that determines the degree of block noise that may occur at a block boundary accompanying compression with respect to the compressed image;
(C) When the determined block noise level is equal to or higher than a predetermined block noise level, the image compression unit is controlled to create a compressed image with a reduced compression rate of the captured image, and the determined A module for controlling the compressed image to be stored in the storage means when the level of block noise is less than or equal to the predetermined level of block noise;
It is a summary to provide.

この本発明の撮影装置用のプログラムでは、撮影装置にインストールして起動することにより、撮影装置を、撮影した画像を縦横が所定の画素数のブロックに分割して圧縮した圧縮画像を生成し、この圧縮画像に対して圧縮に伴ってブロック境界に生じ得るブロックノイズの程度を判定し、判定したブロックノイズの程度が所定のブロックノイズの程度以上のときには撮影した画像の圧縮率を低減した圧縮画像を作成し、判定したブロックノイズの程度が所定のブロックノイズの程度以下のときにはその圧縮画像を記憶手段に記憶す
る、装置として機能させることができる。したがって、撮影した画像を所定のブロックノイズの程度以下の圧縮画像として記憶することができる。
In the program for the photographing apparatus of the present invention, when the photographing apparatus is installed and activated, the photographing apparatus generates a compressed image in which the photographed image is compressed by dividing the photographed image into blocks each having a predetermined number of pixels. A compressed image in which the degree of block noise that can occur at the block boundary in connection with compression is determined for this compressed image, and when the determined block noise level is greater than or equal to a predetermined level of block noise, the compression rate of the captured image is reduced Can be made to function as an apparatus that stores the compressed image in the storage means when the determined block noise level is less than or equal to the predetermined block noise level. Therefore, the photographed image can be stored as a compressed image having a predetermined block noise level or less.

こうした本発明の撮影装置用のプログラムにおいて、前記モジュール(b)は、前記圧縮画像における各画素に対して所定の方向に隣接する画素に対する輝度成分に基づいて各画素間の輝度強度差を演算し、各画素間の輝度強度差の前記所定の方向における前後の差分に基づいて各画素における輝度の変化の滑らかさを演算し、前記ブロックの境界に位置しない画素における輝度の変化の滑らかさの平均に対する前記ブロックの境界に位置する画素における輝度の変化の滑らかさの平均の比に基づいてブロックノイズ評価指数を演算し、該演算したブロックノイズ評価指数に基づいてブロックノイズの程度を判定するモジュールであるものとすることもできる。こうすれば、ブロックの境界に位置する画素と隣接する画素とにおける輝度の変化の滑らかさに基づいてブロックノイズの程度を判定するから、より適正にブロックノイズの程度を判定することができる。   In such a program for the photographing apparatus of the present invention, the module (b) calculates a luminance intensity difference between the pixels based on a luminance component with respect to a pixel adjacent in a predetermined direction to each pixel in the compressed image. Calculating the smoothness of the luminance change in each pixel based on the difference between the luminance intensity differences between the pixels in the predetermined direction, and averaging the smoothness of the luminance change in the pixels not located at the block boundary A block noise evaluation index based on a ratio of average smoothness of luminance change in pixels located at the block boundary with respect to the block, and a module for determining the level of block noise based on the calculated block noise evaluation index It can also be. By so doing, the degree of block noise is determined based on the smoothness of the luminance change between the pixel located at the boundary of the block and the adjacent pixel, and therefore the degree of block noise can be determined more appropriately.

本発明の画像記憶方法は、
画像を記憶する画像記憶方法であって、
(a)画像を縦横が所定の画素数のブロックに分割して圧縮した圧縮画像を生成し、
(b)前記圧縮画像に対して圧縮に伴ってブロック境界に生じ得るブロックノイズの程度を判定し、
(c)前記判定されたブロックノイズの程度が所定のブロックノイズの程度以上のときには前記画像の圧縮率を低減した圧縮画像を作成し、前記判定されたブロックノイズの程度が前記所定のブロックノイズの程度以下のときには前記圧縮画像を記憶する、
ことを要旨とする。
The image storage method of the present invention includes:
An image storage method for storing an image,
(A) generating a compressed image obtained by dividing the image into blocks each having a predetermined number of pixels in length and width, and compressing the image;
(B) Determining the degree of block noise that can occur at the block boundary along with compression of the compressed image;
(C) When the determined block noise level is equal to or higher than the predetermined block noise level, a compressed image with a reduced compression rate of the image is created, and the determined block noise level is equal to the predetermined block noise level. When the degree is below, the compressed image is stored,
This is the gist.

この本発明の画像記憶方法では、画像を縦横が所定の画素数のブロックに分割して圧縮した圧縮画像を生成し、この圧縮画像に対して圧縮に伴ってブロック境界に生じ得るブロックノイズの程度を判定し、判定したブロックノイズの程度が所定のブロックノイズの程度以上のときには画像の圧縮率を低減した圧縮画像を作成する。こうして作成された圧縮画像は再びブロックノイズの程度を判定する。そして、判定したブロックノイズの程度が所定のブロックノイズの程度以下のときにはその圧縮画像を記憶手段に記憶する。したがって、画像を所定のブロックノイズの程度以下の圧縮画像として記憶することができる。   In this image storage method of the present invention, a compressed image is generated by dividing an image into blocks each having a predetermined number of pixels in the vertical and horizontal directions, and the degree of block noise that may occur at the block boundary along with the compression of the compressed image When the determined block noise level is equal to or higher than the predetermined block noise level, a compressed image with a reduced image compression rate is created. The compressed image created in this way determines the degree of block noise again. When the determined block noise level is less than or equal to the predetermined block noise level, the compressed image is stored in the storage means. Therefore, the image can be stored as a compressed image having a predetermined block noise level or less.

こうした本発明の画像記憶方法において、前記ステップ(b)は、前記圧縮画像における各画素に対して所定の方向に隣接する画素に対する輝度成分に基づいて各画素間の輝度強度差を演算し、各画素間の輝度強度差の前記所定の方向における前後の差分に基づいて各画素における輝度の変化の滑らかさを演算し、前記ブロックの境界に位置しない画素における輝度の変化の滑らかさの平均に対する前記ブロックの境界に位置する画素における輝度の変化の滑らかさの平均の比に基づいてブロックノイズ評価指数を演算し、該演算したブロックノイズ評価指数に基づいてブロックノイズの程度を判定するステップであるものとすることもできる。こうすれば、ブロックの境界に位置する画素と隣接する画素とにおける輝度の変化の滑らかさに基づいてブロックノイズの程度を判定するから、より適正にブロックノイズの程度を判定することができる。   In such an image storage method of the present invention, the step (b) calculates a luminance intensity difference between each pixel based on a luminance component for a pixel adjacent in a predetermined direction with respect to each pixel in the compressed image, The smoothness of the luminance change in each pixel is calculated based on the difference between the luminance intensity differences between the pixels in the predetermined direction, and the average of the smoothness of the luminance change in the pixels not located on the block boundary is calculated. A step of calculating a block noise evaluation index based on an average ratio of smoothness of luminance change in pixels located at a block boundary, and determining a degree of block noise based on the calculated block noise evaluation index It can also be. By so doing, the degree of block noise is determined based on the smoothness of the luminance change between the pixel located at the boundary of the block and the adjacent pixel, and therefore the degree of block noise can be determined more appropriately.

第1実施例のデジタルカメラ20の外観を例示する斜視図。1 is a perspective view illustrating the appearance of a digital camera 20 according to a first embodiment. 第1実施例のデジタルカメラ20の背面を例示する背面図。FIG. 3 is a rear view illustrating the rear surface of the digital camera 20 according to the first embodiment. 第1実施例のデジタルカメラ20の機能ブロックを例示するブロック図。1 is a block diagram illustrating functional blocks of a digital camera 20 according to a first embodiment. 画像記憶処理の一例を示すフローチャート。6 is a flowchart illustrating an example of image storage processing. ブロックノイズの判定処理の一例を示すフローチャート。The flowchart which shows an example of the determination process of block noise. 第2実施例の画像記憶処理の一例を示すフローチャート。12 is a flowchart illustrating an example of image storage processing according to the second embodiment. 操作画面を表示している際の背面30を示す説明図。Explanatory drawing which shows the back surface 30 at the time of displaying the operation screen.

次に、本発明を実施するための最良の形態を実施例を用いて説明する。   Next, the best mode for carrying out the present invention will be described using examples.

図1は本発明の一実施例としての撮影装置であるデジタルカメラ20の外観を例示する斜視図であり、図2は実施例のデジタルカメラ20の背面を例示する背面図であり、図3は実施例のデジタルカメラ20の機能ブロックを例示するブロック図である。   FIG. 1 is a perspective view illustrating the external appearance of a digital camera 20 that is a photographing apparatus as an embodiment of the present invention, FIG. 2 is a rear view illustrating the back surface of the digital camera 20 of the embodiment, and FIG. It is a block diagram which illustrates the functional block of the digital camera 20 of an Example.

実施例のデジタルカメラ20は、図1に示すように、正面には光学3倍ズームが可能なズーム機構付きレンズ21と、点滅することによりセルフタイマーが動作中であることを表示するセルフタイマー点灯部25とを備え、上部にはモードを選択するモードダイヤル23と、このモードダイヤル23の中央に配置された電源ボタン22と、シャッターボタン24とを備える。また、デジタルカメラ20は、図2に示すように、背面30には、中央の左寄りに配置された液晶ディスプレイ31と、その右側に配置され上下左右の方向に操作可能な4方向ボタン32と、背面30の左上に配置された印刷ボタン33と、ズーム機能を操作するWボタン34aおよびTボタン34bと、4方向ボタン32の左上に配置されたメニューボタン35と、液晶ディスプレイ31の下方の左右に配置されたAボタン36およびBボタン37と、4方向ボタン32の下方左に配置され液晶ディスプレイ31への表示を切り替えるディスプレーボタン38と、その右方向に配置されたレビューボタン39とを備える。   As shown in FIG. 1, the digital camera 20 according to the embodiment has a zoom mechanism lens 21 that can perform optical 3x zoom on the front, and a self-timer lighting that indicates that the self-timer is operating by blinking. A mode dial 23 for selecting a mode, a power button 22 disposed at the center of the mode dial 23, and a shutter button 24. In addition, as shown in FIG. 2, the digital camera 20 includes a liquid crystal display 31 disposed on the left side of the center, a four-way button 32 disposed on the right side thereof and operable in the vertical and horizontal directions, as shown in FIG. The print button 33 arranged at the upper left of the back 30, the W button 34 a and the T button 34 b for operating the zoom function, the menu button 35 arranged at the upper left of the four-direction button 32, and the left and right below the liquid crystal display 31. There are provided an A button 36 and a B button 37 arranged, a display button 38 arranged on the lower left of the four-direction button 32 for switching the display on the liquid crystal display 31, and a review button 39 arranged on the right side thereof.

実施例のデジタルカメラ20は、機能的には図3に例示するように、中央演算処理装置としてのCPU40aや処理プログラムを記憶するROM40b,一時的にデータを記憶するワークメモリ40c,設定されたデータを不揮発的に記憶するフラッシュメモリ40dなどを中心として構成されている。デジタルカメラ20は、撮影系として、レンズや絞りなどにより構成された光学系42や、この光学系42により結像される光学像を光電変換して得られる電荷を受光セル毎に一定時間蓄積し受光セル毎の受光量に応じた電気信号を出力するイメージセンサ43、このイメージセンサ43を駆動するために必要な駆動パルスをイメージセンサ43に出力する駆動回路としてのセンサコントローラ44、イメージセンサ43から出力される電気信号を量子化してディジタル信号に変換するアナログフロントエンド(AFE)部45、このAFE部45から出力されたディジタル信号に対して画像形成処理,ホワイトバランス補正,γ補正,色空間変換等を施して各画素についてR,G,Bの階調値やY,Cb,Crの階調値などを表すディジタル画像を出力するデジタル画像処理部46、ディジタル画像の系列変換(離散コサイン変換やウェーブレット変換等)及びエントロピー符号化(ランレングス符号化やハフマン符号化等)を行なうことによりディジタル画像を圧縮しそれらの逆変換を施すことによりディジタル画像を伸張する圧縮伸張部47などを備える。また、実施例のデジタルカメラ20は、液晶ディスプレイ31の一画面分のデータを格納するためのフレームバッファやフレームバッファに格納されたディジタル画像に基づいて液晶ディスプレイ31を駆動するための表示回路を有するディスプレイコントローラ50やモードダイヤル23,4方向ボタン32,各種ボタン24,33〜39の入力および着脱可能なフラッシュメモリなどの記憶媒体53への入出力を司る入出力インタフェース52、USB(Universal Serial Bus)接続端子55に接続された機器(コンピュータやプリンタ)と通信のやり取りを管理するUSBホストコントローラ54やUSBデバイスコントローラ56なども備えている。なお、実施例では、圧縮伸張部47は圧縮率を指定して縦横8ピクセルのブロック毎に圧縮するJPEG(Joint Photographic Experts Group)圧縮により画像データを圧縮画像データとしたり、逆に圧縮画像データをJPEG展開により圧縮画像データを通常の画像データに戻す。デジタル画像処理部46により画像処理された画像データや圧縮伸張部47によりJPEG圧縮やJPEG展開(圧縮・伸張)された画像データは、一旦ワークメモリ40cに書き込まれ、後述するブロックノイズ判定処理により適合した画像データとして、その後、撮影順にIDとしてのファイル名が付与されて画像ファイルとして入出力インタフェース52を介して記憶媒体53に書き込まれる。   As functionally illustrated in FIG. 3, the digital camera 20 of the embodiment has a CPU 40a as a central processing unit, a ROM 40b for storing processing programs, a work memory 40c for temporarily storing data, and set data. The flash memory 40d and the like for storing the information in a nonvolatile manner are mainly used. The digital camera 20 stores, as a photographing system, an optical system 42 configured by a lens, a diaphragm, and the like, and electric charges obtained by photoelectrically converting an optical image formed by the optical system 42 for each light receiving cell for a certain period of time. From the image sensor 43 that outputs an electrical signal corresponding to the amount of light received for each light receiving cell, a sensor controller 44 as a drive circuit that outputs to the image sensor 43 a drive pulse required to drive the image sensor 43, and the image sensor 43 An analog front end (AFE) unit 45 that quantizes an electrical signal to be output and converts it into a digital signal, image formation processing, white balance correction, γ correction, and color space conversion for the digital signal output from the AFE unit 45 Are used to represent the R, G, and B tone values and the Y, Cb, and Cr tone values for each pixel. Digital image processing unit 46 that outputs an image, digital image sequence conversion (discrete cosine transform, wavelet transform, etc.) and entropy encoding (run length encoding, Huffman encoding, etc.) A compression / decompression unit 47 that decompresses the digital image by performing inverse transformation is provided. The digital camera 20 according to the embodiment includes a frame buffer for storing data for one screen of the liquid crystal display 31 and a display circuit for driving the liquid crystal display 31 based on a digital image stored in the frame buffer. An input / output interface 52 for controlling the input of the display controller 50, the mode dial 23, the four-direction button 32, the various buttons 24, 33 to 39, and the input / output to the storage medium 53 such as a removable flash memory, USB (Universal Serial Bus) A USB host controller 54 and a USB device controller 56 that manage communication exchanges with devices (computers and printers) connected to the connection terminal 55 are also provided. In the embodiment, the compression / decompression unit 47 designates the compression rate and compresses the image data by JPEG (Joint Photographic Experts Group) compression that compresses each block of 8 pixels in length and width. The compressed image data is returned to normal image data by JPEG expansion. The image data image-processed by the digital image processing unit 46 and the image data JPEG-compressed or JPEG-developed (compressed / expanded) by the compression / decompression unit 47 are temporarily written in the work memory 40c and adapted by block noise determination processing described later. The image data is then given a file name as an ID in the order of shooting, and is written as an image file in the storage medium 53 via the input / output interface 52.

次に、こうして構成された実施例のデジタルカメラ20の動作、特に撮影した画像データを記憶媒体53に記憶する際の動作について説明する。図4は、撮影した画像データを記憶媒体53に記憶する際にCPU40aにより実行される画像記憶処理の一例を示すフローチャートである。画像記憶処理が実行されると、CPU40aは、まず、デフォルト
値を圧縮率ρに設定し(ステップS100)、撮影した画像データを圧縮率ρによるJPEG圧縮を行なう(ステップS110)。ここで、圧縮率ρのデフォルト値は、色調や明るさが大きく変化する画像をJPEG圧縮した際に画像の圧縮に伴うブロック境界に生じ得るノイズ(以下、ブロックノイズという。)の影響があまり生じない程度として設定されている。また、圧縮率ρによるJPEG圧縮は、デジタル画像処理部46により画像処理されてワークメモリ40cに記憶されている画像データに対して圧縮伸張部47により実行される。なお、前述したようにJPEG圧縮された圧縮画像データは、ワークメモリ40cに書き込まれる。
Next, the operation of the digital camera 20 of the embodiment configured as described above, particularly the operation when storing captured image data in the storage medium 53 will be described. FIG. 4 is a flowchart illustrating an example of an image storage process executed by the CPU 40 a when storing captured image data in the storage medium 53. When the image storage process is executed, the CPU 40a first sets the default value to the compression rate ρ (step S100), and performs JPEG compression on the captured image data at the compression rate ρ (step S110). Here, the default value of the compression rate ρ is largely influenced by noise (hereinafter referred to as block noise) that may occur at the block boundary associated with image compression when an image whose color tone or brightness changes greatly is subjected to JPEG compression. It is set as no degree. The JPEG compression with the compression ratio ρ is executed by the compression / decompression unit 47 on the image data that has been subjected to image processing by the digital image processing unit 46 and stored in the work memory 40c. As described above, the compressed image data compressed by JPEG is written in the work memory 40c.

次に、JPEG圧縮された圧縮画像のブロックノイズの程度を判定する(ステップS120)。このブロックノイズの程度の判定は、図5に例示するブロックノイズ判定処理ルーチンにより実行される。画像記憶処理の説明を中断し、ブロックノイズの判定処理について説明する。   Next, the degree of block noise of the compressed image compressed with JPEG is determined (step S120). The determination of the degree of block noise is executed by a block noise determination processing routine illustrated in FIG. The description of the image storage process is interrupted, and the block noise determination process will be described.

ブロックノイズの判定は、まず、JPEG展開された対象となる赤(R),緑(G),青(B)の表色系で表現された画像(RGB画像)を次式(1)によりY(輝度),I(オレンジ−シアン),Q(緑−マゼンダ)の三要素からなるYIQ色空間に変換する(ステップS200)。   To determine block noise, first, an image (RGB image) expressed in the color system of red (R), green (G), and blue (B) to be JPEG-developed is expressed by the following equation (1). Conversion into a YIQ color space consisting of three elements (luminance), I (orange-cyan), and Q (green-magenta) (step S200).

Figure 2009105960
続いて、YIQ色空間に変換した画像のYチャンネルを用いて水平方向と垂直方向における各画素間の輝度強度差を計算する(ステップS210)。実施例では、輝度強度差は、水平方向の輝度強度差をdx(x,y)とし、垂直方向の輝度強度差をdy(x,y)とし、各画素の輝度をY(x,y)とすると、次式(2)および式(3)により計算される。この輝度強度差は、式(2)および式(3)から解るように、隣接する画素間の輝度の偏差を表わす。
Figure 2009105960
Subsequently, the luminance intensity difference between the pixels in the horizontal direction and the vertical direction is calculated using the Y channel of the image converted into the YIQ color space (step S210). In the embodiment, the luminance intensity difference is dx (x, y) in the horizontal direction, dy (x, y) in the vertical direction, and Y (x, y) in each pixel. Then, it is calculated by the following equations (2) and (3). This luminance intensity difference represents a luminance deviation between adjacent pixels, as can be seen from the equations (2) and (3).

dx(x,y)=Y(x+1,y)-Y(x,y) (2)
dy(x,y)=Y(x,y+1)-Y(x,y) (3)
次に、計算した輝度強度差から水平方向と垂直方向の各画素における輝度の変化の滑らかさを計算する(ステップS220)。実施例では、各画素における輝度の変化の滑らかさは、水平方向の画素における輝度の変化の滑らかさをsx(x,y)とし、垂直方向の画素における輝度の変化の滑らかさをsy(x,y)とすると、次式(4)および式(5)により計算される。この画素における輝度の変化の滑らかさは、式(4)および式(5)から解るように、隣接する画素間の輝度の偏差の絶対値の和の大きさを表わす。
dx (x, y) = Y (x + 1, y) -Y (x, y) (2)
dy (x, y) = Y (x, y + 1) -Y (x, y) (3)
Next, the smoothness of the luminance change in each pixel in the horizontal direction and the vertical direction is calculated from the calculated luminance intensity difference (step S220). In the embodiment, the smoothness of the luminance change in each pixel is sx (x, y), and the smoothness of the luminance change in the vertical pixel is sy (x , Y), it is calculated by the following equations (4) and (5). The smoothness of the luminance change in this pixel represents the sum of the absolute values of the luminance deviations between adjacent pixels, as can be seen from the equations (4) and (5).

sx(x,y)=|dx(x-1,y)-dx(x,y)|+|dx(x,y)-dx(x+1,y)| (4)
sy(x,y)=|dy(x,y-1)-dy(x,y)|+|dy(x,y)-dy(x,y+1)| (5)
こうして各画素の輝度の変化の滑らかさを計算すると、JPEG圧縮に用いたブロックの境界に位置する画素(以下、境界ピクセルという。)における水平方向および垂直方向の輝度の変化の滑らかさの平均ave(psx),ave(psy)を計算すると共に(ステップS230)、境界ピクセル以外の画素(以下、内部ピクセルという。)における水平方向および垂直方向の輝度の変化の滑らかさの平均ave(nsx),ave(nsy)を計算する(ステップS240)。具体的には、水平方向の境界ピクセルにおける輝度の変化の滑らかさの平均ave(psx)についてxが8の倍数のsx(x,y)の総
和をその個数で割ることにより計算し、垂直方向の境界ピクセルにおける輝度の変化の滑らかさの平均ave(psy)についてyが8の倍数のsx(x,y)の総和をその個数で割ることにより計算し、水平方向の内部ピクセルにおける輝度の変化の滑らかさの平均ave(nsx)についてxが8の倍数ではないsx(x,y)の総和をその個数で割ることにより計算し、垂直方向の内部ピクセルにおける輝度の変化の滑らかさの平均ave(nsy)についてyが8の倍数ではないsx(x,y)の総和をその個数で割ることにより計算する。
sx (x, y) = | dx (x-1, y) -dx (x, y) | + | dx (x, y) -dx (x + 1, y) | (4)
sy (x, y) = | dy (x, y-1) -dy (x, y) | + | dy (x, y) -dy (x, y + 1) | (5)
When the smoothness of the luminance change of each pixel is calculated in this way, the average ave of the smoothness of the luminance change in the horizontal direction and the vertical direction in the pixel (hereinafter referred to as the boundary pixel) located at the boundary of the block used for JPEG compression. (Psx) and ave (psy) are calculated (step S230), and the average smoothness ave (nsx) of the luminance change in the horizontal direction and the vertical direction in pixels other than the boundary pixels (hereinafter referred to as internal pixels), ave (nsy) is calculated (step S240). Specifically, the average ave (psx) of the smoothness of the luminance change at the boundary pixels in the horizontal direction is calculated by dividing the sum of sx (x, y) where x is a multiple of 8 by the number, and the vertical direction The average ave (psi) of the smoothness of the luminance change at the boundary pixels of the pixel is calculated by dividing the sum of sx (x, y), where y is a multiple of 8, by the number, and the luminance change at the horizontal internal pixel Is calculated by dividing the sum of sx (x, y) where x is not a multiple of 8 by the number of average ave (nsx) of the smoothness of the pixel, and the average ave of the smoothness change of the luminance in the vertical internal pixels (Nsy) is calculated by dividing the sum of sx (x, y) where y is not a multiple of 8 by the number.

そして、水平方向の内部ピクセルにおける輝度の変化の滑らかさの平均ave(nsx)に対する水平方向の境界ピクセルにおける輝度の変化の滑らかさの平均ave(psx)の比{ave(psx)/ave(nsx)}として水平方向のブロックノイズ評価値Bhを計算すると共に(ステップS250)、垂直方向の内部ピクセルにおける輝度の変化の滑らかさの平均ave(nsy)に対する垂直方向の境界ピクセルにおける輝度の変化の滑らかさの平均ave(psy)の比{ave(psy)/ave(nsy)}として垂直方向のブロックノイズ評価値Bvを計算し(ステップS260)、水平方向のブロックノイズ評価値Bhと垂直方向のブロックノイズ評価値Bvとの平均を画像におけるブロックノイズ評価値Bとして計算する(ステップS270)。水平方向のブロックノイズ評価値Bhや垂直方向のブロックノイズ評価値Bvは、内部ピクセルにおける輝度の変化の滑らかさの平均に対する境界ピクセルにおける輝度の変化の滑らかさの比であるから、ブロックノイズの程度が小さいときには値1に近い値となり、ブロックノイズの程度が大きいときには値1より大きな値となる。しかも、内部ピクセルにおける輝度の変化の滑らかさの平均が小さいとき、例えば滑らかに色調や明るさが変化するような画像では、境界ピクセルにおける輝度の変化の滑らかさの平均が際だつから、ブロックノイズ評価値として大きな値となり、内部ピクセルにおける輝度の変化の滑らかさの平均が大きいとき、例えば、色調や明るさが大きく変化する画像では、境界ピクセルにおける輝度の変化の滑らかさの平均が埋没するから、ブロックノイズ評価値として小さな値となる。したがって、より適切にブロックノイズの程度を表わすことができる。そして、ブロックノイズ評価値Bの値に基づいてブロックノイズの程度を判定する(ステップS280)。実施例では、ブロックノイズ評価値Bとして、ブロックノイズが全くないときには値1となり、ブロックノイズがひどいときには値10に近くなるから、値1から値10の範囲でブロックノイズの程度を判定することができる。   The ratio of the average smoothness ave (psx) of the luminance change in the horizontal boundary pixel to the average smoothness ave (nsx) of the luminance change in the horizontal inner pixel {ave (psx) / ave (nsx )} Is calculated as a block noise evaluation value Bh in the horizontal direction (step S250), and the luminance change smoothness in the vertical boundary pixels with respect to the average ave (nsy) of the luminance change smoothness in the inner pixels in the vertical direction is smoothed. The block noise evaluation value Bv in the vertical direction is calculated as a ratio of average ave (psy) {ave (psy) / ave (nsy)} (step S260), and the block noise evaluation value Bh in the horizontal direction and the block in the vertical direction are calculated. The average of the noise evaluation value Bv is calculated as the block noise evaluation value B in the image. (Step S270). Since the block noise evaluation value Bh in the horizontal direction and the block noise evaluation value Bv in the vertical direction are ratios of the smoothness of the luminance change in the boundary pixels to the average smoothness of the luminance change in the internal pixels, the degree of block noise When the value is small, the value is close to value 1, and when the degree of block noise is large, the value is larger than value 1. In addition, when the average smoothness of the luminance change in the internal pixels is small, for example, in an image where the color tone or brightness changes smoothly, the average smoothness of the luminance change in the boundary pixels is prominent. When the average of the smoothness of the luminance change in the internal pixel is large, for example, in the image in which the color tone or the brightness changes greatly, the average smoothness of the luminance change in the boundary pixel is buried. The block noise evaluation value is small. Therefore, the degree of block noise can be expressed more appropriately. Then, the degree of block noise is determined based on the block noise evaluation value B (step S280). In the embodiment, the block noise evaluation value B is 1 when there is no block noise, and close to 10 when the block noise is severe. Therefore, the degree of block noise can be determined within the range of the value 1 to 10. it can.

こうしてブロックノイズの程度を判定すると、図4の画像記憶処理では、計算したブロックノイズ評価値Bを設定値Bsetと比較する(ステップS130)。ここで、設定値Bsetは、目視によってはブロックノイズを判別することができない程度のブロックノイズの評価値として設定されており、例えば、値1.5や値2や値2.5などのように定めることができる。計算したブロックノイズ評価値Bが設定値Bsetより大きいときには、圧縮画像のブロックノイズの程度は大きいと判断し、圧縮率ρに値0より大きく値1より小さな低減係数kを乗じて圧縮率ρを小さくし(ステップS140)、ステップS110に戻ってワークメモリ40cに書き込まれている画像データに対して小さくした圧縮率ρによるJPEG圧縮を実行し、ステップS130の処理によりブロックノイズ評価値Bが設定値Bset以下になるまで、圧縮率ρを小さくしてJPEG圧縮し、ブロックノイズ評価値Bを計算する処理、即ちステップS110〜S140の処理を繰り返す。   When the degree of block noise is determined in this way, the calculated block noise evaluation value B is compared with the set value Bset in the image storage process of FIG. 4 (step S130). Here, the set value Bset is set as an evaluation value of the block noise to the extent that the block noise cannot be discerned by visual observation. For example, a value 1.5, a value 2, a value 2.5, etc. Can be determined. When the calculated block noise evaluation value B is greater than the set value Bset, it is determined that the degree of block noise in the compressed image is large, and the compression rate ρ is multiplied by a reduction factor k that is greater than the value 0 and smaller than the value 1. Decrease (step S140), return to step S110, execute JPEG compression with the reduced compression rate ρ on the image data written in the work memory 40c, and the block noise evaluation value B is set to the set value by the processing of step S130. The process of calculating the block noise evaluation value B, that is, the processes of steps S110 to S140, is repeated until the compression rate ρ is reduced and the JPEG compression is performed until Bset becomes equal to or lower than Bset.

ブロックノイズ評価値Bが設定値Bset以下になると、その圧縮画像データに撮影順のIDを付与して入出力インタフェース52を介して記憶媒体53にJPEG保存して(ステップS150)、画像記憶処理を終了する。   When the block noise evaluation value B is equal to or less than the set value Bset, the compressed image data is assigned a shooting order ID and JPEG saved in the storage medium 53 via the input / output interface 52 (step S150), and image storage processing is performed. finish.

以上説明した実施例のデジタルカメラ20によれば、ブロックノイズ評価値Bが目視によってはブロックノイズを判別することができない程度のブロックノイズの評価値として
設定された設定値Bset以下となった圧縮率ρによるJPEG圧縮された圧縮画像データを記憶媒体53に記憶するから、撮影した画像に対してより適正な圧縮率を用いて圧縮して記憶媒体53に記憶することができる。
According to the digital camera 20 of the above-described embodiment, the compression rate at which the block noise evaluation value B is equal to or less than the set value Bset set as the block noise evaluation value at which the block noise cannot be visually determined. Since the compressed image data compressed by JPEG by ρ is stored in the storage medium 53, the captured image can be compressed using a more appropriate compression ratio and stored in the storage medium 53.

また、実施例のデジタルカメラ20によれば、境界ピクセルにおける輝度の変化の滑らかさに基づいてブロックノイズの程度を判定するから、より適正にブロックノイズの程度を判定することができる。しかも、ブロックノイズ評価値Bを内部ピクセルにおける輝度の変化の滑らかさの平均に対する境界ピクセルにおける輝度の変化の滑らかさの比として計算するから、滑らかに色調や明るさが変化するような画像では境界ピクセルにおける輝度の変化の滑らかさの平均を際だたせて大きな値としてブロックノイズ評価値Bを計算し、色調や明るさが大きく変化する画像では境界ピクセルにおける輝度の変化の滑らかさの平均を埋没させて小さな値としてブロックノイズ評価値Bを計算するから、ブロックノイズ評価値Bによる評価を目視の評価に対応させることができる。この結果、より適正にブロックノイズの程度を判定することができる。さらに、値1から値10の範囲となるブロックノイズ評価値Bを用いるから、数値によってブロックノイズを判定することができる。こうしたブロックノイズを適正に判定することができる結果、画像を圧縮する際に生じ得るノイズの影響をより適正に判定して画像を圧縮して記憶媒体に記憶することができる。   Further, according to the digital camera 20 of the embodiment, since the degree of block noise is determined based on the smoothness of the luminance change at the boundary pixel, the degree of block noise can be more appropriately determined. In addition, since the block noise evaluation value B is calculated as the ratio of the smoothness of the luminance change in the boundary pixel to the average smoothness of the luminance change in the internal pixel, the boundary is not used in an image in which the color tone or brightness changes smoothly. The block noise evaluation value B is calculated as a large value that emphasizes the average smoothness of the luminance change in the pixels, and the average smoothness of the luminance change in the boundary pixels is buried in the image in which the color tone and the brightness change greatly. Since the block noise evaluation value B is calculated as a small value, the evaluation based on the block noise evaluation value B can correspond to the visual evaluation. As a result, the degree of block noise can be determined more appropriately. Further, since the block noise evaluation value B in the range of the value 1 to the value 10 is used, the block noise can be determined by a numerical value. As a result of properly determining such block noise, it is possible to more appropriately determine the influence of noise that may occur when compressing an image, compress the image, and store the image in a storage medium.

実施例のデジタルカメラ20では、圧縮伸張部47が圧縮画像生成手段に相当し、記憶媒体53が記憶手段に相当し、図5のブロックノイズ判定処理を実行するCPU40aがブロックノイズ判定手段に相当し、図4の画像記憶処理を実行するCPU40aが画像圧縮記憶制御手段に相当する。   In the digital camera 20 of the embodiment, the compression / decompression unit 47 corresponds to the compressed image generation unit, the storage medium 53 corresponds to the storage unit, and the CPU 40a that executes the block noise determination process of FIG. 5 corresponds to the block noise determination unit. The CPU 40a that executes the image storage process of FIG. 4 corresponds to the image compression / storage control means.

次に本発明の第2実施例としてのデジタルカメラ20Bについて説明する。第2実施例のデジタルカメラ20Bは、第1実施例のデジタルカメラ20と同一のハード構成をしている。このため、第2実施例のデジタルカメラ20Bのハード構成については、第1実施例のデジタルカメラ20のハード構成と同一の符号を付し、その詳細な説明は省略する。第2実施例のデジタルカメラ20Bでは、画像が撮影されると、図4の画像記憶処理に代えて図6の画像記憶処理が実行される。   Next, a digital camera 20B as a second embodiment of the present invention will be described. The digital camera 20B of the second embodiment has the same hardware configuration as the digital camera 20 of the first embodiment. For this reason, the hardware configuration of the digital camera 20B of the second embodiment is denoted by the same reference numeral as the hardware configuration of the digital camera 20 of the first embodiment, and detailed description thereof is omitted. In the digital camera 20B of the second embodiment, when an image is taken, the image storage process of FIG. 6 is executed instead of the image storage process of FIG.

図6の画像記憶処理が実行されると、CPU40aは、図4の画像記憶処理のステップS100ないしS120と同様に、デフォルト値を圧縮率ρに設定し(ステップS300)、撮影した画像データを圧縮率ρによるJPEG圧縮を行ない(ステップS310)、JPEG圧縮された圧縮画像のブロックノイズの程度を図5に例示したブロックノイズ判定方法を用いて判定する(ステップS320)。そして、ブロックノイズ評価値Bを含む操作画面を液晶ディスプレイ31に表示する(ステップS330)。操作画面の一例を液晶ディスプレイ31に表示した状態の背面30を図7に示す。図7の例では、撮影した画像が液晶ディスプレイ31に表示されると共にブロックノイズ評価値Bがその数値と共に画面の下部に棒グラフとして表示される。また、操作画面の下部左右には、「圧縮率変更」と「保存」とがAボタン36とBボタン37に対応するよう表示される。操作者は、この操作画面の状態でAボタン36を操作することにより、JPEG圧縮における圧縮率ρを変更することができる。また、操作者は、この操作画面の状態でBボタン37を操作することにより、JPEG圧縮された圧縮画像データを記憶媒体53に記憶することができる。   When the image storage process of FIG. 6 is executed, the CPU 40a sets the default value to the compression ratio ρ (step S300) and compresses the captured image data, similarly to steps S100 to S120 of the image storage process of FIG. JPEG compression is performed at the rate ρ (step S310), and the degree of block noise of the compressed image compressed with JPEG is determined using the block noise determination method illustrated in FIG. 5 (step S320). Then, an operation screen including the block noise evaluation value B is displayed on the liquid crystal display 31 (step S330). FIG. 7 shows the back surface 30 in a state where an example of the operation screen is displayed on the liquid crystal display 31. In the example of FIG. 7, the captured image is displayed on the liquid crystal display 31 and the block noise evaluation value B is displayed as a bar graph at the bottom of the screen together with the numerical value. Further, “change compression ratio” and “save” are displayed on the left and right sides of the operation screen so as to correspond to the A button 36 and the B button 37. The operator can change the compression rate ρ in JPEG compression by operating the A button 36 in the state of this operation screen. Further, the operator can store the compressed image data compressed with JPEG in the storage medium 53 by operating the B button 37 in the state of the operation screen.

操作者による操作画面でのAボタン36またはBボタン37の操作が行なわれると、操作ボタンの操作を判定し(ステップS340)、Aボタン36が操作されて圧縮率の変更が選択されたときには、圧縮率ρに低減係数kを乗じて圧縮率ρを小さくし(ステップS
350)、ステップS310に戻ってワークメモリ40cに書き込まれている画像データに対して小さくした圧縮率ρによるJPEG圧縮を実行し、再びブロックノイズの程度を判定し(ステップS320)、ブロックノイズ評価値Bを含む操作画面を再び液晶ディスプレイ31に表示する(ステップS330)。このように、操作画面が表示されている状態でAボタン36が操作されると、JPEG圧縮における圧縮率ρを小さくしてJPEG圧縮してブロックノイズの程度を判定する処理を繰り返す。
When the operator operates the A button 36 or the B button 37 on the operation screen, the operation button operation is determined (step S340). When the A button 36 is operated and the change of the compression rate is selected, The compression rate ρ is reduced by multiplying the compression rate ρ by the reduction factor k (step S
350), returning to step S310, JPEG compression is performed on the image data written in the work memory 40c with the reduced compression rate ρ, the degree of block noise is determined again (step S320), and the block noise evaluation value is determined. The operation screen including B is displayed again on the liquid crystal display 31 (step S330). As described above, when the A button 36 is operated while the operation screen is displayed, the process of determining the degree of block noise by reducing the compression rate ρ in JPEG compression and performing JPEG compression is repeated.

一方、操作者が操作画面でBボタン37を操作すると、JPEG圧縮された圧縮画像データに撮影順のIDを付与して入出力インタフェース52を介して記憶媒体53にJPEG保存して(ステップS360)、画像記憶処理を終了する。   On the other hand, when the operator operates the B button 37 on the operation screen, a shooting order ID is assigned to JPEG-compressed compressed image data, and JPEG is saved in the storage medium 53 via the input / output interface 52 (step S360). Then, the image storage process ends.

以上説明した第2実施例のデジタルカメラ20Bによれば、撮影した画像をJPEG圧縮した圧縮画像のブロックノイズ評価値Bを確認して保存することができる。しかも、圧縮率ρを変更してJPEG圧縮した圧縮画像を保存することができるから、撮影した画像を適切な圧縮率ρによりJPEG圧縮して保存することができる。もとより、図5に例示したブロックノイズの判定方法によりブロックノイズの程度を判定するから、より適正にブロックノイズの程度を判定することができる。   According to the digital camera 20B of the second embodiment described above, the block noise evaluation value B of a compressed image obtained by JPEG compression of a captured image can be confirmed and stored. Moreover, since the compressed image obtained by JPEG compression by changing the compression rate ρ can be stored, the captured image can be stored by JPEG compression at an appropriate compression rate ρ. Of course, since the block noise level is determined by the block noise determination method illustrated in FIG. 5, the block noise level can be determined more appropriately.

この第2実施例のデジタルカメラ20Bでは、圧縮伸張部47が圧縮画像生成手段に相当し、記憶媒体53が記憶手段に相当し、図5のブロックノイズ判定処理を実行するCPU40aがブロックノイズ判定手段に相当し、液晶ディスプレイ31が表示手段に相当し、図6の画像記憶処理におけるステップS330の処理を実行するCPU40aがブロックノイズ表示制御手段に相当し、図6の画像記憶処理を実行するCPU40aが画像圧縮記憶制御手段に相当する。   In the digital camera 20B of the second embodiment, the compression / decompression unit 47 corresponds to the compressed image generation unit, the storage medium 53 corresponds to the storage unit, and the CPU 40a that executes the block noise determination process of FIG. The liquid crystal display 31 corresponds to the display means, the CPU 40a that executes the process of step S330 in the image storage process of FIG. 6 corresponds to the block noise display control means, and the CPU 40a that executes the image storage process of FIG. This corresponds to image compression storage control means.

第2実施例のデジタルカメラ20Bでは、ブロックノイズ評価値Bを計算する毎に操作画面を液晶ディスプレイ31に表示するものとしたが、ブロックノイズ評価値Bが所定の値以下のときにだけブロックノイズ評価値Bを液晶ディスプレイ31に表示し、ブロックノイズ評価値Bが所定の値より大きいときには、操作者に確認することなく圧縮率ρを小さくして再びJPEG圧縮するものとしてもよい。   In the digital camera 20B of the second embodiment, every time the block noise evaluation value B is calculated, the operation screen is displayed on the liquid crystal display 31. However, only when the block noise evaluation value B is a predetermined value or less, the block noise is displayed. When the evaluation value B is displayed on the liquid crystal display 31 and the block noise evaluation value B is larger than a predetermined value, the compression rate ρ may be reduced and the JPEG compression may be performed again without checking with the operator.

第2実施例のデジタルカメラ20Bでは、ブロックノイズ評価値Bを棒グラフと数値とにより液晶ディスプレイ31に表示するものとしたが、ブロックノイズ評価値Bを棒グラフなどのグラフにしたものだけを液晶ディスプレイ31に表示し、数値を表示しないものとしてもよいし、ブロックノイズ評価値Bを数値として液晶ディスプレイ31に表示するだけで棒グラフとして表示しないものとしてもよい。   In the digital camera 20B of the second embodiment, the block noise evaluation value B is displayed on the liquid crystal display 31 by a bar graph and a numerical value. However, only the block noise evaluation value B in a graph such as a bar graph is displayed on the liquid crystal display 31. The block noise evaluation value B may be displayed as a numerical value on the liquid crystal display 31 and may not be displayed as a bar graph.

第1実施例や第2実施例のデジタルカメラ20,20Bでは、ブロックノイズ判定方法として、水平方向におけるブロックノイズ評価値Bhと垂直方向におけるブロックノイズ評価値Bvとの平均としてブロックノイズ評価値Bを計算するものとしたが、水平方向におけるブロックノイズ評価値Bhだけを計算し、この計算したブロックノイズ評価値Bhを画像のブロックノイズ評価値Bとして取り扱うものとしてもよいし、垂直方向におけるブロックノイズ評価値Bvだけを計算し、この計算したブロックノイズ評価値Bvを画像のブロックノイズ評価値Bとして取り扱うものとしてもよい。こうすれば、ブロックノイズ評価値Bを計算する演算量を少なくすることができる。   In the digital cameras 20 and 20B of the first and second embodiments, as a block noise determination method, the block noise evaluation value B is calculated as an average of the block noise evaluation value Bh in the horizontal direction and the block noise evaluation value Bv in the vertical direction. Although only the block noise evaluation value Bh in the horizontal direction is calculated, the calculated block noise evaluation value Bh may be handled as the block noise evaluation value B of the image, or the block noise evaluation in the vertical direction may be calculated. Only the value Bv may be calculated, and the calculated block noise evaluation value Bv may be handled as the block noise evaluation value B of the image. In this way, the amount of calculation for calculating the block noise evaluation value B can be reduced.

第1実施例や第2実施例のデジタルカメラ20,20Bでは、ブロックノイズ判定方法として、値1〜値10の範囲となるブロックノイズ評価値Bを用いたが、ブロックノイズ評価値Bが値1〜値100の範囲などいかなる範囲となるよう調整するものとしてもよい。   In the digital cameras 20 and 20B of the first embodiment and the second embodiment, the block noise evaluation value B in the range of value 1 to value 10 is used as the block noise determination method, but the block noise evaluation value B is value 1. It is good also as what adjusts to become what ranges, such as the range of -value 100.

第1実施例や第2実施例のデジタルカメラ20,20Bでは、ブロックノイズ判定方法として、すべての画素(ピクセル)について画素における輝度の変化の滑らかさを計算するものとしたが、境界ピクセルについてはすべてのピクセルについて画素における輝度の変化の滑らかさを計算するが、内部ピクセルについては一部、例えばxやyについて8で除したときに1,4の余りが生じるピクセルや2,6の余りが生じるピクセルについてのみ画素における輝度の変化の滑らかさを計算するものとしてもよい。   In the digital cameras 20 and 20B of the first and second embodiments, the smoothness of the luminance change in the pixels is calculated for all the pixels (pixels) as the block noise determination method. The smoothness of the luminance change in the pixels is calculated for all pixels, but some of the internal pixels, for example, pixels that produce a remainder of 1, 4 or 2, 6 when x or y is divided by 8 The smoothness of the luminance change in the pixel may be calculated only for the pixel that occurs.

第1実施例や第2実施例では、撮影した画像を縦横8ピクセルをブロックとして圧縮するJPEG圧縮すると共に圧縮画像の圧縮に伴ってブロック境界に生じ得るブロックノイズの程度を判定し、所定の程度以下となるようにして圧縮画像を記憶媒体53に保存するものとして説明したが、縦横所定のサイズのブロックとして圧縮するものであれば、JPEG圧縮に限られず、縦横いかなるサイズのブロックとして圧縮する場合にも適用することができる。   In the first and second embodiments, JPEG compression is performed to compress a captured image as a block of 8 pixels in length and width, and the degree of block noise that may occur at the block boundary due to compression of the compressed image is determined, and a predetermined degree Although the compressed image is described as being stored in the storage medium 53 in the following manner, the compressed image is not limited to JPEG compression as long as it is compressed as a block of a predetermined size in the vertical and horizontal directions. It can also be applied to.

実施例では、撮影し多画像をJPEG圧縮すると共に圧縮に伴ってブロック境界に生じ得るブロックノイズの程度を判定し、所定の程度以下の圧縮画像として記憶媒体53に保存するデジタルカメラ20として説明したが、こうしたデジタルカメラ20に用いられるプログラムの形態や画像記憶方法の形態としてもよい。プログラムの場合、図4や図6に例示する画像記憶処理や図5に例示するブロックノイズの判定処理を各手順として適当なプログラミング言語によりプログラムすればよい。   In the embodiment, the digital camera 20 has been described as a digital camera 20 that shoots and JPEG-compresses multiple images, determines the degree of block noise that may occur at the block boundary along with the compression, and saves the compressed image as a predetermined level or less in the storage medium 53. However, it may be in the form of a program or an image storage method used for such a digital camera 20. In the case of a program, the image storage process illustrated in FIGS. 4 and 6 and the block noise determination process illustrated in FIG. 5 may be programmed in an appropriate programming language as each procedure.

以上、本発明を実施するための最良の形態について実施例を用いて説明したが、本発明はこうした実施例に何等限定されるものではなく、本発明の要旨を逸脱しない範囲内において、種々なる形態で実施し得ることは勿論である。   The best mode for carrying out the present invention has been described with reference to the embodiments. However, the present invention is not limited to these embodiments, and various modifications can be made without departing from the gist of the present invention. Of course, it can be implemented in the form.

本発明は、撮影装置製造業に利用可能である。   The present invention can be used in the imaging device manufacturing industry.

20,20B デジタルカメラ、21 ズーム機構付きレンズ、22 電源ボタン、23 モードダイヤル、24 シャッターボタン、25 セルフタイマー点灯部、30 背面、31 液晶ディスプレイ、32 4方向ボタン、33 印刷ボタン、34a Wボタン、34b Tボタン、35 メニューボタン、36 Aボタン、37 Bボタン、38
ディスプレーボタン、39 レビューボタン、40a CPU、40b ROM、40c ワークメモリ、40d フラッシュメモリ、42 光学系、43 イメージセンサ、44 センサコントローラ、45 アナログフロントエンド(AFE)部、46 デジタル画像処理部、47 圧縮伸張部、50 ディスプレイコントローラ、52 入出力インタフェース、53 記憶媒体、54 USBホストコントローラ、55 USB接続端子、56 USBデバイスコントローラ。
20, 20B digital camera, 21 lens with zoom mechanism, 22 power button, 23 mode dial, 24 shutter button, 25 self-timer lighting part, 30 back, 31 liquid crystal display, 324 4-way button, 33 print button, 34a W button, 34b T button, 35 menu button, 36 A button, 37 B button, 38
Display button, 39 Review button, 40a CPU, 40b ROM, 40c Work memory, 40d Flash memory, 42 Optical system, 43 Image sensor, 44 Sensor controller, 45 Analog front end (AFE) section, 46 Digital image processing section, 47 Compression Expansion unit, 50 display controller, 52 input / output interface, 53 storage medium, 54 USB host controller, 55 USB connection terminal, 56 USB device controller.

Claims (17)

画像を撮影する撮影装置であって、
撮影した画像を縦横が所定の画素数のブロックに分割して圧縮した圧縮画像を生成する圧縮画像生成手段と、
前記圧縮画像を記憶可能な記憶手段と、
前記圧縮画像に対して圧縮に伴ってブロック境界に生じ得るブロックノイズの程度を判定するブロックノイズ判定手段と、
前記判定されたブロックノイズの程度が所定のブロックノイズの程度以上のときには前記撮影した画像の圧縮率を低減した圧縮画像が作成されるよう前記画像圧縮手段を制御し、前記判定されたブロックノイズの程度が前記所定のブロックノイズの程度以下のときには前記圧縮画像が前記記憶手段に記憶されるよう制御する画像圧縮記憶制御手段と、
を備える撮影装置。
An imaging device for taking an image,
A compressed image generating means for generating a compressed image obtained by dividing a photographed image into blocks each having a predetermined number of pixels in length and width;
Storage means capable of storing the compressed image;
Block noise determination means for determining the degree of block noise that may occur at a block boundary accompanying compression with respect to the compressed image;
When the determined block noise level is equal to or higher than a predetermined block noise level, the image compression unit is controlled so that a compressed image with a reduced compression rate of the captured image is generated, and the determined block noise level is determined. Image compression storage control means for controlling the compressed image to be stored in the storage means when the degree is equal to or less than the predetermined block noise;
An imaging device comprising:
前記ブロックノイズ判定手段は、前記圧縮画像における各画素に対して所定の方向に隣接する画素に対する輝度成分に基づいて各画素間の輝度強度差を演算し、各画素間の輝度強度差の前記所定の方向における前後の差分に基づいて各画素における輝度の変化の滑らかさを演算し、前記ブロックの境界に位置しない画素における輝度の変化の滑らかさの平均に対する前記ブロックの境界に位置する画素における輝度の変化の滑らかさの平均の比に基づいてブロックノイズ評価指数を演算し、該演算したブロックノイズ評価指数に基づいてブロックノイズの程度を判定する手段である請求項1記載の撮影装置。   The block noise determination unit calculates a luminance intensity difference between the pixels based on a luminance component with respect to a pixel adjacent in a predetermined direction with respect to each pixel in the compressed image, and the predetermined luminance intensity difference between the pixels is calculated. The luminance at the pixel located at the boundary of the block is calculated by calculating the smoothness of the luminance change at each pixel based on the difference between before and after in the direction of, and the average of the smoothness of the luminance change at the pixel not located at the block boundary 2. The photographing apparatus according to claim 1, which is a means for calculating a block noise evaluation index based on an average ratio of smoothness of changes and determining a degree of block noise based on the calculated block noise evaluation index. 前記所定の方向は、縦方向と横方向との二方向である請求項2記載の撮影装置。   The photographing apparatus according to claim 2, wherein the predetermined direction is two directions of a vertical direction and a horizontal direction. 前記ブロックノイズ判定手段は、縦方向における前記比と横方向における前記比との平均に基づいてブロックノイズ評価指数を演算する手段である請求項3記載の撮影装置。   The photographing apparatus according to claim 3, wherein the block noise determination unit is a unit that calculates a block noise evaluation index based on an average of the ratio in the vertical direction and the ratio in the horizontal direction. 前記所定の方向は、縦方向または横方向のうちのいずれか一方向である請求項2記載の撮影装置。   The photographing apparatus according to claim 2, wherein the predetermined direction is one of a vertical direction and a horizontal direction. 前記ブロックノイズ判定手段は、各画素に対して所定の方向に隣接する画素に対する輝度成分の差分を前記各画素の輝度強度差として演算する手段である請求項2ないし5いずれか記載の撮影装置。   The photographing apparatus according to claim 2, wherein the block noise determination unit is a unit that calculates a difference between luminance components of pixels adjacent to each pixel in a predetermined direction as a luminance intensity difference between the pixels. 前記ブロックノイズ判定手段は、各画素間の輝度強度差の前記所定の方向における前後の差分の絶対値の和を前記各画素における輝度の変化の滑らかさとして演算する手段である請求項2ないし6いずれか記載の撮影装置。   7. The block noise determining means is means for calculating a sum of absolute values of differences before and after the luminance intensity difference between pixels in the predetermined direction as smoothness of luminance change in each pixel. Any one of the imaging devices. 前記ブロックノイズ判定手段は、ブロックノイズの程度が大きくなるほど大きな値となるようブロックノイズ評価指数を演算する手段である請求項2ないし7いずれか記載の撮影装置。   The photographing apparatus according to claim 2, wherein the block noise determination unit is a unit that calculates a block noise evaluation index so that the block noise evaluation index becomes larger as the degree of block noise increases. 前記圧縮画像作成手段は、デフォルト値として所定の圧縮率を用いて前記撮影した画像の圧縮画像を作成する手段である請求項1ないし8いずれか記載の撮影装置。   9. The photographing apparatus according to claim 1, wherein the compressed image creating means is a means for creating a compressed image of the photographed image using a predetermined compression rate as a default value. 前記画像圧縮記憶制御手段は、前記判定されたブロックノイズの程度が所定のブロックノイズの程度以上のときには予め定められた段階的に低減する圧縮率を順次選択して前記撮影した画像の圧縮画像が作成されるよう前記画像圧縮手段を制御する手段である請求項1ないし9いずれか記載の撮影装置。   The image compression and storage control means sequentially selects a predetermined compression ratio to be reduced in steps when the determined block noise level is equal to or higher than a predetermined block noise level, and the compressed image of the captured image is obtained. 10. The photographing apparatus according to claim 1, wherein the photographing apparatus is a means for controlling the image compression means so as to be created. 請求項1ないし10いずれか記載の撮影装置であって、
画像や文字などの表示情報を表示可能な表示手段と、
前記判定されたブロックノイズの程度を前記表示手段に表示するブロックノイズ表示制御手段と、
を備える撮影装置。
The imaging device according to any one of claims 1 to 10,
Display means capable of displaying display information such as images and characters;
Block noise display control means for displaying the determined degree of block noise on the display means;
An imaging device comprising:
前記ブロックノイズ表示制御手段は、前記判定されたブロックノイズの程度を数値および/またはグラフをもって前記表示手段に表示する手段である請求項11記載の撮影装置。   12. The photographing apparatus according to claim 11, wherein the block noise display control means is means for displaying the degree of the determined block noise on the display means with a numerical value and / or a graph. 前記画像圧縮記憶制御手段は、操作者による前記撮影した画像の圧縮率を低減した圧縮画像の作成の指示がなされたときに前記撮影した画像の圧縮率を低減した圧縮画像が作成されるよう前記画像圧縮手段を制御する手段である請求項11または12記載の撮影装置。   The image compression storage control unit is configured to generate a compressed image with a reduced compression rate of the captured image when an operator gives an instruction to create a compressed image with a reduced compression rate of the captured image. The photographing apparatus according to claim 11 or 12, which is means for controlling image compression means. 撮影した画像を記憶可能な記憶手段を有する撮影装置用のプログラムであって、
(a)撮影した画像を縦横が所定の画素数のブロックに分割して圧縮した圧縮画像を生成するモジュールと、
(b)前記圧縮画像に対して圧縮に伴ってブロック境界に生じ得るブロックノイズの程度を判定するモジュールと、
(c)前記判定されたブロックノイズの程度が所定のブロックノイズの程度以上のときには前記撮影した画像の圧縮率を低減した圧縮画像が作成されるよう前記画像圧縮手段を制御し、前記判定されたブロックノイズの程度が前記所定のブロックノイズの程度以下のときには前記圧縮画像が前記記憶手段に記憶されるよう制御するモジュールと、
を備えるプログラム。
A program for a photographing apparatus having a storage means capable of storing a photographed image,
(A) a module that generates a compressed image obtained by dividing a captured image into blocks each having a predetermined number of pixels in the vertical and horizontal directions;
(B) a module that determines the degree of block noise that may occur at a block boundary accompanying compression with respect to the compressed image;
(C) When the determined block noise level is equal to or higher than a predetermined block noise level, the image compression unit is controlled to create a compressed image with a reduced compression rate of the captured image, and the determined A module for controlling the compressed image to be stored in the storage means when the level of block noise is less than or equal to the predetermined level of block noise;
A program comprising
前記モジュール(b)は、前記圧縮画像における各画素に対して所定の方向に隣接する画素に対する輝度成分に基づいて各画素間の輝度強度差を演算し、各画素間の輝度強度差の前記所定の方向における前後の差分に基づいて各画素における輝度の変化の滑らかさを演算し、前記ブロックの境界に位置しない画素における輝度の変化の滑らかさの平均に対する前記ブロックの境界に位置する画素における輝度の変化の滑らかさの平均の比に基づいてブロックノイズ評価指数を演算し、該演算したブロックノイズ評価指数に基づいてブロックノイズの程度を判定するモジュールである請求項14記載のプログラム。   The module (b) calculates a luminance intensity difference between the pixels based on a luminance component with respect to a pixel adjacent in a predetermined direction with respect to each pixel in the compressed image, and the predetermined luminance intensity difference between the pixels is calculated. The luminance at the pixel located at the boundary of the block is calculated by calculating the smoothness of the luminance change at each pixel based on the difference between before and after in the direction of, and the average of the smoothness of the luminance change at the pixel not located at the boundary of the block The program according to claim 14, which is a module that calculates a block noise evaluation index based on an average ratio of smoothness of changes of the block and determines a degree of block noise based on the calculated block noise evaluation index. 画像を記憶する画像記憶方法であって、
(a)画像を縦横が所定の画素数のブロックに分割して圧縮した圧縮画像を生成し、
(b)前記圧縮画像に対して圧縮に伴ってブロック境界に生じ得るブロックノイズの程度を判定し、
(c)前記判定されたブロックノイズの程度が所定のブロックノイズの程度以上のときには前記画像の圧縮率を低減した圧縮画像が作成し、前記判定されたブロックノイズの程度が前記所定のブロックノイズの程度以下のときには前記圧縮画像を記憶する、
画像記憶方法。
An image storage method for storing an image,
(A) generating a compressed image obtained by dividing the image into blocks each having a predetermined number of pixels in length and width, and compressing the image;
(B) Determining the degree of block noise that can occur at the block boundary along with compression of the compressed image;
(C) When the determined block noise level is equal to or higher than the predetermined block noise level, a compressed image with a reduced compression rate of the image is created, and the determined block noise level is equal to the predetermined block noise level. When the degree is below, the compressed image is stored,
Image storage method.
前記ステップ(b)は、前記圧縮画像における各画素に対して所定の方向に隣接する画素に対する輝度成分に基づいて各画素間の輝度強度差を演算し、各画素間の輝度強度差の前記所定の方向における前後の差分に基づいて各画素における輝度の変化の滑らかさを演算し、前記ブロックの境界に位置しない画素における輝度の変化の滑らかさの平均に対する前記ブロックの境界に位置する画素における輝度の変化の滑らかさの平均の比に基づいてブロックノイズ評価指数を演算し、該演算したブロックノイズ評価指数に基づいてブロックノイズの程度を判定するステップである請求項16記載の画像記憶方法。   The step (b) calculates a luminance intensity difference between the pixels based on a luminance component with respect to a pixel adjacent in a predetermined direction with respect to each pixel in the compressed image, and the predetermined luminance intensity difference between the pixels is calculated. The luminance at the pixel located at the boundary of the block is calculated by calculating the smoothness of the luminance change at each pixel based on the difference between before and after in the direction of, and the average of the smoothness of the luminance change at the pixel not located at the boundary of the block 17. The image storage method according to claim 16, wherein the block noise evaluation index is calculated based on an average ratio of the smoothness of the change, and the degree of block noise is determined based on the calculated block noise evaluation index.
JP2009021518A 2009-02-02 2009-02-02 Photographic device and program used in the same, as well as image storage method Pending JP2009105960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009021518A JP2009105960A (en) 2009-02-02 2009-02-02 Photographic device and program used in the same, as well as image storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009021518A JP2009105960A (en) 2009-02-02 2009-02-02 Photographic device and program used in the same, as well as image storage method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2004140064A Division JP4281615B2 (en) 2004-05-10 2004-05-10 Imaging apparatus, program used therefor, and image storage method

Publications (1)

Publication Number Publication Date
JP2009105960A true JP2009105960A (en) 2009-05-14

Family

ID=40707144

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009021518A Pending JP2009105960A (en) 2009-02-02 2009-02-02 Photographic device and program used in the same, as well as image storage method

Country Status (1)

Country Link
JP (1) JP2009105960A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05219385A (en) * 1992-02-07 1993-08-27 Hudson Soft Co Ltd Picture compression expansion method and device
JPH11215515A (en) * 1998-01-27 1999-08-06 Eastman Kodak Japan Ltd Device and method for eliminating noise on each line of image sensor
JP2002237141A (en) * 2001-02-08 2002-08-23 Toshiba Corp Information memory device, its control program and program recording medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05219385A (en) * 1992-02-07 1993-08-27 Hudson Soft Co Ltd Picture compression expansion method and device
JPH11215515A (en) * 1998-01-27 1999-08-06 Eastman Kodak Japan Ltd Device and method for eliminating noise on each line of image sensor
JP2002237141A (en) * 2001-02-08 2002-08-23 Toshiba Corp Information memory device, its control program and program recording medium

Similar Documents

Publication Publication Date Title
JP4869149B2 (en) Image data compression apparatus, image data compression method and program
US20060034531A1 (en) Block noise level evaluation method for compressed images and control method of imaging device utilizing the evaluation method
JP2006115446A (en) Photographing device, and method of evaluating image
JP5169318B2 (en) Imaging apparatus and imaging method
JP2003224769A (en) Digital camera
JP2005269373A (en) Video signal processing system, and electronic video apparatus
JP2008312193A (en) Image data compressing device, image data compressing method, and program
US20140147090A1 (en) Image capturing apparatus, image processing apparatus, and control method therefor
JP4281615B2 (en) Imaging apparatus, program used therefor, and image storage method
US20130208144A1 (en) Image processing device, image processing method, image processing program
JP6316043B2 (en) Apparatus, method, and program
JP2005167476A (en) White balance control apparatus
JP2020005084A (en) Image processing apparatus, image processing method, and program
JP2008067298A (en) Photography apparatus and program
JP4908742B2 (en) Imaging apparatus and control method thereof
JP2009105960A (en) Photographic device and program used in the same, as well as image storage method
JP2017126920A (en) Imaging apparatus
JP2008124793A (en) Imaging apparatus, and imaging method
JP2010103820A (en) Image processing apparatus and method, and program
JP2016052081A (en) Imaging apparatus, and method and program for storing image
JP7214484B2 (en) VIDEO SIGNAL PROCESSING DEVICE, VIDEO SIGNAL PROCESSING METHOD, AND PROGRAM
JP4826260B2 (en) Imaging apparatus and program
JP2010098428A (en) Imaging apparatus, imaging method, and imaging program
JP6624895B2 (en) Image processing apparatus, imaging apparatus, control method, and program
JP5659574B2 (en) Image processing apparatus, imaging apparatus, and image processing program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090217

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090217

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091013

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091208

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100420