JP2006262161A - Image processor, image processing method, and storage medium with the method stored therein - Google Patents

Image processor, image processing method, and storage medium with the method stored therein Download PDF

Info

Publication number
JP2006262161A
JP2006262161A JP2005077632A JP2005077632A JP2006262161A JP 2006262161 A JP2006262161 A JP 2006262161A JP 2005077632 A JP2005077632 A JP 2005077632A JP 2005077632 A JP2005077632 A JP 2005077632A JP 2006262161 A JP2006262161 A JP 2006262161A
Authority
JP
Japan
Prior art keywords
image
data
image data
image processing
bit
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
JP2005077632A
Other languages
Japanese (ja)
Other versions
JP4627670B2 (en
Inventor
Hirohisa Inamoto
浩久 稲本
Noriko Miyagi
徳子 宮城
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2005077632A priority Critical patent/JP4627670B2/en
Publication of JP2006262161A publication Critical patent/JP2006262161A/en
Application granted granted Critical
Publication of JP4627670B2 publication Critical patent/JP4627670B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To reduce recording capacity and to perform image compression, wherein an image is hardly deteriorated. <P>SOLUTION: An edge determining part 11 determines 10-bit image data inputted to this image processor 10, and an image dividing part 12 divides the image data into higher-order 8 bits and lower-order 2 bits. In the higher-order 8 bits, higher-order bit data subjected to JPEG compression by a first image compressing part 13 are stored in a storage part 15. The lower-order 2-bit data are subjected to JPEG compression by a second image compressing part 14 in accordance with a result of the edge determining part 11, and the entire pixel values are made to be "0" or input lower-order 2-bit data are output as it is to be stored in the storage part 15. The lower-order bit data and the higher-order bit data stored in the storage part 15 are inputted to a first expanding part 17 and a second expanding part 18 to be expanded, 2-bit bit shift is subsequently applied to the higher-order bits, and an adder 19 obtains the sum of the lower-order bit data and the higher-order bit data and outputs the sum. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像データを記憶媒体に蓄積する際に画像データの圧縮処理を行う画像処理装置、画像処方法、およびその記憶媒体に関するものである。   The present invention relates to an image processing apparatus, an image processing method, and a storage medium for compressing image data when the image data is stored in a storage medium.

近年、ハードディスクを搭載した複写機が数多く登場しつつある。このような複写機においては、複写した画像をハードディスク(HD)に保存して、原稿無しで印刷出力を行ったり、ハードディスク内に蓄積された画像をパーソナルコンピュータ(PC)などで閲覧したりすることが可能となっている。   In recent years, many copiers equipped with a hard disk have been introduced. In such a copying machine, the copied image is stored in a hard disk (HD) and printed without a document, or the image stored in the hard disk is viewed on a personal computer (PC) or the like. Is possible.

また、ハードディスクへ保存する場合には、ハードディスク容量を節約するため、何らかの圧縮が施されるのが一般的であるが、一般ユーザへの普及率の高さと高い圧縮率からJPEG圧縮が多用されている。   In addition, when saving to the hard disk, some compression is generally performed to save the hard disk capacity, but JPEG compression is frequently used because of its high penetration rate for general users and high compression rate. Yes.

このJPEGデータの作成方法について簡単に説明する。まず、画像を8×8画素のブロックに分割して、直行変換の一種である離散コサイン変換(DCT)が施される。このDCTの後のブロック内の値については、一番左上の画素にはDC成分と呼ばれるブロック内画素の平均値が格納される。また、それ以外の値は積算すると「0」になるような様々な周波数や振幅を持った波形成分が格納され、これはAC成分と呼ばれる。なお、ブロック内において左上に行くほど低周波、右下に行くほど高周波の成分が格納される。   A method for creating this JPEG data will be briefly described. First, an image is divided into 8 × 8 pixel blocks, and discrete cosine transform (DCT), which is a kind of orthogonal transform, is performed. As for the value in the block after the DCT, the average value of the pixels in the block called DC component is stored in the upper left pixel. In addition, waveform components having various frequencies and amplitudes such that when other values are integrated to “0” are stored, this is called an AC component. In the block, the lower frequency is stored in the block and the higher frequency component is stored in the block.

次に、DCT後の各ブロックに対し、8×8の量子化マスクを用いた量子化を施す。この量子化とは、ある数値を所定の値の何倍に最も近いかという数値に置き換える作業であって、例えば50という数値を8で量子化すると、50≒8×6により量子化後の値は6となる。この例では、本来255階調であった各画素の値が、前述した例に於いては255÷8=32階調に減らされるため情報量が削減される。さらに、量子化する数値を大きくすれば、階調情報はより削減されることになる。通常は8×8の量子化マスクにおいて左上に小さい数字、右下に大きい数字が設定され、低周波成分ほど情報量を多くし、高周波成分ほど情報量を少なく保持する。これは人間の目が低周波成分に敏感で高周波成分に対して鈍感であるという人間の視覚特性を考慮した処理である。   Next, each block after DCT is quantized using an 8 × 8 quantization mask. This quantization is an operation of replacing a certain numerical value with a numerical value that is closest to a predetermined value. For example, when a numerical value of 50 is quantized by 8, a value after quantization by 50≈8 × 6 Becomes 6. In this example, the amount of information is reduced because the value of each pixel that originally had 255 gradations is reduced to 255 ÷ 8 = 32 gradations in the above-described example. Furthermore, if the numerical value to be quantized is increased, the gradation information is further reduced. Usually, in the 8 × 8 quantization mask, a small number is set at the upper left and a large number is set at the lower right, and the amount of information is increased as the low frequency component is decreased and the amount of information is decreased as the higher frequency component. This is a process that takes into account the human visual characteristics that the human eye is sensitive to low frequency components and insensitive to high frequency components.

また、圧縮率を高めたいときには、量子化マスクの右下の領域に、大きな数字を配して積極的に高周波情報を削減するようにする。そして、その後ハフマン符号化を行うことによりJPEG画像が作成される。   When it is desired to increase the compression rate, a large number is arranged in the lower right area of the quantization mask to actively reduce high frequency information. Then, a JPEG image is created by performing Huffman coding thereafter.

前述した通り、JPEGは高圧縮であり、一般への普及率が高いことから、様々なPC上のアプリケーションから閲覧が可能であるという点で特に優れている。なお、一般的に普及しているJPEGの階調数は8ビット、つまり256階調である。JPEGの標準書によると16ビットつまり65536階調のJPEGも規定されているが、8ビットのJPEGほど一般的ではない。   As described above, JPEG is particularly excellent in that it can be viewed from various applications on a PC because it is highly compressed and has a high penetration rate to the general public. Note that the number of gradations of JPEG that is generally used is 8 bits, that is, 256 gradations. According to the JPEG standard, 16-bit, that is, 65536 gradation JPEG is also defined, but it is not as common as 8-bit JPEG.

一方、近年では複写機の高画質化への要求から、より階調数の大きい処理系(例えば、10ビット程度)が望まれている。しかし、前述した通り一般的なJPEGは8ビットであるため、ハードディスクへの保存は8ビットで行われることが望ましい。そこで、JPEGの汎用性を失わずに、8ビット以上の情報を保持する方法が要望されている。   On the other hand, in recent years, a processing system having a larger number of gradations (for example, about 10 bits) has been desired due to the demand for higher image quality of copying machines. However, since the general JPEG has 8 bits as described above, it is desirable that the storage to the hard disk is performed with 8 bits. Therefore, there is a demand for a method for holding information of 8 bits or more without losing the versatility of JPEG.

このような要求にこたえる手法としては、以下の2つの方法が考えられる。一つ目は、上位8ビットデータを下位2ビットのデータと別個に保存する方法であり、テープレコーダやビデオテープに於いて上位ビットと下位ビットのデータへ分割しそれぞれ別のチャンネルに保存するという方法が考案されている(特許文献1参照)。   The following two methods are conceivable as methods for meeting such demands. The first is a method of storing the upper 8 bits data separately from the lower 2 bits data. In a tape recorder or video tape, the upper 8 bits data is divided into upper bits and lower bits and stored in separate channels. A method has been devised (see Patent Document 1).

二つ目は、上位ビットの画像データに下位2ビットの画像データを埋め込む方法であり、特許文献2では、DCTを施して量子化したデータの高周波領域を下位ビットのデータで置き換えることで、閲覧の際には通常のJPEGとして扱え、かつ下位ビットのデータを保持するという方法が考案されている。   The second is a method of embedding lower 2-bit image data in upper-bit image data. In Patent Document 2, browsing is performed by replacing a high-frequency region of data quantized by DCT with lower-bit data. In this case, a method has been devised that can be handled as ordinary JPEG and retain lower-order bit data.

特開2000−149454号公報JP 2000-149454 A 特開2000−312296号公報JP 2000-312296 A

しかしながら、上記特許文献1の手法を用いた場合は、文字領域のような階調性が殆ど問題にならないような領域においても下位ビットデータを保存するためにハードディスク容量を必要以上に圧迫するという問題があった。   However, when the method of the above-mentioned Patent Document 1 is used, there is a problem that the hard disk capacity is pressed more than necessary in order to save the lower-order bit data even in an area where gradation is hardly a problem such as a character area. was there.

また、上記特許文献2の手法を用いた場合は、エッジ領域等も同様に高周波領域が削られて、下位ビットデータを埋め込むのでエッジが鈍ってしまう恐れがあった。   Further, when the method of Patent Document 2 is used, the edge region and the like are similarly cut off in the high frequency region and the lower bit data is embedded, so that the edge may become dull.

本発明は、上記に鑑みてなされたものであって、下位ビットのデータを保持しつつ、記録容量を低減し、画像が劣化し難い画像圧縮を行うことができる画像処理装置、画像処方法、およびその方法を記憶する記憶媒体を提供することを目的とする。   The present invention has been made in view of the above, and an image processing apparatus, an image processing method, and an image processing apparatus capable of reducing the recording capacity and performing image compression in which an image is hardly deteriorated while retaining lower-order bit data. And a storage medium for storing the method.

上述した課題を解決し、目的を達成するために、請求項1にかかる発明は、画像データを上位ビットと下位ビットの2つの画像データに分割する画像分割手段と、前記上位ビットの画像データを圧縮する第一の画像圧縮手段と、前記下位ビットの画像データを圧縮する第二の画像圧縮手段と、圧縮された上位ビットと下位ビットの画像データを記憶する記憶手段と、前記記憶手段から上位ビットと下位ビットの画像データを読み出して画像処理を行う画像処理手段と、を備え、前記記憶手段から上位ビットの画像データを読み出して外部機器へ送信することを特徴とする。   In order to solve the above-described problems and achieve the object, the invention according to claim 1 is an image dividing means for dividing image data into two image data of upper bits and lower bits, and image data of the upper bits. A first image compressing means for compressing; a second image compressing means for compressing the lower bit image data; a storing means for storing the compressed upper bit and lower bit image data; Image processing means for reading out image data of bits and lower bits and performing image processing, and reading out the upper bit image data from the storage means and transmitting it to an external device.

また、請求項2にかかる発明は、請求項1に記載の画像処理装置において、前記第1の画像圧縮手段と前記第二の画像圧縮手段とで圧縮率が異なることを特徴とする。   According to a second aspect of the present invention, in the image processing apparatus according to the first aspect, the first image compression unit and the second image compression unit have different compression ratios.

また、請求項3にかかる発明は、請求項1に記載の画像処理装置において、前記第1の画像圧縮手段と前記第二の画像圧縮手段とで圧縮方式が異なることを特徴とする。   The invention according to claim 3 is the image processing apparatus according to claim 1, wherein the first image compression means and the second image compression means have different compression methods.

また、請求項4にかかる発明は、請求項1に記載の画像処理装置において、注目領域の特徴を判定する特徴判定手段をさらに備え、前記注目領域中に所定の勾配以上の階調変化が見られる場合は、該当する領域の下位ビットデータを破棄することを特徴とする。   According to a fourth aspect of the present invention, in the image processing apparatus according to the first aspect of the present invention, the image processing apparatus further includes a feature determination unit that determines a feature of the attention area, and a gradation change greater than or equal to a predetermined gradient is observed in the attention area. If so, the lower bit data of the corresponding area is discarded.

また、請求項5にかかる発明は、請求項1に記載の画像処理装置において、注目領域の属性を判定する属性判定手段をさらに備え、前記注目領域中に文字領域が存在する場合は、該当する領域の下位ビットデータを破棄することを特徴とする。   The invention according to claim 5 is the image processing apparatus according to claim 1, further comprising attribute determination means for determining an attribute of the attention area, and corresponds to the case where a character area exists in the attention area. The low-order bit data of the area is discarded.

また、請求項6にかかる発明は、注目領域の特徴を判定する特徴判定手段と、画像データを上位ビットと下位ビットの2つの画像データに分割する画像分割手段と、上位ビットの画像データを直行変換する直行変換手段と、直行変換後のデータを量子化する量子化手段と、下位ビットの画像データを圧縮する圧縮手段と、量子化後のデータに圧縮された下位ビットの画像データを付加するデータ付加手段と、データが付加された画像データを記憶する記憶手段と、前記記憶手段から画像データを読み出して画像の伸張を行う伸張手段と、該伸張された画像に対し所定の画像処理を行う画像処理手段と、を備えたことを特徴とする。   According to a sixth aspect of the present invention, there is provided a feature determining means for determining the feature of the attention area, an image dividing means for dividing the image data into two image data of upper bits and lower bits, and direct execution of the upper bit image data. An orthogonal transformation means for transforming, a quantization means for quantizing the data after the orthogonal transformation, a compression means for compressing the lower-bit image data, and a compressed lower-bit image data is added to the quantized data. Data adding means, storage means for storing image data to which data is added, decompressing means for reading out image data from the storage means and decompressing the image, and performing predetermined image processing on the decompressed image And an image processing means.

また、請求項7にかかる発明は、請求項6に記載の画像処理装置において、前記データ付加手段は、所定の勾配以上の階調変化が見られる領域では圧縮された下位ビットの画像データを付加しないことを特徴とする。   According to a seventh aspect of the present invention, in the image processing apparatus according to the sixth aspect, the data adding means adds compressed lower-bit image data in an area where a gradation change exceeding a predetermined gradient is seen. It is characterized by not.

また、請求項8にかかる発明は、注目領域の属性を判定する属性判定手段と、画像データを上位ビットと下位ビットの2つの画像データに分割する画像分割手段と、前記上位ビットの画像データを直行変換する直行変換手段と、直行変換後のデータを量子化する量子化手段と、前記下位ビットの画像データを圧縮する圧縮手段と、前記量子化後のデータに前記圧縮された下位ビットの画像データを付加するデータ付加手段と、該データが付加された画像データを記憶する記憶手段と、前記記憶手段から画像データを読み出して画像の伸張を行う伸張手段と、該伸張された画像に対して所定の画像処理を行う画像処理手段と、を備えたことを特徴とする。   According to an eighth aspect of the present invention, there is provided an attribute determination unit that determines an attribute of a region of interest, an image dividing unit that divides image data into two image data of an upper bit and a lower bit, and the image data of the upper bit. An orthogonal transform means for performing an orthogonal transform, a quantizing means for quantizing the data after the orthogonal transform, a compressing means for compressing the lower-order bit image data, and the lower-order bit image compressed into the quantized data Data adding means for adding data; storage means for storing image data to which the data is added; decompression means for reading out image data from the storage means and decompressing the image; and for the decompressed image And image processing means for performing predetermined image processing.

また、請求項9にかかる発明は、請求項8に記載の画像処理装置において、前記データ付加手段は、文字領域を含む領域では圧縮された下位ビットの画像データを付加しないことを特徴とする。   The invention according to claim 9 is the image processing apparatus according to claim 8, wherein the data adding means does not add compressed lower-bit image data in an area including a character area.

また、請求項10にかかる発明は、請求項6〜9のいずれか一つに記載の画像処理装置において、前記データ付加手段は、データが付加されたか否かのフラグを同時に保持することを特徴とする。   According to a tenth aspect of the present invention, in the image processing apparatus according to any one of the sixth to ninth aspects, the data adding unit simultaneously holds a flag indicating whether or not data has been added. And

また、請求項11にかかる発明は、請求項6〜9のいずれか一つに記載の画像処理装置において、前記画像処理手段は、伸張された画像に対し画像の特徴を判定する第二の特徴判定手段を含んでいることを特徴とする。   According to an eleventh aspect of the present invention, in the image processing apparatus according to any one of the sixth to ninth aspects, the image processing means determines a characteristic of the image with respect to the expanded image. The determination means is included.

また、請求項12にかかる発明は、請求項11に記載の画像処理装置において、前記第二の特徴判定手段に応じて付加されたデータを再び分割する第二の画像分割手段をさらに備えていることを特徴とする。   According to a twelfth aspect of the present invention, in the image processing apparatus according to the eleventh aspect of the present invention, the image processing apparatus further includes a second image dividing unit that divides the data added according to the second feature determining unit again. It is characterized by that.

また、請求項13にかかる発明は、請求項6〜9のいずれか一つに記載の画像処理装置において、前記画像処理手段は、伸張された画像に対して画像の属性を判定する第二の属性判定手段を含んでいることを特徴とする。   According to a thirteenth aspect of the present invention, in the image processing apparatus according to any one of the sixth to ninth aspects, the image processing means determines a second attribute of the image with respect to the expanded image. It includes an attribute determination means.

また、請求項14にかかる発明は、請求項13に記載の画像処理装置において、前記第二の属性判定手段に応じて付加されたデータを再び分割する第二の画像分割手段をさらに備えていることを特徴とする。   The invention according to claim 14 is the image processing apparatus according to claim 13, further comprising second image dividing means for dividing again the data added according to the second attribute determining means. It is characterized by that.

また、請求項15にかかる発明は、請求項6に記載の画像処理装置において、前記圧縮手段は、少なくとも下位ビット画像の平均値を保持することを特徴とする。   According to a fifteenth aspect of the present invention, in the image processing apparatus according to the sixth aspect, the compression unit holds at least an average value of lower-order bit images.

また、請求項16にかかる発明は、請求項6に記載の画像処理装置において、前記圧縮手段は、少なくとも下位ビット画像の勾配値を保持することを特徴とする。   According to a sixteenth aspect of the present invention, in the image processing apparatus according to the sixth aspect, the compression means holds at least a gradient value of the lower-order bit image.

また、請求項17にかかる発明は、請求項6に記載の画像処理装置において、前記圧縮手段は、少なくとも下位ビット画像の勾配方向を保持することを特徴とする。   The invention according to claim 17 is the image processing apparatus according to claim 6, wherein the compression means holds at least the gradient direction of the lower-order bit image.

また、請求項18にかかる発明は、画像データを上位ビットと下位ビットの2つの画像データに分割する画像分割手段と、前記上位ビットの画像データを記憶する第一の記憶手段と、前記下位ビットの画像データを記憶する第二の記憶手段と、前記第一の記憶手段から上位ビットの画像データを読み出して、前記第二の記憶手段から読み出した下位ビットの画像データを参照しながら画像処理を行う画像処理手段と、を備え、前記第一の記憶手段から上位ビットの画像データを読み出して外部機器へ送信することを特徴とする。   According to an eighteenth aspect of the present invention, there is provided image dividing means for dividing image data into two image data of upper bits and lower bits, first storage means for storing the upper bit image data, and the lower bits. Second storage means for storing the image data, and reading the upper bit image data from the first storage means, and performing image processing while referring to the lower bit image data read from the second storage means Image processing means for performing the processing, and reading out the high-order bit image data from the first storage means and transmitting it to an external device.

また、請求項19にかかる発明は、請求項18に記載の画像処理装置において、前記第二の記憶手段は、下位ビットの画像データを一時的に記憶することを特徴とする。   According to a nineteenth aspect of the present invention, in the image processing apparatus according to the eighteenth aspect, the second storage means temporarily stores lower-order bit image data.

また、請求項20にかかる発明は、請求項18または19に記載の画像処理装置において、前記画像分割手段で分割された下位ビットの画像データを前記第一の記憶手段と前記第二の記憶手段のいずれかに記憶させるかをユーザの意思により選択できる選択手段を備えたことを特徴とする。   The invention according to claim 20 is the image processing apparatus according to claim 18 or 19, wherein the lower-order bit image data divided by the image dividing means is the first storage means and the second storage means. It is characterized by comprising a selection means capable of selecting whether to store in either of these according to the user's intention.

また、請求項21にかかる発明は、請求項18または19に記載の画像処理装置において、前記画像分割手段で分割された下位ビットの画像データを前記第一の記憶手段と前記第二の記憶手段のいずれかに記憶させるかを装置の構成により選択できる選択手段を備えたことを特徴とする。   The invention according to claim 21 is the image processing apparatus according to claim 18 or 19, wherein the lower-order bit image data divided by the image dividing means is the first storage means and the second storage means. It is characterized by comprising selection means that can select whether to store in either of the above, depending on the configuration of the apparatus.

また、請求項22にかかる発明は、画像データを上位ビットと下位ビットの2つの画像データに分割するステップと、前記上位ビットの画像データを圧縮するステップと、前記下位ビットの画像データを圧縮するステップと、圧縮された上位ビットと下位ビットの画像データを記憶手段に記憶するステップと、記憶された上位ビットと下位ビットの画像データを読み出して画像処理を行うステップと、を含み、前記記憶手段から上位ビットの画像データを読み出して外部機器へ送信することを特徴とする。   According to a twenty-second aspect of the present invention, the step of dividing the image data into two image data of upper bits and lower bits, the step of compressing the image data of the upper bits, and the image data of the lower bits Storing the compressed upper bit and lower bit image data in storage means, and reading the stored upper bit and lower bit image data and performing image processing, the storage means The high-order bit image data is read out and transmitted to an external device.

また、請求項23にかかる発明は、注目領域の特徴を判定するステップと、画像データを上位ビットと下位ビットの2つの画像データに分割するステップと、上位ビットの画像データを直行変換するステップと、直行変換後のデータを量子化するステップと、下位ビットの画像データを圧縮するステップと、量子化後のデータに圧縮された下位ビットの画像データを付加するステップと、データが付加された画像データを記憶するステップと、
該記憶された画像データを読み出して画像の伸張を行うステップと、該伸張された画像に対し所定の画像処理を行うステップと、を含んでいる。
According to a twenty-third aspect of the present invention, the step of determining the feature of the region of interest, the step of dividing the image data into two image data of upper bits and lower bits, and the step of performing direct conversion on the image data of the upper bits A step of quantizing the data after the orthogonal transformation, a step of compressing the lower-bit image data, a step of adding the compressed lower-bit image data to the quantized data, and an image to which the data is added Storing the data;
The step includes reading the stored image data and decompressing the image, and performing predetermined image processing on the decompressed image.

また、請求項24にかかる発明は、注目領域の属性を判定するステップと、画像データを上位ビットと下位ビットの2つの画像データに分割するステップと、前記上位ビットの画像データを直行変換するステップと、直行変換後のデータを量子化するステップと、前記下位ビットの画像データを圧縮するステップと、前記量子化後のデータに前記圧縮された下位ビットの画像データを付加するステップと、該データが付加された画像データを記憶するステップと、該記憶された画像データを読み出して画像の伸張を行うステップと、該伸張された画像に対して所定の画像処理を行うステップと、を含んでいる。   According to a twenty-fourth aspect of the present invention, the step of determining the attribute of the attention area, the step of dividing the image data into two pieces of image data of upper bits and lower bits, and the step of performing direct conversion on the image data of the upper bits A step of quantizing the data after the orthogonal transformation, a step of compressing the lower-order bit image data, a step of adding the compressed lower-order bit image data to the quantized data, and the data Storing the image data to which is added, reading the stored image data and decompressing the image, and performing predetermined image processing on the decompressed image. .

また、請求項25にかかる発明は、画像データを上位ビットと下位ビットの2つの画像データに分割するステップと、前記上位ビットの画像データを記憶するステップと、前記下位ビットの画像データを記憶するステップと、記憶された上位ビットの画像データを読み出し、記憶された下位ビットの画像データを参照しながら画像処理を行うステップと、を含み、記憶された上位ビットの画像データを読み出して外部機器へ送信することを特徴とする。   According to a twenty-fifth aspect of the present invention, the step of dividing the image data into two image data of upper bits and lower bits, the step of storing the image data of the upper bits, and the image data of the lower bits And reading the stored upper bit image data and performing image processing while referring to the stored lower bit image data, and reading the stored upper bit image data to an external device. It is characterized by transmitting.

また、請求項26にかかる発明は、前記請求項22〜25のいずれか一つの画像処理方法を記憶する記憶媒体である。   An invention according to claim 26 is a storage medium for storing the image processing method according to any one of claims 22 to 25.

請求項1にかかる画像処理装置は、画像分割手段により画像データを上位ビットと下位ビットの2つの画像データに分割し、第一の画像圧縮手段により上位ビットの画像データを圧縮し、第二の画像圧縮手段により下位ビットの画像データを圧縮し、記憶手段により圧縮された上位ビットと下位ビットの画像データを記憶し、画像処理手段により記憶手段から読み出した上位ビットと下位ビットの画像データを画像処理することにより、上位ビットと下位ビットの画像データをそれぞれ効率良く圧縮すると共に、画像の劣化を防止することができるという効果を奏する。   The image processing apparatus according to claim 1 divides the image data into two image data of upper bits and lower bits by the image dividing means, compresses the upper bit image data by the first image compression means, and The lower bit image data is compressed by the image compression means, the upper bit and the lower bit image data compressed by the storage means are stored, and the upper bit and lower bit image data read from the storage means by the image processing means By processing, it is possible to efficiently compress the image data of the upper bits and the lower bits, respectively, and to prevent image deterioration.

請求項2にかかる画像処理装置は、第1の画像圧縮手段と第二の画像圧縮手段とで圧縮率が異なるようにしたため、効率良く圧縮することができ、記憶手段の容量が削減できるという効果を奏する。   In the image processing apparatus according to the second aspect, since the compression ratios are different between the first image compression unit and the second image compression unit, the compression can be efficiently performed, and the capacity of the storage unit can be reduced. Play.

請求項3にかかる画像処理装置は、第1の画像圧縮手段と前記第二の画像圧縮手段とで圧縮方式が異なるようにしたため、画像の劣化を最小限に抑制しながら効率の良い圧縮が行えるという効果を奏する。   In the image processing apparatus according to the third aspect, the first image compression unit and the second image compression unit have different compression methods, so that efficient compression can be performed while minimizing image degradation. There is an effect.

請求項4にかかる画像処理装置は、特徴判定手段により注目領域の特徴を判定し、注目領域中に所定の勾配以上の階調変化が見られる場合は該当する領域の下位ビットデータを破棄するようにしたため、上位ビットが比較的下位ビットデータの影響を受けないエッジ領域で下位ビットデータを破棄することで情報量の削減が見込まれ、圧縮率の向上が見込まれるという効果を奏する。   The image processing apparatus according to claim 4 determines the feature of the attention area by the feature determination means, and discards the lower-order bit data of the corresponding area when a gradation change of a predetermined gradient or more is found in the attention area. Therefore, the lower bit data is discarded in the edge region where the upper bits are relatively unaffected by the lower bit data, so that the amount of information can be reduced and the compression rate can be improved.

請求項5にかかる画像処理装置は、属性判定手段により注目領域の属性を判定し、注目領域中に文字領域が存在する場合は該当する領域の下位ビットデータを破棄するようにしたため、上位ビットが比較的下位ビットデータの影響を受けない文字領域で下位ビットデータを破棄することで情報量の削減が見込まれ、圧縮率の向上が見込まれるという効果を奏する。   In the image processing apparatus according to the fifth aspect, the attribute determination unit determines the attribute of the attention area, and when a character area exists in the attention area, the lower bit data of the corresponding area is discarded. By discarding lower bit data in a character area that is relatively unaffected by lower bit data, the amount of information is expected to be reduced, and the compression rate is expected to be improved.

請求項6にかかる画像処理装置は、特徴判定手段により注目領域の特徴を判定し、画像分割手段により画像データを上位ビットと下位ビットの2つの画像データに分割し、直行変換手段により上位ビットの画像データを直行変換し、量子化手段により直行変換後のデータを量子化し、圧縮手段により下位ビットの画像データを圧縮し、データ付加手段により量子化後のデータに圧縮された下位ビットの画像データを付加し、記憶手段によりデータが付加された画像データを記憶し、伸張手段により記憶手段から画像データを読み出して画像の伸張を行い、画像処理手段によって伸張された画像に対し所定の画像処理を行うようにしたため、下位ビットのデータを上位ビットのデータ列に埋め込むことで、上位ビットデータと下位ビットデータとを一つのファイルとして扱うことが可能となり、ファイルのハンドリングが容易になるという効果を奏する。   The image processing apparatus according to claim 6 determines the feature of the attention area by the feature determination unit, divides the image data into two image data of the upper bit and the lower bit by the image division unit, and the upper bit by the direct conversion unit. The image data is subjected to orthogonal transform, the quantized data is quantized, the lower bit image data is compressed by the compression means, and the lower bit image data is compressed to the quantized data by the data adding means. The image data to which the data is added is stored by the storage means, the image data is read from the storage means by the decompression means, the image is decompressed, and predetermined image processing is performed on the image decompressed by the image processing means. Since the lower bit data is embedded in the upper bit data string, the upper bit data and the lower bit data are embedded. The result can be handled as one file, an effect that the handling of the file becomes easy.

請求項7にかかる画像処理装置は、所定の勾配以上の階調変化が見られる領域ではデータ付加手段による圧縮された下位ビットの画像データを付加しないようにしたため、上位ビットが比較的下位ビットデータの影響を受けないエッジ領域で下位ビットデータを破棄することで、情報量の削減が見込まれ、圧縮率の向上が見込まれるという効果を奏する。   In the image processing apparatus according to the seventh aspect of the present invention, the lower bit image data compressed by the data adding means is not added in an area where a gradation change of a predetermined gradient or more is seen. By discarding the lower-order bit data in the edge area that is not affected by the above, it is possible to reduce the amount of information and to improve the compression rate.

請求項8にかかる画像処理装置は、属性判定手段により注目領域の属性を判定し、画像分割手段により画像データを上位ビットと下位ビットの2つの画像データに分割し、直行変換手段により上位ビットの画像データを直行変換し、量子化手段により直行変換後のデータを量子化し、圧縮手段により下位ビットの画像データを圧縮し、データ付加手段により量子化後のデータに圧縮された下位ビットの画像データを付加し、記憶手段によりそのデータが付加された画像データを記憶し、伸張手段により記憶手段から画像データを読み出して画像を伸張し、その伸張された画像に対して画像処理手段により所定の画像処理を行うようにしたため、下位ビットのデータを上位ビットのデータ列に埋め込むことで、上位ビットデータと下位ビットデータとを一つのファイルとして扱うことが可能となり、ファイルのハンドリングが容易になるという効果を奏する。   The image processing apparatus according to claim 8 determines the attribute of the attention area by the attribute determining means, divides the image data into two image data of the upper bit and the lower bit by the image dividing means, and sets the upper bit by the direct conversion means. The image data is subjected to orthogonal transform, the quantized data is quantized, the lower bit image data is compressed by the compression means, and the lower bit image data is compressed to the quantized data by the data adding means. Is added, and the storage means stores the image data to which the data has been added, the expansion means reads out the image data from the storage means, expands the image, and the image processing means applies the predetermined image to the expanded image. Since processing is performed, the upper bit data and the lower bit data are embedded by embedding the lower bit data in the upper bit data string. It is possible to handle the data as one file, an effect that the handling of the file becomes easy.

請求項9にかかる画像処理装置は、文字領域を含む領域ではデータ付加手段による圧縮された下位ビットの画像データを付加しないようにしたため、上位ビットが比較的下位ビットデータの影響を受けない文字領域で下位ビットデータを破棄することで情報量の削減が見込まれ、圧縮率の向上が見込まれるという効果を奏する。   In the image processing apparatus according to claim 9, since the lower bit image data compressed by the data adding means is not added to the area including the character area, the upper bit is relatively unaffected by the lower bit data. By discarding the lower-order bit data, the amount of information is expected to be reduced, and the compression rate is expected to be improved.

請求項10にかかる画像処理装置は、データ付加手段によりデータが付加されたか否かのフラグを同時に保持するようにしたため、下位ビットデータの付加が行われたか否かのフラグ情報を持つことで、伸張時にデータの付加を判断する必要がなくなり、回路規模の縮小が見込まれるという効果を奏する。   Since the image processing apparatus according to the tenth aspect of the present invention is configured to simultaneously hold a flag indicating whether or not data has been added by the data adding unit, the flag information indicating whether or not the low-order bit data has been added is provided. There is no need to determine the addition of data at the time of decompression, and the circuit scale is expected to be reduced.

請求項11にかかる画像処理装置は、画像処理手段に伸張された画像に対して画像の特徴を判定する第二の特徴判定手段が含まれているため、データの付加が行われたか否かのフラグ情報を持たなくて済むことから、画像ファイルに埋め込む情報量が縮小し、外部機器などで閲覧する際にデータ埋め込みによる画像劣化を防ぐことができるという効果を奏する。   Since the image processing apparatus according to the eleventh aspect includes the second feature determining means for determining the image characteristics of the image expanded by the image processing means, it is determined whether or not data has been added. Since it is not necessary to have flag information, the amount of information to be embedded in the image file is reduced, and it is possible to prevent image deterioration due to data embedding when browsing with an external device or the like.

請求項12にかかる画像処理装置は、第二の特徴判定手段に応じて付加されたデータを再び分割する第二の画像分割手段をさらに備えているため、データの付加が行われたか否かのフラグ情報を持たなくて済むことから、画像ファイルに埋め込む情報量が縮小し、外部機器などで閲覧する際にデータ埋め込みによる画像劣化が防げるという効果を奏する。   Since the image processing apparatus according to the twelfth aspect of the present invention further includes second image dividing means for dividing again the data added according to the second feature determination means, it is determined whether or not the data has been added. Since it is not necessary to have flag information, the amount of information to be embedded in the image file is reduced, and there is an effect that image deterioration due to data embedding can be prevented when browsing with an external device or the like.

請求項13にかかる画像処理装置は、画像処理手段が伸張された画像に対して画像の属性を判定する第二の属性判定手段を含んでいるため、データの付加が行われたか否かのフラグ情報を持たなくて済むことから、画像ファイルに埋め込む情報量が縮小し、外部機器などで閲覧する際にデータ埋め込みによる画像劣化が防げるという効果を奏する。   Since the image processing apparatus according to the thirteenth aspect includes the second attribute determination unit that determines the attribute of the image with respect to the decompressed image, the flag indicating whether or not data has been added. Since it is not necessary to have information, the amount of information to be embedded in the image file is reduced, and there is an effect that image deterioration due to data embedding can be prevented when browsing with an external device or the like.

請求項14にかかる画像処理装置は、第二の属性判定手段に応じて付加されたデータを再び分割する第二の画像分割手段をさらに備えているため、データの付加が行われたか否かのフラグ情報を持たなくて済むことから、画像ファイルに埋め込む情報量が縮小し、外部機器などで閲覧する際にデータ埋め込みによる画像劣化が防げるという効果を奏する。   The image processing apparatus according to the fourteenth aspect further includes second image dividing means for dividing again the data added in accordance with the second attribute determining means, so whether or not data addition has been performed. Since it is not necessary to have flag information, the amount of information to be embedded in the image file is reduced, and there is an effect that image deterioration due to data embedding can be prevented when browsing with an external device or the like.

請求項15にかかる画像処理装置は、圧縮手段が少なくとも下位ビット画像の平均値を保持するようにしたため、上位ビットに付加する下位ビットデータをこのように圧縮することにより、上位ビットの画像ファイルに埋め込む情報量が縮小し、外部機器で閲覧する際にデータ埋め込みによる画像の劣化が防げるという効果を奏する。   In the image processing apparatus according to the fifteenth aspect, since the compression unit holds at least the average value of the lower-order bit images, the lower-order bit data to be added to the higher-order bits is compressed in this manner, so that the upper-order bit image file is compressed. The amount of information to be embedded is reduced, and there is an effect that image deterioration due to data embedding can be prevented when browsing with an external device.

請求項16にかかる画像処理装置は、圧縮手段が少なくとも下位ビット画像の勾配値を保持するようにしたため、上位ビットに付加する下位ビットデータをこのように圧縮することにより、上位ビットの画像ファイルに埋め込む情報量が縮小し、外部機器で閲覧する際にデータ埋め込みによる画像の劣化が防げるという効果を奏する。   In the image processing apparatus according to the sixteenth aspect, since the compression means holds at least the gradient value of the lower-order bit image, the lower-order bit data added to the higher-order bits is compressed in this way, thereby converting the lower-order bit image into an upper-order bit image file. The amount of information to be embedded is reduced, and there is an effect that image deterioration due to data embedding can be prevented when browsing with an external device.

請求項17にかかる画像処理装置は、圧縮手段が少なくとも下位ビット画像の勾配方向を保持するようにしたため、上位ビットに付加する下位ビットデータをこのように圧縮することにより、上位ビットの画像ファイルに埋め込む情報量が縮小し、外部機器で閲覧する際にデータ埋め込みによる画像の劣化が防げるという効果を奏する。   In the image processing apparatus according to the seventeenth aspect, since the compression means retains at least the gradient direction of the lower-order bit image, the lower-order bit data added to the higher-order bits is compressed in this manner, so that the upper-order bit image file is compressed. The amount of information to be embedded is reduced, and there is an effect that image deterioration due to data embedding can be prevented when browsing with an external device.

請求項18にかかる画像処理装置は、画像分割手段により画像データを上位ビットと下位ビットの2つの画像データに分割し、第一の記憶手段により上位ビットの画像データを記憶し、第二の記憶手段により下位ビットの画像データを記憶し、画像処理手段により第一の記憶手段から読み出した上位ビットの画像データを第二の記憶手段から読み出した下位ビットの画像データを参照しながら画像処理を行うようにしたため、下位ビットデータを一時保存領域にのみ保存することで一回目の出力時の画質を向上しつつ、記憶手段の記憶容量が節約できるという効果を奏する。   The image processing apparatus according to claim 18 divides the image data into two image data of upper bits and lower bits by the image dividing unit, stores the upper bit image data by the first storage unit, and stores the second bit data. The lower bit image data is stored by the means, and the upper bit image data read from the first storage means by the image processing means is referred to the lower bit image data read from the second storage means to perform image processing. As a result, it is possible to save the storage capacity of the storage unit while improving the image quality at the first output by storing the lower-order bit data only in the temporary storage area.

請求項19にかかる画像処理装置は、第二の記憶手段により下位ビットの画像データを一時的に記憶するようにしたため、下位ビットデータを一時保存領域にのみ保存することで一回目の出力時の画質を向上しつつ、記憶手段の記憶容量が節約できるという効果を奏する。   In the image processing apparatus according to claim 19, since the lower bit image data is temporarily stored by the second storage unit, the lower bit data is stored only in the temporary storage area, so that the first time output can be performed. There is an effect that the storage capacity of the storage means can be saved while improving the image quality.

請求項20にかかる画像処理装置は、画像分割手段で分割された下位ビットの画像データを第一の記憶手段と第二の記憶手段のいずれかに記憶させるかを選択手段を使ってユーザの意思により選択できるようにしたため、高画質が要求される画像と要求されない画像のそれぞれに対して適した方法で保存することができ、記憶手段の記憶容量が効率よく使用できるという効果を奏する。   The image processing apparatus according to claim 20 uses the selection means to determine whether the lower-order bit image data divided by the image dividing means is stored in the first storage means or the second storage means. Therefore, it is possible to save images that are required to have high image quality and images that are not required by a suitable method, and the storage capacity of the storage means can be used efficiently.

請求項21にかかる画像処理装置は、画像分割手段で分割された下位ビットの画像データを第一の記憶手段と第二の記憶手段のいずれかに記憶させるかを装置の構成により選択できるようにしたため、高画質が要求される画像と要求されない画像のそれぞれに対して適した方法で保存することができ、記憶手段の記憶容量が効率よく使用できるという効果を奏する。   According to a twenty-first aspect of the present invention, the image processing apparatus can select whether to store the low-order bit image data divided by the image dividing means in either the first storage means or the second storage means depending on the configuration of the apparatus. For this reason, it is possible to store images that are required to have high image quality and images that are not required by a suitable method, and the storage capacity of the storage means can be used efficiently.

請求項22にかかる画像処理方法は、画像データを上位ビットと下位ビットの2つの画像データに分割し、上位ビットの画像データを圧縮し、下位ビットの画像データを圧縮し、その圧縮された上位ビットと下位ビットの画像データを記憶手段に記憶し、記憶された上位ビットと下位ビットの画像データを読み出して画像処理を行うようにしたため、上位ビットと下位ビットの画像データをそれぞれ効率良く圧縮すると共に、画像の劣化が防止できるという効果を奏する。   An image processing method according to claim 22 divides image data into two image data of upper bits and lower bits, compresses upper bit image data, compresses lower bit image data, and compresses the upper bit Since the bit and lower bit image data are stored in the storage means, and the stored upper bit and lower bit image data are read and image processing is performed, the upper bit and lower bit image data are compressed efficiently. At the same time, the image can be prevented from being deteriorated.

請求項23にかかる画像処理方法は、注目領域の特徴を判定し、画像データを上位ビットと下位ビットの2つの画像データに分割し、上位ビットの画像データを直行変換し、直行変換後のデータを量子化し、下位ビットの画像データを圧縮し、量子化後のデータに圧縮された下位ビットの画像データを付加し、データが付加された画像データを記憶し、その記憶された画像データを読み出して画像の伸張を行い、その伸張された画像に対し所定の画像処理を行うようにしたため、下位ビットのデータを上位ビットのデータ列に埋め込むことで、上位ビットデータと下位ビットデータとを一つのファイルとして扱うことが可能となり、ファイルのハンドリングが容易になるという効果を奏する。   The image processing method according to claim 23 determines the characteristics of the region of interest, divides the image data into two image data of upper bits and lower bits, performs orthogonal conversion on the upper bit image data, and performs data after the orthogonal conversion. , Quantize the lower bit image data, add the compressed lower bit image data to the quantized data, store the image data with the data added, and read the stored image data Since the image is decompressed and predetermined image processing is performed on the decompressed image, the upper bit data and the lower bit data are combined into one by embedding the lower bit data in the upper bit data string. It is possible to handle it as a file, and there is an effect that handling of the file becomes easy.

請求項24にかかる画像処理方法は、注目領域の属性を判定し、画像データを上位ビットと下位ビットの2つの画像データに分割し、上位ビットの画像データを直行変換し、直行変換後のデータを量子化し、下位ビットの画像データを圧縮し、量子化後のデータに圧縮された下位ビットの画像データを付加し、データが付加された画像データを記憶し、その記憶された画像データを読み出して画像の伸張を行い、その伸張された画像に対して所定の画像処理を行うようにしたため、下位ビットのデータを上位ビットのデータ列に埋め込むことで、上位ビットデータと下位ビットデータとを一つのファイルとして扱うことが可能となり、ファイルのハンドリングが容易になるという効果を奏する。   25. The image processing method according to claim 24, wherein the attribute of the region of interest is determined, the image data is divided into two image data of upper bits and lower bits, the upper bit image data is subjected to direct conversion, and the data after direct conversion , Quantize the lower bit image data, add the compressed lower bit image data to the quantized data, store the image data with the data added, and read the stored image data Since the image is decompressed and predetermined image processing is performed on the decompressed image, the upper bit data and the lower bit data are combined by embedding the lower bit data in the upper bit data string. It is possible to handle them as one file, and the file handling is facilitated.

請求項25にかかる画像処理方法は、画像データを上位ビットと下位ビットの2つの画像データに分割し、上位ビットの画像データを記憶し、下位ビットの画像データを記憶し、その記憶された上位ビットの画像データを読み出して、記憶された下位ビットの画像データを参照しながら画像処理を行うようにしたため、下位ビットデータを一時保存領域にのみ保存することで一回目の出力時の画質を向上しつつ、記憶手段の記憶容量を節約することができるという効果を奏する。   The image processing method according to claim 25 divides image data into two image data of upper bits and lower bits, stores upper bit image data, stores lower bit image data, and stores the upper bits stored therein. Bit image data is read and image processing is performed while referring to the stored lower bit image data, so the lower bit data is saved only in the temporary storage area, improving the image quality at the first output. However, the storage capacity of the storage means can be saved.

請求項26にかかる発明は、前記請求項22〜25のいずれか一つの画像処理方法を記憶媒体に記憶させて利用できるという効果を奏する。   The invention according to claim 26 has an effect that the image processing method according to any one of claims 22 to 25 can be stored in a storage medium and used.

以下に、本発明にかかる画像処理装置、画像処理方法、およびその方法を記憶する記憶媒体の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Embodiments of an image processing apparatus, an image processing method, and a storage medium storing the method according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.

(第1の実施の形態)
図1は、本発明の第1の実施の形態に係る画像処理装置の構成を説明するブロック図であり、図2−1は、入力された画像データの波形図であり、図2−2は、図2−1の波形を上位ビットと下位ビットに分割したときの上位ビットの波形図であり、図2−3は、下位ビットの波形図であり、図3−1は、入力された画像データの波形図であり、図3−2は、図3−1の波形を上位ビットと下位ビットに分割したときの上位ビットの波形図であり、図3−3は、下位ビットの波形図であり、図4は、図1の画像処理部の構成例を示す詳細ブロック図である。
(First embodiment)
FIG. 1 is a block diagram for explaining the configuration of the image processing apparatus according to the first embodiment of the present invention, FIG. 2-1 is a waveform diagram of input image data, and FIG. 2-1 is a waveform diagram of upper bits when the waveform of FIG. 2-1 is divided into upper bits and lower bits, FIG. 2-3 is a waveform diagram of lower bits, and FIG. FIG. 3-2 is a waveform diagram of data, FIG. 3-2 is a waveform diagram of upper bits when the waveform of FIG. 3-1 is divided into upper bits and lower bits, and FIG. 3-3 is a waveform diagram of lower bits. FIG. 4 is a detailed block diagram illustrating a configuration example of the image processing unit in FIG. 1.

図1に示す画像処理装置10は、特徴判定手段としてのエッジ判定部11、画像分割手段としての画像分割部12、第一の画像圧縮手段としての第一の画像圧縮部13、第二の画像圧縮手段としての第二の画像圧縮部14、記憶手段としての記憶部15、および画像処理手段としての画像処理部16などで構成されている。   An image processing apparatus 10 shown in FIG. 1 includes an edge determination unit 11 as a feature determination unit, an image division unit 12 as an image division unit, a first image compression unit 13 as a first image compression unit, and a second image. A second image compression unit 14 as a compression unit, a storage unit 15 as a storage unit, an image processing unit 16 as an image processing unit, and the like are included.

エッジ判定部11は、入力画像データのエッジ判定を行うもので、例えばある注目領域に対して隣接する8つの画素夫々との差の絶対値に対し、所定の閾値判定を行うことでエッジ判定を行うことができる。   The edge determination unit 11 performs edge determination of input image data. For example, edge determination is performed by performing predetermined threshold determination on the absolute value of the difference between each of eight adjacent pixels for a certain region of interest. It can be carried out.

画像分割部12は、入力される10ビットの画像データの下位2ビットを抽出した後、2ビットのビットシフトを行うことで上位8ビットおよび下位2ビットに分割する。   The image dividing unit 12 extracts the lower 2 bits of the input 10-bit image data, and then performs 2-bit bit shift to divide the upper 8 bits and the lower 2 bits.

第一の画像圧縮部13は、画像分割部12で分割された上位8ビットをJPEG圧縮する。   The first image compression unit 13 performs JPEG compression on the upper 8 bits divided by the image division unit 12.

第二の画像圧縮部14は、画像分割部12のもう一方の出力である下位2ビットデータを上記エッジ判定部11の判定結果に応じてJPEG圧縮するか否かを決める。例えば、8×8画素のDCTブロックごとにエッジ判定部11の出力が真である画素があるか否かを判定し、その判定結果が真である画素が存在する場合には、当該DCTブロックの画素値を全て「0」として出力する。エッジ判定結果が真である画素が存在しない場合は、入力下位2ビットデータをそのまま出力する。なお、第二の画像圧縮部14の圧縮率は、第一の画像圧縮部13よりも低い圧縮率を用いるものとする。   The second image compression unit 14 determines whether or not the lower 2-bit data, which is the other output of the image division unit 12, is JPEG compressed according to the determination result of the edge determination unit 11. For example, it is determined whether there is a pixel for which the output of the edge determination unit 11 is true for each 8 × 8 pixel DCT block, and if there is a pixel for which the determination result is true, All pixel values are output as “0”. If there is no pixel for which the edge determination result is true, the input lower 2-bit data is output as it is. Note that the compression rate of the second image compression unit 14 is lower than that of the first image compression unit 13.

記憶部15は、第一の画像圧縮部13でJPEG圧縮された上位ビットデータを保持すると共に、第二の画像圧縮部14の出力を保持する。   The storage unit 15 holds the upper bit data that has been JPEG-compressed by the first image compression unit 13 and also holds the output of the second image compression unit 14.

画像処理部16は、図4に示すように、第一の伸張部17と、第二の伸張部18と、両者の出力の和をとる加算器19などで構成され、記憶部15に保持された下位ビットデータを第一の伸張部17に入力し、記憶部15に保持された上位ビットデータを第二の伸張部18に入力して伸張した後、上位ビットに関しては2ビットビットシフトを行って、加算器19で両者の和をとり、出力するものである。   As shown in FIG. 4, the image processing unit 16 includes a first decompression unit 17, a second decompression unit 18, an adder 19 that takes the sum of the outputs of both, and the like, and is held in the storage unit 15. After the lower bit data is input to the first decompression unit 17 and the upper bit data held in the storage unit 15 is input to the second decompression unit 18 and decompressed, the upper bits are shifted by 2 bits. The adder 19 calculates the sum of the two and outputs the result.

第1の実施の形態における動作は、図1に示すように、画像処理装置10に入力される10ビットの画像データがエッジ判定部11でエッジ判定すると共に、画像分割部12によって下位2ビットを抽出後、2ビットのビットシフトを行うことで上位8ビットおよび下位2ビットに分割される。分割された上位8ビットは、第一の画像圧縮部13によってJPEG圧縮され、その圧縮された上位ビットデータは記憶部15に保持される。保持された上位ビットデータは外部機器で閲覧の際に利用される。   As shown in FIG. 1, the operation in the first embodiment is that the 10-bit image data input to the image processing apparatus 10 is edge-determined by the edge determination unit 11 and the lower-order 2 bits are converted by the image division unit 12. After extraction, it is divided into upper 8 bits and lower 2 bits by performing a 2-bit bit shift. The divided upper 8 bits are JPEG compressed by the first image compression unit 13, and the compressed upper bit data is held in the storage unit 15. The held upper bit data is used when browsing with an external device.

また、画像分割部12のもう一方の出力である下位2ビットデータは、エッジ判定部11の結果に応じて第二の画像圧縮部14によりJPEG圧縮される。8×8画素のDCTブロックごとにエッジ判定部11の出力が真である画素があるか否かを判定し、その判定結果が真である画素が存在する場合には、当該DCTブロックの画素値を全て「0」として出力する。エッジ判定結果が真である画素が存在しない場合は、入力下位2ビットデータをそのまま出力する。この第二の画像圧縮部14の出力も記憶部15に保持される。   Further, the lower 2 bit data which is the other output of the image dividing unit 12 is JPEG compressed by the second image compressing unit 14 in accordance with the result of the edge determining unit 11. It is determined whether there is a pixel for which the output of the edge determination unit 11 is true for each 8 × 8 pixel DCT block. If there is a pixel for which the determination result is true, the pixel value of the DCT block is determined. Are all output as “0”. If there is no pixel for which the edge determination result is true, the input lower 2-bit data is output as it is. The output of the second image compression unit 14 is also held in the storage unit 15.

そして、図4に示すように、画像処理部16は、記憶部15に保持された下位ビットデータと上位ビットデータをそれぞれ第一の伸張部17と第二の伸張部18に入力して伸張した後、上位ビットに関しては2ビットビットシフトを行って、加算器19にて両者の和をとった後、出力される。   Then, as shown in FIG. 4, the image processing unit 16 inputs the lower bit data and the upper bit data held in the storage unit 15 to the first decompression unit 17 and the second decompression unit 18, respectively, and decompresses them. Thereafter, the upper bits are subjected to 2-bit bit shift, and the adder 19 calculates the sum of the two before being output.

なお、上記したエッジ判定部11の判定結果に応じて下位2ビットデータを破棄する理由は、一般的に画像にとって階調性が最も大事な領域とは階調が滑らかに変化する領域であると云えるからである。このように、滑らかな階調を表現する場合、階調数が足りないと実際には無い場所に輪郭線が現れる、いわゆる擬似輪郭が発生する恐れがある。一方、文字等に代表されるエッジ量の高い領域においては、急激に画素値が変化しているため、その変化量が少々変化してもその不具合が目に付き難いことから、比較的下位ビットの恩恵を受けやすい領域についてだけ下位ビットを保持しておくことで、高階調数にするメリットを最大限残しつつ、記憶部15の容量を節約するためである。   Note that the reason why the lower 2-bit data is discarded according to the determination result of the edge determination unit 11 described above is that an area where gradation is most important for an image is an area where gradation changes smoothly. Because it can be said. Thus, when expressing a smooth gradation, if there are not enough gradations, there is a possibility that a so-called pseudo contour, in which a contour line appears at a place where it does not actually exist, may occur. On the other hand, in a region with a large edge amount typified by characters and the like, the pixel value changes abruptly, so even if the amount of change changes slightly, it is difficult to notice the malfunction. This is because the lower bits are retained only for the areas that are likely to benefit from the above, thereby saving the capacity of the storage unit 15 while maximizing the merit of increasing the number of gradations.

また、第二の画像圧縮部14の圧縮率を第一の画像圧縮部13よりも低いものとする理由は、下位2ビットデータは高周波成分、低周波成分のどちらが重要かが一概に云えないためである。これについて一次元での例を挙げて説明する。例えば、図2−1にみられるような波形を上位ビットと下位ビットに分けると、それぞれ図2−2(上位ビット)と図2−3(下位ビット)のように分けられる。この例における下位ビットは、頻繁に数値が変化しており、その波形は高周波であるといえる。一方、図3−1に見られるような波形を上位ビットと下位ビットに分けると、それぞれ図3−2(上位ビット)と図3−3(下位ビット)のように分けられる。この例における下位ビットはなだらかな変化をしており、その波形は低周波であるといえる。しかし、上記図2および図3の波形ともなだらかな変化を示す画像データであるため、これらを忠実に再現するには、下位ビットについては高周波、低周波のどちらも保持しておくことが望ましいと思われるからである。   The reason why the compression ratio of the second image compression unit 14 is lower than that of the first image compression unit 13 is because it cannot be generally said which of the high-frequency component and the low-frequency component is important in the lower 2-bit data. It is. This will be described with a one-dimensional example. For example, when the waveform shown in FIG. 2-1 is divided into upper bits and lower bits, they are divided as shown in FIG. 2-2 (upper bits) and FIG. 2-3 (lower bits), respectively. The numerical values of the lower bits in this example frequently change, and it can be said that the waveform is high frequency. On the other hand, when the waveform shown in FIG. 3A is divided into upper bits and lower bits, they are divided as shown in FIG. 3-2 (upper bits) and FIG. 3-3 (lower bits), respectively. The lower bits in this example have a gentle change, and the waveform can be said to be low frequency. However, since both the waveforms in FIGS. 2 and 3 are image data showing gentle changes, it is desirable to retain both high and low frequencies for the lower bits in order to faithfully reproduce them. Because it seems.

このように、第1の実施の形態によれば、圧縮処理する画像データを上位ビットと下位ビットに分け、画像の注目領域における特徴を判定することにより、それぞれの画像データに応じた圧縮処理や画像処理を施すことが可能なことから、画像の劣化を防止しつつ、画像のデータ量をできるだけ低減した圧縮処理を行うことができる。   As described above, according to the first embodiment, the image data to be compressed is divided into upper bits and lower bits, and the characteristics in the attention area of the image are determined. Since it is possible to perform image processing, it is possible to perform compression processing with the image data amount reduced as much as possible while preventing image deterioration.

(第2の実施の形態)
図5は、本発明の第2の実施の形態に係る画像処理装置の構成を説明するブロック図であり、図6は、図5の文字判定部の構成例を示す詳細ブロック図である。
(Second Embodiment)
FIG. 5 is a block diagram illustrating the configuration of the image processing apparatus according to the second embodiment of the present invention, and FIG. 6 is a detailed block diagram illustrating a configuration example of the character determination unit in FIG.

図5に示す画像処理装置20は、属性判定手段としての文字判定部21、画像分割手段としての画像分割部22、第一の画像圧縮手段としての第一の画像圧縮部23、第二の画像圧縮手段としての第二の画像圧縮部24、記憶手段としての記憶部25、および画像処理手段としての画像処理部26などで構成されている。   An image processing apparatus 20 shown in FIG. 5 includes a character determination unit 21 as an attribute determination unit, an image division unit 22 as an image division unit, a first image compression unit 23 as a first image compression unit, and a second image. A second image compression unit 24 as a compression unit, a storage unit 25 as a storage unit, an image processing unit 26 as an image processing unit, and the like are included.

第2の実施の形態は、その構成の殆んどが上記第1の実施の形態と同じであるが、どの領域の下位ビットデータを破棄するかという点と、画像圧縮部において第1の実施の形態と異なっている。そこで、同じ構成部に関する構成説明は省略し、異なる点に重点をおいて以下説明する。   In the second embodiment, most of the configuration is the same as that of the first embodiment, but in which area the lower-order bit data is to be discarded, and the image compression unit performs the first implementation. The form is different. Therefore, the description of the configuration of the same components will be omitted, and the following description will be given with emphasis on different points.

どの領域の下位ビットデータを破棄するかについては、画像データの注目領域における属性を判定する文字判定部21により決定される。図6に示す文字判定部21は、濃度判定部27、パタンマッチ部28、膨張部29、収縮部30、エッジ判定部31、およびAND回路32などで構成されている。   Which area of lower bit data is to be discarded is determined by the character determination unit 21 that determines the attribute of the attention area of the image data. The character determination unit 21 shown in FIG. 6 includes a density determination unit 27, a pattern matching unit 28, an expansion unit 29, a contraction unit 30, an edge determination unit 31, and an AND circuit 32.

図6に示すように、文字判定部27に画像データが入力されると、濃度判定部27により所定の濃度よりも低い濃度を持つか否かの判定が行われる。そして、続くパタンマッチ部28では、パタンマッチが行われるが、ここでは注目画素の両側5画素が全て低濃度であった場合に真を出力するようにする。その後段の膨張部29と収縮部30とを経てAND回路32へと導かれる。   As shown in FIG. 6, when image data is input to the character determination unit 27, the density determination unit 27 determines whether the density is lower than a predetermined density. Then, in the subsequent pattern matching unit 28, pattern matching is performed. Here, when all the five pixels on both sides of the target pixel are low in density, true is output. It is led to the AND circuit 32 through the expansion part 29 and the contraction part 30 in the subsequent stage.

一方、エッジ判定部31では、上記第1の実施の形態における図1のエッジ判定部110と同様の動作が行われるので、構成説明は省略する。そして、このエッジ判定部31の出力もAND回路32へ導かれる。このため、AND回路32では、エッジがあり低濃度領域であると判定された領域のみを文字領域と判定し、この結果が真である場合にのみ下位ビットデータを破棄するようにする。   On the other hand, the edge determination unit 31 performs the same operation as the edge determination unit 110 of FIG. The output of the edge determination unit 31 is also guided to the AND circuit 32. For this reason, the AND circuit 32 determines that only an area having an edge and determined to be a low density area is a character area, and discards lower-order bit data only when the result is true.

このように、白地上の文字等の領域のみで下位ビットデータを破棄するのは、以下の理由による。すなわち、前記に該当しないエッジ領域としては、例えば人物写真画像中の頭髪等がある。本第2の実施の形態では、JPEG圧縮を前提とし、8×8画素で処理を行って行くため、単純にエッジ領域で下位ビットを破棄してしまうと人物写真の髪の毛の周辺などで画像の不連続を発生させる恐れがあるため、いわゆる文字領域のみで下位ビットデータを破棄することが望ましいからである。   In this way, the reason why the lower-order bit data is discarded only in the area such as characters on the white ground is as follows. That is, the edge region not corresponding to the above includes, for example, hair in a person photo image. In the second embodiment, assuming that JPEG compression is performed, processing is performed with 8 × 8 pixels. Therefore, if the lower bits are simply discarded in the edge area, the image of the image around the hair of the human photograph etc. This is because it is desirable to discard the lower-order bit data only in a so-called character area because there is a possibility of causing discontinuity.

次に、画像圧縮方法については、上位ビットを圧縮する第一の画像圧縮部23では、JPEGを用いた圧縮とし、下位ビットを圧縮する第二の画像圧縮部24では、ランレングス法を用いた圧縮とする。一般的にどの圧縮方法であっても、圧縮する画像の性質に対して得手不得手がある。例えば、JPEG圧縮は、自然画のような高周波を多く含むような画像に対し、高い圧縮率を示し、汎用性も高いが、例えばアニメのセル画にみられる、エッジと数種類の色のみで構成されるような特異的な画像に対してはさほど高い圧縮性能は示さない。また、JPEG圧縮は非可逆圧縮であり、完全に情報を復元することは不可能であるため、一様な領域の多い画像を圧縮すると画質の劣化も目立ちやすいという特徴がある。   Next, regarding the image compression method, the first image compression unit 23 that compresses the upper bits uses JPEG compression, and the second image compression unit 24 that compresses the lower bits uses the run-length method. Let it be compressed. In general, any compression method is not good at the nature of the image to be compressed. For example, JPEG compression shows a high compression ratio and high versatility for images that contain many high frequencies such as natural images, but it is composed of only edges and several types of colors found in, for example, anime cell images. For such specific images, the compression performance is not so high. Further, JPEG compression is irreversible compression, and it is impossible to completely restore information. Therefore, when an image having a large number of uniform areas is compressed, deterioration in image quality is conspicuous.

一方、ランレングス法、つまり同じ数値がいくつ続いたかを保持するような圧縮方法を用いた場合は、自然画のような画像では情報の圧縮が殆ど期待できないが、アニメのような画像では高い圧縮率を期待することができる。また、ランレングス法は可逆圧縮であるため、情報を完全に復元することができるという特徴がある。   On the other hand, when using the run-length method, that is, a compression method that retains how many times the same numerical value continues, information compression is hardly expected for images such as natural images, but high compression is required for images such as animation. You can expect rates. Further, since the run length method is lossless compression, it has a feature that information can be completely restored.

そこで、第2の実施の形態の手法を顧みると、下位ビットデータでは適応処理により、同じ値つまり0である領域が頻出する可能性が高い。また、第1の実施の形態で述べたように高周波と低周波のどちらの情報も保持しておくことが望ましい。このため、本第2の実施の形態では、上位ビットは比較的多目的に用いることができるJPEGで圧縮し、下位ビットは非圧縮のランレングス法で圧縮するという手法を採用している。   In view of the technique of the second embodiment, there is a high possibility that lower-bit data will frequently appear in the same value, that is, in the area of 0 by the adaptive processing. Further, as described in the first embodiment, it is desirable to hold both high frequency and low frequency information. For this reason, in the second embodiment, a method is employed in which the upper bits are compressed by JPEG, which can be used for relatively many purposes, and the lower bits are compressed by an uncompressed run length method.

このように、第2の実施の形態によれば、属性判定手段である文字判定部21を持っているため、適応的に情報の取捨選択を行うことができ、上位ビットと下位ビットにそれぞれ適した圧縮方法を用いて圧縮することにより、画像の劣化を最小限に抑制しながら、効率の良い圧縮処理を行うことが可能となる。   As described above, according to the second embodiment, since the character determination unit 21 which is an attribute determination unit is provided, information can be adaptively selected, which is suitable for the upper bit and the lower bit, respectively. By using the compression method described above, efficient compression processing can be performed while minimizing image degradation.

(第3の実施の形態)
図7は、本発明の第3の実施の形態に係る画像処理装置の構成を説明するブロック図であり、図8は、図7の圧縮部の構成例を示す詳細ブロック図であり、図9は、図8のブロック平均算出部において平均濃度を算出する領域1〜4を示す図であり、図10は、図8のエッジ方向判定部における判定結果と出力内容との対応関係を示す図であり、図11は、図7のデータ付加部の構成例を示す詳細ブロック図であり、図12は、図11の切捨て部において量子化が施された上位ビットデータの8×8画素のマスクにおける右下の3つの画素の濃度値を0にした状態図であり、図13は、図7の画像処理部の構成例を示す詳細ブロック図であり、図14は、図7のデータ付加手段によりデータの付加された画素から読み取った種々の値からDCTブロックに対応する画素を2つの領域に分けて格納する値を説明する対応パターン図である。
(Third embodiment)
FIG. 7 is a block diagram illustrating the configuration of an image processing apparatus according to the third embodiment of the present invention. FIG. 8 is a detailed block diagram illustrating a configuration example of the compression unit in FIG. FIG. 10 is a diagram showing areas 1 to 4 in which the average density is calculated in the block average calculation unit in FIG. 8, and FIG. 10 is a diagram showing a correspondence relationship between the determination result in the edge direction determination unit in FIG. FIG. 11 is a detailed block diagram illustrating an example of the configuration of the data adding unit in FIG. 7, and FIG. 12 is a diagram illustrating an 8 × 8 pixel mask of the upper bit data quantized in the truncation unit in FIG. FIG. 13 is a state diagram in which the density values of the three pixels at the lower right are set to 0. FIG. 13 is a detailed block diagram showing a configuration example of the image processing unit in FIG. 7, and FIG. DC from various values read from the pixel to which data is added A corresponding pattern diagram illustrating the value to be stored separately pixels corresponding to the block into two regions.

図7に示す画像処理装置40は、エッジ判定部41、画像分割部42、直行変換部43、量子化部44、圧縮部45、データ付加部46、符号化部47、記憶部48、および画像処理部49などで構成されている。   An image processing apparatus 40 shown in FIG. 7 includes an edge determination unit 41, an image division unit 42, an orthogonal transform unit 43, a quantization unit 44, a compression unit 45, a data addition unit 46, an encoding unit 47, a storage unit 48, and an image. It consists of a processing unit 49 and the like.

まず、図7を用いて第3の実施の形態を説明する。図7に示す画像処理装置40は、10ビットの画像データが入力されると、エッジ判定部41によりエッジ判定が行われる。このエッジ判定部41は、上記第1の実施の形態で示した図1中のエッジ判定部11と同様の動作を行うものであるため、構成説明は省略する。   First, a third embodiment will be described with reference to FIG. In the image processing apparatus 40 shown in FIG. 7, when 10-bit image data is input, the edge determination unit 41 performs edge determination. Since the edge determination unit 41 performs the same operation as the edge determination unit 11 in FIG. 1 shown in the first embodiment, the description of the configuration is omitted.

一方、入力された画像データは、画像分割部42にも送られ、上位8ビットと下位2ビットに分割される。まず、上位8ビットデータは、直行変換部43と量子化部44を経ることで、JPEG圧縮の項で前述したようなDCT変換や量子化が施された後、データ付加部46へデータが送られる。   On the other hand, the input image data is also sent to the image dividing unit 42 and divided into upper 8 bits and lower 2 bits. First, the upper 8-bit data undergoes DCT conversion and quantization as described above in the JPEG compression section through the direct conversion unit 43 and the quantization unit 44, and then the data is sent to the data addition unit 46. It is done.

また、下位2ビットデータは、圧縮部45によって情報量の圧縮が施される。図8を用いて圧縮部45をさらに説明する。この圧縮部45は、ブロック平均算出部50、エッジ方向判定部51、エッジ量算出部52、および平均値算出部53などで構成され、JPEG圧縮される際の8×8画素の単位で情報が処理される。   The lower 2 bit data is compressed by the compression unit 45 in the amount of information. The compression unit 45 will be further described with reference to FIG. The compression unit 45 includes a block average calculation unit 50, an edge direction determination unit 51, an edge amount calculation unit 52, an average value calculation unit 53, and the like. Information is stored in units of 8 × 8 pixels when JPEG compression is performed. It is processed.

まず、ブロック平均算出部50では、図9に示す領域1〜4の平均濃度が夫々算出される。そして、エッジ方向判定部51では、領域1と領域4の平均濃度差の絶対値、領域2と領域3の平均濃度差の絶対値、領域1と領域3、領域2と領域4の夫々の平均濃度差の絶対値の平均、および領域1と領域2、領域3と領域4の夫々の平均濃度差の絶対値の平均を算出し、それらを比較して最大となるものに応じて出力を変化させる。このエッジ方向判定部51において、どの場合にどのような信号が出力されるかについては、図10の一覧に対応関係が示してある。   First, the block average calculation unit 50 calculates the average densities of the regions 1 to 4 shown in FIG. Then, in the edge direction determination unit 51, the absolute value of the average density difference between the region 1 and the region 4, the absolute value of the average density difference between the region 2 and the region 3, the average of each of the region 1 and the region 3, and the region 2 and the region 4 Calculate the average of the absolute values of the density differences and the average of the absolute values of the average density differences of the areas 1 and 2 and the areas 3 and 4 and compare them to change the output according to the maximum value. Let In this edge direction determination unit 51, what kind of signal is output in which case is shown in the list of FIG.

続くエッジ量算出部52においては、エッジ方向判定部51からの出力値を参照しながら、エッジ量の算出が行われる。より具体的には、エッジ方向に存在する領域の差を算出するものである。例えば、エッジ方向判定部51の出力が「0」であった場合、エッジ量算出部52は、領域1から領域4の平均濃度を引いたものを以って出力とする。さらに、平均値算出部53は、領域1〜4の平均を以って出力とする。   The subsequent edge amount calculation unit 52 calculates the edge amount with reference to the output value from the edge direction determination unit 51. More specifically, the difference between regions existing in the edge direction is calculated. For example, when the output of the edge direction determination unit 51 is “0”, the edge amount calculation unit 52 outputs the value obtained by subtracting the average density of the region 4 from the region 1. Further, the average value calculation unit 53 outputs the average of the regions 1 to 4 as an output.

次に、図11を用いてデータ付加部46を説明する。データ付加部46は、切捨て部54、付加部55、およびセレクタ56などで構成されている。この切捨て部54では、DCTを施し、量子化された上位ビットデータの8×8画素のマスクにおける図12の右下3つの画素(黒ベタ)の濃度値を強制的に「0」にする。   Next, the data adding unit 46 will be described with reference to FIG. The data adding unit 46 includes a truncation unit 54, an adding unit 55, a selector 56, and the like. This truncation unit 54 performs DCT, and forcibly sets the density values of the lower right three pixels (solid black) in FIG. 12 in the mask of 8 × 8 pixels of the quantized upper bit data to “0”.

さらに、付加部55においては、圧縮部45によって得られた、エッジ方向、エッジ量、平均濃度値を強制的に「0」にした画素へ付加する。そして、セレクタ56では、エッジ判定結果が真であるならば、下位ビットが付加されたデータを出力する。一方、エッジ判定結果が偽であるならば、下位ビットが付加されていないデータを出力する。   Further, the adding unit 55 forcibly adds the edge direction, the edge amount, and the average density value obtained by the compression unit 45 to “0”. Then, the selector 56 outputs the data with the lower bits added if the edge determination result is true. On the other hand, if the edge determination result is false, data with no lower bit added is output.

このように、データ付加部46の出力は、符号化部47によって前述したハフマン符号化処理が施され、記憶部48で一度記憶される。ここで記憶された画像は、外部機器で閲覧する際に、通常のJPEGと同様に閲覧することが可能である。   In this way, the output of the data adding unit 46 is subjected to the Huffman encoding process described above by the encoding unit 47 and is once stored in the storage unit 48. The image stored here can be browsed in the same way as normal JPEG when browsing with an external device.

また、記憶部48に記憶された画像データは、ユーザからの要求に応じて読み出され、画像処理部49に送られる。図13は、画像処理部49の詳細ブロックが示されたもので、第一の伸張部57、エッジ判定部58、第二の伸張部59、および加算器60などで構成されている。この画像処理部49に入力される入力画像は、第一の伸張部57により伸張された後、エッジ判定部58によってエッジ判定が行われる。このエッジ判定部58は、上記第1の実施の形態で説明した図1のエッジ判定部11と同様の動きをするものであるため、説明を省略する。   The image data stored in the storage unit 48 is read out in response to a request from the user and sent to the image processing unit 49. FIG. 13 shows a detailed block of the image processing unit 49, which includes a first expansion unit 57, an edge determination unit 58, a second expansion unit 59, an adder 60, and the like. The input image input to the image processing unit 49 is expanded by the first expansion unit 57 and then subjected to edge determination by the edge determination unit 58. Since the edge determination unit 58 operates in the same manner as the edge determination unit 11 of FIG. 1 described in the first embodiment, description thereof is omitted.

次に、第二の伸張部59によりエッジ判定結果を参照しながら、8ビットのJPEGを上位8ビットと下位2ビットに分割しながら出力する。この時、エッジ判定結果が真であるならば下位ビットデータの出力は「0」、また、エッジ判定結果が偽であるならば、データ付加部46によってデータが付加された画素から下位ビットのエッジ量、エッジ方向、平均値を読み取る。そして、読み取った値に応じて上位8ビットのDCTブロックに対応する8×8画素を二つの領域に分け、夫々の領域に同じ値を格納して下位ビットの出力とする。ビットシフトし10ビットとなった上位ビットに前記処理を施して作成された下位ビットデータを付加し出力する。図14は、夫々の領域に格納される値、格納パターン、エッジ方向との対応関係を示したものである。   Next, referring to the edge determination result by the second decompression unit 59, the 8-bit JPEG is output while being divided into upper 8 bits and lower 2 bits. At this time, if the edge determination result is true, the output of the lower bit data is “0”, and if the edge determination result is false, the edge of the lower bit from the pixel to which the data is added by the data adding unit 46 Read the quantity, edge direction and average value. Then, 8 × 8 pixels corresponding to the upper 8-bit DCT block are divided into two areas according to the read value, and the same value is stored in each area to output the lower bits. The lower bit data created by performing the above processing is added to the upper bits that have been bit shifted to 10 bits and output. FIG. 14 shows the correspondence between values stored in the respective areas, storage patterns, and edge directions.

このように、第3の実施の形態によれば、下位ビットのデータを上位ビットのデータ列に埋め込むことで、上位ビットおよび下位ビットデータを一つのファイルとして扱うことができるようになり、ファイルのハンドリングが容易になる。   As described above, according to the third embodiment, by embedding the lower bit data in the upper bit data string, the upper bit and the lower bit data can be handled as one file. Handling becomes easy.

なお、本第3の実施の形態では、図7のエッジ判定部41と図13のエッジ判定部58によりデータの付加を行うか否かを制御するようにしたが、このエッジ判定部41、58の夫々を上記第2実施の形態で示した文字判定部に置き換えることにより、写真領域では、下位2ビットを保持するといった制御も可能になる。   In the third embodiment, the edge determination unit 41 of FIG. 7 and the edge determination unit 58 of FIG. 13 control whether or not data is added. By replacing each of the above with the character determination unit shown in the second embodiment, it is possible to control to hold the lower 2 bits in the photo area.

(第4の実施の形態)
第4の実施の形態は、上記第3の実施の形態の図7に示す画像処理装置40と殆ど同じ構成であるが、その中のデータ付加部46と画像処理部49の内部構成が異なっている。図15は、第4の実施の形態に係るデータ付加部の構成例を示す詳細ブロック図であり、図16は、第4の実施の形態に係る画像処理部の構成例を示す詳細ブロック図である。
(Fourth embodiment)
The fourth embodiment has almost the same configuration as the image processing apparatus 40 shown in FIG. 7 of the third embodiment, but the internal configurations of the data adding unit 46 and the image processing unit 49 are different. Yes. FIG. 15 is a detailed block diagram illustrating a configuration example of the data adding unit according to the fourth embodiment, and FIG. 16 is a detailed block diagram illustrating a configuration example of the image processing unit according to the fourth embodiment. is there.

まず、図15に示すデータ付加部46は、第一の切捨て部61、第一の付加部62、第二の切捨て部63、第二の付加部64、およびセレクタ65などで構成されている。この第一の切捨て部61では、DCTを施し、量子化された上位ビットデータの8×8画素のマスクにおける右下の4つの画素(図12の黒および灰色)の濃度値を切捨て、強制的に「0」にする。   First, the data addition unit 46 shown in FIG. 15 includes a first truncation unit 61, a first addition unit 62, a second truncation unit 63, a second addition unit 64, a selector 65, and the like. The first truncation unit 61 performs DCT, truncates the density values of the lower right four pixels (black and gray in FIG. 12) in the 8 × 8 pixel mask of the quantized upper bit data, and forces To “0”.

次に、第一の付加部62においては、図7の圧縮部45によって得られた、エッジ方向、エッジ量、平均濃度値、およびエッジ判定結果を強制的に「0」にした前記画素へ付加する。なお、エッジ判定結果は、一番右下の画素に格納するものとする。   Next, the first addition unit 62 adds the edge direction, edge amount, average density value, and edge determination result obtained by the compression unit 45 of FIG. To do. Note that the edge determination result is stored in the lower right pixel.

一方、第二の切捨て部63においては、DCTを施し、量子化された上位ビットデータの8×8画素のマスクにおける一番右下の画素の濃度値を切捨て、強制的に「0」にする。また、第二の付加部64においては、エッジ判定結果を8×8画素のマスクにおける一番右下の画素へ格納する。さらに、セレクタ65では、エッジ判定結果が真であるならば、下位ビットを付加されたデータを、また、エッジ判定結果が偽であるならば、下位ビットを付加されていないデータを出力するようにする。   On the other hand, the second truncation unit 63 performs DCT, truncates the density value of the lower right pixel in the 8 × 8 pixel mask of the quantized upper bit data, and forcibly sets it to “0”. . In addition, the second addition unit 64 stores the edge determination result in the lower right pixel in the 8 × 8 pixel mask. Further, the selector 65 outputs the data with the lower bit added if the edge determination result is true, or the data without the lower bit added if the edge determination result is false. To do.

次に、図16に示す画像処理部49は、伸張部66と加算器67などで構成されており、入力画像の8×8画素のマスクにおいて一番右下の画素値を参照し、その値が真であるならそのまま伸張部66で伸張処理を行い、上位ビットのみを出力する。また、その値が偽であるならば、右下の4画素(図12の黒および灰色画素)から上記第3の実施の形態と同様に作成した下位ビットデータ、および右下4画素以外を用いて伸張した上位ビットを出力する。上位ビットを2ビット分ビットシフトし、加算器67で下位ビットとの和をとることで出力とする。   Next, the image processing unit 49 shown in FIG. 16 includes an expansion unit 66 and an adder 67. The image processing unit 49 refers to the pixel value at the bottom right in the 8 × 8 pixel mask of the input image, and determines the value. Is true, the decompression unit 66 performs decompression processing as it is, and outputs only the upper bits. If the value is false, lower bit data created in the same manner as in the third embodiment from the lower right four pixels (black and gray pixels in FIG. 12) and other than the lower right four pixels are used. Output the higher-order bits. The upper bits are bit-shifted by 2 bits, and an adder 67 sums the lower bits and outputs the result.

このように、第4の実施の形態によれば、エッジ判定結果をさらにJPEG画像に付加することにより、画像復元手段に於いてもう一度エッジ判定を行う必要が無くなり、コストダウンにつながる。   As described above, according to the fourth embodiment, by further adding the edge determination result to the JPEG image, it is not necessary to perform the edge determination again in the image restoration unit, leading to cost reduction.

なお、本第4の実施の形態では、エッジ判定結果に基づいて下位ビットデータの付加を制御するようにしたが、これに限定されず、当然ながら文字判定結果に基づいて同様の処理を行うようにしても良い。   In the fourth embodiment, the addition of the lower-order bit data is controlled based on the edge determination result. However, the present invention is not limited to this, and the same processing is naturally performed based on the character determination result. Anyway.

(第5の実施の形態)
図17は、本発明の第5の実施の形態に係る画像処理装置の構成を説明するブロック図である。図17に示す画像処理装置70は、画像分割部71、圧縮部72、記憶部73、伸張部74、一時記憶部75、および画像処理部76などで構成されている。
(Fifth embodiment)
FIG. 17 is a block diagram illustrating a configuration of an image processing apparatus according to the fifth embodiment of the present invention. An image processing apparatus 70 illustrated in FIG. 17 includes an image dividing unit 71, a compression unit 72, a storage unit 73, an expansion unit 74, a temporary storage unit 75, an image processing unit 76, and the like.

画像処理装置70に入力される10ビットの画像データは、画像分割部71によって上位8ビットおよび下位2ビットに分割される。上位8ビットデータは、圧縮部72によってJPEG圧縮された後、記憶部73に記憶される。記憶部73に記憶された画像データは、ユーザの要求に応じて記憶部73から読み出され、伸張部74で伸張されて、画像処理部76へ送られる。   The 10-bit image data input to the image processing device 70 is divided into upper 8 bits and lower 2 bits by the image dividing unit 71. The upper 8-bit data is JPEG compressed by the compression unit 72 and then stored in the storage unit 73. The image data stored in the storage unit 73 is read from the storage unit 73 in response to a user request, decompressed by the decompression unit 74, and sent to the image processing unit 76.

一方、下位2ビットデータは、一時記憶部75によって一時的に記憶され、上位ビットデータとタイミングを合わせて読み出される。画像処理部76では、上位ビットを2ビットビットシフトし、不図示の加算器によって下位ビットとの和がとられ出力される。なお、この一時記憶部75は、次の画像データが入力されたときには上書きされるものとする。   On the other hand, the lower 2-bit data is temporarily stored in the temporary storage unit 75 and is read in time with the upper bit data. In the image processing unit 76, the upper bits are shifted by 2 bits, and a sum with the lower bits is taken by an adder (not shown) and output. The temporary storage unit 75 is overwritten when the next image data is input.

このように、第5の実施の形態によれば、少なくともファーストコピーに対して10ビットの画質を保持しつつ、永年保存に用いられる第一の記憶手段としての記憶部73に占める画像データの容量を削減することができる。   As described above, according to the fifth embodiment, the capacity of image data in the storage unit 73 as the first storage unit used for long-term storage while maintaining at least 10-bit image quality for the first copy. Can be reduced.

(第6の実施の形態)
図18は、本発明の第6の実施の形態に係る画像処理装置の構成を説明するブロック図である。図18に示す画像処理装置80は、エッジ判定部81、画像分割部82、第一の画像圧縮部83、第二の画像圧縮部84、一時記憶部85、第一スイッチ86、記憶部87、第二スイッチ88、および画像処理部89などで構成されている。この第6の実施の形態は、上記した第1もしくは第2の実施の形態と第5の実施の形態を組み合わせたものである。
(Sixth embodiment)
FIG. 18 is a block diagram illustrating a configuration of an image processing apparatus according to the sixth embodiment of the present invention. 18 includes an edge determination unit 81, an image division unit 82, a first image compression unit 83, a second image compression unit 84, a temporary storage unit 85, a first switch 86, a storage unit 87, The second switch 88 and the image processing unit 89 are included. The sixth embodiment is a combination of the first or second embodiment and the fifth embodiment described above.

画像処理装置80に入力される10ビットの画像データは、エッジ判定部81によりエッジ判定が行われる。なお、このエッジ判定部81は、上述した第1の実施の形態における図1のエッジ判定部11と同様の働きをするものであるため、ここでは説明を省略する。   The 10-bit image data input to the image processing device 80 is subjected to edge determination by the edge determination unit 81. The edge determination unit 81 functions in the same manner as the edge determination unit 11 of FIG. 1 in the first embodiment described above, and thus description thereof is omitted here.

一方、入力された画像データは、画像分割部82により上位8ビットと下位2ビットに分割される。上位8ビットの画像データは、第一の画像圧縮部83でJPEG圧縮され、記憶部87で保持される。また、下位2ビットの画像データは、エッジ判定部81からのエッジ判定結果に応じて第二の画像圧縮部84により圧縮される。この第二の画像圧縮部84における圧縮方法は、上記第1の実施の形態における第二の画像圧縮部14、もしくは第2の実施の形態における第二の画像圧縮部24と同様に動作するものであるため、ここでは説明を省略する。   On the other hand, the input image data is divided by the image dividing unit 82 into upper 8 bits and lower 2 bits. The upper 8-bit image data is JPEG compressed by the first image compression unit 83 and held in the storage unit 87. The lower two bits of image data are compressed by the second image compression unit 84 in accordance with the edge determination result from the edge determination unit 81. The compression method in the second image compression unit 84 operates in the same manner as the second image compression unit 14 in the first embodiment or the second image compression unit 24 in the second embodiment. Therefore, the description is omitted here.

このようにして圧縮された下位ビットデータは、一時記憶部85によって保持されると共に、第一スイッチ86へも導かれる。この第一スイッチ86は、下位ビットデータを記憶部87に保持するか否かをユーザが選択できるようにするための手段である。また、ユーザの要求によって、画像データを記憶部87から読み出す際には、第一スイッチ86と連動する第二スイッチ88によって、一時記憶部85もしくは記憶部87より下位ビットデータが読み出され、画像処理部89へ送られる。   The low-order bit data compressed in this way is held in the temporary storage unit 85 and also guided to the first switch 86. The first switch 86 is a means for allowing the user to select whether or not to hold the lower-order bit data in the storage unit 87. When the image data is read from the storage unit 87 at the request of the user, the lower bit data is read from the temporary storage unit 85 or the storage unit 87 by the second switch 88 linked to the first switch 86, and the image It is sent to the processing unit 89.

また、第一スイッチ86もしくは第二スイッチ88をユーザの意思によってではなく、装置構成によって自動的に切り替わるようにしても良い。例えば、装置に具備される記憶部の容量に応じて自動的に切り替わるようにすることが考えられる。   Further, the first switch 86 or the second switch 88 may be automatically switched depending on the device configuration, not on the intention of the user. For example, it is conceivable to automatically switch according to the capacity of the storage unit provided in the apparatus.

このように、第6の実施の形態によれば、ユーザの意思、あるいは装置構成により、下位ビットを永年記憶するか、ファーストコピー以外では下位ビットデータを破棄するかを選択可能にしたため、個々のユーザの事情に応じて画像データを記録し、使用することができる。   As described above, according to the sixth embodiment, it is possible to select whether to store the lower bits for many years or discard the lower bit data except for the first copy according to the intention of the user or the device configuration. Image data can be recorded and used according to the circumstances of the user.

以上のように、本発明にかかる画像処理装置、画像処理方法、およびその方法を記憶する記憶媒体は、複写機などの読み取り画像データをハードディスクなどに蓄積して利用する際に、できるだけ画像の劣化を防止しつつ、記憶容量の低減化が図れる圧縮処理が可能な画像処理装置、画像処方法、およびその方法を記憶する記憶媒体に適している。   As described above, the image processing apparatus, the image processing method, and the storage medium storing the method according to the present invention are capable of image degradation as much as possible when the read image data of a copying machine or the like is accumulated in a hard disk or the like. Is suitable for an image processing apparatus capable of compression processing capable of reducing storage capacity, an image processing method, and a storage medium storing the method.

本発明の第1の実施の形態に係る画像処理装置の構成を説明するブロック図である。It is a block diagram explaining the structure of the image processing apparatus which concerns on the 1st Embodiment of this invention. 入力された画像データの波形図である。It is a waveform diagram of input image data. 図2−1の波形を上位ビットと下位ビットに分割したときの上位ビットの波形図である。FIG. 2 is a waveform diagram of upper bits when the waveform of FIG. 2-1 is divided into upper bits and lower bits. 下位ビットの波形図である。It is a wave form diagram of a low-order bit. 入力された画像データの波形図である。It is a waveform diagram of input image data. 図3−1の波形を上位ビットと下位ビットに分割したときの上位ビットの波形図である。FIG. 3 is a waveform diagram of upper bits when the waveform of FIG. 3A is divided into upper bits and lower bits. 下位ビットの波形図である。It is a wave form diagram of a low-order bit. 図1の画像処理部の構成例を示す詳細ブロック図である。FIG. 2 is a detailed block diagram illustrating a configuration example of an image processing unit in FIG. 1. 本発明の第2の実施の形態に係る画像処理装置の構成を説明するブロック図である。It is a block diagram explaining the structure of the image processing apparatus which concerns on the 2nd Embodiment of this invention. 図5の文字判定部の構成例を示す詳細ブロック図である。It is a detailed block diagram which shows the structural example of the character determination part of FIG. 本発明の第3の実施の形態に係る画像処理装置の構成を説明するブロック図である。It is a block diagram explaining the structure of the image processing apparatus which concerns on the 3rd Embodiment of this invention. 図7の圧縮部の構成例を示す詳細ブロック図である。It is a detailed block diagram which shows the structural example of the compression part of FIG. 図8のブロック平均算出部において平均濃度を算出する領域1〜4を示す図である。It is a figure which shows the area | regions 1-4 which calculate an average density | concentration in the block average calculation part of FIG. 図8のエッジ方向判定部における判定結果と出力内容との対応関係を示す図である。It is a figure which shows the correspondence of the determination result in the edge direction determination part of FIG. 8, and output content. 図7のデータ付加部の構成例を示す詳細ブロック図である。It is a detailed block diagram which shows the structural example of the data addition part of FIG. 図11の切捨て部において量子化が施された上位ビットデータの8×8画素のマスクにおける右下の3つの画素の濃度値を0にした状態図である。FIG. 12 is a state diagram in which the density values of the lower right three pixels in the 8 × 8 pixel mask of the upper bit data quantized in the truncation unit of FIG. 11 are set to 0; 図7の画像処理部の構成例を示す詳細ブロック図である。FIG. 8 is a detailed block diagram illustrating a configuration example of an image processing unit in FIG. 7. 図7のデータ付加手段によりデータの付加された画素から読み取った種々の値からDCTブロックに対応する画素を2つの領域に分けて格納する値を説明する対応パターン図である。FIG. 8 is a correspondence pattern diagram for explaining values in which pixels corresponding to a DCT block are divided into two areas and stored from various values read from pixels to which data has been added by the data addition means of FIG. 7. 第4の実施の形態に係るデータ付加部の構成例を示す詳細ブロック図である。It is a detailed block diagram which shows the structural example of the data addition part which concerns on 4th Embodiment. 第4の実施の形態に係る画像処理部の構成例を示す詳細ブロック図である。It is a detailed block diagram which shows the structural example of the image process part which concerns on 4th Embodiment. 本発明の第5の実施の形態に係る画像処理装置の構成を説明するブロック図である。It is a block diagram explaining the structure of the image processing apparatus which concerns on the 5th Embodiment of this invention. 本発明の第6の実施の形態に係る画像処理装置の構成を説明するブロック図である。It is a block diagram explaining the structure of the image processing apparatus which concerns on the 6th Embodiment of this invention.

符号の説明Explanation of symbols

10 画像処理装置
11 エッジ判定部
12 画像分割部
13 第一の画像圧縮部
14 第二の画像圧縮部
15 記憶部
16 画像処理部
17 第一の伸張部
18 第二の伸張部
19 加算器
20 画像処理装置
21 文字判定部
22 画像分割部
23 第一の画像圧縮部
24 第二の画像圧縮部
25 記憶部
26 画像処理部
27 濃度判定部
28 パタンマッチ部
29 膨張部
30 収縮部
31 エッジ判定部
32 AND回路
41 エッジ判定部
42 画像分割部
43 直行変換部
44 量子化部
45 圧縮部
46 データ付加部
47 符号化部
48 記憶部
49 画像処理部
50 ブロック平均算出部
51 エッジ方向判定部
52 エッジ量算出部
53 平均値算出部
54 切捨て部
55 付加部
56 セレクタ
57 第一の伸張部
58 エッジ判定部
59 第二の伸張部
60 加算器
61 第一の切捨て部
62 第一の付加部
63 第二の切捨て部
64 第二の付加部
65 セレクタ
66 伸張部
67 加算器
70 画像処理装置
71 画像分割部
72 圧縮部
73 記憶部
74 伸張部
75 一時記憶部
76 画像処理部
80 画像処理装置
81 エッジ判定部
82 画像分割部
83 第一の画像圧縮部
84 第二の画像圧縮部
85 一時記憶部
86 第一スイッチ
87 記憶部
88 第二スイッチ
89 画像処理部
DESCRIPTION OF SYMBOLS 10 Image processing apparatus 11 Edge determination part 12 Image division part 13 1st image compression part 14 2nd image compression part 15 Memory | storage part 16 Image processing part 17 1st expansion | extension part 18 2nd expansion | extension part 19 Adder 20 Image Processing device 21 Character determination unit 22 Image division unit 23 First image compression unit 24 Second image compression unit 25 Storage unit 26 Image processing unit 27 Density determination unit 28 Pattern matching unit 29 Expansion unit 30 Contraction unit 31 Edge determination unit 32 AND circuit 41 Edge determination unit 42 Image division unit 43 Direct transform unit 44 Quantization unit 45 Compression unit 46 Data addition unit 47 Encoding unit 48 Storage unit 49 Image processing unit 50 Block average calculation unit 51 Edge direction determination unit 52 Edge amount calculation Unit 53 average value calculation unit 54 truncation unit 55 addition unit 56 selector 57 first extension unit 58 edge determination unit 59 second Expansion unit 60 Adder 61 First truncation unit 62 First addition unit 63 Second truncation unit 64 Second addition unit 65 Selector 66 Expansion unit 67 Adder 70 Image processing device 71 Image division unit 72 Compression unit 73 Storage Unit 74 decompression unit 75 temporary storage unit 76 image processing unit 80 image processing device 81 edge determination unit 82 image division unit 83 first image compression unit 84 second image compression unit 85 temporary storage unit 86 first switch 87 storage unit 88 Second switch 89 Image processing section

Claims (26)

画像データを上位ビットと下位ビットの2つの画像データに分割する画像分割手段と、 前記上位ビットの画像データを圧縮する第一の画像圧縮手段と、
前記下位ビットの画像データを圧縮する第二の画像圧縮手段と、
圧縮された上位ビットと下位ビットの画像データを記憶する記憶手段と、
前記記憶手段から上位ビットと下位ビットの画像データを読み出して画像処理を行う画像処理手段と、
を備え、前記記憶手段から上位ビットの画像データを読み出して外部機器へ送信することを特徴とする画像処理装置。
Image dividing means for dividing the image data into two image data of upper bits and lower bits; first image compression means for compressing the image data of the upper bits;
Second image compression means for compressing the lower-bit image data;
Storage means for storing compressed upper and lower bit image data;
Image processing means for reading out image data of upper bits and lower bits from the storage means and performing image processing;
An image processing apparatus, comprising: reading out upper bit image data from the storage means and transmitting the image data to an external device.
前記第1の画像圧縮手段と前記第二の画像圧縮手段とで圧縮率が異なることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the first image compression unit and the second image compression unit have different compression ratios. 前記第1の画像圧縮手段と前記第二の画像圧縮手段とで圧縮方式が異なることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the first image compression unit and the second image compression unit have different compression methods. 注目領域の特徴を判定する特徴判定手段をさらに備え、
前記注目領域中に所定の勾配以上の階調変化が見られる場合は、該当する領域の下位ビットデータを破棄することを特徴とする請求項1に記載の画像処理装置。
It further comprises a feature determination means for determining the feature of the attention area,
2. The image processing apparatus according to claim 1, wherein, when a gradation change equal to or greater than a predetermined gradient is observed in the attention area, lower-order bit data of the corresponding area is discarded.
注目領域の属性を判定する属性判定手段をさらに備え、
前記注目領域中に文字領域が存在する場合は、該当する領域の下位ビットデータを破棄することを特徴とする請求項1に記載の画像処理装置。
Attribute determination means for determining the attribute of the attention area is further provided,
The image processing apparatus according to claim 1, wherein if a character area exists in the attention area, lower-order bit data of the corresponding area is discarded.
注目領域の特徴を判定する特徴判定手段と、
画像データを上位ビットと下位ビットの2つの画像データに分割する画像分割手段と、
上位ビットの画像データを直行変換する直行変換手段と、
直行変換後のデータを量子化する量子化手段と、
下位ビットの画像データを圧縮する圧縮手段と、
量子化後のデータに圧縮された下位ビットの画像データを付加するデータ付加手段と、
データが付加された画像データを記憶する記憶手段と、
前記記憶手段から画像データを読み出して画像の伸張を行う伸張手段と、
該伸張された画像に対し所定の画像処理を行う画像処理手段と、
を備えたことを特徴とする画像処理装置。
A feature determination means for determining the feature of the region of interest;
Image dividing means for dividing the image data into two image data of upper bits and lower bits;
Direct conversion means for performing direct conversion on the upper bit image data;
A quantization means for quantizing the data after the orthogonal transformation;
Compression means for compressing the lower bit image data;
Data adding means for adding compressed lower-bit image data to the quantized data;
Storage means for storing image data to which data is added;
Decompression means for reading out image data from the storage means and decompressing the image;
Image processing means for performing predetermined image processing on the expanded image;
An image processing apparatus comprising:
前記データ付加手段は、所定の勾配以上の階調変化が見られる領域では圧縮された下位ビットの画像データを付加しないことを特徴とする請求項6に記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the data adding unit does not add compressed lower-bit image data in an area where a gradation change equal to or greater than a predetermined gradient is seen. 注目領域の属性を判定する属性判定手段と、
画像データを上位ビットと下位ビットの2つの画像データに分割する画像分割手段と、
前記上位ビットの画像データを直行変換する直行変換手段と、
直行変換後のデータを量子化する量子化手段と、
前記下位ビットの画像データを圧縮する圧縮手段と、
前記量子化後のデータに前記圧縮された下位ビットの画像データを付加するデータ付加手段と、
該データが付加された画像データを記憶する記憶手段と、
前記記憶手段から画像データを読み出して画像の伸張を行う伸張手段と、
該伸張された画像に対して所定の画像処理を行う画像処理手段と、
を備えたことを特徴とする画像処理装置。
Attribute determination means for determining the attribute of the attention area;
Image dividing means for dividing the image data into two image data of upper bits and lower bits;
Direct conversion means for performing direct conversion on the upper bit image data;
A quantization means for quantizing the data after the orthogonal transformation;
Compression means for compressing the lower bit image data;
Data adding means for adding the compressed lower bit image data to the quantized data;
Storage means for storing image data to which the data is added;
Decompression means for reading out image data from the storage means and decompressing the image;
Image processing means for performing predetermined image processing on the expanded image;
An image processing apparatus comprising:
前記データ付加手段は、文字領域を含む領域では圧縮された下位ビットの画像データを付加しないことを特徴とする請求項8に記載の画像処理装置。   The image processing apparatus according to claim 8, wherein the data adding unit does not add compressed lower-bit image data in an area including a character area. 前記データ付加手段は、データが付加されたか否かのフラグを同時に保持することを特徴とする請求項6〜9のいずれか一つに記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the data adding unit simultaneously holds a flag indicating whether or not data is added. 前記画像処理手段は、伸張された画像に対し画像の特徴を判定する第二の特徴判定手段を含んでいることを特徴とする請求項6〜9のいずれか一つに記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the image processing unit includes a second feature determination unit that determines a feature of the image with respect to the decompressed image. 前記第二の特徴判定手段に応じて付加されたデータを再び分割する第二の画像分割手段をさらに備えていることを特徴とする請求項11に記載の画像処理装置。   12. The image processing apparatus according to claim 11, further comprising second image dividing means for dividing again the data added according to the second feature determining means. 前記画像処理手段は、伸張された画像に対して画像の属性を判定する第二の属性判定手段を含んでいることを特徴とする請求項6〜9のいずれか一つに記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the image processing unit includes a second attribute determination unit that determines an attribute of the image with respect to the decompressed image. . 前記第二の属性判定手段に応じて付加されたデータを再び分割する第二の画像分割手段をさらに備えていることを特徴とする請求項13に記載の画像処理装置。   The image processing apparatus according to claim 13, further comprising second image dividing means for dividing again the data added according to the second attribute determining means. 前記圧縮手段は、少なくとも下位ビット画像の平均値を保持することを特徴とする請求項6に記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the compression unit holds at least an average value of lower-order bit images. 前記圧縮手段は、少なくとも下位ビット画像の勾配値を保持することを特徴とする請求項6に記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the compression unit holds at least a gradient value of a lower-order bit image. 前記圧縮手段は、少なくとも下位ビット画像の勾配方向を保持することを特徴とする請求項6に記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the compression unit holds at least a gradient direction of the lower-order bit image. 画像データを上位ビットと下位ビットの2つの画像データに分割する画像分割手段と、
前記上位ビットの画像データを記憶する第一の記憶手段と、
前記下位ビットの画像データを記憶する第二の記憶手段と、
前記第一の記憶手段から上位ビットの画像データを読み出して、前記第二の記憶手段から読み出した下位ビットの画像データを参照しながら画像処理を行う画像処理手段と、
を備え、前記第一の記憶手段から上位ビットの画像データを読み出して外部機器へ送信することを特徴とする画像処理装置。
Image dividing means for dividing the image data into two image data of upper bits and lower bits;
First storage means for storing the upper bit image data;
Second storage means for storing image data of the lower bits;
Image processing means for reading image data of upper bits from the first storage means and performing image processing while referring to image data of lower bits read from the second storage means;
An image processing apparatus comprising: reading out high-order bit image data from the first storage unit and transmitting the image data to an external device.
前記第二の記憶手段は、下位ビットの画像データを一時的に記憶することを特徴とする請求項18に記載の画像処理装置。   The image processing apparatus according to claim 18, wherein the second storage unit temporarily stores image data of lower bits. 前記画像分割手段で分割された下位ビットの画像データを前記第一の記憶手段と前記第二の記憶手段のいずれかに記憶させるかをユーザの意思により選択できる選択手段を備えたことを特徴とする請求項18または19に記載の画像処理装置。   The image processing apparatus includes a selection unit that can select whether the lower-order bit image data divided by the image division unit is stored in either the first storage unit or the second storage unit according to a user's intention. The image processing apparatus according to claim 18 or 19. 前記画像分割手段で分割された下位ビットの画像データを前記第一の記憶手段と前記第二の記憶手段のいずれかに記憶させるかを装置の構成により選択できる選択手段を備えたことを特徴とする請求項18または19に記載の画像処理装置。   The image processing apparatus includes a selection unit that can select whether the lower-order bit image data divided by the image division unit is stored in either the first storage unit or the second storage unit depending on the configuration of the apparatus. The image processing apparatus according to claim 18 or 19. 画像データを上位ビットと下位ビットの2つの画像データに分割するステップと、
前記上位ビットの画像データを圧縮するステップと、
前記下位ビットの画像データを圧縮するステップと、
圧縮された上位ビットと下位ビットの画像データを記憶手段に記憶するステップと、
記憶された上位ビットと下位ビットの画像データを読み出して画像処理を行うステップと、
を含み、前記記憶手段から上位ビットの画像データを読み出して外部機器へ送信することを特徴とする画像処理方法。
Dividing the image data into two image data of upper bits and lower bits;
Compressing the upper bit image data;
Compressing the lower bit image data;
Storing compressed upper and lower bit image data in storage means;
Reading the stored upper bit and lower bit image data and performing image processing;
An image processing method comprising: reading image data of upper bits from the storage means and transmitting the image data to an external device.
注目領域の特徴を判定するステップと、
画像データを上位ビットと下位ビットの2つの画像データに分割するステップと、
上位ビットの画像データを直行変換するステップと、
直行変換後のデータを量子化するステップと、
下位ビットの画像データを圧縮するステップと、
量子化後のデータに圧縮された下位ビットの画像データを付加するステップと、
データが付加された画像データを記憶するステップと、
該記憶された画像データを読み出して画像の伸張を行うステップと、
該伸張された画像に対し所定の画像処理を行うステップと、
を含む画像処理方法。
Determining features of the region of interest;
Dividing the image data into two image data of upper bits and lower bits;
Direct conversion of upper bit image data;
Quantizing the data after direct transformation;
Compressing the lower bit image data;
Adding compressed low-order bit image data to the quantized data;
Storing the image data with the data added thereto;
Reading the stored image data to decompress the image;
Performing predetermined image processing on the expanded image;
An image processing method including:
注目領域の属性を判定するステップと、
画像データを上位ビットと下位ビットの2つの画像データに分割するステップと、
前記上位ビットの画像データを直行変換するステップと、
直行変換後のデータを量子化するステップと、
前記下位ビットの画像データを圧縮するステップと、
前記量子化後のデータに前記圧縮された下位ビットの画像データを付加するステップと、
該データが付加された画像データを記憶するステップと、
該記憶された画像データを読み出して画像の伸張を行うステップと、
該伸張された画像に対して所定の画像処理を行うステップと、
を含む画像処理方法。
Determining the attribute of the region of interest;
Dividing the image data into two image data of upper bits and lower bits;
Direct conversion of the upper bit image data;
Quantizing the data after direct transformation;
Compressing the lower bit image data;
Adding the compressed lower bit image data to the quantized data;
Storing image data to which the data is added;
Reading the stored image data to decompress the image;
Performing predetermined image processing on the expanded image;
An image processing method including:
画像データを上位ビットと下位ビットの2つの画像データに分割するステップと、
前記上位ビットの画像データを記憶するステップと、
前記下位ビットの画像データを記憶するステップと、
記憶された上位ビットの画像データを読み出し、記憶された下位ビットの画像データを参照しながら画像処理を行うステップと、
を含み、記憶された上位ビットの画像データを読み出して外部機器へ送信することを特徴とする画像処理方法。
Dividing the image data into two image data of upper bits and lower bits;
Storing the upper bit image data;
Storing the lower bit image data;
Reading the stored upper bit image data and performing image processing while referring to the stored lower bit image data;
An image processing method comprising: reading image data of upper bits stored therein and transmitting the image data to an external device.
前記請求項22〜25のいずれか一つの画像処理方法を記憶する記憶媒体。   A storage medium for storing the image processing method according to any one of claims 22 to 25.
JP2005077632A 2005-03-17 2005-03-17 Image forming apparatus, image forming method, and computer-readable storage medium storing program for executing the method Expired - Fee Related JP4627670B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005077632A JP4627670B2 (en) 2005-03-17 2005-03-17 Image forming apparatus, image forming method, and computer-readable storage medium storing program for executing the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005077632A JP4627670B2 (en) 2005-03-17 2005-03-17 Image forming apparatus, image forming method, and computer-readable storage medium storing program for executing the method

Publications (2)

Publication Number Publication Date
JP2006262161A true JP2006262161A (en) 2006-09-28
JP4627670B2 JP4627670B2 (en) 2011-02-09

Family

ID=37100890

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005077632A Expired - Fee Related JP4627670B2 (en) 2005-03-17 2005-03-17 Image forming apparatus, image forming method, and computer-readable storage medium storing program for executing the method

Country Status (1)

Country Link
JP (1) JP4627670B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387356A (en) * 2010-09-06 2012-03-21 索尼公司 Image processing apparatus and method
JP2012511870A (en) * 2008-12-09 2012-05-24 マイクロソフト コーポレーション Remote desktop protocol compression acceleration using single instruction multiple patch instructions
JP2013121103A (en) * 2011-12-08 2013-06-17 Sony Corp Image processing apparatus and program
CN110741408A (en) * 2017-09-15 2020-01-31 富士施乐株式会社 Image processing apparatus, image processing method, and image processing program
GB2617112A (en) * 2022-03-29 2023-10-04 Imagination Tech Ltd Data compression and decompression
GB2617111A (en) * 2022-03-29 2023-10-04 Imagination Tech Ltd Data compression and decompression

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07115546A (en) * 1993-10-19 1995-05-02 Ricoh Co Ltd Image transmission method
JPH10136211A (en) * 1996-10-31 1998-05-22 Ricoh Co Ltd Image processor
JP2000244922A (en) * 1998-12-21 2000-09-08 Nikon Corp Method for compressing picture data
JP2001060876A (en) * 1999-08-20 2001-03-06 Canon Inc Image processor, its method and recording medium
JP2003153008A (en) * 2002-08-23 2003-05-23 Ricoh Co Ltd Image coding device and image decoding device
JP2004104598A (en) * 2002-09-11 2004-04-02 Dainippon Printing Co Ltd Video signal encoder and decoder, and recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07115546A (en) * 1993-10-19 1995-05-02 Ricoh Co Ltd Image transmission method
JPH10136211A (en) * 1996-10-31 1998-05-22 Ricoh Co Ltd Image processor
JP2000244922A (en) * 1998-12-21 2000-09-08 Nikon Corp Method for compressing picture data
JP2001060876A (en) * 1999-08-20 2001-03-06 Canon Inc Image processor, its method and recording medium
JP2003153008A (en) * 2002-08-23 2003-05-23 Ricoh Co Ltd Image coding device and image decoding device
JP2004104598A (en) * 2002-09-11 2004-04-02 Dainippon Printing Co Ltd Video signal encoder and decoder, and recording medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012511870A (en) * 2008-12-09 2012-05-24 マイクロソフト コーポレーション Remote desktop protocol compression acceleration using single instruction multiple patch instructions
US9838715B2 (en) 2010-09-06 2017-12-05 Sony Corporation Image processing apparatus and method
JP2012060261A (en) * 2010-09-06 2012-03-22 Sony Corp Image processing apparatus and method
CN102387356A (en) * 2010-09-06 2012-03-21 索尼公司 Image processing apparatus and method
US8873871B2 (en) 2010-09-06 2014-10-28 Sony Corporation Image processing apparatus and method
US9414068B2 (en) 2010-09-06 2016-08-09 Sony Corporation Image processing apparatus and method
JP2013121103A (en) * 2011-12-08 2013-06-17 Sony Corp Image processing apparatus and program
CN110741408A (en) * 2017-09-15 2020-01-31 富士施乐株式会社 Image processing apparatus, image processing method, and image processing program
CN110741408B (en) * 2017-09-15 2023-08-01 富士胶片商业创新有限公司 Image processing device, image processing method, and image processing program
GB2617112A (en) * 2022-03-29 2023-10-04 Imagination Tech Ltd Data compression and decompression
GB2617111A (en) * 2022-03-29 2023-10-04 Imagination Tech Ltd Data compression and decompression
GB2617112B (en) * 2022-03-29 2024-07-03 Imagination Tech Ltd Data compression and decompression
GB2617111B (en) * 2022-03-29 2024-07-03 Imagination Tech Ltd Data compression and decompression

Also Published As

Publication number Publication date
JP4627670B2 (en) 2011-02-09

Similar Documents

Publication Publication Date Title
KR101266577B1 (en) The method and apparatus of processing an image
US6459816B2 (en) Image processing system for compressing image data including binary image data and continuous tone image data by a sub-band transform method with a high-compression rate
KR101367777B1 (en) Adaptive predictive image compression system and method thereof
US20040114819A1 (en) Image processing system for compressing image data including binary image data and continuous tone image data by a sub-band transform method with a high-compression rate
JP4627670B2 (en) Image forming apparatus, image forming method, and computer-readable storage medium storing program for executing the method
Wiseman Burrows-wheeler based JPEG
KR100944928B1 (en) Apparatus and method for encoding and computing a discrete cosine transform using a butterfly processor
JPH05219385A (en) Picture compression expansion method and device
KR20140027040A (en) Adaptive predictive image compression system and method thereof
JP2007300601A (en) Compression method of image data and its device
US8600181B2 (en) Method for compressing images and a format for compressed images
US8023756B2 (en) Image encoding apparatus and method of controlling same
JP4649237B2 (en) Image compression apparatus, image compression method, and image compression program
WO2011143585A1 (en) Parallel processing of sequentially dependent digital data
JP3469438B2 (en) Image signal processing method and apparatus, recording medium
JP2016208356A (en) Image compression device, image compression method, image decompression device and image decompression method
JP2006108997A (en) Method and device for processing information, program, and storage medium
JP3954032B2 (en) Image coding apparatus, image coding method, image coding program, and computer-readable recording medium on which image coding program is recorded
JP3835416B2 (en) Image compression apparatus, image compression method, and image compression program
JP3768691B2 (en) Image processing apparatus and method, and storage medium
JP3781012B2 (en) Image data compression method, image data expansion method, and image data expansion circuit
JP2002051221A (en) Device, system and method for encoding and decoding image and storage medium
JPH0746407A (en) Picture data compressing device and picture data restoring device
JPH10322221A (en) Digital coder and digital decoder
JPH07146927A (en) Image file device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080313

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100730

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100810

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101012

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

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

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131119

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees