JP4037336B2 - Image processing apparatus and method, and program - Google Patents
Image processing apparatus and method, and program Download PDFInfo
- Publication number
- JP4037336B2 JP4037336B2 JP2003274725A JP2003274725A JP4037336B2 JP 4037336 B2 JP4037336 B2 JP 4037336B2 JP 2003274725 A JP2003274725 A JP 2003274725A JP 2003274725 A JP2003274725 A JP 2003274725A JP 4037336 B2 JP4037336 B2 JP 4037336B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- original image
- image data
- corrected
- changing
- 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.)
- Expired - Fee Related
Links
Images
Description
本発明は、とくに画像データを圧縮する際に圧縮率を向上させることが可能な画像処理装置および方法並びに画像処理方法をコンピュータに実行させるためのプログラムに関するものである。 The present invention relates to an image processing apparatus and method capable of improving the compression rate particularly when compressing image data, and a program for causing a computer to execute the image processing method.
画像データは容量が大きいため圧縮することにより容量を小さくして取り扱いを容易にしている。とくにパソコン等を用いて作成された比較的大きいサイズの画像を携帯電話機等の携帯端末装置のモニタに表示するためには、画像のサイズを変換するとともに圧縮率を大きくしてデータ容量を非常に小さくしている。しかしながら、圧縮率を大きくすると容量は小さくなるものの画質が劣化してしまう。 Since image data has a large capacity, it is compressed so that it can be handled easily by reducing the capacity. In particular, in order to display an image of a relatively large size created using a personal computer or the like on a monitor of a portable terminal device such as a mobile phone, the data capacity is greatly increased by converting the image size and increasing the compression rate. It is small. However, when the compression rate is increased, the capacity is reduced, but the image quality is deteriorated.
このため、従来より圧縮率を向上させつつも画質の劣化を抑える様々な手法が提案されている。例えば、画像データにローパスフィルタによるフィルタリング処理を施して高周波成分を除去した後に圧縮することにより、画質をそれほど落とすことなく圧縮率を向上させる方法(特許文献1参照)、画像データを解析して画像の統計的性質情報を求め、この情報に基づいて画質への影響が少ない信号成分を減らすためのフィルタを求め、このフィルタにより画像データをフィルタリング処理して圧縮時の画質劣化を防止する方法(特許文献2参照)等が提案されている。また、インタレース方式の動画像に対して1ライン間隔で1つのフレームを構成する2つのフィールドのそれぞれについて、ライン間にはデータが存在しないということを前提とした圧縮アルゴリズムにより圧縮率を向上させる方法が知られている(特許文献3参照)。 For this reason, various techniques have been proposed to suppress the deterioration of image quality while improving the compression rate. For example, the image data is subjected to filtering processing by a low-pass filter and then compressed after removing high-frequency components, thereby improving the compression ratio without significantly reducing the image quality (see Patent Document 1). Of obtaining the statistical property information of the image, obtaining a filter for reducing the signal component that has little influence on the image quality based on this information, and filtering the image data by this filter to prevent image quality deterioration during compression (patent Reference 2) has been proposed. In addition, the compression rate is improved by a compression algorithm on the premise that there is no data between lines for each of two fields constituting one frame at an interval of one line for an interlaced moving image. A method is known (see Patent Document 3).
ところで、上記特許文献1,2に記載された方法は、圧縮された画像データを伸張する際に、伸張された画像データに対して、元の画像の画質に戻すための後処理を施す必要がある。このため、例えば携帯電話機等のように圧縮された画像データを表示する表示装置は、上記後処理を行うための専用の圧縮伸張アルゴリズムを備えている必要がある。したがって、すでに普及している既存の表示装置において特許文献1,2の方法により圧縮された画像データを表示するためには、既存の圧縮伸張アルゴリズムを専用の圧縮伸張アルゴリズムに載せ替えなければならない。
By the way, in the methods described in
しかしながら、すでに普及している表示装置において圧縮伸張アルゴリズムを載せ替えることは現実的ではなく、また圧縮伸張アルゴリズムを載せ替えることができない場合も多いため、特許文献1,2の方法により圧縮された画像データを高画質に伸張することができないのが現状である。また、上記特許文献3の方法はインタレース方式の画像データに対応した伸張アルゴリズムを搭載した表示装置においては表示することができるが、インタレース方式に対応していない表示装置においては表示することができない。
However, it is not practical to replace the compression / decompression algorithm in a display device that has already been widely used, and there are many cases where it is not possible to replace the compression / decompression algorithm. The current situation is that data cannot be expanded to high image quality. The method of
このため、専用の圧縮伸張アルゴリズムがなくても圧縮率を向上できるように、本出願人により、画像上の横方向のラインについて例えば1ライン毎に全画素値を一定値に修正する方法が提案されている(特許文献4参照)。この方法によれば、修正したラインの情報は失われるが、所定数毎のラインの全画素値が一定値とされているため、圧縮率は向上されることとなる。
しかしながら、上記特許文献4に記載された方法においては、例えば一定値を黒色とした場合には、修正後の画像データにより表される画像は、修正前の画像データにより表される画像と比較して色味や明るさが低減されてしまう。逆に一定値を白色とした場合には、修正前後で色味が低減し明るさが強調されてしまう。このため、上記特許文献4に記載された方法によっては、修正前の画像と比較して画質が変更されてしまうこととなる。
However, in the method described in
本発明は上記事情に鑑みなされたものであり、専用の圧縮伸張アルゴリズムがなくても画質を維持しつつ圧縮率を向上できるようにすることを目的とする。 The present invention has been made in view of the above circumstances, and an object thereof is to improve the compression rate while maintaining the image quality even without a dedicated compression / decompression algorithm.
本発明による画像処理装置は、2次元状に画素が配列された原画像を表す原画像データの入力を受け付ける入力受け付け手段と、
所定の圧縮アルゴリズムにより前記原画像データを圧縮した際に圧縮率が向上するように、前記原画像の所定数毎のラインの全画素値を一定値に修正する修正手段とを備えた画像処理装置であって、
前記修正手段により修正される前の前記原画像データに対して、前記一定値に応じて該原画像の画質を変更する処理を施す画質変更手段をさらに備えたことを特徴とするものである。
An image processing apparatus according to the present invention includes input receiving means for receiving input of original image data representing an original image in which pixels are arranged in a two-dimensional shape,
An image processing apparatus comprising correction means for correcting all pixel values of a predetermined number of lines of the original image to a constant value so that a compression rate is improved when the original image data is compressed by a predetermined compression algorithm. Because
The image processing apparatus further includes image quality changing means for performing processing for changing the image quality of the original image according to the fixed value with respect to the original image data before being corrected by the correcting means.
「所定の圧縮アルゴリズム」とは、原画像データに対して特殊なフィルタリング処理等の前処理を施すことなく、原画像データにより表される原画像における縦横いずれか一方向のラインにおける冗長性を考慮して圧縮処理を行うアルゴリズムであり、汎用のパソコン、携帯端末装置等の画像を表示する装置において取り扱うことが可能なファイルフォーマットの画像データを生成するアルゴリズムをいう。具体的なファイルフォーマットとしては、gif、png等が挙げられる。 The “predetermined compression algorithm” takes into account the redundancy of the original image represented by the original image data in either one of the vertical and horizontal lines without pre-processing such as special filtering processing. This is an algorithm for performing compression processing, and means an algorithm for generating image data in a file format that can be handled by a general-purpose personal computer, portable terminal device, or other device that displays images. Specific file formats include gif, png, and the like.
「一定値」としては、全画素値の最大値、最小値、全画素の平均輝度、平均輝度よりも低い値等を用いることができる。 As the “constant value”, the maximum value, the minimum value, the average luminance of all the pixels, a value lower than the average luminance, or the like can be used.
「所定数毎」は、1ライン毎、2ライン毎のように任意のライン毎であることを意味する。なお、圧縮率を向上できるラインの位置を考慮して一定値に修正するラインの間隔を決めてもよい。 “Every predetermined number” means every arbitrary line such as every 1 line or every 2 lines. Note that the line interval to be corrected to a constant value may be determined in consideration of the position of the line that can improve the compression rate.
なお、前記一定値は、前記画像の全画素値の代表値であってもよい。 The constant value may be a representative value of all pixel values of the image.
代表値とは、平均値、中間値、中央部分を重み付けした平均値等を用いることができる。 As the representative value, an average value, an intermediate value, an average value obtained by weighting the central portion, or the like can be used.
「一定値に応じて画質を変更する」とは、画質が変更された原画像を修正手段により修正することにより得られる修正済み画像と原画像の画質とがほぼ同一となるように原画像の画質を変更することをいう。 “Change the image quality according to a certain value” means that the original image whose quality has been changed is corrected so that the corrected image obtained by correcting the original image and the image quality of the original image are substantially the same. This means changing the image quality.
なお、本発明による画像処理装置においては、前記画質変更手段を、前記原画像の明度および/または彩度を変更することにより前記原画像の画質を変更する処理を施す手段としてもよい。 In the image processing apparatus according to the present invention, the image quality changing means may be a means for performing processing for changing the image quality of the original image by changing the lightness and / or saturation of the original image.
また、本発明による画像処理装置においては、前記原画像データを修正手段により修正することにより得られる修正済み画像データにより表される修正済み画像と前記原画像とを比較することにより、前記画質を変更するためのパラメータを決定するパラメータ決定手段を備えるものとし、
前記修正手段を、該パラメータ決定手段により決定されたパラメータにより、前記画質を変更する処理を施す手段としてもよい。
In the image processing apparatus according to the present invention, the image quality is improved by comparing the original image with the corrected image represented by the corrected image data obtained by correcting the original image data by correction means. Provided with a parameter determining means for determining a parameter for changing,
The correction unit may be a unit that performs a process of changing the image quality according to the parameter determined by the parameter determination unit.
また、本発明による画像処理装置においては、前記修正手段により得られた修正済みの画像データを前記所定の圧縮アルゴリズムにより圧縮する圧縮手段をさらに備えるものとしてもよい。 The image processing apparatus according to the present invention may further include a compression unit that compresses the corrected image data obtained by the correction unit using the predetermined compression algorithm.
本発明による画像処理方法は、2次元状に画素が配列された原画像を表す原画像データの入力を受け付け、
所定の圧縮アルゴリズムにより前記原画像データを圧縮した際に圧縮率が向上するように、前記原画像の所定数毎のラインの全画素値を一定値に修正する画像処理方法であって、
前記修正される前の前記原画像データに対して、前記一定値に応じて該原画像の画質を変更する処理を施すことを特徴とするものである。
The image processing method according to the present invention accepts input of original image data representing an original image in which pixels are arranged two-dimensionally,
An image processing method for correcting all pixel values of a predetermined number of lines of the original image to a constant value so that a compression rate is improved when the original image data is compressed by a predetermined compression algorithm,
The original image data before the correction is subjected to a process of changing the image quality of the original image according to the certain value.
なお、本発明による画像処理方法をコンピュータに実行させるためのプログラムとして提供してもよい。 The image processing method according to the present invention may be provided as a program for causing a computer to execute the image processing method.
本発明によれば、所定の圧縮アルゴリズムにより原画像データを圧縮した際に圧縮率が向上するように、原画像の所定数毎のラインの全画素値を一定値に修正するようにしたため、画素値が変更されたラインについては圧縮率を向上できる。また、特殊な伸張アルゴリズムを用いなくても圧縮された原画像データを伸張することができる。なお、所定数毎のラインの全画素値を一定値に修正した場合、そのラインの情報は失われて修正の前後で画質が変更されてしまうが、一定値に応じて原画像データにより表される原画像の画質を変更する処理を修正前の原画像データに対して施しているため、修正済み画像データにより表される修正済み画像の画質が変更されることを防止することができる。したがって、画質の変更を防止しつつ圧縮率を向上できる。 According to the present invention, since all the pixel values of a predetermined number of lines of the original image are corrected to a constant value so that the compression rate is improved when the original image data is compressed by a predetermined compression algorithm, The compression ratio can be improved for the line whose value has been changed. Further, the compressed original image data can be decompressed without using a special decompression algorithm. When all the pixel values of a given number of lines are corrected to a constant value, the information of that line is lost and the image quality is changed before and after the correction, but it is represented by the original image data according to the fixed value. Since the processing for changing the image quality of the original image is performed on the original image data before correction, it is possible to prevent the image quality of the corrected image represented by the corrected image data from being changed. Therefore, the compression rate can be improved while preventing the image quality from changing.
また、原画像の明度および/または彩度を変更することにより原画像の画質を変更するようにすれば、修正済み画像データにより表される修正済み画像の明度および/または彩度の変更を防止することができる。 In addition, if the image quality of the original image is changed by changing the brightness and / or saturation of the original image, the change of the brightness and / or saturation of the corrected image represented by the corrected image data is prevented. can do.
また、画質を変更するためのパラメータを、原画像データを修正して得られる修正済み画像データにより表される修正済み画像と原画像とを比較して決定することにより、修正の前後で画質の変化がなくなるようにパラメータを決定できるため、画質の変更を確実に防止することができる。 In addition, the parameter for changing the image quality is determined by comparing the original image with the corrected image represented by the corrected image data obtained by correcting the original image data. Since the parameters can be determined so that there is no change, it is possible to reliably prevent a change in image quality.
以下図面を参照して本発明の実施形態について説明する。図1は本発明の第1の実施形態による画像処理装置を備えた画像圧縮システムの構成を示す概略ブロック図である。図1に示すように、本発明の第1の実施形態による画像圧縮システム1は、デジタルカメラ、ネットワーク上のデータベース、ハードディスク、各種メディア等から画像データS0を読み出すことにより原画像データS0の入力を受け付ける入力部2と、原画像データS0により表される原画像(以下原画像についても同様の符号S0を用いる)の画質を変更して画質が変更された画質変更画像データS1を得る画質変更部3と、画質変更画像データS1により表される画質変更画像(以下画質変更画像についても同様の符号S1を用いる)の所定数毎のラインの全画素値を一定値に修正して修正済み画像データS2を得る修正部4と、修正済み画像データS2を圧縮して圧縮画像データS3を得る圧縮部5とを備える。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic block diagram showing the configuration of an image compression system including an image processing apparatus according to the first embodiment of the present invention. As shown in FIG. 1, the
入力部2は、原画像データS0を読み出す上記デジタルカメラやネットワーク上のデータベース等に対応したインターフェースからなる。
The
修正部4は、画質変更画像S1における横方向の各ラインの全画素値が、1ライン毎に一定値となるように修正して修正済み画像(以下修正済み画像についても参照符号S2を用いる)を表す修正済み画像データS2を取得する。すなわち、図2に示すように画質変更画像S1の横方向のラインを1ライン毎に一定値(斜線部)となるように修正する。
The
画質変更部3は、原画像S0から原画像S0の特徴量を抽出する特徴量抽出部31と、特徴量抽出部31が抽出した特徴量を補正する特徴量補正部32と、補正された特徴量を逆変換して画質変更画像データS1を得る逆変換部33とを備える。
The image
特徴量抽出部31は、下記の変換式(I)によりRGB3色の色データからなる原画像S0の各画素値を変換してH(色相)、S(彩度)およびV(明度)を特徴量として取得する。なお、RGBの色データの値が8ビットで0〜255の値をとる場合、255により除して0〜1の値となるように正規化した後にHSVに変換するものとする。
The feature
(1)V=MAX{R,G,B}
(2)V=0のとき S=0、H=不定
(3)(2)以外(V=0でない)のとき
(3−1)v=MIN{R,G,B} v:R,G,Bの最小値
(3−2)S=(V−v)/V
(3−3)R=Vであれば H0=(G−B)/(V−v)
G=Vであれば H0=2+(B−R)/(V−v)
B=Vであれば H0=4+(R−G)/(V−v)
(3−4)H=H0×60
(3−5)H<0であれば H=(H0×60)+360 (I)
なお、Hは0〜359、SおよびVは0〜1の値をとる。
(1) V = MAX {R, G, B}
(2) When V = 0 S = 0, H = Undefined (3) When other than (2) (not V = 0) (3-1) v = MIN {R, G, B} v: R, G , B (3-2) S = (V−v) / V
(3-3) If R = V, H0 = (GB) / (V−v)
If G = V, H0 = 2 + (BR) / (V-v)
If B = V, H0 = 4 + (RG) / (V-v)
(3-4) H = H0 × 60
(3-5) If H <0, H = (H0 × 60) +360 (I)
H takes a value of 0 to 359, and S and V take a value of 0 to 1.
特徴量補正部32は、特徴量抽出部31が抽出した彩度Sおよび明度Vを、修正部4が変更するラインの一定値に応じて補正して補正彩度S′および補正明度V′を得る。ここで、ラインの一定値が黒色のように暗い色である場合には、修正済み画像S2は原画像S0と比較して彩度および明度が低減される。逆にラインの一定値が白色のように明るい色である場合には、修正済み画像S2は原画像S0と比較して彩度が低減されるが明度が強調される。
The feature
このため、特徴量補正部32は、ラインの一定値が黒色のように暗い色である場合には、彩度Sおよび明度Vを強調するように、彩度Sおよび明度Vのそれぞれに一定値k1,k2(k1,k2>1)を乗算して補正彩度S′および補正明度V′を得る。すなわち、
S′=S×k1 (II)
V′=V×k2 (III)
の演算により補正彩度S′および補正明度V′を得る。
For this reason, when the constant value of the line is a dark color such as black, the feature
S ′ = S × k1 (II)
V ′ = V × k2 (III)
The corrected saturation S ′ and the corrected brightness V ′ are obtained by the calculation of
逆にラインの一定値が白色のように明るい色である場合には、彩度Sを強調し、明度Vを低減するように、彩度Sおよび明度Vのそれぞれに一定値k3(>1),k4(<1)を乗算して補正彩度S′および補正明度V′を得る。すなわち、
S′=S×k3 (IV)
V′=V×k4 (V)
の演算により補正彩度S′および補正明度V′を得る。
On the contrary, when the constant value of the line is a bright color such as white, the saturation S and the lightness V are reduced so that the saturation S is enhanced and the lightness V is reduced. , K4 (<1) to obtain corrected saturation S ′ and corrected brightness V ′. That is,
S ′ = S × k3 (IV)
V ′ = V × k4 (V)
The corrected saturation S ′ and the corrected brightness V ′ are obtained by the calculation of
逆変換部33は、色相H、補正彩度S′および補正明度V′を下記の変換式(VI)により変換してRGB3色の色データからなる画質変更画像データS1を得る。なお、変換式(VI)により得られるRGBの色データは0〜1の値をとるため、255を乗算してRGBの値からなる画質変更画像データS1を得るものとする。
The
(1)S=0であればR=G=B=V′
(2)S=0でないとき
(2−1)H0=H/60
(2−2)f=Floor(H0) f:Hの小数部
(2−3)i=Int(H0) i:Hの整数部
(2−4)p1=V′×(1−S′)
p2=V′×(1−S′×f)
p3=V′×(1−S×(1−f))
(2−5)i=0のとき:R=V′,G=p3,B=p1
i=1のとき:R=p2,G=V′,B=p1
i=2のとき:R=p1,G=V′,B=p3
i=3のとき:R=p1,G=p2,B=V′
i=4のとき:R=p3,G=p1,B=V′
i=5のとき:R=V′,G=p1,B=p2 (VI)
圧縮部5は、修正部4において得られた修正済み画像データS2を所定の圧縮アルゴリズムにより圧縮する。所定のアルゴリズムとしては、修正済み画像データS2に対して特殊なフィルタリング処理等の前処理を施すことなく、修正済み画像S2における横方向のラインにおける冗長性を考慮して圧縮処理を行うアルゴリズムである。ここで、画素値が修正されたラインは一定値を有するため、圧縮することにより情報量を大きく低減することができる。
(1) If S = 0, R = G = B = V ′
(2) When not S = 0 (2-1) H0 = H / 60
(2-2) f = Floor (H0) f: Decimal part of H (2-3) i = Int (H0) i: Integer part of H (2-4) p1 = V ′ × (1-S ′)
p2 = V ′ × (1−S ′ × f)
p3 = V ′ × (1−S × (1−f))
(2-5) When i = 0: R = V ′, G = p3, B = p1
When i = 1: R = p2, G = V ′, B = p1
When i = 2: R = p1, G = V ′, B = p3
When i = 3: R = p1, G = p2, B = V ′
When i = 4: R = p3, G = p1, B = V ′
When i = 5: R = V ′, G = p1, B = p2 (VI)
The
次いで、第1の実施形態において行われる処理について説明する。図3は、第1の実施形態において行われる処理を示すフローチャートである。まず、入力部2が原画像データS0の入力を受け付けると(ステップS1)、画質変更部3が原画像データS0の画質を変更して画質変更画像データS1を得る(ステップS2)。次いで、修正部4が画質変更画像S1における横方向のラインについて、1ライン毎に一定値に修正して修正済み画像データS2を得る(ステップS3)。そして、修正済み画像データS2を圧縮部5が圧縮して圧縮画像データS3を得、(ステップS4)、処理を終了する。
Next, processing performed in the first embodiment will be described. FIG. 3 is a flowchart showing processing performed in the first embodiment. First, when the
このように、第1の実施形態においては、1ライン毎に全画素値を一定値に修正しているため、圧縮率は向上される。一方、所定数毎のラインの全画素値を一定値に修正した場合、そのラインの情報は失われて修正の前後で画質が変更されてしまうが、修正する一定値に応じて原画像S0の画質を変更する処理を修正前の原画像データS0に対して施しているため、修正済み画像S2の画質の変更を防止することができる。したがって、画質の変更を防止しつつ圧縮率を向上できる。 As described above, in the first embodiment, since all pixel values are corrected to a constant value for each line, the compression rate is improved. On the other hand, when all the pixel values of a predetermined number of lines are corrected to a constant value, the information of the line is lost and the image quality is changed before and after the correction. Since the process for changing the image quality is performed on the original image data S0 before correction, it is possible to prevent the image quality of the corrected image S2 from being changed. Therefore, the compression rate can be improved while preventing the image quality from changing.
ここで、本出願人の実験により、第1の実施形態により得られる修正済み画像データS2を圧縮した場合のデータ容量が、修正前の原画像データS0を圧縮した場合のデータ容量の60%程度となったことが確認された。 Here, according to the experiment of the present applicant, the data capacity when the corrected image data S2 obtained by the first embodiment is compressed is about 60% of the data capacity when the original image data S0 before correction is compressed. It was confirmed that
また、図4(a)に示すような原画像S0において、1ライン毎のラインを黒色の一定値となるように修正すると、修正済み画像S2は図4(b)に示すように、彩度および明度が低減される。これに対して、第1の実施形態のように画像S0の彩度および明度を強調するように画質を変更した画質変更画像S1を修正することにより得られる修正済み画像S2は図4(c)に示すものとなり、原画像S0と比較して彩度および明度の変更を防止できていることが分かる。 Further, in the original image S0 as shown in FIG. 4A, when the line for each line is corrected so as to have a constant black value, the corrected image S2 has a saturation as shown in FIG. 4B. And brightness is reduced. On the other hand, the corrected image S2 obtained by correcting the image quality changed image S1 whose image quality has been changed so as to emphasize the saturation and lightness of the image S0 as in the first embodiment is shown in FIG. It can be seen that the saturation and lightness can be prevented from changing as compared with the original image S0.
なお、上記第1の実施形態においては、一定値を黒または白の無彩色としているが有彩色としてもよい。この場合においても一定値に応じて原画像S0の彩度および明度を補正することにより原画像S0の画質を変更して画質変更画像S1を得るようにすればよい。 In the first embodiment, the fixed value is a black or white achromatic color, but may be a chromatic color. Even in this case, the image quality changed image S1 may be obtained by changing the image quality of the original image S0 by correcting the saturation and lightness of the original image S0 in accordance with a certain value.
また、上記第1の実施形態においては、明度および彩度の双方を補正しているが、明度および彩度のいずれか一方のみを補正するようにしてもよい。 In the first embodiment, both brightness and saturation are corrected. However, only one of brightness and saturation may be corrected.
次いで、本発明の第2の実施形態について説明する。図5は本発明の第2の実施形態による画像処理装置を備えた画像圧縮システム1′の構成を示す概略ブロック図である。なお、第2の実施形態において第1の実施形態と同一の構成については同一の参照番号を付し、ここでは詳細な説明は省略する。第2の実施形態においては、画像加工部7およびパラメータ決定部8を備えた点が第1の実施形態と異なる。
Next, a second embodiment of the present invention will be described. FIG. 5 is a schematic block diagram showing a configuration of an
画像加工部7は、修正部4と同様に原画像データS0により表される原画像S0の所定数毎のラインの全画素を一定値に修正することにより修正済み画像データS4を得る。
パラメータ決定部8は、修正済み画像データS4により表される修正済み画像S4の明度の平均値VM4と、原画像S0の明度の平均値VM0との比C0(=VM0/VM4)を明度Vを変更するためのパラメータと決定する。なお、原画像S0および修正済み画像S4の明度は上記変換式に示すように、原画像S0および修正済み画像S4のRGBの最大値とすればよい。
The
なお、第2の実施形態においては、画質変更部3の特徴量補正部32は、下記の式に示すように彩度Sおよび明度Vのそれぞれに一定値k1(k1>1)および比C0をそれぞれ乗算して補正彩度S′および補正明度V′を得る。すなわち、
S′=S×k1 (VII)
V′=V×C0 (VIII)
の演算により補正彩度S′および補正明度V′を得る。
In the second embodiment, the feature
S ′ = S × k1 (VII)
V ′ = V × C0 (VIII)
The corrected saturation S ′ and the corrected brightness V ′ are obtained by the calculation of
次いで、第2の実施形態において行われる処理について説明する。図6は、第2の実施形態において行われる処理を示すフローチャートである。まず、入力部2が原画像データS0の入力を受け付けると(ステップS11)、画像加工部7が原画像S0における横方向のラインについて、1ライン毎に一定値に修正して修正済み画像データS4を得る(ステップS12)そして、パラメータ決定部8が、修正済み画像データS4により表される修正済み画像S4の明度の平均値VM4と、原画像S0の明度の平均値VM0との比C0を算出し、これを明度Vを変更するためのパラメータと決定する(ステップS13)。
Next, processing performed in the second embodiment will be described. FIG. 6 is a flowchart showing processing performed in the second embodiment. First, when the
続いて、パラメータ決定部8が決定したパラメータを用いて、画質変更部3が原画像S0データの画質を変更して画質変更画像データS1を得る(ステップS14)。次いで、修正部4が画質変更画像S1における横方向のラインについて、1ライン毎に一定値に修正して修正済み画像データS2を得る(ステップS15)。そして、修正済み画像データS2を圧縮部5が圧縮して圧縮画像データS3を得(ステップS16)、処理を終了する。
Subsequently, using the parameters determined by the
このように、第2の実施形態においては、画質を変更するためのパラメータを、修正済み画像データS4により表される修正済み画像S4と、修正前の原画像S0とを比較して決定することにより、修正の前後で画質の変化がなくなるようにパラメータを決定できるため、画質の変更を確実に防止することができる。 Thus, in the second embodiment, the parameter for changing the image quality is determined by comparing the corrected image S4 represented by the corrected image data S4 with the original image S0 before correction. Thus, the parameter can be determined so that the change in the image quality before and after the correction is eliminated, so that the change in the image quality can be surely prevented.
なお、上記第1および第2の実施形態においては、1ライン毎に画素値を修正しているが、2ライン毎または3ライン毎のように任意のライン間隔にて画素値を修正してもよい。 In the first and second embodiments, the pixel value is corrected for each line. However, even if the pixel value is corrected at an arbitrary line interval, such as every two lines or every three lines. Good.
また、原画像S0を解析し、圧縮率を向上できるラインを考慮することにより、例えば一定値とするラインを奇数ラインとするあるいは偶数ラインとする等のように、一定値に修正するラインの位置を決めるようにしてもよい。 Also, by analyzing the original image S0 and considering lines that can improve the compression rate, the position of the line to be corrected to a constant value, for example, a line having a constant value is an odd line or an even line, etc. You may make it decide.
また、上記第1および第2の実施形態においては、RGBの原画像データS0をHSV空間に変換することにより原画像S0の特徴量を抽出しているが、HSV空間以外のHLS空間やYCC輝度色差空間に変換することにより原画像S0の特徴量を抽出してもよい。 In the first and second embodiments described above, the feature amount of the original image S0 is extracted by converting the RGB original image data S0 into the HSV space. However, the HLS space other than the HSV space and the YCC luminance are extracted. The feature amount of the original image S0 may be extracted by converting the color difference space.
1,1′ 画像圧縮システム
2 入力部
3 画質変更部
4 修正部
5 圧縮部
7 画像加工部
8 パラメータ決定部
31 特徴量抽出部
32 特徴量補正部
33 逆変換部
DESCRIPTION OF
Claims (6)
所定の圧縮アルゴリズムにより前記原画像データを圧縮した際に圧縮率が向上するように、前記原画像の所定数毎のラインの全画素値を一定値に修正する修正手段とを備えた画像処理装置であって、
前記修正手段により修正される前の前記原画像データに対して、前記一定値に応じて該原画像の画質を変更する処理を施す画質変更手段をさらに備えたことを特徴とする画像処理装置。 Input receiving means for receiving input of original image data representing an original image in which pixels are arranged two-dimensionally;
An image processing apparatus comprising correction means for correcting all pixel values of a predetermined number of lines of the original image to a constant value so that a compression rate is improved when the original image data is compressed by a predetermined compression algorithm. Because
An image processing apparatus, further comprising: an image quality changing unit that performs a process of changing the image quality of the original image according to the fixed value with respect to the original image data before being corrected by the correcting unit.
前記修正済み画像データにより表される修正済み画像と前記原画像とを比較することにより、前記画質を変更するためのパラメータを決定するパラメータ決定手段とを備え、
前記画質変更手段は、該パラメータ決定手段により決定されたパラメータにより、前記画質を変更する処理を施す手段であることを特徴とする請求項1または2記載の画像処理装置。 An image processing means for obtaining corrected image data by performing a process on the original image data to correct all the pixel values of the predetermined number of lines of the original image to the constant value performed by the correcting means;
By comparing the corrected image and the original image represented by the corrected image data, and a parameter determination means for determining a parameter for changing the image quality,
The image processing apparatus according to claim 1, wherein the image quality changing unit is a unit that performs a process of changing the image quality according to the parameter determined by the parameter determining unit.
所定の圧縮アルゴリズムにより前記原画像データを圧縮した際に圧縮率が向上するように、前記原画像の所定数毎のラインの全画素値を一定値に修正する画像処理方法であって、
前記修正される前の前記原画像データに対して、前記一定値に応じて該原画像の画質を変更する処理を施すことを特徴とする画像処理方法。 Accepts input of original image data representing an original image in which pixels are arranged in a two-dimensional manner,
An image processing method for correcting all pixel values of a predetermined number of lines of the original image to a constant value so that a compression rate is improved when the original image data is compressed by a predetermined compression algorithm,
An image processing method, comprising: subjecting the original image data before correction to a process of changing an image quality of the original image according to the certain value.
所定の圧縮アルゴリズムにより前記原画像データを圧縮した際に圧縮率が向上するように、前記原画像の所定数毎のラインの全画素値を一定値に修正する手順とを有する画像処理方法をコンピュータに実行させるためのプログラムであって、
前記修正される前の前記原画像データに対して、前記一定値に応じて該原画像の画質を変更する処理を施す手順をさらに有することを特徴とするプログラム。 A procedure for receiving input of original image data representing an original image in which pixels are arranged two-dimensionally;
An image processing method comprising: a step of correcting all pixel values of a predetermined number of lines of the original image to a constant value so that a compression rate is improved when the original image data is compressed by a predetermined compression algorithm. A program for executing
The program further comprising a procedure for performing processing for changing the image quality of the original image according to the fixed value on the original image data before the correction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003274725A JP4037336B2 (en) | 2003-07-15 | 2003-07-15 | Image processing apparatus and method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003274725A JP4037336B2 (en) | 2003-07-15 | 2003-07-15 | Image processing apparatus and method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005039542A JP2005039542A (en) | 2005-02-10 |
JP4037336B2 true JP4037336B2 (en) | 2008-01-23 |
Family
ID=34211604
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003274725A Expired - Fee Related JP4037336B2 (en) | 2003-07-15 | 2003-07-15 | Image processing apparatus and method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4037336B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6086663B2 (en) * | 2012-06-19 | 2017-03-01 | オリンパス株式会社 | Image processing apparatus, endoscope apparatus, and isolated point noise correction method |
EP3047428A4 (en) * | 2013-09-20 | 2017-02-08 | A2ZLogix, Inc. | System and method for reducing visible artifacts in the display of compressed and decompressed digital images and video |
JP6907881B2 (en) | 2017-10-24 | 2021-07-21 | オムロン株式会社 | Image processing device, image processing program |
-
2003
- 2003-07-15 JP JP2003274725A patent/JP4037336B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2005039542A (en) | 2005-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4423298B2 (en) | Text-like edge enhancement in digital images | |
JP3634419B2 (en) | Image processing method and image processing apparatus | |
US6650773B1 (en) | Method including lossless compression of luminance channel and lossy compression of chrominance channels | |
CN111429357B (en) | Training data determining method, video processing method, device, equipment and medium | |
EP3200147A1 (en) | Image magnification method, image magnification apparatus and display device | |
JP2007536774A (en) | System and method for estimating compression noise of an image | |
US20080267495A1 (en) | Image compressing method and image compressing apparatus | |
CN111292269B (en) | Image tone mapping method, computer device, and computer-readable storage medium | |
CN108961193B (en) | Image restoration method, device and storage medium | |
JP4123356B2 (en) | Image processing apparatus, image processing program, and storage medium | |
US20010033618A1 (en) | Image-data processing apparatus | |
JP4097587B2 (en) | Image processing apparatus and image processing method | |
US7668366B2 (en) | Mosaic image data processing | |
CN107220934B (en) | Image reconstruction method and device | |
CN111953977A (en) | Image transmission method, system and device | |
Miyata et al. | Novel inverse colorization for image compression | |
US8275198B2 (en) | Image processing apparatus, image processing method and computer readable medium with compression processing for each color | |
JP4037336B2 (en) | Image processing apparatus and method, and program | |
JP2018019239A (en) | Imaging apparatus, control method therefor and program | |
JP4037318B2 (en) | Image processing apparatus and method, and program | |
JP4040528B2 (en) | Image processing apparatus, image processing method, image processing program, recording medium storing image processing program, and image forming apparatus including image processing apparatus | |
KR102556960B1 (en) | Sampled chrominance component restoration device | |
JP5757904B2 (en) | Image compression device | |
JP4118213B2 (en) | Image compression method, image compression device, imaging device, processing location identification method, processing location identification device, and computer program | |
US20220046144A1 (en) | Apparatus, method, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060303 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20061205 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070717 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070918 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20071030 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20071031 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4037336 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101109 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111109 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121109 Year of fee payment: 5 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121109 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131109 Year of fee payment: 6 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |