JP2007166563A - Image processing apparatus and image processing method, image processing program, and storage medium - Google Patents

Image processing apparatus and image processing method, image processing program, and storage medium Download PDF

Info

Publication number
JP2007166563A
JP2007166563A JP2005364153A JP2005364153A JP2007166563A JP 2007166563 A JP2007166563 A JP 2007166563A JP 2005364153 A JP2005364153 A JP 2005364153A JP 2005364153 A JP2005364153 A JP 2005364153A JP 2007166563 A JP2007166563 A JP 2007166563A
Authority
JP
Japan
Prior art keywords
color
color space
block
pixel
average value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2005364153A
Other languages
Japanese (ja)
Other versions
JP4687894B2 (en
Inventor
Kunikazu Ueno
邦和 上野
Yuzuru Suzuki
譲 鈴木
Hiroyuki Kono
裕之 河野
Koichi Fujii
晃一 藤井
Shunsuke Kodaira
俊輔 小平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2005364153A priority Critical patent/JP4687894B2/en
Publication of JP2007166563A publication Critical patent/JP2007166563A/en
Application granted granted Critical
Publication of JP4687894B2 publication Critical patent/JP4687894B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus and image processing method in which a certain degree of color conversion accuracy can be kept and further, color space conversion processing can be performed at high speed. <P>SOLUTION: A color image represented in a first color space is divided into blocks for each color component by a block dividing section 1, and an average value of color components is calculated for each block by an average value calculation section 2. Color space conversion is then performed on that average value into a block average value in a second color space by a color conversion section 3. This color space conversion is performed only on the average value of blocks, so that throughput is remarkably decreased, and processing can be accelerated. On the other hand, a feature amount in each pixel is calculated from the average value of color components for each block and pixel values of the blocks by a feature amount calculation section and in accordance with the calculated feature amount for each pixel, the block average value on which color space conversion is performed, is corrected by a correction section 5 and defined as a value for each pixel in the second color space, thereby preventing color conversion accuracy from being reduced in pixels of colors other than the block average value. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、カラー画像に対して色空間変換処理を行う画像処理技術に関するものである。   The present invention relates to an image processing technique for performing color space conversion processing on a color image.

従来より異なる色空間の間で変換処理を行う技術が利用されてきている。例えば複写機やプリンタなどにおいてはRGBやYCbCrなどの色空間で表現された画像を、CMYK色空間で表現された画像に変換し、それぞれの色成分の色材を用いて画像を形成している。色空間変換処理方法の代表的なものとして、N次元ルックアップテーブルと補間を用いた方法(以下DLUTと略す)がある。   Conventionally, techniques for performing conversion processing between different color spaces have been used. For example, in a copying machine or a printer, an image expressed in a color space such as RGB or YCbCr is converted into an image expressed in a CMYK color space, and an image is formed using color materials of the respective color components. . As a representative color space conversion processing method, there is a method using an N-dimensional lookup table and interpolation (hereinafter abbreviated as DLUT).

従来の色空間変換処理は、画像中のすべての画素について、それぞれ色空間変換処理を行っている。近年では色変換精度を向上させるための様々な方法が適用されており、処理量が増大し、色空間変換処理のための処理時間が長くなってきている。例えば上述のDLUTでは、1画素の色空間変換処理のためにいくつかのテーブル値を読み出してN次元の補間演算を行う。この処理を画像中のすべての画素について行うとかなりの処理量になり、処理時間がかかるという問題があった。そのため、処理時間の短縮により処理速度の向上が要求されている。   In the conventional color space conversion process, the color space conversion process is performed for all the pixels in the image. In recent years, various methods for improving color conversion accuracy have been applied, the amount of processing has increased, and the processing time for color space conversion processing has become longer. For example, in the above-described DLUT, for a color space conversion process of one pixel, several table values are read and N-dimensional interpolation calculation is performed. If this process is performed for all the pixels in the image, there is a problem that a considerable amount of processing is required and processing time is required. Therefore, an improvement in processing speed is required by shortening the processing time.

このような問題に対して、例えば特許文献1では、ルックアップテーブルを参照して色変換を行う際に、前段のプレ階調数変換部で階調変換を行うことによりルックアップテーブル中の格子点に変換し、ルックアップテーブルを参照して変換後の値を取り出し、後段のポスト階調数変換部で所望の階調数に変換している。これによって、ルックアップテーブルの参照を減らし、また補間処理を行わないようにしている。しかし、このような構成ではルックアップテーブルに登録されている階調数しか取り得ず、精度よく色変換を行うことができない。また、この方法でも画像中のすべての画素についてプレ階調数変換、ルックアップテーブルの参照、ポスト階調数変換の各処理を行うことになるため、やはり処理量が多く、高速化を図ることができなかった。   For example, in Japanese Patent Application Laid-Open No. H11-228707, when performing color conversion with reference to the lookup table, a grid in the lookup table is obtained by performing gradation conversion in the pre-gradation number conversion unit in the previous stage. The value is converted into a point, the converted value is taken out with reference to the lookup table, and is converted into a desired number of gradations by a post-gradation number conversion unit at a later stage. As a result, the lookup table reference is reduced and the interpolation process is not performed. However, with such a configuration, only the number of gradations registered in the lookup table can be obtained, and color conversion cannot be performed with high accuracy. This method also performs pre-gradation conversion, lookup table lookup, and post-gradation conversion for all pixels in the image, so the amount of processing is large and the processing speed is increased. I could not.

なお、本願発明に類似する別の技術として、画像を圧縮するためのブロック圧縮技術がある。その代表的なものに、特許文献2にも記載されているようなGBTC(Generalized Block Truncation Coding)がある。この技術は、画像をブロック化し、ブロック毎に平均値を算出し、その平均値との差を量子化して平均値とともに圧縮符号化するものである。この技術は上述のように画像の圧縮技術であり、色変換技術とは異なる技術である。   As another technique similar to the present invention, there is a block compression technique for compressing an image. A typical example is GBTC (Generalized Block Truncation Coding) as described in Patent Document 2. This technique blocks an image, calculates an average value for each block, quantizes the difference from the average value, and compresses and encodes the average value together with the average value. This technique is an image compression technique as described above, and is a technique different from the color conversion technique.

特開平7−30772号公報JP-A-7-30772 特開平9−9069号公報Japanese Patent Laid-Open No. 9-9069

本発明は、上述した事情に鑑みてなされたもので、ある程度の色変換精度を保ち、しかも高速に色空間変換処理を行うことができる画像処理装置及び画像処理方法を提供することを目的とするものである。また、そのような画像処理装置の機能あるいは画像処理方法をコンピュータにより実行させる画像処理プログラム、および、その画像処理プログラムを格納した記憶媒体を提供することを目的とするものである。   The present invention has been made in view of the above-described circumstances, and an object thereof is to provide an image processing apparatus and an image processing method capable of performing color space conversion processing at high speed while maintaining a certain degree of color conversion accuracy. Is. It is another object of the present invention to provide an image processing program for causing a computer to execute such a function of the image processing apparatus or an image processing method, and a storage medium storing the image processing program.

本発明は、第1の色空間で表現されたカラー画像を第2の色空間で表現された画像に色変換する画像処理装置及び画像処理方法であって、第1の色空間で表現されたカラー画像を色成分毎にブロック化し、ブロック毎に各色成分の平均値を算出して、その平均値を第2の色空間におけるブロック平均値に色空間変換する。一方、ブロック毎の色成分の平均値とブロックの各画素値から各画素における特徴量を算出し、算出した各画素の特徴量によって、色空間変換したブロック平均値を修正して、第2の色空間における各画素の値とすることを特徴とするものである。   The present invention relates to an image processing apparatus and an image processing method for color-converting a color image expressed in a first color space into an image expressed in a second color space, the image processing method expressing the color image expressed in the first color space. The color image is divided into blocks for each color component, an average value of each color component is calculated for each block, and the average value is converted to a block average value in the second color space. On the other hand, the feature amount in each pixel is calculated from the average value of the color components for each block and each pixel value of the block, and the block average value subjected to color space conversion is corrected based on the calculated feature amount of each pixel. It is characterized by the value of each pixel in the color space.

特徴量としては、ブロック毎の色成分の平均値と前記ブロックの各画素値との差分とし、その差分に第2の色空間の色成分毎の重みを乗算し、ブロック平均値の各色成分をそれぞれ加算することにより第2の色空間における各画素の値を求めることができる。特に第1の色空間がL* * * 色空間の場合、特徴量としてL* 成分についての差分を算出し、各画素の前記L* 成分についての差分に第2の色空間の色成分毎の重みを乗算し、ブロック平均値の各色成分をそれぞれ加算して第2の色空間における各画素の値を得るように構成することができる。あるいは、各色成分の差分を近似的に第2の色空間の差分に色変換して、ブロック平均値の各色成分と加算することにより第2の色空間における各画素の値を得るように構成してもよい。 The feature amount is a difference between the average value of the color components for each block and each pixel value of the block, the difference is multiplied by the weight for each color component of the second color space, and each color component of the block average value is calculated. By adding each, the value of each pixel in the second color space can be obtained. Especially when the first color space is the L * a * b * color space, calculates the difference between the L * component as the feature amount, the color component of the differential to a second color space for the L * component of each pixel Each weight component is multiplied, and each color component of the block average value is added to obtain the value of each pixel in the second color space. Alternatively, it is configured to obtain the value of each pixel in the second color space by approximately color-converting the difference of each color component into the difference of the second color space and adding it to each color component of the block average value. May be.

さらに、上述の構成によって得られた第2の色空間における各画素の値に対して、コントラストの度合いに従って強調処理を行うように構成することができ、その際のコントラストの度合いを、例えばブロック内の差分の最大値と最小値の差によって決定することができる。さらに、そのときのコントラストの度合いによって、強調処理を行う際の関数を変更することもできる。   Furthermore, the pixel value in the second color space obtained by the above-described configuration can be configured to perform enhancement processing according to the degree of contrast. The difference between the maximum value and the minimum value of the difference can be determined. Furthermore, the function for performing enhancement processing can be changed according to the degree of contrast at that time.

本発明によれば、色空間変換処理を行うのはブロックの平均値に対してであるから、ブロックのすべての画素について色空間変換処理を行う場合に比べて格段に処理量を減少させることができ、高速に色空間変換処理を行うことができる。また、色空間変換後の第2の色空間における各画素の値として、第2の色空間におけるブロック平均値をそのまま用いるのではなく、第1の色空間における各画素の特徴量によってブロック平均値を修正することによって、ある程度の色変換精度を保つことができるという効果がある。   According to the present invention, since the color space conversion process is performed on the average value of the block, the processing amount can be significantly reduced as compared with the case where the color space conversion process is performed on all the pixels of the block. Color space conversion processing can be performed at high speed. In addition, as the value of each pixel in the second color space after color space conversion, the block average value in the second color space is not used as it is, but the block average value is determined according to the feature amount of each pixel in the first color space. By correcting the above, there is an effect that a certain degree of color conversion accuracy can be maintained.

図1は、本発明の第1の実施の形態を示すブロック図である。図中、1はブロック化部、2は平均値算出部、3は色変換部、4は特徴量算出部、5は修正部である。ここでは入力画像はL* * * 色空間で表現された画像であるものとし、出力画像はCMYK色空間で表現された画像であるものとしている。もちろん、色空間はこの例に限られるものではなく、例えばRGB色空間やYCbCrなど、他の色空間相互の色空間変換処理を行うものであってよい。 FIG. 1 is a block diagram showing a first embodiment of the present invention. In the figure, 1 is a blocking unit, 2 is an average value calculation unit, 3 is a color conversion unit, 4 is a feature amount calculation unit, and 5 is a correction unit. Here, the input image is assumed to be an image expressed in the L * a * b * color space, and the output image is assumed to be an image expressed in the CMYK color space. Of course, the color space is not limited to this example, and color space conversion processing between other color spaces such as RGB color space and YCbCr may be performed.

ブロック化部1は、入力画像を色成分毎にブロック化する。ブロックの大きさは予め任意に決めておくことができるが、この例では一例として4×4画素として図示している。   The blocking unit 1 blocks the input image for each color component. The size of the block can be arbitrarily determined in advance, but in this example, it is illustrated as 4 × 4 pixels as an example.

平均値算出部2は、ブロック化部1から渡されるそれぞれのブロックについて、各色成分の平均値を算出する。   The average value calculation unit 2 calculates the average value of each color component for each block passed from the blocking unit 1.

色変換部3は、平均値算出部2で算出されたそれぞれのブロックの各色成分の平均値を、第2の色空間におけるブロック平均値に色空間変換する。この色変換部3としては、公知の色変換手法を適用することができ、例えば上述のDLUTを用いることができる。この色変換部3において色空間変換処理を行うのは、各ブロック中の画素の平均の色についてのみであるので、従来のようにそれぞれの画素について色空間変換処理を行う場合に比べて格段に処理量が少なく、高速に処理を行うことができる。この例ではブロックサイズを4×4画素としているので、1/16の処理量及び処理時間となる。   The color conversion unit 3 performs color space conversion on the average value of each color component of each block calculated by the average value calculation unit 2 into a block average value in the second color space. As the color conversion unit 3, a known color conversion method can be applied. For example, the above-described DLUT can be used. The color conversion unit 3 performs the color space conversion process only for the average color of the pixels in each block, so that it is markedly different from the conventional case where the color space conversion process is performed for each pixel. The amount of processing is small, and processing can be performed at high speed. In this example, since the block size is 4 × 4 pixels, the processing amount and processing time are 1/16.

特徴量算出部4は、平均値算出部2で算出したブロック毎の色成分の平均値と、ブロック中の各画素値から、各画素における特徴量を算出する。ここでは特徴量として、ブロックのL* 成分の平均値と、ブロックの各画素のL* の値との差分を算出する。もちろん、特徴量はL* 成分の差分に限られるものではなく、後述する実施の形態のようにそれぞれの成分毎の差分を用いたり、あるいは、差分以外の特徴量を算出してもよい。 The feature amount calculation unit 4 calculates the feature amount in each pixel from the average value of the color components for each block calculated by the average value calculation unit 2 and each pixel value in the block. Here, the difference between the average value of the L * component of the block and the value of L * of each pixel of the block is calculated as the feature amount. Of course, the feature amount is not limited to the difference between the L * components, and a difference for each component may be used as in an embodiment described later, or a feature amount other than the difference may be calculated.

修正部5は、特徴量算出部4で算出したブロック中の各画素の特徴量により、色変換部3で変換されたブロック平均値を修正して、第2の色空間における各画素の値とする。この例では、特徴量算出部4で画素毎の特徴量として算出した差分(dij)に第2の色空間の色成分毎の重み(Wc,Wm,Wy,Wk)を乗算し、色変換部3で得られたブロック平均値(Cave,Mave,Yave,Kave)の各色成分をそれぞれ加算して、第2の色空間における各画素の値を得ている。すなわち、求める第2の色空間の画素の値を(Cij,Mij,Yij,Kij)(i=1〜4,j=1〜4)とするとき、
ij=Cave+Wc・dij
ij=Mave+Wm・dij
ij=Yave+Wy・dij
ij=Kave+Wk・dij
によりブロック平均値を修正して第2の色空間の画素の値を求めている。
The correction unit 5 corrects the block average value converted by the color conversion unit 3 based on the feature amount of each pixel in the block calculated by the feature amount calculation unit 4, and the value of each pixel in the second color space To do. In this example, the difference (d ij ) calculated as the feature quantity for each pixel by the feature quantity calculation unit 4 is multiplied by the weight (Wc, Wm, Wy, Wk) for each color component in the second color space, and color conversion is performed. Each color component of the block average values (Cave, Mave, Yave, Kave) obtained in the section 3 is added to obtain the value of each pixel in the second color space. That is, when the value of the pixel of the second color space to be obtained is (C ij , M ij , Y ij , K ij ) (i = 1 to 4, j = 1 to 4),
C ij = Cave + Wc · d ij
M ij = Mave + Wm · d ij
Y ij = Yave + Wy · d ij
K ij = Kave + Wk · d ij
Thus, the block average value is corrected to obtain the pixel value of the second color space.

ここで、差分dijはL* 成分についての差分であり、C、M、Y、Kのそれぞれの色成分についての差分ではないが、L* 成分が示す明るさ方向の修正を行うことによって、ブロック内の各画素間の色の変化を近似し、色変換精度の低下を抑えている。第2の色空間におけるそれぞれの色成分に対する明るさ(L* )成分の寄与度が重み(Wc,Wm,Wy,Wk)である。なお、重み(Wc,Wm,Wy,Wk)は定数でもよいし、関数でもよい。重みを余り大きな値とすると、第1の色空間で表現される色との違いが大きくなってしまうので、もとの色との違いが大きくならないように適度な値となるようにすることが望ましい。 Here, the difference d ij is a difference with respect to the L * component, and is not a difference with respect to the respective color components of C, M, Y, and K, but by correcting the brightness direction indicated by the L * component, The color change between each pixel in the block is approximated to suppress a decrease in color conversion accuracy. The contribution of the brightness (L * ) component to each color component in the second color space is the weight (Wc, Wm, Wy, Wk). The weights (Wc, Wm, Wy, Wk) may be constants or functions. If the weight is too large, the difference from the color expressed in the first color space will be large, so that it should be set to an appropriate value so that the difference from the original color does not become large. desirable.

このようにして、修正部5から出力された第2の色空間の画素からなるブロックを並べることにより、色空間変換処理後の出力画像を得ることができる。上述のように、色空間変換処理は高速に行うことができ、また、修正部5でそれぞれの画素毎にブロック平均値を修正することによって色変換精度の低下を抑えることができる。なお、この例ではブロックサイズが小さいので、画像全体としてはブロック平均値の色が視認され、ブロック内の各画素の色が多少ちがっていても画像全体としてそれほど影響はなく、画質の劣化を抑えることができる。   In this way, by arranging the blocks composed of the pixels of the second color space output from the correction unit 5, it is possible to obtain an output image after the color space conversion processing. As described above, the color space conversion process can be performed at high speed, and the correction unit 5 corrects the block average value for each pixel, thereby suppressing a decrease in color conversion accuracy. In this example, since the block size is small, the color of the block average value is visually recognized as the entire image, and even if the color of each pixel in the block is slightly different, the image as a whole is not affected so much and deterioration of image quality is suppressed. be able to.

図2は、本発明の第2の実施の形態を示すブロック図である。図中、図1と同様の部分には同じ符号を付して重複する説明を省略する。この第2の実施の形態は、上述の第1の実施の形態における特徴量算出部4及び修正部5の別の例を示すものである。   FIG. 2 is a block diagram showing a second embodiment of the present invention. In the figure, the same parts as those in FIG. This 2nd Embodiment shows another example of the feature-value calculation part 4 and the correction part 5 in the above-mentioned 1st Embodiment.

特徴量算出部4では、この例では第1の色空間におけるそれぞれの色成分について、ブロック内の各画素の色成分と平均値との差分を算出し、特徴量とする。   In this example, the feature amount calculation unit 4 calculates the difference between the color component of each pixel in the block and the average value for each color component in the first color space, and sets it as the feature amount.

修正部5では、特徴量算出部で算出した第1の色空間における各色成分について差分を、第2の色空間における色成分毎の差分に色変換する。この色変換は簡単な関数やテーブルなどによって行えばよく、精度を要しない。そして、色変換された差分と、色変換部3から出力されるブロック平均値とを加算して、第2の色空間における各画素の値を得る。   The correction unit 5 performs color conversion on the difference for each color component in the first color space calculated by the feature amount calculation unit into a difference for each color component in the second color space. This color conversion may be performed by a simple function or table and does not require accuracy. Then, the color-converted difference and the block average value output from the color conversion unit 3 are added to obtain the value of each pixel in the second color space.

この第2の実施の形態における構成では、修正部5で平均値との差分に対して簡単な色変換を行っているので、ブロック内での色の再現性を向上させることができる。従って、上述の第1の実施の形態に比べて出力画像の色変換精度を向上させることができる。   In the configuration according to the second embodiment, since the correction unit 5 performs simple color conversion on the difference from the average value, the color reproducibility within the block can be improved. Therefore, the color conversion accuracy of the output image can be improved as compared with the first embodiment described above.

図3は、本発明の第3の実施の形態を示すブロック図である。図中、図1と同様の部分には同じ符号を付して重複する説明を省略する。6は強調度算出部、7は強調処理部である。この第3の実施の形態では、修正部5から出力された第2の色空間における値に対して適宜強調処理を行う例を示している。   FIG. 3 is a block diagram showing a third embodiment of the present invention. In the figure, the same parts as those in FIG. Reference numeral 6 denotes an enhancement degree calculation unit, and 7 denotes an enhancement processing unit. In the third embodiment, an example in which enhancement processing is appropriately performed on values in the second color space output from the correction unit 5 is shown.

強調度算出部6は、コントラストの度合いを算出する。コントラストの度合いとしては、ブロック内の画素のL* 値の最大値と最小値の差を求めることができる。 The enhancement degree calculation unit 6 calculates the degree of contrast. As the degree of contrast, the difference between the maximum value and the minimum value of the L * values of the pixels in the block can be obtained.

強調処理部7は、強調度算出部6で算出されたコントラストの度合いに従って、修正部5から出力された第2の色空間における各画素の値に対して強調処理を行う。強調処理は関数を用いて行うことができるが、このとき用いる関数をコントラストの度合いにより変更する。これにより、コントラストの度合いに応じた強調処理を行うことができる。   The enhancement processing unit 7 performs enhancement processing on the value of each pixel in the second color space output from the correction unit 5 in accordance with the degree of contrast calculated by the enhancement degree calculation unit 6. The enhancement processing can be performed using a function, but the function used at this time is changed depending on the degree of contrast. Thereby, it is possible to perform enhancement processing according to the degree of contrast.

図4は、強調処理に用いる関数の切替の一例の説明図である。図4(A)において、上述のようにブロック内の画素のL* 値が最も大きいものをMax、最も小さいものをMinとし、その差をコントラストの度合いとして強調度算出部6で算出する。そして、そのコントラストの度合いの絶対値が所定の閾値TH以下の場合には、例えば図4(C)に示すように入力をそのまま出力する関数を用い、実質的に強調処理を行わない。また、コントラストの度合いの絶対値が所定の閾値THよりも大きい場合には、例えば図4(B)に示すような関数を用い、コントラストを強調する。これによって、コントラストの度合いが小さい部分では強調せず、コントラストの度合いが大きい部分ではコントラストを強調する。コントラストの度合いが大きい部分は、多くの場合エッジ部分などであり、エッジ部分が存在するようなブロックにおいてコントラストを強調する処理を行ってエッジを強調することができる。このような強調処理についても、ブロック化した画素の値を用いて行うことができる。上述のようにブロックの平均値を用いて色変換を行っているので、そのことによるぼけを強調処理により軽減することができる。 FIG. 4 is an explanatory diagram of an example of switching of functions used for the enhancement processing. 4A, as described above, the pixel having the largest L * value in the block is Max, the smallest pixel is Min, and the difference is calculated by the enhancement degree calculation unit 6 as the degree of contrast. When the absolute value of the degree of contrast is equal to or less than the predetermined threshold value TH, for example, a function that outputs the input as it is as shown in FIG. When the absolute value of the degree of contrast is larger than a predetermined threshold value TH, for example, a function as shown in FIG. 4B is used to enhance the contrast. As a result, the portion where the degree of contrast is small is not emphasized, and the portion where the degree of contrast is large is emphasized. The portion with a high degree of contrast is an edge portion in many cases, and the edge can be emphasized by performing a process of enhancing the contrast in a block where the edge portion exists. Such enhancement processing can also be performed using the values of the blocked pixels. Since the color conversion is performed using the average value of the blocks as described above, the blur caused by this can be reduced by the enhancement process.

なお、図3では第1の実施の形態に対して強調度算出部6及び強調処理部7を追加した構成を例示したが、第2の実施の形態への適用も可能であることは言うまでもない。   In FIG. 3, the configuration in which the enhancement degree calculation unit 6 and the enhancement processing unit 7 are added to the first embodiment is illustrated, but it goes without saying that the configuration can be applied to the second embodiment. .

図5は、本発明の画像処理装置の機能または画像処理方法をコンピュータプログラムで実現した場合におけるコンピュータプログラムおよびそのコンピュータプログラムを格納した記憶媒体の一例の説明図である。図中、11はプログラム、12はコンピュータ、21は光磁気ディスク、22は光ディスク、23は磁気ディスク、24はメモリ、31は光磁気ディスク装置、32は光ディスク装置、33は磁気ディスク装置である。   FIG. 5 is an explanatory diagram of an example of a computer program and a storage medium storing the computer program when the function of the image processing apparatus or the image processing method of the present invention is realized by the computer program. In the figure, 11 is a program, 12 is a computer, 21 is a magneto-optical disk, 22 is an optical disk, 23 is a magnetic disk, 24 is a memory, 31 is a magneto-optical disk apparatus, 32 is an optical disk apparatus, and 33 is a magnetic disk apparatus.

上述の各実施の形態およびその変形例として説明した構成の一部または全部を、コンピュータにより実行可能なプログラム11によって実現することが可能である。プログラム11で実現される場合、そのプログラム11およびそのプログラムが用いるデータなどは、コンピュータが読み取り可能な記憶媒体に記憶することも可能である。記憶媒体とは、コンピュータのハードウェア資源に備えられている読取装置に対して、プログラムの記述内容に応じて、磁気、光、電気等のエネルギーの変化状態を引き起こして、それに対応する信号の形式で、読取装置にプログラムの記述内容を伝達できるものである。例えば、光磁気ディスク21,光ディスク22(CDやDVDなどを含む)、磁気ディスク23,メモリ24(ICカード、メモリカードなどを含む)等である。もちろんこれらの記憶媒体は、可搬型に限られるものではない。   A part or all of the configuration described as each of the above-described embodiments and modifications thereof can be realized by a program 11 that can be executed by a computer. When implemented by the program 11, the program 11 and data used by the program can be stored in a computer-readable storage medium. A storage medium is a signal format that causes a state of change in energy such as magnetism, light, electricity, etc. according to the description of a program to a reader provided in the hardware resources of a computer. Thus, the description content of the program can be transmitted to the reading device. For example, there are a magneto-optical disk 21, an optical disk 22 (including a CD and a DVD), a magnetic disk 23, a memory 24 (including an IC card, a memory card, and the like). Of course, these storage media are not limited to portable types.

これらの記憶媒体にプログラム11を格納しておき、例えばコンピュータ12の光磁気ディスク装置31,光ディスク装置32,磁気ディスク装置33,あるいは図示しないメモリスロットやインタフェースにこれらの記憶媒体を装着することによって、コンピュータからプログラム11を読み出し、本発明の画像処理装置の機能または画像処理方法を実行することができる。あるいは、あらかじめ記憶媒体をコンピュータ12に装着または内蔵しておき、例えばネットワークなどを介してプログラム11をコンピュータ12に転送し、記憶媒体にプログラム11を格納して実行させてもよい。もちろん、一部の機能についてハードウェアによって構成することもできるし、あるいは、すべてをハードウェアで構成してもよい。   By storing the program 11 in these storage media and mounting these storage media in, for example, the magneto-optical disk device 31, the optical disk device 32, the magnetic disk device 33, or a memory slot or interface (not shown) of the computer 12, The program 11 is read from the computer, and the function of the image processing apparatus or the image processing method of the present invention can be executed. Alternatively, a storage medium may be mounted or built in the computer 12 in advance, and the program 11 may be transferred to the computer 12 via a network, for example, and the program 11 may be stored and executed on the storage medium. Of course, some functions may be configured by hardware, or all may be configured by hardware.

本発明の第1の実施の形態を示すブロック図である。It is a block diagram which shows the 1st Embodiment of this invention. 本発明の第2の実施の形態を示すブロック図である。It is a block diagram which shows the 2nd Embodiment of this invention. 本発明の第3の実施の形態を示すブロック図である。It is a block diagram which shows the 3rd Embodiment of this invention. 強調処理に用いる関数の切替の一例の説明図である。It is explanatory drawing of an example of the switch of the function used for an emphasis process. 本発明の画像処理装置の機能または画像処理方法をコンピュータプログラムで実現した場合におけるコンピュータプログラムおよびそのコンピュータプログラムを格納した記憶媒体の一例の説明図である。FIG. 3 is an explanatory diagram of an example of a computer program and a storage medium storing the computer program when the function of the image processing apparatus or the image processing method of the present invention is realized by the computer program.

符号の説明Explanation of symbols

1…ブロック化部、2…平均値算出部、3…色変換部、4…特徴量算出部、5…修正部、6…強調度算出部、7…強調処理部、11…プログラム、12…コンピュータ、21…光磁気ディスク、22…光ディスク、23…磁気ディスク、24…メモリ、31…光磁気ディスク装置、32…光ディスク装置、33…磁気ディスク装置。   DESCRIPTION OF SYMBOLS 1 ... Blocking part, 2 ... Average value calculation part, 3 ... Color conversion part, 4 ... Feature-value calculation part, 5 ... Correction part, 6 ... Enhancement degree calculation part, 7 ... Enhancement processing part, 11 ... Program, 12 ... Computer, 21 ... Magneto-optical disk, 22 ... Optical disk, 23 ... Magnetic disk, 24 ... Memory, 31 ... Magneto-optical disk device, 32 ... Optical disk device, 33 ... Magnetic disk device.

Claims (18)

第1の色空間で表現されたカラー画像を色成分毎にブロック化するブロック化手段と、前記ブロック毎に各色成分の平均値を算出する平均値算出手段と、前記ブロック毎の各色成分の平均値を第2の色空間におけるブロック平均値に色空間変換する色変換手段と、前記ブロック毎の色成分の平均値と前記ブロックの各画素値から各画素における特徴量を算出する特徴量算出手段と、前記特徴量算出手段で算出した各画素の特徴量により前記色変換手段で変換された前記ブロック平均値を修正して第2の色空間における各画素の値とする修正手段を有することを特徴とする画像処理装置。   Blocking means for blocking the color image expressed in the first color space for each color component, average value calculating means for calculating an average value of each color component for each block, and average of each color component for each block Color conversion means for color space converting a value to a block average value in a second color space, and feature quantity calculation means for calculating a feature quantity at each pixel from the average value of the color components for each block and each pixel value of the block And a correction unit that corrects the block average value converted by the color conversion unit based on the feature amount of each pixel calculated by the feature amount calculation unit to obtain a value of each pixel in the second color space. A featured image processing apparatus. 前記特徴量算出手段は、前記ブロック毎の色成分の平均値と前記ブロックの各画素値との差分を各画素の特徴量として算出することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the feature amount calculation unit calculates a difference between an average value of color components for each block and each pixel value of the block as a feature amount of each pixel. 前記修正手段は、前記特徴量算出手段で画素毎の特徴量として算出した差分に第2の色空間の色成分毎の重みを乗算し、前記色変換手段で得られた前記ブロック平均値の各色成分をそれぞれ加算して第2の色空間における各画素の値を得ることを特徴とする請求項2に記載の画像処理装置。   The correction unit multiplies the difference calculated as the feature amount for each pixel by the feature amount calculation unit by a weight for each color component of the second color space, and each color of the block average value obtained by the color conversion unit The image processing apparatus according to claim 2, wherein the components are added to obtain the value of each pixel in the second color space. 第1の色空間はL* * * 色空間であり、前記特徴量算出手段は、L* 成分について前記ブロック内の各画素のL* 成分とL* 成分の平均値との差分を算出し、前記修正手段は、各画素の前記L* 成分についての差分に第2の色空間の色成分毎の重みを乗算し、前記色変換手段で得られた前記ブロック平均値の各色成分をそれぞれ加算して第2の色空間における各画素の値を得ることを特徴とする請求項2に記載の画像処理装置。 First color space is an L * a * b * color space, the feature amount calculating means calculates the difference between the average value of the L * component and the L * component of each pixel in the block for the L * component The correction means multiplies the difference for each L * component of each pixel by the weight for each color component of the second color space, and sets each color component of the block average value obtained by the color conversion means, respectively. The image processing apparatus according to claim 2, wherein the value of each pixel in the second color space is obtained by addition. 前記特徴量算出手段は、前記ブロック毎に第1の色空間の各色成分について画素毎に各色成分の平均値との差分を特徴量として算出し、前記修正手段は、第1の色空間の各色成分の差分を近似的に第2の色空間の差分に色変換し、該第2の色空間の差分に前記ブロック平均値の各色成分をそれぞれ加算して第2の色空間における各画素の値を得ることを特徴とする請求項1に記載の画像処理装置。   The feature amount calculating unit calculates a difference between each color component in the first color space for each block and an average value of each color component for each pixel as a feature amount, and the correction unit calculates each color in the first color space. The component difference is approximately color-converted to a difference in the second color space, and each color component of the block average value is added to the difference in the second color space, and the value of each pixel in the second color space The image processing apparatus according to claim 1, wherein: さらに、コントラストの度合いを算出する強調度算出手段と、前記強調度算出手段で算出されたコントラストの度合いに従って前記修正手段から出力された第2の色空間における各画素の値に対して強調処理を行う強調手段を有することを特徴とする請求項1ないし請求項5のいずれか1項に記載の画像処理装置。   Furthermore, an enhancement degree calculating means for calculating the degree of contrast, and an enhancement process for the value of each pixel in the second color space output from the correction means according to the degree of contrast calculated by the enhancement degree calculation means. 6. The image processing apparatus according to claim 1, further comprising an emphasis unit that performs the enhancement. 前記強調度算出手段は、ブロック内の差分の最大値と最小値の差をコントラストの度合いとすることを特徴とする請求項6に記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the enhancement degree calculation unit sets a difference between a maximum value and a minimum value of differences in the block as a degree of contrast. 前記強調手段は、前記コントラストの度合いにより強調処理を行う際に用いる関数を変更することを特徴とする請求項6または請求項7に記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the enhancement unit changes a function used when performing the enhancement process according to the degree of contrast. 第1の色空間で表現されたカラー画像をブロック化手段で色成分毎にブロック化し、前記ブロック毎に各色成分の平均値を平均値算出手段で算出し、前記ブロック毎の各色成分の平均値を色変換手段で第2の色空間におけるブロック平均値に色空間変換し、前記ブロック毎の色成分の平均値と前記ブロックの各画素値から特徴量算出手段で各画素における特徴量を算出し、算出した各画素の特徴量により修正手段で前記ブロック平均値を修正して第2の色空間における各画素の値とすることを特徴とする画像処理方法。   The color image expressed in the first color space is blocked for each color component by the blocking unit, the average value of each color component is calculated for each block by the average value calculating unit, and the average value of each color component for each block Is converted to a block average value in the second color space by the color conversion means, and a feature amount in each pixel is calculated by the feature amount calculation means from the average value of the color components for each block and each pixel value of the block. An image processing method, wherein the block average value is corrected by a correction means based on the calculated feature amount of each pixel to obtain a value of each pixel in the second color space. 前記特徴量として、前記ブロック毎の色成分の平均値と前記ブロックの各画素値との差分を算出することを特徴とする請求項9に記載の画像処理方法。   The image processing method according to claim 9, wherein a difference between an average value of color components for each block and each pixel value of the block is calculated as the feature amount. 各画素の特徴量による前記ブロック平均値の修正は、前記特徴量として算出した画素毎の差分に第2の色空間の色成分毎の重みを乗算し、前記ブロック平均値の各色成分をそれぞれ加算することにより行うことを特徴とする請求項10に記載の画像処理方法。   The correction of the block average value by the feature amount of each pixel is performed by multiplying the difference for each pixel calculated as the feature amount by the weight for each color component of the second color space, and adding each color component of the block average value, respectively. The image processing method according to claim 10, wherein the image processing method is performed. 第1の色空間はL* * * 色空間であり、前記特徴量として、L* 成分について前記ブロック内の各画素のL* 成分とL* 成分の平均値との差分を算出し、各画素の前記L* 成分についての差分に第2の色空間の色成分毎の重みを乗算し、前記ブロック平均値の各色成分をそれぞれ加算して第2の色空間における各画素の値を得ることを特徴とする請求項10に記載の画像処理方法。 First color space is an L * a * b * color space, as the feature amount, calculates a difference between the average value of the L * component and the L * component of each pixel in the block for the L * component, The difference between the L * components of each pixel is multiplied by the weight for each color component in the second color space, and each color component of the block average value is added to obtain the value of each pixel in the second color space. The image processing method according to claim 10. 前記特徴量として前記ブロック毎に第1の色空間の各色成分について画素毎に各色成分の平均値との差分を算出し、算出した第1の色空間の各色成分の差分を近似的に第2の色空間の差分に色変換し、該第2の色空間の差分に前記ブロック平均値の各色成分をそれぞれ加算して第2の色空間における各画素の値を得ることを特徴とする請求項9に記載の画像処理方法。   For each color component in the first color space as the feature amount, a difference from the average value of each color component is calculated for each pixel, and the difference between the calculated color components in the first color space is approximately second. The color conversion to a difference in the color space of the second color space is performed, and each color component of the block average value is added to the difference in the second color space to obtain the value of each pixel in the second color space. 10. The image processing method according to 9. さらに、コントラストの度合いを強調度算出手段で算出し、前記コントラストの度合いに従って修正後の第2の色空間における各画素の値に対して強調手段により強調処理を行うことを特徴とする請求項9ないし請求項13のいずれか1項に記載の画像処理方法。   The contrast level is calculated by an enhancement level calculation unit, and the enhancement process is performed by the enhancement unit for the value of each pixel in the second color space after correction according to the contrast level. The image processing method according to claim 13. 前記コントラストの度合いとして、ブロック内の差分の最大値と最小値の差を計算することを特徴とする請求項14に記載の画像処理方法。   The image processing method according to claim 14, wherein a difference between a maximum value and a minimum value in the block is calculated as the degree of contrast. 前記強調処理を行う際に用いる関数を、前記コントラストの度合いにより変更することを特徴とする請求項14または請求項15に記載の画像処理方法。   The image processing method according to claim 14, wherein a function used when performing the enhancement processing is changed according to the degree of the contrast. コンピュータに、第1の色空間で表現されたカラー画像を第2の色空間で表現された画像に変換する色変換処理を行う画像処理プログラムであって、請求項1ないし請求項8のいずれか1項に記載の画像処理装置の機能または請求項9ないし請求項16のいずれか1項に記載の画像処理方法をコンピュータに実行させることを特徴とする画像処理プログラム。   9. An image processing program for performing color conversion processing for converting a color image expressed in a first color space into an image expressed in a second color space on a computer. An image processing program for causing a computer to execute the function of the image processing apparatus according to claim 1 or the image processing method according to any one of claims 9 to 16. 第1の色空間で表現されたカラー画像を第2の色空間で表現された画像に変換する色変換処理をコンピュータに実行させる画像処理プログラムを格納したコンピュータが読取可能な記憶媒体において、請求項1ないし請求項8のいずれか1項に記載の画像処理装置の機能または請求項9ないし請求項16のいずれか1項に記載の画像処理方法をコンピュータに実行させる画像処理プログラムを格納したことを特徴とするコンピュータが読取可能な記憶媒体。   A computer-readable storage medium storing an image processing program for causing a computer to execute a color conversion process for converting a color image expressed in a first color space into an image expressed in a second color space. An image processing program for causing a computer to execute the function of the image processing device according to any one of claims 1 to 8 or the image processing method according to any one of claims 9 to 16 is stored. A computer-readable storage medium.
JP2005364153A 2005-12-17 2005-12-17 Image processing apparatus and image processing program Expired - Fee Related JP4687894B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005364153A JP4687894B2 (en) 2005-12-17 2005-12-17 Image processing apparatus and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005364153A JP4687894B2 (en) 2005-12-17 2005-12-17 Image processing apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2007166563A true JP2007166563A (en) 2007-06-28
JP4687894B2 JP4687894B2 (en) 2011-05-25

Family

ID=38248899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005364153A Expired - Fee Related JP4687894B2 (en) 2005-12-17 2005-12-17 Image processing apparatus and image processing program

Country Status (1)

Country Link
JP (1) JP4687894B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015223717A (en) * 2014-05-26 2015-12-14 株式会社リコー Testing apparatus, testing method, and testing program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09130597A (en) * 1995-10-31 1997-05-16 Canon Inc Picture processing method and device therefor
JPH09149273A (en) * 1995-11-17 1997-06-06 Brother Ind Ltd Color representation conversion method and device
JP2001243463A (en) * 2000-02-28 2001-09-07 Minolta Co Ltd Recording medium and device and method for image processing
JP2005039460A (en) * 2003-07-18 2005-02-10 Canon Inc Image processing method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09130597A (en) * 1995-10-31 1997-05-16 Canon Inc Picture processing method and device therefor
JPH09149273A (en) * 1995-11-17 1997-06-06 Brother Ind Ltd Color representation conversion method and device
JP2001243463A (en) * 2000-02-28 2001-09-07 Minolta Co Ltd Recording medium and device and method for image processing
JP2005039460A (en) * 2003-07-18 2005-02-10 Canon Inc Image processing method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015223717A (en) * 2014-05-26 2015-12-14 株式会社リコー Testing apparatus, testing method, and testing program

Also Published As

Publication number Publication date
JP4687894B2 (en) 2011-05-25

Similar Documents

Publication Publication Date Title
JP5132517B2 (en) Image processing apparatus and image processing method
KR100852658B1 (en) Image processing apparatus, image processing method, and storage medium
JP4176114B2 (en) Image compression apparatus, image reading apparatus including the same, image processing apparatus including the image compression apparatus, image forming apparatus including the same, and image compression processing method
US20050207641A1 (en) Color to grayscale conversion method and apparatus
US10270981B2 (en) Method for processing high dynamic range (HDR) data from a nonlinear camera
JP4243854B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
US8619330B2 (en) Image processing apparatus and image processing method
JP2010161503A (en) Image forming apparatus and image forming method
US10326913B2 (en) Image processing apparatus that generates halftone image data and image processing method
KR101329133B1 (en) Texture reproduction system and method and chroma correction system for method for immersion enhancement
JP4687894B2 (en) Image processing apparatus and image processing program
US10140731B2 (en) Image processing apparatus, image processing method, and storage medium
JP5521766B2 (en) Image data encoding method
JP2009267671A (en) Image processing apparatus
JP2015211320A (en) Image processing apparatus, control method thereof and program
US11108999B2 (en) Image processing apparatus, image processing method, and non-transitory computer-readable storage medium
Kobayashi et al. JPEG XT image compression with hue compensation for two-layer HDR coding
US9674398B2 (en) Processing apparatus which decompresses compressed data, control method thereof, and non-transitory computer readable medium
US7773824B2 (en) Signal processing device and method, recording medium, and program
JP4011494B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP4031442B2 (en) Image processing apparatus and image forming apparatus having the same
JP4305274B2 (en) Image processing apparatus, image forming apparatus, image processing method, and program
JP4209174B2 (en) Color image processing apparatus and method
JP5761539B2 (en) Image data encoding method
JP2007013474A (en) Image processing apparatus and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081120

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100405

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100506

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100701

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101006

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101027

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: 20110119

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110201

R150 Certificate of patent or registration of utility model

Ref document number: 4687894

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: 20140225

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees