JP2011077760A - Image compression device and image compression program - Google Patents

Image compression device and image compression program Download PDF

Info

Publication number
JP2011077760A
JP2011077760A JP2009226138A JP2009226138A JP2011077760A JP 2011077760 A JP2011077760 A JP 2011077760A JP 2009226138 A JP2009226138 A JP 2009226138A JP 2009226138 A JP2009226138 A JP 2009226138A JP 2011077760 A JP2011077760 A JP 2011077760A
Authority
JP
Japan
Prior art keywords
value
pixel
target
bit
error
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
JP2009226138A
Other languages
Japanese (ja)
Inventor
Shinji Hayashi
信二 林
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Mita 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 Kyocera Mita Corp filed Critical Kyocera Mita Corp
Priority to JP2009226138A priority Critical patent/JP2011077760A/en
Publication of JP2011077760A publication Critical patent/JP2011077760A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To improve coding efficiency while preventing degradation in image quality after decoding, in an image having a large density difference between adjacent pixels, such as a dot image. <P>SOLUTION: An image compression unit calculates a value A obtained by setting '0' or '1' to all lower bits without changing the bit digit of a pixel of interest, and a value B obtained by setting '0' or '1' to all the lower bits by changing the digit of the bit digit. The image compression unit calculates an absolute value (first error) of the difference between a value of the pixel of interest and the value A, and an absolute value (second error) of the difference between a value of the pixel of interest and the value B. The image compression unit does not change a value of the bit digit of the pixel of interest when the first error is not larger than the second error, and changes the value of the bit digit of the pixel of interest when the first error is larger than the second error. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像データを圧縮するための画像圧縮装置及び画像圧縮プログラムに関するものである。   The present invention relates to an image compression apparatus and an image compression program for compressing image data.

近年、デジタル機器の発展に伴って、画像データ等の様々な圧縮方式が提案されているが、圧縮方式の1つとしてJPEG(Joint Photographic Experts Group)2000が知られている。JPEG2000は画像の圧縮・展開の方法を規定したもので、JPEGを発展させたものである。JPEG2000は、画像データを複数のタイルに分割し、タイル毎にウェーブレット変換、量子化、そしてビットプレーン毎に算術符号化による圧縮処理を行っている。   In recent years, with the development of digital devices, various compression methods for image data and the like have been proposed, and JPEG (Joint Photographic Experts Group) 2000 is known as one of the compression methods. JPEG2000 defines an image compression / decompression method, and is an extension of JPEG. JPEG2000 divides image data into a plurality of tiles, and performs compression processing by wavelet transform, quantization for each tile, and arithmetic coding for each bit plane.

各種画像のうち、網点画像は隣接する画素の濃度差が大きく、ビットプレーンにおいて同じ値(‘0’又は‘1’)が連続しないため、符号化効率が悪くなる傾向にある。そこで、符号化効率を高めるために画像の種類を判断して量子化テーブルを切り替える方法や(特許文献1)、量子化データにおいて最下位ビットを‘0’又は‘1’に置き換えて値を固定する方法が提案されている(特許文献2)。   Among various images, the halftone image has a large density difference between adjacent pixels, and the same value ('0' or '1') does not continue in the bit plane, so that the encoding efficiency tends to deteriorate. Therefore, a method of switching the quantization table by judging the type of image in order to improve the encoding efficiency (Patent Document 1), or replacing the least significant bit with '0' or '1' in the quantized data and fixing the value A method to do this has been proposed (Patent Document 2).

特開平07−038761号公報Japanese Patent Application Laid-Open No. 07-038761 特開平10−285405号公報JP-A-10-285405

しかし、特許文献1に記載された方法の場合、隣接する画素間での値の並びが考慮されないため、網点画像においては符号化効率の向上はあまり望めない。また、特許文献2に記載された方法の場合、最下位ビットの値が強制的に変更されるため、復号後の画像の画質劣化が大きくなる問題があった。特に圧縮率を制御する場合は、符号化されるビット位置が変動するため、最下位ビットの値を固定にする方法は効果がない。   However, in the case of the method described in Patent Document 1, since the arrangement of values between adjacent pixels is not taken into consideration, an improvement in coding efficiency cannot be expected for halftone images. In addition, in the case of the method described in Patent Document 2, since the value of the least significant bit is forcibly changed, there is a problem that image quality degradation of an image after decoding becomes large. In particular, when the compression rate is controlled, the bit position to be encoded fluctuates, so the method of fixing the value of the least significant bit has no effect.

本発明は、上記の問題を解決するためになされたもので、網点画像のような隣接する画素間の濃度差が大きい画像において、復号後の画質劣化を抑えつつ符号化効率を向上させる画像圧縮装置及び画像圧縮プログラムを提供することを目的とするものである。   The present invention has been made to solve the above problem, and is an image that improves coding efficiency while suppressing image quality degradation after decoding in an image having a large density difference between adjacent pixels such as a halftone image. An object of the present invention is to provide a compression device and an image compression program.

請求項1に記載の発明の画像圧縮装置は、入力された画像データを輝度成分と色差成分からなる表色系に変換する変換手段と、前記変換された画像データを複数のタイルに分割する分割手段と、前記タイル毎にウェーブレット変換を施してサブバンド分解を行うウェーブレット変換手段と、前記サブバンド毎に量子化する量子化手段と、前記量子化された前記サブバンドを複数のブロックに分解する分解手段と、前記ブロック毎に前記ブロック内の画素値を最上位ビットから最下位ビットに至る複数のビットプレーンに展開する展開手段と、前記ブロック内の1つの画素である注目画素の値、当該注目画素の前後の各画素における対象ビット桁の各値、及び当該注目画素の前記対象ビット桁より下位ビットの値に応じて前記注目画素の前記対象ビット桁の値を調整して、前記下位ビットを全て‘0’又は‘1’に変更するビット丸め手段と、前記ビット丸め手段によってビット丸め処理が施されたビットプレーンを符号化する符号化手段と、を備える。   An image compression apparatus according to a first aspect of the present invention is a conversion unit that converts input image data into a color system comprising a luminance component and a color difference component, and a division that divides the converted image data into a plurality of tiles. Means, wavelet transform means for performing subband decomposition by performing wavelet transform for each tile, quantization means for quantizing each subband, and decomposing the quantized subband into a plurality of blocks Decomposition means, expansion means for expanding the pixel values in the block for each block into a plurality of bit planes from the most significant bit to the least significant bit, the value of the pixel of interest that is one pixel in the block, The pair of the target pixel according to each value of the target bit digit in each pixel before and after the target pixel and a value of a lower bit than the target bit digit of the target pixel Bit rounding means for adjusting the value of the bit digit and changing all the lower bits to “0” or “1”, and encoding means for coding the bit plane subjected to bit rounding processing by the bit rounding means And comprising.

また、請求項5に記載の発明の画像圧縮プログラムは、コンピュータを、入力された画像データを輝度成分と色差成分からなる表色系に変換する変換手段、前記変換された画像データを複数のタイルに分割する分割手段、前記タイル毎にウェーブレット変換を施してサブバンド分解を行うウェーブレット変換手段、前記サブバンド毎に量子化する量子化手段、前記量子化された前記サブバンドを複数のブロックに分解する分解手段、前記ブロック毎に前記ブロック内の画素値を最上位ビットから最下位ビットに至る複数のビットプレーンに展開する展開手段、前記ブロック内の1つの画素である注目画素の値、当該注目画素の前後の各画素における対象ビット桁の各値、及び当該注目画素の前記対象ビット桁より下位ビットの値に応じて前記注目画素の前記対象ビット桁の値を調整して、前記下位ビットを全て‘0’又は‘1’に変更するビット丸め手段、前記ビット丸め手段によってビット丸め処理が施されたビットプレーンを符号化する符号化手段、として機能させるものである。   According to a fifth aspect of the present invention, there is provided an image compression program for converting a computer to input color data into a color system composed of a luminance component and a color difference component, and converting the converted image data into a plurality of tiles. Dividing means for dividing the tiles, wavelet transform means for performing subband decomposition by performing wavelet transformation for each tile, quantizing means for quantizing each subband, and decomposing the quantized subbands into a plurality of blocks Disassembling means for expanding the pixel value in the block into a plurality of bit planes from the most significant bit to the least significant bit for each block, the value of the target pixel being one pixel in the block, the target According to each value of the target bit digit in each pixel before and after the pixel, and a value of a lower bit than the target bit digit of the target pixel A bit rounding unit that adjusts the value of the target bit digit of the eye pixel to change all the lower bits to “0” or “1”, and encodes a bit plane that has been subjected to bit rounding processing by the bit rounding unit It is made to function as an encoding means.

これらの構成によれば、ブロック内の1つの画素である注目画素の値、当該注目画素の前後の各画素における対象ビット桁の各値、及び当該注目画素の対象ビット桁より下位ビットの値に応じて注目画素の対象ビット桁の値を調整する(具体的には、変更するかしないか)ため、注目画素の前後の各画素との連続性と注目画素の値変化を考慮してビット丸め処理を行うことができる。つまり、注目画素の前後の各画素との連続性を考慮することにより符号化効率を向上させることができる。また、注目画素の値変化を考慮することによってビット丸め処理による注目画素の画素値の変化量をできるだけ抑えることができるため、復号後の画質劣化を軽減することができる。   According to these configurations, the value of the target pixel that is one pixel in the block, the value of the target bit digit in each pixel before and after the target pixel, and the value of the lower bit than the target bit digit of the target pixel In order to adjust the value of the target bit digit of the target pixel accordingly (specifically, whether or not to change it), bit rounding is performed in consideration of the continuity with each pixel before and after the target pixel and the value change of the target pixel. Processing can be performed. That is, encoding efficiency can be improved by considering continuity with each pixel before and after the target pixel. In addition, since the amount of change in the pixel value of the target pixel due to the bit rounding process can be suppressed as much as possible by considering the change in the value of the target pixel, image quality degradation after decoding can be reduced.

請求項2に記載の発明の画像圧縮装置は、請求項1に記載の画像圧縮装置であって、前記ビット丸め手段は、前記注目画素の前後の各画素における前記対象ビット桁の各値が異なる場合、前記注目画素の値と前記注目画素の前記対象ビット桁の値はそのままで前記対象ビット桁より下位ビットを全て‘0’又は‘1’としたときの値との差の絶対値である第1誤差と、前記注目画素の値と前記注目画素の前記対象ビット桁の値を変更して前記対象ビット桁より下位ビットを全て‘0’又は‘1’にしたときの値との差の絶対値である第2誤差を算出し、前記第1誤差が前記第2誤差以下のときは前記注目画素の前記対象ビット桁の値をそのままとし、前記第1誤差が前記第2誤差より大きいときは前記注目画素の前記対象ビット桁の値を変更して、前記下位ビットを全て‘0’又は‘1’に変更するものである。   An image compression apparatus according to a second aspect of the present invention is the image compression apparatus according to the first aspect, wherein the bit rounding means is different in each value of the target bit digit in each pixel before and after the target pixel. In this case, the value of the target pixel and the value of the target bit digit of the target pixel are left as they are, and the absolute value of the difference between the values when all the lower bits of the target bit digit are set to '0' or '1'. The difference between the first error and the value when the value of the target pixel and the value of the target bit digit of the target pixel are changed to set all the lower bits to “0” or “1”. When the second error, which is an absolute value, is calculated and the first error is equal to or smaller than the second error, the value of the target bit digit of the target pixel is left as it is, and the first error is larger than the second error Changes the value of the target bit digit of the pixel of interest Te, is to change the low-order bits to all '0' or '1'.

この構成によれば、注目画素のビット丸め処理前後の画素値の変化量を最小限に抑えつつ(復号後の画質劣化を抑えつつ)、符号化効率を向上させることができる。   According to this configuration, it is possible to improve the encoding efficiency while minimizing the change amount of the pixel value before and after the bit rounding process of the pixel of interest (suppressing image quality deterioration after decoding).

請求項3に記載の発明の画像圧縮装置は、請求項1又は2に記載の画像圧縮装置であって、前記ビット丸め手段は、前記注目画素の前後の各画素における前記対象ビット桁の各値が異なり、前記注目画素以前の各画素の前記対象ビット桁において予め定められた数以上同じ値が連続している場合、前記注目画素の値と前記注目画素の前記対象ビット桁の値はそのままで前記対象ビット桁より下位ビットを全て‘0’又は‘1’としたときの値との差の絶対値である第1誤差と、前記注目画素の値と前記注目画素の前記対象ビット桁の値を変更して前記対象ビット桁より下位ビットを全て‘0’又は‘1’にしたときの値との差の絶対値である第2誤差を算出し、前記第1誤差と前記第2誤差の差が予め定められた設定範囲内のときは前記注目画素の前記対象ビット桁をそのままとし、前記第1誤差と前記第2誤差の差が前記設定範囲外であって、前記第1誤差が前記第2誤差以下のときは前記注目画素の前記対象ビット桁の値をそのままとし、前記第1誤差と前記第2誤差の差が前記設定範囲外であって、前記第1誤差が前記第2誤差より大きいときは前記注目画素の前記対象ビット桁の値を変更して、前記下位ビットを全て‘0’又は‘1’に変更するものである。   An image compression apparatus according to a third aspect of the present invention is the image compression apparatus according to the first or second aspect, wherein the bit rounding means is configured to set each value of the target bit digit in each pixel before and after the target pixel. And when the same value continues for a predetermined number in the target bit digit of each pixel before the target pixel, the value of the target pixel and the value of the target bit digit of the target pixel are left as they are. A first error that is an absolute value of a difference from a value when all lower bits of the target bit digit are set to “0” or “1”, a value of the target pixel, and a value of the target bit digit of the target pixel Is changed to calculate a second error which is an absolute value of a difference from a value when all the lower bits of the target bit digit are set to “0” or “1”, and the first error and the second error are calculated. When the difference is within a predetermined setting range, If the difference between the first error and the second error is outside the set range and the first error is less than or equal to the second error, the target bit of the target pixel is left unchanged. If the digit value is left as it is, and the difference between the first error and the second error is outside the setting range and the first error is larger than the second error, the value of the target bit digit of the target pixel To change all the lower bits to '0' or '1'.

この構成によれば、注目画素以前の画素の対象ビット桁の値の連続性を優先させることができ、符号化効率を向上させることができる。一方、第1誤差と第2誤差の差が設定範囲外のときは注目画素の対象ビット桁の値を変更することによって、注目画素のビット丸め処理前後の画素値変化をできるだけ抑えつつ(復号後の画質劣化を抑えつつ)、符号化効率を向上させることができる。   According to this configuration, priority can be given to the continuity of the value of the target bit digit of the pixel before the pixel of interest, and the encoding efficiency can be improved. On the other hand, when the difference between the first error and the second error is outside the setting range, the value of the target bit digit of the target pixel is changed, thereby suppressing the change in the pixel value before and after the bit rounding process of the target pixel as much as possible (after decoding). Encoding efficiency can be improved while suppressing image quality degradation.

請求項4に記載の発明は、請求項1に記載の画像圧縮装置であって、前記ビット丸め手段は、前記注目画素の前後の各画素における前記対象ビット桁の各値が異なる場合、前記注目画素の前記対象ビット桁より下位ビットを全て‘0’とするときは、前記注目画素の前記対象ビット桁より下位ビットが示す値が予め定められた閾値以上のときは前記注目画素の前記対象ビット桁を‘1’に変更し、前記下位ビットが示す値が前記閾値未満であるときは前記注目画素の前記対象ビット桁の値をそのままとし、前記注目画素の前記対象ビット桁より下位ビットを全て‘1’とするときは、前記注目画素の前記対象ビット桁より下位ビットが示す値が予め定められた閾値以下のときは前記注目画素の前記対象ビット桁を‘0’に変更し、前記下位ビットが示す値が前記閾値より大きいときは前記注目画素の前記対象ビット桁の値をそのままとするものである。   A fourth aspect of the present invention is the image compression apparatus according to the first aspect, wherein the bit rounding means performs the attention when each value of the target bit digit in each pixel before and after the target pixel is different. When all the lower bits of the target bit digit of the pixel are set to “0”, when the value indicated by the lower bit of the target bit digit of the target pixel is equal to or greater than a predetermined threshold, the target bit of the target pixel When the digit is changed to '1' and the value indicated by the lower bit is less than the threshold value, the value of the target bit digit of the target pixel is left as it is, and all the lower bits from the target bit digit of the target pixel are all When “1” is set, the target bit digit of the target pixel is changed to “0” when the value indicated by the lower bit than the target bit digit of the target pixel is equal to or less than a predetermined threshold, and the lower order Bi When the value indicated by the bets is greater than the threshold value is intended to be as the value of the target bit digit of the pixel of interest.

この構成によれば、注目画素のビット丸め処理前後の画素値変化を最小限に抑えつつ(復号後の画質劣化を抑えつつ)、符号化効率を向上させることができる。   According to this configuration, it is possible to improve the encoding efficiency while minimizing the change in the pixel value before and after the bit rounding process of the target pixel (suppressing image quality deterioration after decoding).

この発明によれば、注目画素のビット丸め処理前後の画素値変化を最小限に抑えつつ(復号後の画質劣化を抑えつつ)、符号化効率を向上させることができる。   According to the present invention, it is possible to improve the encoding efficiency while minimizing the change in the pixel value before and after the bit rounding process of the pixel of interest (suppressing the image quality deterioration after decoding).

画像圧縮装置の電気的構成を示すブロック図。1 is a block diagram showing an electrical configuration of an image compression apparatus. JPEG2000方式による画像圧縮の流れを示す図。The figure which shows the flow of the image compression by a JPEG2000 system. タイル分割について説明するための図。The figure for demonstrating tile division | segmentation. 離散ウェーブレット変換について示した模式図。The schematic diagram shown about discrete wavelet transform. エントロピー符号化の流れを示す図。The figure which shows the flow of entropy encoding. プレシンクト分割を模式的に示した図。The figure which showed the precinct division | segmentation typically. コードブロック分割を模式的に示した図。The figure which showed code block division | segmentation typically. ビットプレーン分割を模式的に示した図。The figure which showed bit-plane division | segmentation typically. コーディングパスへの分割を模式的に示した図。The figure which showed the division | segmentation to a coding pass typically. 注目画素の前画素、後画素における対象ビット桁の値の組み合わせを示した表。The table | surface which showed the combination of the value of the object bit digit in the front pixel of the attention pixel, and a back pixel. 第1の実施例を説明するための図。The figure for demonstrating a 1st Example. 第1の実施例を説明するための図。The figure for demonstrating a 1st Example. 第1の実施例におけるビット丸め処理の流れを示したフローチャート。The flowchart which showed the flow of the bit rounding process in a 1st Example. 第2の実施例を説明するための図。The figure for demonstrating a 2nd Example. 第2の実施例を説明するための図。The figure for demonstrating a 2nd Example. 第2の実施例を説明するための図。The figure for demonstrating a 2nd Example. 第2の実施例におけるビット丸め処理の流れを示したフローチャート。The flowchart which showed the flow of the bit rounding process in a 2nd Example. 図17に続くフローチャート。The flowchart following FIG. 第3の実施例を説明するための図。The figure for demonstrating a 3rd Example. 第3の実施例を説明するための図。The figure for demonstrating a 3rd Example. 第3の実施例におけるビット丸め処理の流れを示したフローチャート。The flowchart which showed the flow of the bit rounding process in a 3rd Example.

本発明における画像圧縮装置及び画像圧縮プログラムの実施の形態について図面を参照して説明する。図1は、本実施の形態における画像圧縮装置1の電気的構成を示すブロック図である。尚、画像圧縮装置1は、パーソナルコンピュータ(パソコン)やワークステーション、携帯情報端末等の情報処理装置で実現され、図1のブロック図は画像圧縮装置1がこれらの情報処理装置によって実現された場合を例に図示している。この他、コピー機やスキャナ等の画像読取装置や、デジタルカメラやデジタルビデオカメラ、デジタルカメラを搭載した携帯電話等の撮像装置に組み込まれて用いられてもよい。   Embodiments of an image compression apparatus and an image compression program according to the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an electrical configuration of an image compression apparatus 1 according to the present embodiment. The image compression apparatus 1 is realized by an information processing apparatus such as a personal computer (personal computer), a workstation, or a portable information terminal. The block diagram of FIG. 1 shows a case where the image compression apparatus 1 is realized by these information processing apparatuses. Is shown as an example. In addition, it may be used by being incorporated in an image reading apparatus such as a copying machine or a scanner, or an imaging apparatus such as a digital camera, a digital video camera, or a mobile phone equipped with a digital camera.

図1に示すように、画像圧縮装置1は制御部11、記憶部12、入力操作部13、表示部14、I/F部15、ネットワークI/F部16及び画像圧縮復号部17等を備えて構成される。制御部11は、CPU(Central Processing Unit:中央処理装置)等によって構成され、入力された指示信号等に応じて記憶部12に記憶されたプログラムを読み出して処理を実行し、各機能部への指示信号の出力、データ転送等を行って画像圧縮装置1を統括的に制御する。   As shown in FIG. 1, the image compression apparatus 1 includes a control unit 11, a storage unit 12, an input operation unit 13, a display unit 14, an I / F unit 15, a network I / F unit 16, an image compression / decoding unit 17, and the like. Configured. The control unit 11 is configured by a CPU (Central Processing Unit) or the like, reads a program stored in the storage unit 12 in accordance with an input instruction signal or the like, executes a process, and sends the processing to each functional unit. The image compression apparatus 1 is comprehensively controlled by outputting an instruction signal, transferring data, and the like.

記憶部12は、画像圧縮装置1の備える種々の機能を実現するためのプログラムやデータ等を記憶する。本実施の形態では、記憶部12は画像圧縮プログラム121を記憶する。画像圧縮プログラム121は、I/F部15又はネットワークI/F部16が入力した画像データをJPEG2000方式で圧縮して符号化データを生成するためのプログラムである。   The storage unit 12 stores programs, data, and the like for realizing various functions provided in the image compression apparatus 1. In the present embodiment, the storage unit 12 stores an image compression program 121. The image compression program 121 is a program for compressing the image data input by the I / F unit 15 or the network I / F unit 16 using the JPEG2000 method to generate encoded data.

入力操作部13は、各種操作ボタンやマウス等のポインティングデバイスを備え、ユーザによって操作がなされると、操作信号を制御部11へ出力する。またユーザは入力操作部13を介して圧縮率の設定を行う。表示部14は、液晶ディスプレイ等の表示画面であり、入力操作部13から入力された内容に応じた表示を行ったり、制御部11による処理内容や処理結果を表示したりする。   The input operation unit 13 includes various operation buttons and a pointing device such as a mouse, and outputs an operation signal to the control unit 11 when operated by a user. The user also sets the compression rate via the input operation unit 13. The display unit 14 is a display screen such as a liquid crystal display, and displays according to the content input from the input operation unit 13 or displays the processing content and processing result by the control unit 11.

I/F部15はIEEE1394やUSB等のインターフェイスであり、外部装置と直接データの送受信を行うことができる。ネットワークI/F部16は、LANボード等の通信モジュールから構成され、ネットワークI/F部16と接続されたネットワーク(不図示)を介して外部装置と種々のデータの送受信を行う。画像圧縮復号部17は、記憶部12に記憶された画像圧縮プログラム121を実行することによって、I/F部15やネットワークI/F部16を介して入力された画像データをJPEG2000方式で圧縮して圧縮データを生成する。また、画像圧縮復号部17は、圧縮データの復号も行う。   The I / F unit 15 is an interface such as IEEE1394 or USB, and can directly transmit / receive data to / from an external device. The network I / F unit 16 includes a communication module such as a LAN board, and transmits / receives various data to / from an external device via a network (not shown) connected to the network I / F unit 16. The image compression / decoding unit 17 compresses the image data input via the I / F unit 15 or the network I / F unit 16 by the JPEG 2000 system by executing the image compression program 121 stored in the storage unit 12. To generate compressed data. The image compression / decoding unit 17 also decodes the compressed data.

図2は、本実施の形態におけるJPEG2000方式による画像圧縮の流れを示す図である。まず画像圧縮復号部17は、入力された画像データの表色系を例えばRGB方式からYCbCr方式へコンポーネント変換して(色空間変換21)、表色系が変換された画像データを図3に示すように複数のタイルに分割する(タイル分割22)。   FIG. 2 is a diagram showing a flow of image compression according to the JPEG2000 system in the present embodiment. First, the image compression / decoding unit 17 performs component conversion of the color system of the input image data from, for example, the RGB system to the YCbCr system (color space conversion 21), and the image data obtained by converting the color system is shown in FIG. In this way, it is divided into a plurality of tiles (tile division 22).

そして、画像圧縮復号部17は1つのバンドの各タイルに対して離散ウェーブレット変換を施して係数データを出力する(離散ウェーブレット変換23)。図4は、離散ウェーブレット変換について示した模式図である。図4(a)のタイル画像(0LL)に対して、離散ウェーブレット変換を施し、図4(b)に示すようにサブバンド1LL、1HL、1LH及び1HHに分解する。続いて、低周波成分1LLに対して離散ウェーブレット変換を施し、図4(c)に示すようにサブバンド2LL、2HL、2LH及び2HHに分解する。尚、図4では2レベル変換について図示しているが、離散ウェーブレット変換の回数は特に制限されるものではない。   Then, the image compression decoding unit 17 performs discrete wavelet transform on each tile of one band and outputs coefficient data (discrete wavelet transform 23). FIG. 4 is a schematic diagram showing the discrete wavelet transform. Discrete wavelet transform is applied to the tile image (0LL) in FIG. 4A, and is decomposed into subbands 1LL, 1HL, 1LH, and 1HH as shown in FIG. 4B. Subsequently, a discrete wavelet transform is performed on the low frequency component 1LL, and it is decomposed into subbands 2LL, 2HL, 2LH and 2HH as shown in FIG. Although FIG. 4 illustrates two-level conversion, the number of discrete wavelet conversions is not particularly limited.

次に、画像圧縮復号部17は離散ウェーブレット変換された係数データに対して線形量子化を行い(量子化24)、ユーザ等によって設定された圧縮率(以下「設定圧縮率」という)で量子化された量子化データに対してエントロピー符号化を行う(エントロピー符号化25)。ここで、エントロピー符号化25の処理手順について説明する。図5は、エントロピー符号化の流れを示す図である。画像圧縮復号部17は、まず各サブバンドの係数をプレシンクトと呼ばれる領域に分割する(プレシンクト分割251)。図6はプレシンクト分割を模式的に示した図である。図6において、51の部分は元の画像において同領域の部分を周波数変換したものであり、これらの部分は同じプレシンクトに属しているという。   Next, the image compression decoding unit 17 performs linear quantization on the coefficient data subjected to the discrete wavelet transform (quantization 24), and quantizes it with a compression rate (hereinafter referred to as “set compression rate”) set by the user or the like. Entropy coding is performed on the quantized data (entropy coding 25). Here, the processing procedure of the entropy encoding 25 will be described. FIG. 5 is a diagram showing a flow of entropy encoding. The image compression decoding unit 17 first divides each subband coefficient into areas called precincts (precinct division 251). FIG. 6 is a diagram schematically showing precinct division. In FIG. 6, a portion 51 is obtained by frequency-converting a portion of the same region in the original image, and these portions belong to the same precinct.

次に、画像圧縮復号部17はプレシンクトをコードブロックという更に小さな領域に分割する(コードブロック分割252)。図7はコードブロック分割を模式的に示した図である。このコードブロック単位がエントロピー符号化を行う際の基本単位となる。   Next, the image compression decoding unit 17 divides the precinct into smaller areas called code blocks (code block division 252). FIG. 7 is a diagram schematically showing code block division. This code block unit is a basic unit when entropy encoding is performed.

そして、画像圧縮復号部17は各コードブロックについて線形量子化された離散ウェーブレット変換の変換係数をビットプレーンに展開する(ビットプレーン展開253)。図8はビットプレーン展開を模式的に示した図である。図8において、61はあるコードブロックにおける線形量子化された離散ウェーブレット変換の係数データを例示したものである。62は、係数データ61の符号を表すビット列であり、値0は正値、値1は負値を意味する。63は係数データ61の絶対値をMSB(Most Significant Bit)からLSB(Least Significant Bit)に2値展開したビットプレーンである。   Then, the image compression decoding unit 17 expands the transform coefficient of the discrete wavelet transform linearly quantized for each code block into a bit plane (bit plane expansion 253). FIG. 8 is a diagram schematically showing the bit plane development. In FIG. 8, 61 is an example of coefficient data of the linearly quantized discrete wavelet transform in a certain code block. 62 is a bit string representing the sign of the coefficient data 61, where value 0 means a positive value and value 1 means a negative value. 63 is a bit plane in which the absolute value of the coefficient data 61 is binary-developed from MSB (Most Significant Bit) to LSB (Least Significant Bit).

例えば、値が+12の係数データ64は正値であるため、対応する符号ビット65は‘0’である。また、+12の絶対値の2進数表現は(1100)であるため、ビットプレーンに対応する箇所66a、66b、66c及び66dの値はそれぞれ‘1’、‘1’、‘0’、‘0’となる。同様に、値が−6の係数データ67は負値であるため、対応する符号ビット68は‘1’である。また、−6の絶対値の2進数表現は(0110)であるため、ビットプレーンの対応する箇所69a、69b、69c及び69dの値はそれぞれ‘0’、‘1’、‘1’、‘0’となる。MSB側で全て0であるビットプレーンをゼロビットプレーンといい、データは保存されない一方、コードブロック毎に後述のゼロビットプレーン枚数がカウントされる。   For example, since the coefficient data 64 having a value of +12 is a positive value, the corresponding sign bit 65 is “0”. Also, since the binary representation of the absolute value of +12 is (1100), the values of the locations 66a, 66b, 66c and 66d corresponding to the bit plane are “1”, “1”, “0”, “0”, respectively. It becomes. Similarly, since the coefficient data 67 having a value of −6 is a negative value, the corresponding sign bit 68 is “1”. Since the binary representation of the absolute value of −6 is (0110), the values of the corresponding portions 69a, 69b, 69c, and 69d of the bit plane are “0”, “1”, “1”, “0”, respectively. 'Become. Bit planes that are all zero on the MSB side are called zero bit planes, and no data is stored, while the number of zero bit planes described later is counted for each code block.

続いて、画像圧縮復号部17は、ビットプレーンを更にsignificance propagationパスと、magnitude refinementパスと、cleanupパスに分割する(コーディングパスへの分割254)。図9はコーディングパスへの分割を模式的に示した図である。図9に示すように、各ビットプレーン71a〜71d(以下、これらをまとめて「ビットプレーン71」という)は、コーディングパスへの分割により次のように分割される。つまり、それぞれsignificance propagationパス72b〜72d(以下、これらをまとめて「significance propagationパス72」という)、magnitude refinementパス73b〜73d(以下、これらをまとめて「magnitude refinementパス73」という)、cleanupパス74b〜74dに分割される。ただし、最上位ビット(MSB側)のビットプレーン71aはcleanupパス74aにのみ対応させる。以下、cleanupパス74a〜74dをまとめて「cleanupパス74」という。   Subsequently, the image compression decoding unit 17 further divides the bit plane into a significance propagation pass, a magnitude refinement pass, and a cleanup pass (division 254 into coding passes). FIG. 9 is a diagram schematically showing division into coding passes. As shown in FIG. 9, the bit planes 71a to 71d (hereinafter collectively referred to as “bit plane 71”) are divided as follows by division into coding paths. That is, significance propagation paths 72b to 72d (hereinafter collectively referred to as “significance propagation path 72”), magnitude refinement paths 73b to 73d (hereinafter collectively referred to as “magnitude refinement path 73”), and cleanup path 74b. Divided into ~ 74d. However, the most significant bit (MSB side) bit plane 71a is made to correspond only to the cleanup path 74a. Hereinafter, the cleanup paths 74a to 74d are collectively referred to as “cleanup path 74”.

各ビットプレーン71及び各コーディングパス72〜74は、全て縦横方向の座標長によるサイズが等しい。また、各コーディングパス72〜74にはビット値が定義された位置と定義されていない位置とが存在する。図9において、例えば76や77のように、ビット値が定義された位置には網掛け(斜線)が施されている。そして、コーディングパス72〜74(例えば、コーディングパス72b〜74b)の網掛け部分に定義されたビット値は、分割前のビットプレーン71(例えば、ビットプレーン71b)上の対応する位置におけるビット値と等しい。ビットプレーンをコーディングパスに分割する処理方法については、各文献により周知のものであるため説明を省略する。   Each bit plane 71 and each coding pass 72 to 74 are all equal in size according to the coordinate length in the vertical and horizontal directions. Each coding pass 72 to 74 has a position where a bit value is defined and a position where it is not defined. In FIG. 9, for example, 76 and 77, the positions where bit values are defined are shaded (hatched). The bit values defined in the shaded portions of the coding paths 72 to 74 (for example, the coding paths 72b to 74b) are the bit values at the corresponding positions on the bit plane 71 (for example, the bit plane 71b) before the division. equal. Since the processing method for dividing the bit plane into coding passes is well known in each document, description thereof is omitted.

最後に画像圧縮復号部17は、コーディングパス分割後のデータを算術符号化する(二値算術符号化255)。以上のようにしてエントロピー符号化25を行った後、画像圧縮復号部17は圧縮率の調整を行い(圧縮率調整26)、画像圧縮復号部17はファイルにデータを書き込むための符号ストリームの形成を行う(符号ストリーム27)。この符号ストリーム処理については、各文献により周知のものであるため説明を省略する。   Finally, the image compression decoding unit 17 arithmetically encodes the data after the coding pass division (binary arithmetic encoding 255). After performing the entropy encoding 25 as described above, the image compression / decoding unit 17 adjusts the compression rate (compression rate adjustment 26), and the image compression / decoding unit 17 forms a code stream for writing data to the file. (Code stream 27). Since this code stream processing is well known from each document, the description thereof is omitted.

各種画像のうち、網点画像は隣接する画素間の濃度差が大きく、ビットプレーンにおいて同じ値(‘0’又は‘1’)が連続しないため、符号化効率が悪くなる傾向にある。そこで、符号化効率を高めるために画像の種類を判断して量子化テーブルを切り替える方法や、量子化データにおいて最下位ビットを‘0’又は‘1’に置き換えて値を固定する方法が提案されている。しかし、量子化テーブルを切り替える方法の場合、隣接する画素間での値の並びが考慮されないため、網点画像においては符号化効率の向上はあまり望めない。また、最下位ビットの値を固定する方法の場合、最下位ビットの値が強制的に変更されるため、復号後の画像の画質劣化が大きくなる問題があった。   Among various images, the halftone image has a large density difference between adjacent pixels, and the same value ('0' or '1') does not continue in the bit plane, so that the encoding efficiency tends to deteriorate. Therefore, a method for switching the quantization table by determining the type of image in order to increase the coding efficiency, or a method for fixing the value by replacing the least significant bit with '0' or '1' in the quantized data has been proposed. ing. However, in the method of switching the quantization table, since the arrangement of values between adjacent pixels is not taken into consideration, it is not possible to expect much improvement in encoding efficiency in a halftone image. In addition, in the method of fixing the value of the least significant bit, the value of the least significant bit is forcibly changed, so that there is a problem that image quality degradation of the image after decoding becomes large.

そこで、網点画像のような隣接する画素間の濃度差が大きい画像においても復号後の画質劣化を抑えつつ符号化効率を向上させる第1〜第3の実施例について以下説明する。   Accordingly, first to third embodiments for improving the coding efficiency while suppressing image quality degradation after decoding even in an image having a large density difference between adjacent pixels such as a halftone image will be described below.

<第1の実施例>
本実施例では、コードブロックの注目画素の前後の各画素における対象ビット桁の各値が異なる場合、注目画素の値と注目画素の対象ビット桁の値はそのままで対象ビット桁より下位ビットを全て‘0’又は‘1’としたときの値との差の絶対値である第1誤差と、注目画素の値と注目画素の対象ビット桁の値を変更して対象ビット桁より下位ビットを全て‘0’又は‘1’にしたときの値との差の絶対値である第2誤差を算出し、第1誤差が第2誤差以下のときは注目画素の対象ビット桁の値はそのままで、第1誤差が第2誤差より大きいときは注目画素の対象ビット桁の値を変更して、復号後の画質劣化を抑えつつ符号化効率を向上させる方法について説明する。
<First embodiment>
In this embodiment, when the values of the target bit digit in each pixel before and after the target pixel of the code block are different, all the lower-order bits from the target bit digit are maintained with the target pixel value and the target bit digit value of the target pixel unchanged. The first error, which is the absolute value of the difference from the value when it is set to “0” or “1”, and the value of the target pixel and the target bit digit of the target pixel are changed, and all the lower bits than the target bit digit are changed. The second error, which is the absolute value of the difference from the value when it is set to “0” or “1”, is calculated. When the first error is less than or equal to the second error, the value of the target bit digit of the target pixel remains as it is, A method for improving the coding efficiency while suppressing the deterioration of the image quality after decoding by changing the value of the target bit digit of the target pixel when the first error is larger than the second error will be described.

図10は、注目画素の前画素、後画素における対象ビット桁の値の組み合わせを示した表である。まず、前画素、注目画素及び後画素の各対象ビット桁の値が全て‘0’又は‘1’である場合、画像圧縮復号部17は注目画素の対象ビット桁の変更は行わない。一方、前画素と後画素の対象ビット桁の値が同じで注目画素の対象ビット桁のみが異なる場合、例えば前画素=‘0’、注目画素=‘1’、後画素=‘0’である場合、画像圧縮復号部17は注目画素の対象ビット桁の値を前画素の対象ビット桁の値に変更する。つまり、上記例の場合は、注目画素=‘1’を‘0’に変更する。こうして値の連続性を持たせることで、符号化効率が向上する。   FIG. 10 is a table showing combinations of values of target bit digits in the front pixel and the rear pixel of the target pixel. First, when the values of the target bit digits of the front pixel, the target pixel, and the rear pixel are all “0” or “1”, the image compression decoding unit 17 does not change the target bit digit of the target pixel. On the other hand, when the value of the target bit digit of the front pixel and the rear pixel is the same and only the target bit digit of the target pixel is different, for example, the front pixel = '0', the target pixel = '1', and the rear pixel = '0' In this case, the image compression decoding unit 17 changes the value of the target bit digit of the target pixel to the value of the target bit digit of the previous pixel. That is, in the case of the above example, the target pixel = “1” is changed to “0”. Encoding efficiency is improved by providing value continuity in this way.

尚、画像圧縮復号部17はこのように注目画素の対象ビット桁の値を調整した後、対象ビット桁より下位ビットを全て‘0’又は‘1’としてビット丸め処理を行う。   The image compression decoding unit 17 adjusts the value of the target bit digit of the target pixel in this way, and then performs bit rounding processing with all the lower bits of the target bit digit set to ‘0’ or ‘1’.

そして、前画素と後画素の対象ビット桁の値が異なる場合、例えば前画素=‘0’、注目画素=‘0’、後画素=‘1’である場合、画像圧縮復号部17は、注目画素の対象ビット桁の値を変更しない場合と変更した場合の値を、変更前の注目画素の値と比較して、対象ビット桁を変更するか否かを決定する。以下、画像圧縮復号部17による注目画素の対象ビット桁を変更するか否かの判断方法について詳しく説明する。   If the values of the target bit digits of the previous pixel and the subsequent pixel are different, for example, if the previous pixel = '0', the target pixel = '0', and the rear pixel = '1', the image compression decoding unit 17 It is determined whether to change the target bit digit by comparing the value of the target bit digit of the pixel with or without changing the value of the target bit digit of the pixel with the value of the target pixel before the change. Hereinafter, a method for determining whether or not to change the target bit digit of the target pixel by the image compression decoding unit 17 will be described in detail.

まず、図11を用いて説明する。図11(a)は元の注目画素の値とその前後の画素の値を示した図であり、前画素=11001111B、注目画素=10001100B、後画素=11011000Bである。前画素及び後画素の対象ビット桁の値と図10の表を参照すると、前画素=‘0’、後画素=‘1’であるため、画像圧縮復号部17は注目画素の対象ビット桁の値を変更すべきか否かを判断することになる。   First, it demonstrates using FIG. FIG. 11A is a diagram showing the original value of the pixel of interest and the values of the pixels before and after the pixel. The previous pixel = 110011111B, the pixel of interest = 1001100B, and the rear pixel = 11011000B. Referring to the value of the target bit digit of the previous pixel and the subsequent pixel and the table of FIG. 10, since the previous pixel = '0' and the subsequent pixel = '1', the image compression decoding unit 17 determines the target bit digit of the target pixel. It will be determined whether or not the value should be changed.

最初に、画像圧縮復号部17は、
注目画素の対象ビット桁の値はそのままで下位ビットを全て‘0’にした値A
=10000000B=128D
注目画素の対象ビット桁を‘0’から‘1’に変更して下位ビットを全て‘0’にした値B=10010000B=144D
の各値を得る。そして、画像圧縮復号部17は、注目画素の値と値Aの差の絶対値(第1誤差)と、注目画素の値と値Bの差の絶対値(第2誤差)を算出する。つまり、元の注目画素は10001100B=140Dであるため、
第1誤差=|140−128|=12
第2誤差=|140−144|=4
となる。
First, the image compression decoding unit 17
Value A in which the target bit digit value of the target pixel remains the same and all the lower bits are set to “0”
= 10000000B = 128D
Value B = 10010000B = 144D in which the target bit digit of the target pixel is changed from “0” to “1” and all the lower bits are set to “0”
Get each value of. The image compression decoding unit 17 calculates the absolute value (first error) of the difference between the value of the target pixel and the value A and the absolute value (second error) of the difference between the value of the target pixel and the value B. That is, since the original target pixel is 10001100B = 140D,
First error = | 140−128 | = 12
2nd error = | 140−144 | = 4
It becomes.

次に、画像圧縮復号部17は第1誤差と第2誤差の差を求め、その差が0以下であれば(つまり第1誤差が第2誤差以下)注目画素の対象ビット桁の値はそのままとし、差が0より大きい値であれば(つまり第2誤差が第1誤差未満)注目画素の値を変更する。上記の場合、
第1誤差−第2誤差=12−4=8>0
であるため、画像圧縮復号部17は注目画素の対象ビット桁を変更する。つまり、画像圧縮復号部17は、注目画素の対象ビット桁をそのままで下位ビットを全て‘0’にした値と対象ビット桁を変更して下位ビットを全て‘0’にした値に対して、元の注目画素との差の絶対値をそれぞれ算出し、差の小さい方(差が同じ場合は対象ビット桁はそのまま)を採用する。
Next, the image compression decoding unit 17 obtains the difference between the first error and the second error, and if the difference is 0 or less (that is, the first error is less than the second error), the value of the target bit digit of the target pixel remains as it is. If the difference is greater than 0 (that is, the second error is less than the first error), the value of the pixel of interest is changed. In the above case,
First error-second error = 12-4 = 8> 0
Therefore, the image compression decoding unit 17 changes the target bit digit of the target pixel. That is, the image compression / decoding unit 17 changes the value of the target bit digit of the target pixel as it is and sets all the lower bits to “0” and the value of the target bit digit changed to set all the lower bits to “0”. The absolute value of the difference from the original pixel of interest is calculated, and the smaller one (if the difference is the same, the target bit digit remains unchanged) is adopted.

次に、別の例について図12を用いて説明する。図12(a)は元の注目画素の値を示した図であり、注目画素=10000111B、前画素=11001111B、後画素=11011000Bである。前画素及び後画素の対象ビット桁の値と図10の表を参照すると、前画素=‘0’、後画素=‘1’であるため、画像圧縮復号部17は注目画素の対象ビット桁の値を変更すべきか否かを判断することになる。   Next, another example will be described with reference to FIG. FIG. 12A shows the value of the original target pixel, where target pixel = 10000111B, front pixel = 110011111B, and rear pixel = 11011000B. Referring to the value of the target bit digit of the previous pixel and the subsequent pixel and the table of FIG. 10, since the previous pixel = '0' and the subsequent pixel = '1', the image compression decoding unit 17 determines the target bit digit of the target pixel. It will be determined whether or not the value should be changed.

最初に、画像圧縮復号部17は、
注目画素の対象ビット桁の値はそのままで下位ビットを全て‘0’にした値A
=10000000B=128D
注目画素の対象ビット桁を‘0’から‘1’に変更して下位ビットを全て‘0’にした値B=10010000B=144D
の各値を得る。そして、画像圧縮復号部17は、注目画素の値と値Aの差の絶対値(第1誤差)と、注目画素の値と値Bの差の絶対値(第2誤差)を算出する。つまり、元の注目画素の値は10000111B=135Dであるため、
第1誤差=|135−128|=7
第2誤差=|135−144|=9
となる。
First, the image compression decoding unit 17
Value A in which the target bit digit value of the target pixel remains the same and all the lower bits are set to “0”
= 10000000B = 128D
Value B = 10010000B = 144D in which the target bit digit of the target pixel is changed from “0” to “1” and all the lower bits are set to “0”
Get each value of. The image compression decoding unit 17 calculates the absolute value (first error) of the difference between the value of the target pixel and the value A and the absolute value (second error) of the difference between the value of the target pixel and the value B. That is, since the value of the original target pixel is 10000111B = 135D,
First error = | 135−128 | = 7
2nd error = | 135-144 | = 9
It becomes.

次に、画像圧縮復号部17は第1誤差と第2誤差の差を求め、その差が0以下であれば注目画素の対象ビット桁の値はそのままとし、差が0より大きい値であれば注目画素の値を変更する。上記の場合、
第1誤差−第2誤差=7−9=−2≦0
であるため、画像圧縮復号部17は注目画素の対象ビット桁をそのままとする。
Next, the image compression decoding unit 17 obtains the difference between the first error and the second error, and if the difference is 0 or less, the value of the target bit digit of the target pixel is left as it is, and if the difference is a value greater than 0, Change the value of the target pixel. In the above case,
First error−second error = 7−9 = −2 ≦ 0
Therefore, the image compression decoding unit 17 leaves the target bit digit of the target pixel as it is.

図13は、本実施例におけるビット丸め処理の流れを示したフローチャートである。以下「ビット丸め処理」とは、注目画素の対象ビット桁の調整(変更するか、そのままとするかを判断して実行する処理)と、対象ビット桁より下位ビットを全て‘0’又は‘1’に置き換える処理のことを言う。また、ビット丸め処理に関するプログラムは画像圧縮プログラム121に含まれており、画像圧縮復号部17は画像圧縮プログラム121に従って処理を実行する中でビット丸め処理を行う。   FIG. 13 is a flowchart showing the flow of bit rounding processing in the present embodiment. Hereinafter, “bit rounding processing” refers to adjustment of the target bit digit of the target pixel (processing executed by determining whether to change or leave it as is), and all lower bits from the target bit digit are “0” or “1”. The process of replacing with '. A program related to bit rounding processing is included in the image compression program 121, and the image compression decoding unit 17 performs bit rounding processing while executing processing according to the image compression program 121.

まず、画像圧縮復号部17は、コードブロックの注目画素、注目画素の前画素及び後画素の対象ビット桁の各値を比較する。前画素、注目画素及び後画素の対象ビット桁の各値が全て同じである場合(ステップS11;YES)、画像圧縮復号部17はステップS21へ処理を移行する。   First, the image compression decoding unit 17 compares the target pixel of the code block, the values of the target bit digits of the previous pixel and the subsequent pixel of the target pixel. When the values of the target bit digits of the front pixel, the target pixel, and the rear pixel are all the same (step S11; YES), the image compression decoding unit 17 moves the process to step S21.

前画素、注目画素及び後画素の対象ビット桁の各値が全て同じでなく(ステップS11;NO)、前画素及び後画素の対象ビット桁の各値が同じである場合、即ち、注目画素の対象ビット桁の値のみが異なる場合(ステップS12;YES)、前画素の対象ビット桁の値が‘0’であれば(ステップS13;‘0’)、画像圧縮復号部17は注目画素の対象ビット桁の値を‘1’から‘0’に変更する(ステップS14)。前画素の対象ビット桁の値が‘1’であれば(ステップS13;‘1’)、画像圧縮復号部17は注目画素の対象ビット桁の値を‘0’から‘1’に変更する(ステップS14)。そして画像圧縮復号部17はステップS21へ処理を移行する。   When the values of the target bit digits of the front pixel, the target pixel, and the rear pixel are not all the same (step S11; NO), and the values of the target bit digits of the front pixel and the rear pixel are the same, that is, When only the value of the target bit digit is different (step S12; YES), if the value of the target bit digit of the previous pixel is “0” (step S13; “0”), the image compression decoding unit 17 sets the target pixel target. The bit digit value is changed from '1' to '0' (step S14). If the value of the target bit digit of the previous pixel is “1” (step S13; “1”), the image compression decoding unit 17 changes the value of the target bit digit of the target pixel from “0” to “1” ( Step S14). Then, the image compression decoding unit 17 shifts the process to step S21.

一方、前画素、注目画素及び後画素の対象ビット桁の各値が全て同じでなく(ステップS11;NO)、前画素及び後画素の対象ビット桁の各値が異なる場合(ステップS12;NO)、画像圧縮復号部17は、注目画素の対象ビット桁の値はそのままで下位ビットを全て‘0’又は‘1’にした値Aと注目画素の対象ビット桁の値を変更して下位ビットを全て‘0’又は‘1’にした値Bを生成する(ステップS16)。続いて、画像圧縮復号部17は、注目画素と値Aの差の絶対値である第1誤差と、注目画素と値Bの差の絶対値である第2誤差を算出する(ステップS17)。   On the other hand, the values of the target bit digits of the previous pixel, the target pixel, and the rear pixel are not all the same (step S11; NO), and the values of the target bit digits of the front pixel and the rear pixel are different (step S12; NO). The image compression decoding unit 17 changes the value A of the target bit digit of the target pixel by changing the value A in which all the lower bits are set to “0” or “1” and the value of the target bit digit of the target pixel without changing the value of the target bit digit of the target pixel. A value B that is all set to “0” or “1” is generated (step S16). Subsequently, the image compression decoding unit 17 calculates a first error that is an absolute value of the difference between the target pixel and the value A, and a second error that is an absolute value of the difference between the target pixel and the value B (step S17).

そして、画像圧縮復号部17は、第1誤差と第2誤差の差を算出する(ステップS18)。その差が0以下である場合(ステップS18;YES)、画像圧縮復号部17は注目画素の対象ビット桁の値をそのままとする(ステップS19)。差が0より大きい場合(ステップS18;NO)、画像圧縮復号部17は注目画素の対象ビット桁の値を変更する(ステップS20)。   Then, the image compression decoding unit 17 calculates the difference between the first error and the second error (step S18). When the difference is 0 or less (step S18; YES), the image compression decoding unit 17 keeps the value of the target bit digit of the target pixel as it is (step S19). When the difference is larger than 0 (step S18; NO), the image compression decoding unit 17 changes the value of the target bit digit of the target pixel (step S20).

次に、画像圧縮復号部17は、注目画素の対象ビット桁より下位のビットを全て‘0’又は‘1’に変更する(ステップS21)。ここで、下位ビットを全て‘0’にする場合、画像圧縮復号部17はステップS16において下位ビットを全て‘0’にしたときの値A及び値Bを生成する。また、下位ビットを全て‘1’にする場合、画像圧縮復号部17はステップS16において下位ビットを全て‘1’にしたときの値A及び値Bを生成する。   Next, the image compression decoding unit 17 changes all the bits lower than the target bit digit of the target pixel to “0” or “1” (step S21). When all the lower bits are set to “0”, the image compression decoding unit 17 generates a value A and a value B when all the lower bits are set to “0” in step S16. When all the lower bits are set to ‘1’, the image compression decoding unit 17 generates a value A and a value B when all the lower bits are set to ‘1’ in step S <b> 16.

そして、コードブロックの全ての画素についてビット丸め処理を行っていない場合(ステップS22;NO)、画像圧縮復号部17は注目画素を移動させて(ステップS23)、ステップS11へ処理を移行する。コードブロックの全ての画素のビット丸め処理が終了した場合(ステップS22;NO)、画像圧縮復号部17は処理を終了する。そして、画像圧縮復号部17は、ビット丸め処理終了後に算術符号化を行う。   If the bit rounding process is not performed on all the pixels of the code block (step S22; NO), the image compression decoding unit 17 moves the target pixel (step S23) and shifts the process to step S11. When the bit rounding process for all the pixels of the code block is completed (step S22; NO), the image compression decoding unit 17 ends the process. Then, the image compression decoding unit 17 performs arithmetic coding after the bit rounding process is completed.

次に、圧縮データの復号処理の流れについて説明する。まず画像圧縮復号部17は圧縮データに対して逆エントロピー符号化を行い、量子化データを取得する。続いて画像圧縮復号部17は量子化データに対して逆量子化を行い、離散ウェーブレット変換された係数データを取得する。そして画像圧縮復号部17は係数データに対して逆離散ウェーブレット変換を行い、タイル画像に復元し、タイル画像を組み合わせた画像の表色系のコンポーネント変換を行って復号データを取得し、復号処理を終了する。   Next, the flow of the compressed data decoding process will be described. First, the image compression decoding unit 17 performs inverse entropy coding on the compressed data to obtain quantized data. Subsequently, the image compression decoding unit 17 performs inverse quantization on the quantized data, and obtains coefficient data subjected to discrete wavelet transform. Then, the image compression decoding unit 17 performs inverse discrete wavelet transform on the coefficient data, restores the tile image, performs colorimetric component conversion of the image obtained by combining the tile images, acquires the decoded data, and performs the decoding process. finish.

以上、説明したように、画像圧縮復号部17は、注目画素の対象ビット桁をそのままで下位ビットを全て‘0’又は‘1’にした値Aと、対象ビット桁を変更して下位ビットを全て‘0’又は‘1’にした値Bを算出して、注目画素の値と値Aの差の絶対値(第1誤差)と注目画素の値と値Bの差の絶対値(第2誤差)をそれぞれ算出し、第1誤差が第2誤差以下である場合は注目画素の対象ビット桁の値はそのままとし、第1誤差が第2誤差より大きい場合は注目画素の対象ビット桁の値を変更することにより、注目画素のビット変更前後の値変化を最小限に抑えつつ(復号後の画質劣化を抑えつつ)、網点画像のような隣接する画素間の濃度差が大きい画像においても符号化効率を向上させることができる。   As described above, the image compression decoding unit 17 changes the target bit digit of the target pixel without changing the target bit digit as it is and sets the lower bit to “0” or “1” and the lower bit by changing the target bit digit. A value B that is all set to “0” or “1” is calculated, and the absolute value (first error) of the difference between the value of the target pixel and the value A and the absolute value of the difference between the value of the target pixel and the value B (second) When the first error is less than or equal to the second error, the value of the target bit digit of the target pixel is left as it is, and when the first error is greater than the second error, the value of the target bit digit of the target pixel In an image with a large density difference between adjacent pixels, such as a halftone image, while minimizing the value change before and after the bit change of the pixel of interest (while suppressing image quality degradation after decoding) Encoding efficiency can be improved.

<第2の実施例>
本実施例では、コードブロックの注目画素の前後の各画素における対象ビット桁の各値が異なり、注目画素以前の各画素の対象ビット桁において所定数以上同じ値が連続している場合について説明する。
<Second embodiment>
In the present embodiment, a case will be described in which each value of the target bit digit in each pixel before and after the target pixel of the code block is different, and the same value continues for a predetermined number or more in the target bit digit of each pixel before the target pixel. .

最初に図14を用いて説明する。図14(a)は注目画素とその周辺画素の値を示した図であり、前画素=11001111B、注目画素=10000111B、後画素=11011000Bである。前画素及び後画素の対象ビット桁の値と図10の表を参照すると、前画素=‘0’、後画素=‘1’であるため、画像圧縮復号部17は注目画素の対象ビット桁の値を変更すべきか否かを判断することになる。   First, a description will be given with reference to FIG. FIG. 14A is a diagram illustrating the values of the target pixel and its surrounding pixels, where the previous pixel = 110011111B, the target pixel = 100000111B, and the rear pixel = 11011000B. Referring to the value of the target bit digit of the previous pixel and the subsequent pixel and the table of FIG. 10, since the previous pixel = '0' and the subsequent pixel = '1', the image compression decoding unit 17 determines the target bit digit of the target pixel. It will be determined whether or not the value should be changed.

次に、画像圧縮復号部17は、
注目画素の対象ビット桁の値はそのままで下位ビットを全て‘0’にした値A
=10000000B=128D
注目画素の対象ビット桁を‘0’から‘1’に変更して下位ビットを全て‘0’にした値B=10010000B=144D
の各値を得る。そして、画像圧縮復号部17は、注目画素の値と値Aの差の絶対値(第1誤差)と、注目画素の値と値Bの差の絶対値(第2誤差)を算出する。つまり、注目画素の元の値は10000111B=135Dであるため、
第1誤差=|135−128|=7
第2誤差=|135−144|=9
となる。
Next, the image compression decoding unit 17
Value A in which the target bit digit value of the target pixel remains the same and all the lower bits are set to “0”
= 10000000B = 128D
Value B = 10010000B = 144D in which the target bit digit of the target pixel is changed from “0” to “1” and all the lower bits are set to “0”
Get each value of. The image compression decoding unit 17 calculates the absolute value (first error) of the difference between the value of the target pixel and the value A and the absolute value (second error) of the difference between the value of the target pixel and the value B. That is, since the original value of the target pixel is 10000111B = 135D,
First error = | 135−128 | = 7
2nd error = | 135-144 | = 9
It becomes.

続いて、画像圧縮復号部17は注目画素以前の画素の対象ビット桁において同じ値が所定数(例えば5つ以上)連続しているか否かを判別する。この同じ値の連続数は適宜設定可能とする。図14(a)の場合、注目画素以前の画素の対象ビット桁において‘0’が5つ連続している(図14(a)の網掛け部分)。従って、画像圧縮復号部17は第1誤差と第2誤差の差を求める。そして、画像圧縮復号部17は第1誤差と第2誤差の差が設定範囲内であるか否かを判別して、第1誤差と第2誤差の差が設定範囲内であるときは注目画素の対象ビット桁の値はそのままとし、第1誤差と第2誤差の差が設定範囲外のときは注目画素の対象ビット桁の値を第1の実施例に記載した方法に従って調整する。例えば、設定範囲を−6≦x≦+6(xは第1誤差と第2誤差の差)と設定したとき、上記の場合、
第1誤差−第2誤差=7−9=−2
となり、第1誤差と第2誤差の差は設定範囲内である。従って、画像圧縮復号部17は注目画素の対象ビット桁の値をそのままとする。図14(b)は、ビット丸め処理後の注目画素とその周辺画素の値を示した図である。
Subsequently, the image compression decoding unit 17 determines whether or not the same value continues in a predetermined number (for example, five or more) in the target bit digit of the pixel before the target pixel. The continuous number of the same value can be set as appropriate. In the case of FIG. 14A, five “0” s are continued in the target bit digit of the pixel before the target pixel (shaded portion in FIG. 14A). Accordingly, the image compression decoding unit 17 obtains the difference between the first error and the second error. Then, the image compression decoding unit 17 determines whether or not the difference between the first error and the second error is within the set range, and when the difference between the first error and the second error is within the set range, the target pixel The value of the target bit digit is kept as it is, and when the difference between the first error and the second error is outside the setting range, the value of the target bit digit of the target pixel is adjusted according to the method described in the first embodiment. For example, when the setting range is set to −6 ≦ x ≦ + 6 (x is the difference between the first error and the second error),
First error-second error = 7-9 = -2
Thus, the difference between the first error and the second error is within the set range. Therefore, the image compression decoding unit 17 keeps the value of the target bit digit of the target pixel as it is. FIG. 14B is a diagram illustrating values of the pixel of interest and the surrounding pixels after the bit rounding process.

次に、別の例について図15を用いて説明する。図15(a)は元の注目画素とその周辺画素の値を示した図であり、前画素=11001111B、注目画素=10001100B、後画素=11011000Bである。   Next, another example will be described with reference to FIG. FIG. 15A is a diagram showing the values of the original target pixel and its peripheral pixels, where front pixel = 1100111B, target pixel = 1001100B, and rear pixel = 11011000B.

最初に、画像圧縮復号部17は、
注目画素の対象ビット桁の値はそのままで下位ビットを全て‘0’にした値A
=10000000B=128D
注目画素の対象ビット桁を‘0’から‘1’に変更して下位ビットを全て‘0’にした値B=10010000B=144D
の各値を得る。そして、画像圧縮復号部17は、注目画素の値と値Aの差の絶対値(第1誤差)と、注目画素の値と値Bの差の絶対値(第2誤差)を算出する。つまり、注目画素=10001100B=140Dであるため、
第1誤差=|140−128|=12
第2誤差=|140−144|=4
となる。
First, the image compression decoding unit 17
Value A in which the target bit digit value of the target pixel remains the same and all the lower bits are set to “0”
= 10000000B = 128D
Value B = 10010000B = 144D in which the target bit digit of the target pixel is changed from “0” to “1” and all the lower bits are set to “0”
Get each value of. The image compression decoding unit 17 calculates the absolute value (first error) of the difference between the value of the target pixel and the value A and the absolute value (second error) of the difference between the value of the target pixel and the value B. That is, since the target pixel = 1001100B = 140D,
First error = | 140−128 | = 12
2nd error = | 140−144 | = 4
It becomes.

続いて、画像圧縮復号部17は注目画素以前の画素の対象ビット桁において同じ値が5つ以上連続しているか否かを判別する。図15(a)の場合、注目画素以前の画素の対象ビット桁において‘0’が5つ連続している(図15(a)の網掛け部分)。従って、画像圧縮復号部17は第1誤差と第2誤差の差を求める。   Subsequently, the image compression decoding unit 17 determines whether five or more of the same values are consecutive in the target bit digit of the pixel before the target pixel. In the case of FIG. 15A, five “0” s are continued in the target bit digit of the pixel before the target pixel (the shaded portion in FIG. 15A). Accordingly, the image compression decoding unit 17 obtains the difference between the first error and the second error.

第1誤差−第2誤差=12−4=8
となり、第1誤差と第2誤差の差は設定範囲外であるため、画像圧縮復号部17は第1の実施例に記載した方法に従って注目画素の対象ビット桁の値を変更するか否かを判断する。上記の場合、第1誤差と第2誤差の差が+8であるため、第1誤差より第2誤差が小さい。従って、画像圧縮復号部17は対象ビット桁を変更する。図15(b)は、ビット丸め処理後の注目画素とその周辺画素の値を示した図である。
First error-second error = 12-4 = 8
Since the difference between the first error and the second error is outside the setting range, the image compression decoding unit 17 determines whether or not to change the value of the target bit digit of the target pixel according to the method described in the first embodiment. to decide. In the above case, since the difference between the first error and the second error is +8, the second error is smaller than the first error. Therefore, the image compression decoding unit 17 changes the target bit digit. FIG. 15B is a diagram illustrating values of the pixel of interest and the surrounding pixels after the bit rounding process.

更に、別の例について図16を用いて説明する。図16(a)は元の注目画素とその周辺画素の値を示した図であり、前画素=11001111B、注目画素=10000011B、後画素=11011000Bである。   Furthermore, another example will be described with reference to FIG. FIG. 16A is a diagram showing the values of the original target pixel and its surrounding pixels, where front pixel = 1100111B, target pixel = 10000011B, and rear pixel = 11011000B.

最初に、画像圧縮復号部17は、
注目画素の対象ビット桁の値はそのままで下位ビットを全て‘0’にした値A
=10000000B=128D
注目画素の対象ビット桁を‘0’から‘1’に変更して下位ビットを全て‘0’にした値B=10010000B=144D
の各値を得る。そして、画像圧縮復号部17は、注目画素の値と値Aの差の絶対値(第1誤差)と、注目画素の値と値Bの差の絶対値(第2誤差)を算出する。つまり、注目画素=10000011B=131Dであるため、
第1誤差=|131−128|=3
第2誤差=|131−144|=13
となる。
First, the image compression decoding unit 17
Value A in which the target bit digit value of the target pixel remains the same and all the lower bits are set to “0”
= 10000000B = 128D
Value B = 10010000B = 144D in which the target bit digit of the target pixel is changed from “0” to “1” and all the lower bits are set to “0”
Get each value of. The image compression decoding unit 17 calculates the absolute value (first error) of the difference between the value of the target pixel and the value A and the absolute value (second error) of the difference between the value of the target pixel and the value B. That is, since the target pixel = 10000011B = 131D,
First error = | 131−128 | = 3
2nd error = | 131-144 | = 13
It becomes.

次に、画像圧縮復号部17は注目画素以前の画素の対象ビット桁において同じ値が5つ以上連続しているか否かを判別する。図16(a)の場合、注目画素以前の画素の対象ビット桁において‘0’が5つ連続している(図16(a)の網掛け部分)。従って、画像圧縮復号部17は第1誤差と第2誤差の差を求める。   Next, the image compression decoding unit 17 determines whether five or more of the same values are consecutive in the target bit digit of the pixel before the target pixel. In the case of FIG. 16A, five “0” s are continued in the target bit digit of the pixel before the target pixel (shaded portion in FIG. 16A). Accordingly, the image compression decoding unit 17 obtains the difference between the first error and the second error.

第1誤差−第2誤差=3−13=−10
となり、第1誤差と第2誤差の差は設定範囲外であるため、画像圧縮復号部17は第1の実施例に記載した方法に従って注目画素の対象ビット桁の値を変更するか否かを判断する。上記の場合、第1誤差と第2誤差の差が−10であるため、第2誤差より第1誤差が小さい。従って、画像圧縮復号部17は対象ビット桁をそのままとする。図16(b)は、ビット丸め処理後の注目画素とその周辺画素の値を示した図である。
First error-second error = 3-13 = -10
Since the difference between the first error and the second error is outside the setting range, the image compression decoding unit 17 determines whether or not to change the value of the target bit digit of the target pixel according to the method described in the first embodiment. to decide. In the above case, since the difference between the first error and the second error is −10, the first error is smaller than the second error. Therefore, the image compression decoding unit 17 leaves the target bit digit as it is. FIG. 16B is a diagram illustrating values of the pixel of interest and the surrounding pixels after the bit rounding process.

このように、本実施例では注目画素以前の画素の対象ビット桁の値の連続性を優先して対象ビット桁の値の調整をするため、第1誤差より第2誤差の方が小さくても(つまり、注目画素の対象ビット桁を変更した方が注目画素の値の変化量が小さくても)第1誤差と第2誤差の差が設定範囲内であれば注目画素の対象ビット桁の値をそのままとする。第1誤差と第2誤差の差が設定範囲外であれば、復号後の画質保持を優先するために、注目画素の対象ビット桁の値を第1の実施例に従って調整する。   In this way, in this embodiment, the value of the target bit digit is adjusted by giving priority to the continuity of the value of the target bit digit of the pixel before the target pixel, so even if the second error is smaller than the first error. In other words, if the difference between the first error and the second error is within the set range, the value of the target bit digit of the pixel of interest As it is. If the difference between the first error and the second error is outside the setting range, the value of the target bit digit of the target pixel is adjusted according to the first embodiment in order to prioritize the image quality retention after decoding.

図17及び18は、本実施例における注目画素のビット丸め処理の流れを示したフローチャートである。まず、画像圧縮復号部17は、コードブロックの注目画素、注目画素の前画素及び後画素の対象ビット桁の各値を比較する。注目画素、注目画素の前画素及び後画素の対象ビット桁の各値が全て同じである場合(ステップS11;YES)、画像圧縮復号部17はステップS21へ処理を移行する。   17 and 18 are flowcharts showing the flow of the bit rounding process for the pixel of interest in this embodiment. First, the image compression decoding unit 17 compares the target pixel of the code block, the values of the target bit digits of the previous pixel and the subsequent pixel of the target pixel. If the values of the target bit digits of the target pixel, the previous pixel and the rear pixel of the target pixel are all the same (step S11; YES), the image compression decoding unit 17 proceeds to step S21.

前画素、注目画素及び後画素の対象ビット桁の各値が全て同じでなく(ステップS11;NO)、前画素及び後画素の対象ビット桁の各値が同じである場合、即ち、注目画素の対象ビット桁の値のみが異なる場合(ステップS12;YES)、前画素の対象ビット桁の値が‘0’であれば(ステップS13;‘0’)、画像圧縮復号部17は注目画素の対象ビット桁の値を‘1’から‘0’に変更する(ステップS14)。前画素の対象ビット桁の値が‘1’であれば(ステップS13;‘1’)、画像圧縮復号部17は注目画素の対象ビット桁の値を‘0’から‘1’に変更する(ステップS14)。そして画像圧縮復号部17はステップS21へ処理を移行する。   When the values of the target bit digits of the front pixel, the target pixel, and the rear pixel are not all the same (step S11; NO), and the values of the target bit digits of the front pixel and the rear pixel are the same, that is, When only the value of the target bit digit is different (step S12; YES), if the value of the target bit digit of the previous pixel is “0” (step S13; “0”), the image compression decoding unit 17 sets the target pixel target. The bit digit value is changed from '1' to '0' (step S14). If the value of the target bit digit of the previous pixel is “1” (step S13; “1”), the image compression decoding unit 17 changes the value of the target bit digit of the target pixel from “0” to “1” ( Step S14). Then, the image compression decoding unit 17 shifts the process to step S21.

一方、前画素、注目画素及び後画素の対象ビット桁の各値が全て同じでなく(ステップS11;NO)、前画素及び後画素の対象ビット桁の各値が異なる場合(ステップS12;NO)、画像圧縮復号部17は、注目画素の対象ビット桁の値はそのままで下位ビットを全て‘0’又は‘1’にした値Aと注目画素の対象ビット桁の値を変更して下位ビットを全て‘0’又は‘1’にした値Bを生成する(ステップS16)。続いて、画像圧縮復号部17は、注目画素と値Aの差の絶対値である第1誤差と、注目画素と値Bの差の絶対値である第2誤差を算出する(ステップS17)。   On the other hand, the values of the target bit digits of the previous pixel, the target pixel, and the rear pixel are not all the same (step S11; NO), and the values of the target bit digits of the front pixel and the rear pixel are different (step S12; NO). The image compression decoding unit 17 changes the value A of the target bit digit of the target pixel by changing the value A in which all the lower bits are set to “0” or “1” and the value of the target bit digit of the target pixel without changing the value of the target bit digit of the target pixel. A value B that is all set to “0” or “1” is generated (step S16). Subsequently, the image compression decoding unit 17 calculates a first error that is an absolute value of the difference between the target pixel and the value A, and a second error that is an absolute value of the difference between the target pixel and the value B (step S17).

そして、画像圧縮復号部17は、注目画素以前の画素の対象ビット桁において、同じ値が所定数以上続いているか否かを判断する(ステップS31)。同じ値が所定数以上続いている場合(ステップS31;YES)、画像圧縮復号部17は第1誤差と第2誤差の差を算出し、その差が設定範囲内であるか否か判断する(ステップS32)。第1誤差と第2誤差の差が設定範囲内である場合(ステップS32;YES)、画像圧縮復号部17は注目画素の対象ビット桁の値をそのままとする(ステップS19)。第1誤差と第2誤差の差が設定範囲外であって(ステップS32;NO)、0以下である場合(ステップS18;YES)、画像圧縮復号部17は注目画素の対象ビット桁の値をそのままとする(ステップS19)。第1誤差と第2誤差の差が設定範囲外であって(ステップS32;NO)、0より大きい場合(ステップS18;NO)、画像圧縮復号部17は注目画素の対象ビット桁の値を変更する(ステップS20)。   Then, the image compression decoding unit 17 determines whether or not the same value continues for a predetermined number or more in the target bit digit of the pixel before the target pixel (step S31). If the same value continues for a predetermined number or more (step S31; YES), the image compression decoding unit 17 calculates the difference between the first error and the second error, and determines whether or not the difference is within the set range ( Step S32). When the difference between the first error and the second error is within the set range (step S32; YES), the image compression decoding unit 17 keeps the value of the target bit digit of the target pixel as it is (step S19). When the difference between the first error and the second error is outside the setting range (step S32; NO) and is equal to or less than 0 (step S18; YES), the image compression decoding unit 17 sets the value of the target bit digit of the target pixel. Leave as it is (step S19). If the difference between the first error and the second error is outside the setting range (step S32; NO) and greater than 0 (step S18; NO), the image compression decoding unit 17 changes the value of the target bit digit of the target pixel. (Step S20).

また、注目画素以前の画素の対象ビット桁において同じ値が所定数以上続いていない場合(ステップS31;NO)、画像圧縮復号部17はステップS18へ処理を移行する。   If the same value does not continue in the target bit digit of the pixel before the target pixel for a predetermined number or more (step S31; NO), the image compression decoding unit 17 shifts the processing to step S18.

続いて、画像圧縮復号部17は、注目画素の対象ビット桁より下位のビットを全て‘0’又は‘1’に変更する(ステップS21)。ここで、下位ビットを全て‘0’にする場合、画像圧縮復号部17はステップS16において下位ビットを全て‘0’にしたときの値A及び値Bを生成する。また、下位ビットを全て‘1’にする場合、画像圧縮復号部17はステップS16において下位ビットを全て‘1’にしたときの値A及び値Bを生成する。   Subsequently, the image compression decoding unit 17 changes all the bits lower than the target bit digit of the target pixel to “0” or “1” (step S21). When all the lower bits are set to “0”, the image compression decoding unit 17 generates a value A and a value B when all the lower bits are set to “0” in step S16. When all the lower bits are set to ‘1’, the image compression decoding unit 17 generates a value A and a value B when all the lower bits are set to ‘1’ in step S <b> 16.

そして、コードブロックの全ての画素についてビット丸め処理を行っていない場合(ステップS22;NO)、画像圧縮復号部17は注目画素を移動させて(ステップS23)、ステップS11へ処理を移行する。コードブロックの全ての画素のビット丸め処理が終了した場合(ステップS22;NO)、画像圧縮復号部17は処理を終了する。そして、画像圧縮復号部17は、ビット丸め処理の終了後に算術符号化を行う。   If the bit rounding process is not performed on all the pixels of the code block (step S22; NO), the image compression decoding unit 17 moves the target pixel (step S23) and shifts the process to step S11. When the bit rounding process for all the pixels of the code block is completed (step S22; NO), the image compression decoding unit 17 ends the process. Then, the image compression decoding unit 17 performs arithmetic coding after the bit rounding process is completed.

以上、説明したように、画像圧縮復号部17は、注目画素の対象ビット桁をそのままで下位ビットを全て‘0’又は‘1’にした値Aと、対象ビット桁を変更して下位ビットを全て‘0’又は‘1’にした値Bを算出して、注目画素の値と値Aの差の絶対値(第1誤差)と注目画素の値と値Bの差の絶対値(第2誤差)をそれぞれ算出し、注目画素以前の画素の対象ビット桁において同じ値が所定数以上続いており、第1誤差と第2誤差の差が設定範囲内である場合は注目画素の対象ビット桁をそのままとすることで、値の連続性を優先させて符号化効率を向上させることができる。一方、第1誤差と第2誤差の差が設定範囲外のときは注目画素の対象ビット桁の値を変更することによって、注目画素のビット変更前後の値変化を最小限に抑えつつ(復号後の画質劣化を抑えつつ)、網点画像のような隣接する画素間の濃度差が大きい画像においても符号化効率を向上させることができる。   As described above, the image compression decoding unit 17 changes the target bit digit of the target pixel without changing the target bit digit as it is and sets the lower bit to “0” or “1” and the lower bit by changing the target bit digit. A value B that is all set to “0” or “1” is calculated, and the absolute value (first error) of the difference between the value of the target pixel and the value A and the absolute value of the difference between the value of the target pixel and the value B (second) Error) and the same value continues in the target bit digit of the pixel before the target pixel, and the difference between the first error and the second error is within the setting range, the target bit digit of the target pixel By leaving the value as it is, it is possible to prioritize the continuity of values and improve the encoding efficiency. On the other hand, when the difference between the first error and the second error is outside the setting range, the value of the target bit digit of the target pixel is changed to minimize the value change before and after the bit change of the target pixel (after decoding). Encoding efficiency can be improved even in an image having a large density difference between adjacent pixels, such as a halftone image.

<第3の実施例>
本実施例では、コードブロックの注目画素の前後の各画素における対象ビット桁の各値が異なり、ビット丸め処理において下位ビットを全て‘0’にする場合、注目画素の対象ビット桁より下位ビットの値が閾値以上のときは注目画素の対象ビット桁の値を‘1’とし、閾値より小さいときは注目画素の対象ビット桁の値をそのままとし、下位ビットを全て‘1’にする場合、注目画素の対象ビット桁より下位ビットの値が閾値以下のときは注目画素の対象ビット桁の値を‘0’とし、閾値より大きいときは注目画素の対象ビット桁の値をそのままとする場合について説明する。
<Third embodiment>
In this embodiment, when the values of the target bit digit in each pixel before and after the target pixel of the code block are different and all the lower bits are set to “0” in the bit rounding process, the lower bit than the target bit digit of the target pixel. When the value is greater than or equal to the threshold value, the value of the target bit digit of the target pixel is set to “1”. When the value is smaller than the threshold value, the target bit digit value of the target pixel is left as it is and all the lower bits are set to “1”. The case where the value of the target bit digit of the target pixel is set to “0” when the value of the lower bit than the target bit digit of the pixel is equal to or smaller than the threshold value, and the value of the target bit digit of the target pixel is left as it is when the value is larger than the threshold value. To do.

まず、画像圧縮復号部17は注目画素と前画素及び後画素の対象ビット桁の各値を比較して、図10に示した表に従って、注目画素の対象ビット桁の値を調整する。このうち、前画素と後画素の対象ビット桁の値が異なる場合、画像圧縮復号部17は、注目画素の対象ビット桁より下位ビットの値に応じて注目画素の対象ビット桁の値を調整する。   First, the image compression decoding unit 17 compares each value of the target bit digit of the target pixel, the previous pixel, and the subsequent pixel, and adjusts the value of the target bit digit of the target pixel according to the table shown in FIG. Among these, when the value of the target bit digit of the previous pixel and the subsequent pixel is different, the image compression decoding unit 17 adjusts the value of the target bit digit of the target pixel according to the value of the lower bit than the target bit digit of the target pixel. .

図19を用いて説明する。図19(a)は注目画素とその周辺画素の値を示した図であり、前画素=11001111B、注目画素=10000111B、後画素=11011000Bである。まず、画像圧縮復号部17は注目画素の対象ビット桁の下位ビットの値を取得する。図19(a)の場合、下位ビット=0111B=7Dである。そして例えば閾値=6とした場合、下位ビットの値は閾値以上であるため、画像圧縮復号部17は注目画素の対象ビット桁の値を‘1’とする。   This will be described with reference to FIG. FIG. 19A is a diagram illustrating the values of the target pixel and its surrounding pixels, where front pixel = 110011111B, target pixel = 10000111B, and rear pixel = 11011000B. First, the image compression decoding unit 17 acquires the value of the lower bit of the target bit digit of the target pixel. In the case of FIG. 19A, lower bits = 01111B = 7D. For example, when threshold = 6, since the value of the lower bit is equal to or greater than the threshold, the image compression decoding unit 17 sets the value of the target bit digit of the target pixel to “1”.

別の例について、図20を用いて説明する。図20(a)の場合、下位ビット=0100B=4Dである。下位ビットの値は閾値=6より小さいため、画像圧縮復号部17は注目画素の対象ビット桁の値をそのまま(‘0’のまま)とする。   Another example will be described with reference to FIG. In the case of FIG. 20A, lower bits = 0100B = 4D. Since the value of the lower bit is smaller than the threshold value = 6, the image compression decoding unit 17 keeps the value of the target bit digit of the target pixel as it is (“0”).

つまり、ビット丸め処理において下位ビットを全て‘0’にする場合、下位ビットの値が閾値以上であれば対象ビット桁の値を‘1’とすることで、対象ビット桁の元値が‘0’である場合は下位ビットの値の切り上げが行われることになり、閾値より小さい場合は対象ビット桁の値をそのままとして下位ビットが全て‘0’となることで、下位ビットの値は切り捨てられることとなる。   That is, when all the lower bits are set to “0” in the bit rounding process, if the value of the lower bits is equal to or greater than the threshold value, the value of the target bit digit is set to “1”, so that the original value of the target bit digit is “0”. If it is', the value of the lower bit is rounded up. If it is less than the threshold, the value of the target bit digit is left as it is and all the lower bits become '0', so the lower bit value is rounded down. It will be.

逆に、ビット丸め処理において下位ビットを全て‘1’にする場合、下位ビットの値が閾値以下であれば対象ビット桁の値を‘0’とすることで、対象ビット桁の元値が‘1’の場合は、下位ビットを全て‘1’となる代わりに対象ビット桁の値が‘1’から‘0’に切り捨てられることになる。一方、下位ビットの値が閾値より大きい場合は対象ビット桁をそのままとして下位ビットを全て‘1’とする。   Conversely, when all the lower bits are set to “1” in the bit rounding process, if the value of the lower bit is equal to or less than the threshold, the value of the target bit digit is set to “0”, so that the original value of the target bit digit is “0”. In the case of “1”, the value of the target bit digit is rounded down from “1” to “0” instead of all the lower bits being “1”. On the other hand, when the value of the lower bit is larger than the threshold, all the lower bits are set to “1” with the target bit digit as it is.

図21は、本実施例における注目画素のビット丸め処理の流れを示したフローチャートである。まず、画像圧縮復号部17は、コードブロックの注目画素、注目画素の前画素及び後画素の対象ビット桁の各値を比較する。注目画素、注目画素の前画素及び後画素の対象ビット桁の各値が全て同じである場合(ステップS11;YES)、画像圧縮復号部17はステップS21へ処理を移行する。   FIG. 21 is a flowchart showing the flow of the bit rounding process for the pixel of interest in this embodiment. First, the image compression decoding unit 17 compares the target pixel of the code block, the values of the target bit digits of the previous pixel and the subsequent pixel of the target pixel. If the values of the target bit digits of the target pixel, the previous pixel and the rear pixel of the target pixel are all the same (step S11; YES), the image compression decoding unit 17 proceeds to step S21.

前画素、注目画素及び後画素の対象ビット桁の各値が全て同じでなく(ステップS11;NO)、前画素及び後画素の対象ビット桁の各値が同じである場合、即ち、注目画素の対象ビット桁の値のみが異なる場合(ステップS12;YES)、前画素の対象ビット桁の値が‘0’であれば(ステップS13;‘0’)、画像圧縮復号部17は注目画素の対象ビット桁の値を‘1’から‘0’に変更する(ステップS14)。前画素の対象ビット桁の値が‘1’であれば(ステップS13;‘1’)、画像圧縮復号部17は注目画素の対象ビット桁の値を‘0’から‘1’に変更する(ステップS14)。そして画像圧縮復号部17はステップS21へ処理を移行する。   When the values of the target bit digits of the front pixel, the target pixel, and the rear pixel are not all the same (step S11; NO), and the values of the target bit digits of the front pixel and the rear pixel are the same, that is, When only the value of the target bit digit is different (step S12; YES), if the value of the target bit digit of the previous pixel is “0” (step S13; “0”), the image compression decoding unit 17 sets the target pixel target. The bit digit value is changed from '1' to '0' (step S14). If the value of the target bit digit of the previous pixel is “1” (step S13; “1”), the image compression decoding unit 17 changes the value of the target bit digit of the target pixel from “0” to “1” ( Step S14). Then, the image compression decoding unit 17 shifts the process to step S21.

一方、前画素、注目画素及び後画素の対象ビット桁の各値が全て同じでなく(ステップS11;NO)、前画素及び後画素の対象ビット桁の各値が異なる場合(ステップS12;NO)、画像圧縮復号部17は、注目画素の対象ビット桁より下位ビットの値を取得する(ステップS41)。そしてステップS21において下位ビットを全て‘0’にする場合であって(ステップS42;YES)、下位ビットの値が閾値以上である場合(ステップS43;YES)、画像圧縮復号部17は注目画素の対象ビット桁の値を‘1’にする(ステップS44)。一方、ステップS21において下位ビットを全て‘0’にする場合であって(ステップS42;YES)、下位ビットの値が閾値より小さい場合は(ステップS43;NO)、画像圧縮復号部17は注目画素の対象ビット桁の値をそのままとする(ステップS44)。   On the other hand, the values of the target bit digits of the previous pixel, the target pixel, and the rear pixel are not all the same (step S11; NO), and the values of the target bit digits of the front pixel and the rear pixel are different (step S12; NO). The image compression decoding unit 17 acquires a value of lower bits than the target bit digit of the target pixel (step S41). If all the lower bits are set to “0” in step S21 (step S42; YES), and if the value of the lower bits is equal to or greater than the threshold value (step S43; YES), the image compression decoding unit 17 determines the pixel of interest. The value of the target bit digit is set to “1” (step S44). On the other hand, in the case where all the lower bits are set to “0” in step S21 (step S42; YES), and the value of the lower bits is smaller than the threshold value (step S43; NO), the image compression decoding unit 17 determines the target pixel. The value of the target bit digit is left as it is (step S44).

逆に、ステップS21において下位ビットを全て‘1’にする場合であって(ステップS42;NO)、下位ビットの値が閾値以下である場合(ステップS46;YES)、画像圧縮復号部17は注目画素の対象ビット桁の値を‘0’にする(ステップS47)。一方、ステップS21において下位ビットを全て‘0’にする場合であって(ステップS42;NO)、下位ビットの値が閾値より大きい場合は(ステップS46;NO)、画像圧縮復号部17は注目画素の対象ビット桁の値をそのままとする(ステップS48)。   Conversely, if all the lower bits are set to “1” in step S21 (step S42; NO), and the value of the lower bits is equal to or less than the threshold value (step S46; YES), the image compression decoding unit 17 pays attention. The value of the target bit digit of the pixel is set to “0” (step S47). On the other hand, if all the lower bits are set to “0” in step S21 (step S42; NO) and the value of the lower bits is larger than the threshold value (step S46; NO), the image compression decoding unit 17 determines that the pixel of interest The value of the target bit digit is left as it is (step S48).

次に、画像圧縮復号部17は、注目画素の対象ビット桁より下位のビットを全て‘0’又は‘1’に変更する(ステップS21)。そして、コードブロックの全ての画素についてビット丸め処理を行っていない場合(ステップS22;NO)、画像圧縮復号部17は注目画素を移動させて(ステップS23)、ステップS11へ処理を移行する。コードブロックの全ての画素のビット丸め処理が終了した場合(ステップS22;NO)、画像圧縮復号部17は処理を終了する。尚、画像圧縮復号部17は、図13に示すフローチャートの処理を全てのタイルの全てのコードブロックに対して行った後、算術符号化を行う。   Next, the image compression decoding unit 17 changes all the bits lower than the target bit digit of the target pixel to “0” or “1” (step S21). If the bit rounding process is not performed on all the pixels of the code block (step S22; NO), the image compression decoding unit 17 moves the target pixel (step S23) and shifts the process to step S11. When the bit rounding process for all the pixels of the code block is completed (step S22; NO), the image compression decoding unit 17 ends the process. Note that the image compression decoding unit 17 performs arithmetic coding after performing the processing of the flowchart shown in FIG. 13 for all code blocks of all tiles.

以上、説明したように、画像圧縮復号部17は、ビット丸め処理において下位ビットを全て‘0’とする場合であって注目画素の対象ビット桁より下位ビットの値が閾値以上のときは対象ビットの値を‘1’として、閾値より小さいときは対象ビット桁の値をそのままとして、ビット丸め処理において下位ビットを全て‘1’とする場合であって注目画素の対象ビット桁より下位ビットの値が閾値以下のときは対象ビットの値を‘0’とし、閾値より大きいときは対象ビット桁の値をそのままとすることで、注目画素のビット変更前後の値変化をできるだけ抑えつつ(復号後の画質劣化を抑えつつ)、網点画像のような隣接する画素間の濃度差が大きい画像においても符号化効率を向上させることができる。   As described above, the image compression decoding unit 17 sets the target bit when the lower bits are all “0” in the bit rounding process and the value of the lower bit than the target bit digit of the target pixel is equal to or greater than the threshold value. If the value of '1' is smaller than the threshold, the value of the target bit digit is left as it is, and all the lower bits are set to '1' in the bit rounding process, and the value of the lower bit than the target bit digit of the target pixel When the value of the target pixel is less than the threshold, the value of the target bit is set to “0”. When the value of the target bit is larger than the threshold, the value of the target bit digit is left as it is. Encoding efficiency can be improved even in an image having a large density difference between adjacent pixels, such as a halftone image, while suppressing deterioration in image quality.

1 画像圧縮装置
11 制御部
12 記憶部
121 画像圧縮プログラム
13 入力操作部
14 表示部
15 I/F部
16 ネットワークI/F部
17 画像圧縮復号部(変換手段、分割手段、ウェーブレット変換手段、量子化手段、分解手段、展開手段、ビット丸め手段、符号化手段)
DESCRIPTION OF SYMBOLS 1 Image compression apparatus 11 Control part 12 Storage part 121 Image compression program 13 Input operation part 14 Display part 15 I / F part 16 Network I / F part 17 Image compression decoding part (Conversion means, division | segmentation means, wavelet transformation means, quantization) Means, decomposition means, expansion means, bit rounding means, encoding means)

Claims (5)

入力された画像データを輝度成分と色差成分からなる表色系に変換する変換手段と、
前記変換された画像データを複数のタイルに分割する分割手段と、
前記タイル毎にウェーブレット変換を施してサブバンド分解を行うウェーブレット変換手段と、
前記サブバンド毎に量子化する量子化手段と、
前記量子化された前記サブバンドを複数のブロックに分解する分解手段と、
前記ブロック毎に前記ブロック内の画素値を最上位ビットから最下位ビットに至る複数のビットプレーンに展開する展開手段と、
前記ブロック内の1つの画素である注目画素の値、当該注目画素の前後の各画素における対象ビット桁の各値、及び当該注目画素の前記対象ビット桁より下位ビットの値に応じて前記注目画素の前記対象ビット桁の値を調整して、前記下位ビットを全て‘0’又は‘1’に変更するビット丸め手段と、
前記ビット丸め手段によってビット丸め処理が施されたビットプレーンを符号化する符号化手段と、
を備えた画像圧縮装置。
Conversion means for converting the input image data into a color system comprising a luminance component and a color difference component;
Dividing means for dividing the converted image data into a plurality of tiles;
Wavelet transform means for performing subband decomposition by performing wavelet transform for each tile;
Quantization means for quantizing each subband;
Decomposition means for decomposing the quantized subbands into a plurality of blocks;
Expanding means for expanding the pixel value in the block into a plurality of bit planes from the most significant bit to the least significant bit for each block;
The pixel of interest according to the value of the pixel of interest that is one pixel in the block, the value of the target bit digit in each pixel before and after the pixel of interest, and the value of the lower bits of the pixel of interest than the target bit digit A bit rounding unit that adjusts the value of the target bit digit and changes all the lower bits to '0' or '1';
Encoding means for encoding the bit plane subjected to bit rounding processing by the bit rounding means;
An image compression apparatus comprising:
前記ビット丸め手段は、前記注目画素の前後の各画素における前記対象ビット桁の各値が異なる場合、前記注目画素の値と前記注目画素の前記対象ビット桁の値はそのままで前記対象ビット桁より下位ビットを全て‘0’又は‘1’としたときの値との差の絶対値である第1誤差と、前記注目画素の値と前記注目画素の前記対象ビット桁の値を変更して前記対象ビット桁より下位ビットを全て‘0’又は‘1’にしたときの値との差の絶対値である第2誤差を算出し、前記第1誤差が前記第2誤差以下のときは前記注目画素の前記対象ビット桁の値をそのままとし、前記第1誤差が前記第2誤差より大きいときは前記注目画素の前記対象ビット桁の値を変更して、前記下位ビットを全て‘0’又は‘1’に変更するものである請求項1に記載の画像圧縮装置。   The bit rounding means determines that the value of the target pixel and the value of the target bit digit of the target pixel remain unchanged from the target bit digit when the values of the target bit digit in the pixels before and after the target pixel are different. The first error, which is the absolute value of the difference when the lower bits are all set to “0” or “1”, the value of the target pixel and the value of the target bit digit of the target pixel are changed, and A second error that is an absolute value of a difference from a value when all lower bits of the target bit digit are set to “0” or “1” is calculated, and when the first error is less than or equal to the second error, the attention is paid The value of the target bit digit of the pixel is left as it is, and when the first error is larger than the second error, the value of the target bit digit of the target pixel is changed, and all the lower bits are set to '0' or ' It is what changes to 1 '. Image compression device. 前記ビット丸め手段は、前記注目画素の前後の各画素における前記対象ビット桁の各値が異なり、前記注目画素以前の各画素の前記対象ビット桁において予め定められた数以上同じ値が連続している場合、
前記注目画素の値と前記注目画素の前記対象ビット桁の値はそのままで前記対象ビット桁より下位ビットを全て‘0’又は‘1’としたときの値との差の絶対値である第1誤差と、前記注目画素の値と前記注目画素の前記対象ビット桁の値を変更して前記対象ビット桁より下位ビットを全て‘0’又は‘1’にしたときの値との差の絶対値である第2誤差を算出し、前記第1誤差と前記第2誤差の差が予め定められた設定範囲内のときは前記注目画素の前記対象ビット桁をそのままとし、前記第1誤差と前記第2誤差の差が前記設定範囲外であって、前記第1誤差が前記第2誤差以下のときは前記注目画素の前記対象ビット桁の値をそのままとし、前記第1誤差と前記第2誤差の差が前記設定範囲外であって、前記第1誤差が前記第2誤差より大きいときは前記注目画素の前記対象ビット桁の値を変更して、前記下位ビットを全て‘0’又は‘1’に変更するものである請求項1又は2に記載の画像圧縮装置。
In the bit rounding means, each value of the target bit digit in each pixel before and after the target pixel is different, and the same value is continuously greater than a predetermined number in the target bit digit of each pixel before the target pixel. If
A first absolute value of a difference between the value of the target pixel and the value of the target bit digit of the target pixel as it is with all the lower bits of the target bit digit set to '0' or '1' The absolute value of the difference between the error and the value obtained when the value of the target pixel and the value of the target bit digit of the target pixel are changed and all the lower bits of the target bit digit are set to '0' or '1' When the difference between the first error and the second error is within a predetermined setting range, the target bit digit of the target pixel is left as it is, and the first error and the second error are calculated. When the difference between the two errors is outside the set range and the first error is less than or equal to the second error, the value of the target bit digit of the target pixel is left as it is, and the first error and the second error If the difference is outside the set range and the first error is greater than the second error Wherein by changing the target bit digit value of the pixel of interest, the image compression apparatus according to claim 1 or 2 is to change the low-order bits to all '0' or '1'.
前記ビット丸め手段は、前記注目画素の前後の各画素における前記対象ビット桁の各値が異なる場合、
前記注目画素の前記対象ビット桁より下位ビットを全て‘0’とするときは、前記注目画素の前記対象ビット桁より下位ビットが示す値が予め定められた閾値以上のときは前記注目画素の前記対象ビット桁を‘1’に変更し、前記下位ビットが示す値が前記閾値未満であるときは前記注目画素の前記対象ビット桁の値をそのままとし、
前記注目画素の前記対象ビット桁より下位ビットを全て‘1’とするときは、前記注目画素の前記対象ビット桁より下位ビットが示す値が予め定められた閾値以下のときは前記注目画素の前記対象ビット桁を‘0’に変更し、前記下位ビットが示す値が前記閾値より大きいときは前記注目画素の前記対象ビット桁の値をそのままとするものである請求項1に記載の画像圧縮装置。
The bit rounding means, when each value of the target bit digit in each pixel before and after the target pixel is different,
When all the lower bits of the target bit digit of the target pixel are set to “0”, the value indicated by the lower bit of the target bit digit of the target pixel is equal to or greater than a predetermined threshold value. Change the target bit digit to '1', and when the value indicated by the lower bit is less than the threshold, leave the value of the target bit digit of the target pixel as it is,
When all the lower bits of the target bit digit of the target pixel are set to “1”, the value indicated by the lower bit of the target bit digit of the target pixel is equal to or less than a predetermined threshold value. 2. The image compression apparatus according to claim 1, wherein the target bit digit is changed to “0”, and the value of the target bit digit of the target pixel is left as it is when the value indicated by the lower bit is larger than the threshold value. .
コンピュータを、
入力された画像データを輝度成分と色差成分からなる表色系に変換する変換手段、
前記変換された画像データを複数のタイルに分割する分割手段、
前記タイル毎にウェーブレット変換を施してサブバンド分解を行うウェーブレット変換手段、
前記サブバンド毎に量子化する量子化手段、
前記量子化された前記サブバンドを複数のブロックに分解する分解手段、
前記ブロック毎に前記ブロック内の画素値を最上位ビットから最下位ビットに至る複数のビットプレーンに展開する展開手段、
前記ブロック内の1つの画素である注目画素の値、当該注目画素の前後の各画素における対象ビット桁の各値、及び当該注目画素の前記対象ビット桁より下位ビットの値に応じて前記注目画素の前記対象ビット桁の値を調整して、前記下位ビットを全て‘0’又は‘1’に変更するビット丸め手段、
前記ビット丸め手段によってビット丸め処理が施されたビットプレーンを符号化する符号化手段、
として機能させる画像圧縮プログラム。
Computer
Conversion means for converting the input image data into a color system comprising a luminance component and a color difference component;
A dividing unit for dividing the converted image data into a plurality of tiles;
Wavelet transform means for performing subband decomposition by performing wavelet transform for each tile;
Quantization means for quantizing each subband,
Decomposition means for decomposing the quantized subbands into a plurality of blocks;
Expanding means for expanding the pixel value in the block into a plurality of bit planes from the most significant bit to the least significant bit for each block;
The pixel of interest according to the value of the pixel of interest that is one pixel in the block, the value of the target bit digit in each pixel before and after the pixel of interest, and the value of the lower bits of the pixel of interest than the target bit digit Bit rounding means for adjusting the value of the target bit digit and changing all the lower bits to '0' or '1';
Encoding means for encoding the bit plane subjected to bit rounding by the bit rounding means;
Image compression program that functions as
JP2009226138A 2009-09-30 2009-09-30 Image compression device and image compression program Pending JP2011077760A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009226138A JP2011077760A (en) 2009-09-30 2009-09-30 Image compression device and image compression program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009226138A JP2011077760A (en) 2009-09-30 2009-09-30 Image compression device and image compression program

Publications (1)

Publication Number Publication Date
JP2011077760A true JP2011077760A (en) 2011-04-14

Family

ID=44021280

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009226138A Pending JP2011077760A (en) 2009-09-30 2009-09-30 Image compression device and image compression program

Country Status (1)

Country Link
JP (1) JP2011077760A (en)

Similar Documents

Publication Publication Date Title
JP5114462B2 (en) Image compression apparatus and image compression program
US9838715B2 (en) Image processing apparatus and method
JP6291172B2 (en) Rate control method for multi-layer video coding, video encoding apparatus and video signal processing system using the same
JP4365957B2 (en) Image processing method and apparatus and storage medium
KR101065520B1 (en) Line-based video rate control and compression
WO2012042646A1 (en) Motion-video encoding apparatus, motion-video encoding method, motion-video encoding computer program, motion-video decoding apparatus, motion-video decoding method, and motion-video decoding computer program
JP6727011B2 (en) Image coding apparatus and control method thereof
JP2010098352A (en) Image information encoder
JP4922101B2 (en) Information processing apparatus and inter prediction mode determination method
WO2012160626A1 (en) Image compression device, image restoration device, and program
JP2004048607A (en) Digital image coding device and method thereof
JP2004040429A (en) Digital image encoder, digital image encoding method used therefor, and program therefor
US8279932B2 (en) Information processing apparatus and method
JP2013187692A (en) Image processing device and image processing method
JP2011077760A (en) Image compression device and image compression program
JP4966263B2 (en) Image processing apparatus and image processing program
JP4978934B2 (en) Image compression apparatus and program
WO2006046334A1 (en) Video encoder, video decoder, video encoding method, and video decoding method
JP2005223852A (en) Image-encoding device and method, and image-decoding device and method
US10284879B2 (en) Image processing apparatus and method based on integerprecision image data
JP4784386B2 (en) Decoding device, inverse quantization method, and program
JP5175820B2 (en) Image compression apparatus, image compression decoding apparatus, image compression program, and image compression decoding program
JP5560172B2 (en) Image processing apparatus, image processing method, and image processing program
JP5017198B2 (en) Image processing apparatus and image processing program
JP4010957B2 (en) Image processing apparatus, program, storage medium, and image forming apparatus