JP2002140183A - Image processing apparatus and method, printer apparatus having the image processing apparatus, and storage medium storing computer readable program - Google Patents
Image processing apparatus and method, printer apparatus having the image processing apparatus, and storage medium storing computer readable programInfo
- Publication number
- JP2002140183A JP2002140183A JP2000336441A JP2000336441A JP2002140183A JP 2002140183 A JP2002140183 A JP 2002140183A JP 2000336441 A JP2000336441 A JP 2000336441A JP 2000336441 A JP2000336441 A JP 2000336441A JP 2002140183 A JP2002140183 A JP 2002140183A
- Authority
- JP
- Japan
- Prior art keywords
- image
- pixel
- compression
- image processing
- gray level
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 238000012545 processing Methods 0.000 title claims description 37
- 230000006835 compression Effects 0.000 claims abstract description 111
- 238000007906 compression Methods 0.000 claims abstract description 111
- 238000006243 chemical reaction Methods 0.000 claims abstract description 36
- 230000006837 decompression Effects 0.000 claims abstract description 21
- 238000003672 processing method Methods 0.000 claims description 13
- 230000003247 decreasing effect Effects 0.000 claims 1
- 230000002542 deteriorative effect Effects 0.000 abstract description 3
- 230000010365 information processing Effects 0.000 description 11
- 238000013139 quantization Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000001514 detection method Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 241001270131 Agaricus moelleri Species 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000011109 contamination Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000002427 irreversible effect Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 102100028780 AP-1 complex subunit sigma-2 Human genes 0.000 description 1
- 102100024522 Bladder cancer-associated protein Human genes 0.000 description 1
- 101150110835 Blcap gene Proteins 0.000 description 1
- 101000795655 Canis lupus familiaris Thymic stromal cotransporter homolog Proteins 0.000 description 1
- 101150000715 DA18 gene Proteins 0.000 description 1
- 101100055680 Homo sapiens AP1S2 gene Proteins 0.000 description 1
- 101100493740 Oryza sativa subsp. japonica BC10 gene Proteins 0.000 description 1
- 101100219325 Phaseolus vulgaris BA13 gene Proteins 0.000 description 1
- 101150048609 RR21 gene Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 208000024891 symptom Diseases 0.000 description 1
Landscapes
- Record Information Processing For Printing (AREA)
- Image Processing (AREA)
- Facsimiles In General (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Color, Gradation (AREA)
- Facsimile Image Signal Circuits (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
(57)【要約】
【課題】 テキストや写真が混在する画像において、エ
ッジ部分の字汚れを抑制し、画質を低下させることな
く、高圧縮率を達成することのできる画像圧縮技術を提
供する。
【解決手段】 圧縮時において、圧縮対象画像上の所定
の条件を満たす特定画素については濃淡レベルを1/m
倍(m>1)に変換し、前記特定画素以外の画素につい
ては濃淡レベルを1/n倍(n>m)に変換し、変換後
の各画素の濃淡レベルを用いて所定の圧縮方式により画
像圧縮を行う。伸長時において、前記所定の圧縮方式に
対応した伸長方式により前記圧縮画像の伸長を行い、伸
長された画像の各画素について、濃淡レベルをp倍(p
>m)に変換する。
(57) [Summary] [PROBLEMS] To provide an image compression technique capable of suppressing a character stain on an edge portion and achieving a high compression ratio without deteriorating image quality in an image in which texts and photographs are mixed. At the time of compression, a specific pixel on a compression target image that satisfies a predetermined condition has a gray level of 1 / m.
(M> 1), the gray level of pixels other than the specific pixel is converted to 1 / n times (n> m), and a predetermined compression method is used using the gray level of each pixel after the conversion. Perform image compression. At the time of decompression, the compressed image is decompressed by a decompression method corresponding to the predetermined compression method, and for each pixel of the decompressed image, the density level is multiplied by p times (p
> M).
Description
【0001】[0001]
【発明の属する技術分野】本発明は、画像圧縮技術に関
する。特に、プリンタ、複写機、スキャナ、ファクシミ
リ、ディスプレイ等で扱われるデータに対して用いら
れ、テキストや写真が混在する画像に適した画像圧縮技
術に関する。[0001] The present invention relates to an image compression technique. In particular, the present invention relates to an image compression technique used for data handled by a printer, a copier, a scanner, a facsimile, a display, and the like, and suitable for an image in which text and photographs are mixed.
【0002】[0002]
【従来の技術】一般に画像データは容量が大きいため、
画像データを送信する場合は、送信側において圧縮し、
受信側において伸長する構成を取る場合が多い。例え
ば、ホスト装置とプリンタ装置からなるプリンタシステ
ムでは、ホスト装置において、印刷対象画像を圧縮して
圧縮データを生成し、かかる圧縮データをプリンタ装置
に送信する。プリンタ装置では、圧縮データを受信し、
これを伸長することで印刷対象画像を取得する。2. Description of the Related Art Generally, image data has a large capacity.
When transmitting image data, compress on the transmitting side,
In many cases, the receiving side expands the data. For example, in a printer system including a host device and a printer device, the host device compresses an image to be printed to generate compressed data, and transmits the compressed data to the printer device. The printer receives the compressed data,
The print target image is obtained by decompressing this.
【0003】このような画像の圧縮を行うアルゴリズム
としては、例えばJPEG方式によるものがある。JP
EG方式による画像圧縮方法は、DCT(離散コサイン
変換)に基づいて不可逆に符号化を行う方式を基本とし
ている。具体的には、入力画像を8×8画素のブロック
に分割し、このブロック単位にDCT演算を行う。そし
て、得られたDCT係数に対し、直流成分(DC成分)
と交流成分(AC成分)を独立して量子化し、直流成分
の係数については直前のブロックの直流成分係数を予測
値とした差分値による符号化を、交流成分の係数につい
てはハフマン符号化を行う。As an algorithm for compressing such an image, for example, there is an algorithm based on the JPEG system. JP
The image compression method based on the EG method is based on a method of performing irreversible encoding based on DCT (discrete cosine transform). Specifically, the input image is divided into blocks of 8 × 8 pixels, and the DCT operation is performed for each block. Then, a DC component (DC component) is obtained for the obtained DCT coefficient.
And the AC component (AC component) are independently quantized, and the DC component coefficient is encoded by a difference value using the DC component coefficient of the immediately preceding block as a predicted value, and the Huffman encoding is performed for the AC component coefficient. .
【0004】[0004]
【発明が解決しようとする課題】テキスト(文字)と写
真が混在した画像等を送受信する場合、写真とテキスト
の両方に適した画像圧縮技術が必要とされる。When an image or the like in which text (characters) and a photograph are mixed is transmitted and received, an image compression technique suitable for both the photograph and the text is required.
【0005】しかし、従来の画像圧縮技術は、写真画像
等の圧縮に適したものはテキスト画像等の圧縮には適し
ておらず、逆にテキスト画像等の圧縮に適したものは写
真画像等の圧縮には適していないという問題があった。However, in the conventional image compression techniques, those suitable for compressing photographic images and the like are not suitable for compressing text images and the like, while those suitable for compressing text images and the like are not suitable for compressing photographic images and the like. There was a problem that it was not suitable for compression.
【0006】例えば、JPEG方式では多くの色空間に
対応でき、特に画像濃度の変化が少ない場合に高い圧縮
率を達成することができるため、写真やスキャナにより
入力された画像の圧縮に対しては適した圧縮方法となっ
ている。For example, the JPEG method can support many color spaces, and can achieve a high compression ratio particularly when there is little change in image density. It is a suitable compression method.
【0007】しかし、輪郭がはっきりしたテキスト画像
では、圧縮・伸張の過程で、高周波成分のカット・量子
化による情報ロスが生じるために、復号化された画像に
おいて輪郭の周り(エッジ部分)の画質が劣化してしま
うという問題が発生する。[0007] However, in a text image having a sharp outline, information loss due to cut / quantization of high-frequency components occurs in the process of compression / expansion. Is degraded.
【0008】画質劣化の一パターンをRGBの各濃淡値
が−128〜127の値を取る場合を例に説明する。入
力画像において、(R,G,B)=(127,127,
127)を取る白色画素が、高周波成分のカット・量子
化による情報ロスによって、復号画像では、(R,G,
B)=(127,125,126)のように純粋な白色
でない画素となる場合がある。このような症状は、本
来、何も印刷されずに白色となるべき箇所に、斑点のよ
うな汚れ(字汚れ)を発生させることとなり、画質を劣
化させる大きな要因となっていた。[0008] One pattern of image quality degradation will be described by taking as an example a case where each of the RGB gradation values takes a value of -128 to 127. In the input image, (R, G, B) = (127, 127,
127) in the decoded image due to the information loss due to the cut / quantization of the high-frequency component, (R, G,
B) = Pure white pixels such as (127, 125, 126). Such a symptom originally causes spot-like stains (character stains) in portions that should be white without printing anything, which is a major factor in deteriorating image quality.
【0009】JPEG方式では、画像品質パラメータ
(量子化の度合い)を高画質側に設定することで、字汚
れ等の画質劣化をある程度防止することが可能である。
しかし、この場合、圧縮率が大きく低下するという問題
が生じ、特に、写真等を含む画像に対しては、可逆圧縮
方式(ランレングスなど)よりも圧縮率が低下する場合
さえあった。In the JPEG system, by setting an image quality parameter (degree of quantization) to a high image quality side, it is possible to prevent image quality deterioration such as character smear to some extent.
However, in this case, there is a problem that the compression ratio is greatly reduced. In particular, the compression ratio of an image including a photograph or the like may be lower than that of a lossless compression method (run-length or the like).
【0010】そこで、本発明は、テキストや写真が混在
する画像において、エッジ部分の字汚れを抑制し、画質
を低下させることなく、高圧縮率を達成することのでき
る画像圧縮技術を提供することを目的とする。It is an object of the present invention to provide an image compression technique capable of suppressing a character stain at an edge portion and achieving a high compression ratio without deteriorating image quality in an image in which texts and photographs are mixed. With the goal.
【0011】[0011]
【課題を解決するための手段】本発明の画像処理方法
は、圧縮対象画像を走査して所定の条件を満たす画素を
特定画素として検出する検出工程と、前記特定画素につ
いては濃淡レベルを1/m倍(m>1)に変換し、前記
特定画素以外の画素については濃淡レベルを1/n倍
(n>m)に変換する変換工程と、変換工程における変
換後の各画素の濃淡レベルを用いて所定の圧縮方式によ
り画像圧縮を行う圧縮工程と、を備えることを特徴とす
る。An image processing method according to the present invention comprises the steps of: scanning a compression target image and detecting a pixel satisfying a predetermined condition as a specific pixel; a conversion step of converting the pixels other than the specific pixel into m-times (m> 1), and converting the gray level to 1 / n times (n>m); And a compression step of performing image compression using a predetermined compression method.
【0012】また、本発明の画像処理方法は、圧縮画像
を受け付け、これを伸長する画像処理方法であって、前
記圧縮画像は、圧縮対象画像上の所定の条件を満たす特
定画素については濃淡レベルを1/m倍(m>1)に変
換し、前記特定画素以外の画素については濃淡レベルを
1/n倍(n>m)に変換し、変換後の各画素の濃淡レ
ベルを用いて所定の圧縮方式により画像圧縮を行って得
られる圧縮画像であり、 前記画像処理方法は、前記所
定の圧縮方式に対応した伸長方式により前記圧縮画像の
伸長を行う伸長工程と、伸長工程により伸長された画像
の各画素について、濃淡レベルをp倍(p>m)に変換
する変換工程と、を備えたことを特徴とする。この場
合、p=nであることが望ましい。Further, the image processing method of the present invention is an image processing method for receiving a compressed image and decompressing the compressed image, wherein the compressed image has a gray level of a specific pixel satisfying a predetermined condition on the image to be compressed. Is converted to 1 / m times (m> 1), the gray level of pixels other than the specific pixel is converted to 1 / n times (n> m), and a predetermined level is determined using the gray level of each pixel after the conversion. A compressed image obtained by performing image compression according to the compression method, wherein the image processing method is performed by a decompression step of decompressing the compressed image by a decompression method corresponding to the predetermined compression method, and decompressed by a decompression step. A conversion step of converting the gray level to p times (p> m) for each pixel of the image. In this case, it is desirable that p = n.
【0013】本発明の画像処理方法において、前記所定
の条件は、圧縮対象画像における濃淡レベル最大値を与
える画素であること、圧縮対象画像における濃淡レベル
最小値を与える画素であること、のうち、少なくともい
ずれかの条件を含んでいることが望ましい。[0013] In the image processing method of the present invention, the predetermined condition is that a pixel gives a maximum gray level in the image to be compressed and a pixel gives a minimum gray level in the image to be compressed. It is desirable to include at least one of the conditions.
【0014】また、前記濃淡レベルは、RGB色空間に
おける濃淡値、又はYUV色空間におけるY(輝度)値
であることが望ましく、前記所定の圧縮方式はJPEG
圧縮方式であることが望ましい。Preferably, the gray level is a gray value in an RGB color space or a Y (luminance) value in a YUV color space, and the predetermined compression method is JPEG.
It is desirable to use a compression method.
【0015】本発明の画像処理方法は、コンピュータに
より実施することができるが、そのためのコンピュータ
プログラムは、CD−ROM、磁気ディスク、半導体メ
モリ及び通信ネットワークなどの各種の媒体を通じてコ
ンピュータにインストールまたはロードすることができ
る。The image processing method of the present invention can be implemented by a computer, and a computer program for that is installed or loaded into the computer through various media such as a CD-ROM, a magnetic disk, a semiconductor memory, and a communication network. be able to.
【0016】本発明の画像処理装置は、圧縮対象画像を
走査して所定の条件を満たす画素を特定画素として検出
する検出手段と、前記特定画素については濃淡レベルを
1/m倍(m>1)に変換し、前記特定画素以外の画素
については濃淡レベルを1/n倍(n>m)に変換する
変換手段と、変換手段による変換後の各画素の濃淡レベ
ルを用いて所定の圧縮方式により画像圧縮を行う圧縮手
段と、を備えることを特徴とする。The image processing apparatus according to the present invention includes a detecting means for scanning a compression target image to detect a pixel satisfying a predetermined condition as a specific pixel, and increasing the shading level of the specific pixel by 1 / m (m> 1). ), And for a pixel other than the specific pixel, a conversion means for converting the gray level to 1 / n times (n> m), and a predetermined compression method using the gray level of each pixel converted by the conversion means. And compression means for performing image compression by
【0017】また、本発明の画像処理装置は、圧縮画像
を受け付け、これを伸長する画像処理装置であって、前
記圧縮画像は、圧縮対象画像上の所定の条件を満たす特
定画素については濃淡レベルを1/m倍(m>1)に変
換し、前記特定画素以外の画素については濃淡レベルを
1/n倍(n>m)に変換し、変換後の各画素の濃淡レ
ベルを用いて所定の圧縮方式により画像圧縮を行って得
られる圧縮画像であり、 前記画像処理装置は、前記所
定の圧縮方式に対応した伸長方式により前記圧縮画像の
伸長を行う伸長手段と、前記伸長手段により伸長された
画像の各画素について、濃淡レベルをp倍(p>m)に
変換する変換手段と、を備えたことを特徴とする。この
場合、p=nであることが望ましい。Further, the image processing apparatus of the present invention is an image processing apparatus for receiving a compressed image and decompressing the compressed image, wherein the compressed image has a gray level of a specific pixel satisfying a predetermined condition on the image to be compressed. Is converted to 1 / m times (m> 1), the gray level of pixels other than the specific pixel is converted to 1 / n times (n> m), and a predetermined level is determined using the gray level of each pixel after the conversion. A compressed image obtained by performing image compression by the compression method, wherein the image processing device is expanded by the expansion means for expanding the compressed image by an expansion method corresponding to the predetermined compression method, and expanded by the expansion means. Conversion means for converting the gray level to p times (p> m) for each pixel of the image. In this case, it is desirable that p = n.
【0018】本発明の画像処理装置において、前記所定
の条件は、圧縮対象画像における濃淡レベル最大値を与
える画素であること、圧縮対象画像における濃淡レベル
最小値を与える画素であること、のうち、少なくともい
ずれかの条件を含んでいることが望ましい。In the image processing apparatus of the present invention, the predetermined condition is that a pixel gives a maximum gray level in the image to be compressed and a pixel gives a minimum gray level in the image to be compressed. It is desirable to include at least one of the conditions.
【0019】また、前記濃淡レベルは、RGB色空間に
おける濃淡値、又はYUV色空間におけるY(輝度)値
であることが望ましく、前記所定の圧縮方式はJPEG
圧縮方式であることが望ましい。Preferably, the gray level is a gray value in an RGB color space or a Y (luminance) value in a YUV color space, and the predetermined compression method is JPEG.
It is desirable to use a compression method.
【0020】本発明のプリンタ装置は、本発明の画像処
理装置を備えたことを特徴とする。A printer device according to the present invention includes the image processing device according to the present invention.
【0021】本発明のプリンタシステムは、圧縮対象画
像を走査して所定の条件を満たす画素を特定画素として
検出する検出手段と、前記特定画素については濃淡レベ
ルを1/m倍(m>1)に変換し、前記特定画素以外の
画素については濃淡レベルを1/n倍(n>m)に変換
する変換手段と、変換手段による変換後の各画素の濃淡
レベルを用いて所定の圧縮方式により画像圧縮を行う圧
縮手段と、を備えるホスト装置と、本発明のプリンタ装
置を備えたことを特徴とする。The printer system according to the present invention detects a pixel satisfying a predetermined condition by scanning an image to be compressed as a specific pixel, and the density level of the specific pixel is 1 / m times (m> 1). Conversion means for converting the pixels other than the specific pixel into a gray level of 1 / n (n> m), and a predetermined compression method using the gray level of each pixel converted by the conversion means. A host device including compression means for performing image compression, and a printer device according to the present invention are provided.
【0022】[0022]
【発明の実施の形態】(第1の実施形態)図1を参照し
て本発明の第1の実施の形態を説明する。本発明の第1
の実施の形態である画像処理システム1は、検出手段1
0、第1変換手段11、画像圧縮手段12を備える第1
の画像処理装置2と、画像伸長手段13、第2変換手段
14を備える第2の画像処理装置3と含んで構成され
る。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS (First Embodiment) A first embodiment of the present invention will be described with reference to FIG. First of the present invention
The image processing system 1 according to the first embodiment includes a detecting unit 1
0, the first including the first conversion unit 11 and the image compression unit 12
, And a second image processing apparatus 3 including an image decompression unit 13 and a second conversion unit 14.
【0023】本実施形態において、入力画像(圧縮対象
となる画像)は、−128〜127の値を取る256階
調の濃淡画像であるとして説明を行う。ただし、0〜2
55の値を取る256階調の濃淡画像や、256階調以
外の階調(例えば64階調、512階調など)の濃淡画
像であっても同じように適用できる。また、入力画像は
RGBカラー画像であっても良く、その場合はRGB等
の各プレーンごとに本発明を適用すれば良い。更に、入
力画像がYUV等の表色系で表されている場合は、輝度
値を示すYプレーンに対して、本発明を適用することが
できる。In the present embodiment, the description will be made on the assumption that the input image (image to be compressed) is a 256-gradation gray-scale image having a value of -128 to 127. However, 0-2
The same can be applied to a grayscale image of 256 tones taking a value of 55 or a grayscale image of a grayscale other than 256 grayscales (for example, 64 grayscales, 512 grayscales, etc.). The input image may be an RGB color image. In this case, the present invention may be applied to each plane such as RGB. Further, when the input image is represented by a color system such as YUV, the present invention can be applied to a Y plane indicating a luminance value.
【0024】検出手段10は、入力画像を走査し、所定
の条件を満たす画素を、字汚れが生じ易い特定画素とし
て検出する。なお、入力画像は、スキャナ、デジタルカ
メラ等により取得され、第1の画像処理装置2内部に記
憶されているものとする。The detecting means 10 scans the input image and detects a pixel satisfying a predetermined condition as a specific pixel in which character contamination is likely to occur. It is assumed that the input image is acquired by a scanner, a digital camera, or the like, and is stored in the first image processing device 2.
【0025】字汚れは、最小値−128を取る画素と最
大値127を取る画素が隣接する箇所など、高周波成分
の空間周波数を与える箇所において、特に発生する可能
性が高い。高周波成分の情報が圧縮・伸長の過程で失わ
れることでエッジがなまり、入力画像では127(もし
くは−128)を取る画素が、伸長後には127より小
さい値(もしくは−128より大きい値)を取る画素と
して復号されてしまう可能性があるからである。The character stain is particularly likely to occur at a location where a spatial frequency of a high-frequency component is provided, such as a location where a pixel having a minimum value of -128 and a pixel having a maximum value of 127 are adjacent to each other. Edges are dull due to loss of information on high-frequency components in the process of compression / decompression, and pixels taking 127 (or -128) in the input image take values smaller than 127 (or values larger than -128) after decompression. This is because it may be decoded as a pixel.
【0026】そこで、本実施形態では、字汚れが生じ易
い特定画素を検出する条件として、入力画像において濃
淡値が最大値(127)となる画素であること、入力画
像において濃淡値が最小値(−128)となる画素であ
ること、という条件を用いる。両方の条件をともに用い
るか、いずれかの条件のみ用いるかは設計に応じて決定
すればよい。Therefore, in the present embodiment, the conditions for detecting a specific pixel in which character stains are likely to occur are that the input image has the maximum gray value (127) and the input image has the minimum gray value (127). −128). Whether to use both conditions or only one of the conditions may be determined according to the design.
【0027】第1変換手段11は、検出手段10の検出
結果に基づき、入力画像を以下の手順に従い変換して、
中間画像を生成する。The first converter 11 converts the input image based on the detection result of the detector 10 according to the following procedure.
Generate an intermediate image.
【0028】検出手段10において検出した特定画素に
ついては、濃淡値を1/m倍(m>1)に変換する。ま
た、特定画素以外の画素については、濃淡値を1/n倍
(n>m)に変換する。m=2、n=3とした場合の例
を図2に示す。図2(a)は入力画像、(b)は中間画
像であり、太い枠線で囲まれた画素は特定画素を示す。For the specific pixel detected by the detecting means 10, the gray scale value is converted to 1 / m times (m> 1). Further, for pixels other than the specific pixel, the grayscale value is converted to 1 / n times (n> m). FIG. 2 shows an example where m = 2 and n = 3. FIG. 2A shows an input image, and FIG. 2B shows an intermediate image. Pixels surrounded by a thick frame indicate specific pixels.
【0029】画像圧縮手段12は、変換手段11により
生成された中間画像に対し、所定の圧縮方法、例えばJ
PEG方式により圧縮を行い、圧縮データ(JPEGフ
ァイル)を生成する。ここで、前記所定の圧縮方法は不
可逆圧縮方法であることが前提となる。可逆圧縮方法の
場合、情報の欠落が発生せず、そもそも画質の低下が生
じないからである。The image compression means 12 applies a predetermined compression method to the intermediate image generated by the
Compression is performed by the PEG method to generate compressed data (JPEG file). Here, it is assumed that the predetermined compression method is an irreversible compression method. This is because in the case of the reversible compression method, information is not lost, and the image quality does not deteriorate in the first place.
【0030】以下に、基本的なJPEG方式による画像
圧縮手順を説明するが、JPEG方式にはいくつかのバ
リエーションが存在しており、本願発明においてはそれ
らのバリエーションを設計に応じて選択することができ
る。The image compression procedure according to the basic JPEG method will be described below. There are several variations in the JPEG method, and in the present invention, these variations can be selected according to the design. it can.
【0031】まず中間画像を8×8画素のブロックに分
割し、かかる分割された部分画像ごとにDCTにより周
波数分布を求める。図3(a)に部分画像の例を、
(b)にDCTにより得られた周波数分布の例を示す。
次に、前記周波数分布の各要素を予め定めた量子化行列
の各要素で割ることにより量子化を行う。図3(c)は
量子化された後の例である。First, the intermediate image is divided into blocks of 8 × 8 pixels, and the frequency distribution is obtained by DCT for each of the divided partial images. FIG. 3A shows an example of a partial image.
(B) shows an example of a frequency distribution obtained by DCT.
Next, quantization is performed by dividing each element of the frequency distribution by each element of a predetermined quantization matrix. FIG. 3C shows an example after quantization.
【0032】ここで、DC成分(左上の要素)について
は、その値をそのまま圧縮結果とする。AC成分(左上
以外の要素)についてはジグザグ走査をして一列に並
べ、ランレングス圧縮を行った後にHuffman符号化を行
い、符号化列を圧縮結果とする。なお、ランレングス圧
縮及びHuffman符号化は画像圧縮の分野においては周知
な技術であり、例えば、「図解デジタル画像処理入
門」、産能大学出版部、1996に説明されている。Here, the value of the DC component (upper left element) is directly used as the compression result. AC components (elements other than the upper left) are zigzag-scanned and arranged in a row, run-length compressed, Huffman-encoded, and the encoded sequence is used as a compression result. Note that run-length compression and Huffman coding are well-known techniques in the field of image compression, and are described, for example, in “Introduction to Illustrated Digital Image Processing”, Sanno University Press, 1996.
【0033】なお、入力画像(中間画像)がRGBカラ
ー画像である場合、YUV表色系に変換してから、JP
EG圧縮処理を実行することが望ましい。RGB→YU
V変換は、式(1)に基づき計算することができる。た
だし、式(1)中の係数は、採用する規格に応じて別の
値を用いてもよい。 Y= 0.299×R+0.587×G+0.114×B V= 0.500×R−0.419×G−0.081×B U=−0.169×R−0.331×G+0.500×B (1) 画像伸長手段13は、第1の画像処理装置1により圧縮
された中間画像の圧縮データを入力とし、画像圧縮手段
12において用いた圧縮方法に対応した伸長方法によ
り、画像伸長を行う。例えば、画像圧縮手段12におい
てJPEG方式が用いられている場合、圧縮する際に分
割された部分画像の圧縮データごとに、AC成分につい
てHuffman符号の復号、ランレングス圧縮の復号を行
い、その復号結果に当該部分画像のDC成分を挿入した
ものについて逆量子化を行って周波数分布を算出し、か
かる周波数分布にインバースDCTを行うことにより、
中間画像の復号を行う。When the input image (intermediate image) is an RGB color image, the image is converted to a YUV color system,
It is desirable to execute EG compression processing. RGB → YU
The V conversion can be calculated based on equation (1). However, another value may be used for the coefficient in equation (1) according to the standard to be adopted. Y = 0.299 x R + 0.587 x G + 0.114 x B V = 0.500 x R-0.419 x G-0.081 x BU = -0.169 x R-0.331 x G + 0.500 × B (1) The image decompression means 13 receives the compressed data of the intermediate image compressed by the first image processing apparatus 1 as input, and performs image decompression by a decompression method corresponding to the compression method used in the image compression means 12. Do. For example, when the JPEG system is used in the image compression means 12, decoding of Huffman code and decoding of run-length compression are performed on the AC component for each of the compressed data of the partial images divided at the time of compression, and the decoding result is obtained. The frequency distribution is calculated by performing inverse quantization on the component in which the DC component of the partial image is inserted, and inverse DCT is performed on the frequency distribution.
Decode the intermediate image.
【0034】第2変換手段14は、画像伸長手段13に
おいて復号された中間画像を、以下の手順に従い変換
し、出力画像を生成する。The second conversion means 14 converts the intermediate image decoded by the image decompression means 13 according to the following procedure to generate an output image.
【0035】まず、復号された中間画像の各画素につい
て濃淡値をp倍(p>m)して、仮の出力画像を生成す
る。次に、仮の出力画像において濃淡値が127を超え
る(もしくは−128より小さい)画素がある場合は、
その画素について濃淡値を127(もしくは−128)
に補正し、出力画像を生成する。First, a tentative output image is generated by multiplying the gray value for each pixel of the decoded intermediate image by p times (p> m). Next, when there is a pixel whose gray level exceeds 127 (or smaller than -128) in the temporary output image,
The gray value of that pixel is 127 (or -128)
And an output image is generated.
【0036】なお、復号された中間画像がYUV表色系
で表されている場合、RGB表色系に変換してから、上
記の手順を実行してもよい。この場合、仮の出力画像の
濃淡値は、式(2)に基づき計算することができる。式
中の係数は、採用する規格に応じて別の値を用いてもよ
い。なお、−128〜127のようにセンターが0とな
る階調値を取らない場合は、RGB→YUV変換、YU
V→RGB変換の各式において、更に、オフセット値を
加算するように構成してもよい。 R=(1.000×Y+0×U+1.4020×V)×p G=(1.000×Y−0.34414×U−0.71414×V)×p B=(1.000×Y+1.77200×U+0×V)×p (2) (字汚れの抑制)第1の画像処理装置2において圧縮し
たデータに対し、第2の画像処理装置を用いて出力画像
を生成した場合、出力画像において字汚れが生じない理
由を以下に説明する。When the decoded intermediate image is represented by the YUV color system, the above procedure may be executed after conversion to the RGB color system. In this case, the gray value of the provisional output image can be calculated based on equation (2). Different values may be used for the coefficients in the equation according to the standard used. When the gradation value at which the center becomes 0 is not taken as in -128 to 127, RGB → YUV conversion, YU
In each equation of the V → RGB conversion, an offset value may be further added. R = (1.000 × Y + 0 × U + 1.4020 × V) × p G = (1.000 × Y−0.34414 × U−0.71414 × V) × p B = (1.000 × Y + 1.77200) × U + 0 × V) × p (2) (Suppression of character stain) When an output image is generated using the second image processing device with respect to the data compressed by the first image processing device 2, The reason why no stain occurs will be described below.
【0037】先に説明したように、字汚れの原因は、量
子化による情報ロス・高周波成分のカットにより、入力
画像において最大濃淡値(もしくは最小濃淡値)を取る
画素が、伸長後には最大濃淡値−復号誤差α(もしくは
最小濃淡値+復号誤差α)を取る画素として復号されて
しまうことにある。As described above, the cause of the character stain is that the pixel having the maximum grayscale value (or the minimum grayscale value) in the input image due to the cut of the information loss and the high-frequency component due to the quantization becomes the maximum grayscale after expansion. That is, the pixel is decoded as a pixel having a value−decoding error α (or a minimum gray level + decoding error α).
【0038】本発明では、色空間上で、圧縮時に最大濃
淡値(もしくは最小濃淡値)を取る特定画素について1
/m倍しておき、伸長時に各画素についてp倍(p>
m)する構成としている。すなわち、色空間上の処理に
のみ着目すると、圧縮率よりも伸長率の方が大きい構成
となっている。かかる構成のもとでは、中間画像の特定
画素において圧縮・伸長の過程で復号誤差が生じたとし
ても、復号誤差αが式(3)の関係を満たす限り、仮の
出力画像の特定画素は必ず最大濃淡値を超える値(もし
くは最小濃淡値より小さい値)、すなわち、出力画像に
おけるダイナミックレンジを超える値となる。仮の出力
画像において最大濃淡値を超える(もしくは最小濃淡値
より小さい)画素は、出力画像において最大濃淡値(も
しくは最小濃淡値)に補正されるため、出力画像の特定
画素は常に最大濃淡値(もしくは最小濃淡値)を取るこ
とになる。According to the present invention, in a color space, one pixel is assigned to a maximum pixel value (or minimum pixel value) at the time of compression.
/ M times, and p times (p>
m). That is, focusing only on the processing in the color space, the expansion ratio is larger than the compression ratio. Under such a configuration, even if a decoding error occurs in the process of compression / expansion at a specific pixel of the intermediate image, the specific pixel of the temporary output image must be The value exceeds the maximum gray value (or a value smaller than the minimum gray value), that is, a value exceeding the dynamic range in the output image. Pixels exceeding the maximum gray value (or smaller than the minimum gray value) in the temporary output image are corrected to the maximum gray value (or the minimum gray value) in the output image. Or the minimum gray value).
【0039】すなわち、入力画像において最大濃淡値
(もしくは最小濃淡値)を取る画素は、出力画像におい
ても最大濃淡値(もしくは最小濃淡値)を取る画素とし
て復号されるため、白色は白色に、黒色は黒色として復
号され、字汚れは発生しない。α<最大濃淡値(もしく
は最小濃淡値の絶対値)×(p−m)/pm (3)
ここで、αを、圧縮時における量子化パラメータ等に基
づいて定まる最大復号誤差α*とし、かかる最大復号誤
差α*に基づき式(3)を満たすようにm、pを決定す
ることで、字汚れの発生を完全に抑制することができ
る。That is, a pixel having a maximum gray value (or a minimum gray value) in an input image is decoded as a pixel having a maximum gray value (or a minimum gray value) also in an output image. Is decoded as black, and no character stain occurs. α <maximum gray value (or absolute value of minimum gray value) × (pm) / pm (3)
Here, α is a maximum decoding error α * determined based on a quantization parameter or the like at the time of compression, and m and p are determined based on the maximum decoding error α * so as to satisfy Expression (3). Generation of dirt can be completely suppressed.
【0040】JPEG方式において、実用的な範囲で種
々のパラメータを設定した場合、最大復号誤差α*は通
常2以下となる。そこで、α=2、最大濃淡値=127
として、式(3)を満たす実用的なm、pの組合わせを
考えると、図4に示すようになる。In the JPEG system, when various parameters are set within a practical range, the maximum decoding error α * is usually 2 or less. Therefore, α = 2, maximum gray level = 127
FIG. 4 shows a practical combination of m and p that satisfies Expression (3).
【0041】(圧縮率の向上)パソコン等の装置では、
1画素をRGBの各色について8ビットの情報により表
現している場合が多い。すなわち、1画素の情報量は2
8となっている。これに対し、プリンタ装置では、1画
素をCMYKの各色(又は、更にライトシアン、ライト
マゼンダを加えて6色)について2ビット程度の情報に
より、表現している場合が多い。すなわち、1画素の情
報量は24(又は26)となっている。このことは、プ
リンタ装置にとって、RGB各色8ビットで表された画
像データは必要以上の情報量を含むものであることを意
味し、色空間において24〜22程度の情報を間引いて
から(圧縮してから)プリンタ装置に与えたとしても、
印刷上の色品質には大きな影響を与えないことを意味す
る。(Improvement of compression ratio) In an apparatus such as a personal computer,
In many cases, one pixel is represented by 8-bit information for each color of RGB. That is, the information amount of one pixel is 2
It is 8 . On the other hand, in a printer apparatus, one pixel is often represented by information of about 2 bits for each color of CMYK (or 6 colors including light cyan and light magenta). That is, the information amount of one pixel is 2 4 (or 2 6 ). This is for the printer, the image data represented in RGB 8 bits per color means that the invention will include more information than necessary amount, by thinning out the 2 4-2 2 about information from (and compressed in a color space Even after giving it to the printer device,
It means that color quality on printing is not significantly affected.
【0042】そこで、本発明は、画像圧縮手段12にお
けるJPEG方式等の圧縮処理の前に、第1変換手段1
1において入力画像の濃淡値を1/m倍、又は1/n倍
することで、色空間におけるダイナミックレンジを狭め
て情報量の圧縮を図るように構成した。かかる構成によ
って、本発明の圧縮率は、(変換手段11における圧縮
率)×(画像圧縮手段12における圧縮率)となり、入
力画像に対してJPEG方式等の画像圧縮を直接適用す
る従来方法に比べて、高圧縮率を達成することが可能と
なる。なお、理論上は24〜22程度の情報を間引いて
も色品質に影響を与えないが、ディザ等のドットの集合
で画像が表現されることを考慮すると、間引きの程度
(圧縮の程度)は21〜22程度とすることが好まし
い。Therefore, according to the present invention, before the compression processing of the JPEG method or the like in the image compression means 12, the first conversion means 1
In 1, the dynamic range in the color space is narrowed by multiplying the density value of the input image by 1 / m or 1 / n to compress the amount of information. With this configuration, the compression ratio of the present invention is (compression ratio in the conversion unit 11) × (compression ratio in the image compression unit 12), which is smaller than the conventional method in which image compression such as JPEG is directly applied to an input image. Thus, a high compression ratio can be achieved. Incidentally, the degree of in theory does not affect the color quality be thinned out 2 4-2 2 about information, considering that the image is represented by a set of dots in the dither or the like, the degree of thinning (compression ) is preferably set to 2 1 to 2 2.
【0043】ここで、本発明は、特定画素と非特定画素
について、色空間における圧縮の程度を異ならせてお
り、非特定画素の圧縮率(1/n)<特定画素の圧縮率
(1/m)となるように構成している。これは、仮の出
力画像において、少なくとも特定画素については最大濃
淡値を超える値を取るように構成し、非特定画素につい
てはダイナミックレンジ内にできるだけ納まるように構
成するためである。仮の出力画像において、非特定画素
の濃淡値がダイナミックレンジ内に納まるかどうかはn
とpの関係によって定まる。n≧pとした場合、ダイナ
ミックレンジ内に納まることを保証することができる。
一方、n<pとした場合、出力画像におけるコントラス
トを強調することができるが、入力画像において大きい
濃淡値の画素については、出力画像において最大濃淡値
を超える場合が起こり得る。nとpの関係は設計に応じ
て定めればよいが、入力画像と出力画像のコントラスト
の同一性を得たい場合は、n=pとすることが望まし
い。Here, in the present invention, the degree of compression in the color space is made different between the specific pixel and the non-specific pixel, and the compression ratio of the non-specific pixel (1 / n) <the compression ratio of the specific pixel (1/1). m). This is because, in the provisional output image, at least a specific pixel is configured to take a value exceeding the maximum grayscale value, and a non-specific pixel is configured to be within the dynamic range as much as possible. In the tentative output image, whether or not the gray value of the non-specific pixel falls within the dynamic range is n
And p. If n ≧ p, it can be guaranteed that the values fall within the dynamic range.
On the other hand, when n <p, contrast in the output image can be enhanced, but a pixel having a large gray value in the input image may exceed the maximum gray value in the output image. The relationship between n and p may be determined according to the design. However, when it is desired to obtain the same contrast between the input image and the output image, it is desirable that n = p.
【0044】なお、特定画素が多い画像、例えばDTP
(Desk Top Publishing)画像の場合は、単純に全ての
画素について1/n倍する場合に比べると、特定画素に
ついて1/m倍する分だけ、圧縮率は低下することにな
る。An image having a large number of specific pixels, for example, DTP
In the case of a (Desk Top Publishing) image, the compression rate is reduced by 1 / m times for a specific pixel as compared with a case where 1 / n times for all pixels.
【0045】(第2の実施形態)次に、図5を参照し
て、本発明の第2の実施の形態を説明する。本発明の第
2の実施の形態であるプリンタシステム4は、検出手段
10、第1変換手段11、画像圧縮手段12、送信手段
15を備えるホスト装置5と、受信手段16、画像復号
手段14、第2変換手段15、印刷手段17を備えるプ
リンタ装置6を含んで構成される。(Second Embodiment) Next, a second embodiment of the present invention will be described with reference to FIG. A printer system 4 according to a second embodiment of the present invention includes a host device 5 including a detection unit 10, a first conversion unit 11, an image compression unit 12, and a transmission unit 15, a reception unit 16, an image decoding unit 14, It is configured to include the printer device 6 including the second conversion unit 15 and the printing unit 17.
【0046】ホスト装置5、プリンタ装置6は、物理的
にはCPU、メモリなどを備えており、上記の各手段
は、メモリに格納されるアプリケーションプログラムを
CPUが実行することにより機能的に実現される。The host device 5 and the printer device 6 are physically provided with a CPU, a memory, and the like. Each of the above-described units is functionally realized by the CPU executing an application program stored in the memory. You.
【0047】検出手段10、第1変換手段11、画像圧
縮手段12、画像伸長手段13、第2変換手段15の構
成・動作については、第1の実施形態と同様である。The configurations and operations of the detecting means 10, the first converting means 11, the image compressing means 12, the image expanding means 13 and the second converting means 15 are the same as in the first embodiment.
【0048】送信手段15は、画像圧縮手段12により
圧縮されたデータに基づき、所定のプリンタ制御言語に
従って印刷データを生成する。そして、ネットワーク等
を介して、例えばIEEE1284.D4形式で、印刷
データやコマンドをプリンタ装置5に出力する。The transmitting means 15 generates print data based on the data compressed by the image compressing means 12 in accordance with a predetermined printer control language. Then, via a network or the like, for example, IEEE1284. Print data and commands are output to the printer device 5 in the D4 format.
【0049】受信手段16は、ホスト装置5より印刷デ
ータやコマンドを受信し、記憶する。そして、印刷デー
タより圧縮データを抽出し、画像伸長手段13に出力す
る。The receiving means 16 receives print data and commands from the host device 5 and stores them. Then, compressed data is extracted from the print data and output to the image decompression means 13.
【0050】印刷手段17は、プリンタ制御手段と、印
刷ヘッドや紙送り機構(キャリッジ、キャリッジ駆動モ
ータなど)等を含む印刷エンジン等から構成される。The printing means 17 comprises a printer control means, a print engine including a print head, a paper feed mechanism (carriage, carriage drive motor, etc.) and the like.
【0051】プリンタ制御手段は、受信手段16を介し
てホスト装置5から印刷動作を要求するコマンド等を受
信した場合、印刷エンジンに給紙命令を出力する。印刷
エンジンは、この給紙命令を受けて、紙送り機構等を制
御して印刷開始に必要な状態を整える。そして、プリン
タ制御手段に対し、データ転送要求を出力する。プリン
タ制御手段は、かかるデータ転送要求を受けて、印刷エ
ンジンから送られる同期信号に従って、第2変換手段1
4において生成された出力画像を印刷エンジンに対し転
送し、印刷エンジンを制御しながら印刷を実行する。When receiving a command or the like for requesting a printing operation from the host device 5 via the receiving unit 16, the printer control unit outputs a paper feed command to the print engine. The print engine receives the feed instruction and controls a paper feed mechanism and the like to prepare a state necessary for starting printing. Then, a data transfer request is output to the printer control means. In response to the data transfer request, the printer control unit responds to the synchronization signal sent from the print engine and converts the second conversion unit 1
The output image generated in step 4 is transferred to the print engine, and printing is executed while controlling the print engine.
【0052】(第3の実施形態)次に、本発明の第3の
実施の形態について説明する。第3の実施形態は、情報
処理プログラムを記録した記録媒体を備える。この記録
媒体はCD−ROM、磁気ディスク、半導体メモリその
他の記録媒体であってよく、ネットワークを介して流通
する場合も含む。また、ホスト装置用やプリンタ装置用
のカードやオプションボードとして流通する場合も含
む。(Third Embodiment) Next, a third embodiment of the present invention will be described. The third embodiment includes a recording medium on which an information processing program is recorded. This recording medium may be a CD-ROM, a magnetic disk, a semiconductor memory, or another recording medium, and includes a case where the recording medium is distributed via a network. In addition, the present invention includes a case where the card is distributed as a card or an option board for a host device or a printer device.
【0053】情報処理プログラムは記録媒体から情報処
理装置に読み込まれ、情報処理装置の動作を制御する。
情報処理装置は、情報処理プログラムの制御により、圧
縮対象画像を走査して所定の条件を満たす画素を特定画
素として検出する検出工程と、 前記特定画素について
は濃淡レベルを1/m倍(m>1)に変換し、前記特定
画素以外の画素については濃淡レベルを1/n倍(n>
m)に変換する変換工程と、 変換工程における変換後
の各画素の濃淡レベルを用いて所定の圧縮方式により画
像圧縮を行う圧縮工程と、を実行する。The information processing program is read from the recording medium into the information processing device and controls the operation of the information processing device.
The information processing apparatus scans the compression target image and detects a pixel satisfying a predetermined condition as a specific pixel under the control of an information processing program. The information processing apparatus increases the gray level of the specific pixel by 1 / m times (m> 1), and for the pixels other than the specific pixel, the gray level is multiplied by 1 / n (n>
m) and a compression step of performing image compression by a predetermined compression method using the gray level of each pixel after the conversion in the conversion step.
【0054】また、情報処理装置は、情報処理プログラ
ムの制御により、所定の圧縮画像を受け付け、これを伸
長する処理を実行する。前記所定の圧縮画像は、圧縮対
象画像上の所定の条件を満たす特定画素については濃淡
レベルを1/m倍(m>1)に変換し、前記特定画素以
外の画素については濃淡レベルを1/n倍(n>m)に
変換し、変換後の各画素の濃淡レベルを用いて所定の圧
縮方式により画像圧縮を行って得られる圧縮画像であ
る。前記伸長する処理は、前記所定の圧縮方式に対応し
た伸長方式により前記圧縮画像の伸長を行う伸長工程
と、伸長工程により伸長された画像の各画素について、
濃淡レベルをp倍(p>m)に変換する変換工程と、か
ら構成される。The information processing apparatus receives a predetermined compressed image under the control of the information processing program, and executes processing for expanding the compressed image. In the predetermined compressed image, the gray level is converted to 1 / m times (m> 1) for a specific pixel satisfying a predetermined condition on the image to be compressed, and the gray level is reduced to 1 / m for pixels other than the specific pixel. This is a compressed image obtained by performing n-fold conversion (n> m) and performing image compression by a predetermined compression method using the gray level of each pixel after the conversion. The decompression process includes: a decompression step of decompressing the compressed image by a decompression method corresponding to the predetermined compression method; and for each pixel of the image decompressed by the decompression step,
A conversion step of converting the gray level to p times (p> m).
【0055】すなわち、情報処理装置は情報処理プログ
ラムの制御により、図1における、画像処理装置2、又
は/及び画像処理装置3による処理と同一の処理を実行
する。That is, the information processing apparatus executes the same processing as the processing by the image processing apparatus 2 and / or the image processing apparatus 3 in FIG. 1 under the control of the information processing program.
【0056】(その他)本発明は上記実施形態に限定さ
れることなく、種々に変形して適用することが可能であ
る。例えば、第2実施形態ではプリンタシステムに適用
した場合について説明したが、送信側で画像を圧縮して
転送し、受信側で伸長する構成を備えるシステムであれ
ば、プリンタシステム以外であっても本発明の効果を得
ることが可能である。例えば、複写機、スキャナ、ファ
クシミリ等を含むシステムに対して本発明を適用するこ
とが考えられる。(Others) The present invention is not limited to the above embodiment, but can be applied in various modifications. For example, in the second embodiment, a case in which the present invention is applied to a printer system has been described. It is possible to obtain the effects of the invention. For example, it is conceivable to apply the present invention to a system including a copying machine, a scanner, a facsimile, and the like.
【0057】また、RGBカラー画像に対して適用する
場合、m、n、pの各値をRGBごとに独立して設定す
るように構成してもよい。例えば、Gプレーンは輝度成
分を多く含むことから、Gプレーンにおける復号誤差は
字汚れへの影響が大きいといえる。そこで、Gプレーン
における復号誤差を他のプレーンよりも確実に抑制すべ
く、(pg/mg)>(pr/mr)、(pb/mb)
となるように設定することが考えられる。When the present invention is applied to an RGB color image, the values of m, n, and p may be set independently for each of RGB. For example, since the G plane contains many luminance components, it can be said that a decoding error in the G plane has a large effect on character contamination. Therefore, in order to suppress the decoding error in the G plane more reliably than in the other planes, ( pg / mg )> ( pr / mr ), ( pb / mb )
It is conceivable to set such that
【0058】また、入力画像の濃淡値のダイナミックレ
ンジが0〜MAXとなっている場合は、入力画像の各画
素について、例えばX→X−MAX/2のように、最小
値が負の値を取るように補正してから、検出手段10に
おいて特定画素を検出するように構成すればよい。この
場合、第2変換手段14は、出力画像の濃淡値のダイナ
ミックレンジが0〜MAXとなるように、出力画像の各
画素について、例えばY→Y+MAX/2のように補正
する構成とする。When the dynamic range of the grayscale value of the input image is 0 to MAX, the minimum value of each pixel of the input image is set to a negative value such as X → X-MAX / 2. The correction may be performed so that the detection unit 10 detects the specific pixel. In this case, the second conversion unit 14 is configured to correct each pixel of the output image such as Y → Y + MAX / 2 so that the dynamic range of the grayscale value of the output image is 0 to MAX.
【0059】[0059]
【発明の効果】本発明の構成によれば、色空間において
情報圧縮を行ってから、JPEG方式等により圧縮を施
す構成としているため、高圧縮率を達成することができ
る。According to the structure of the present invention, since the information is compressed in the color space and then compressed by the JPEG method or the like, a high compression ratio can be achieved.
【0060】また、字汚れが生じる可能性がある画素に
ついて、色空間上での圧縮率よりも、色空間上での伸長
率の方が大きくなるように構成しているため、エッジ部
分における字汚れの発生を抑制し、画質の低下を防止す
ることができる。Further, since the expansion rate in the color space is larger than the compression rate in the color space for the pixel that may cause the character stain, the character at the edge portion is It is possible to suppress the occurrence of dirt and prevent the image quality from lowering.
【図1】 本発明の第1の実施形態における画像処理シ
ステムの機能構成図を示すブロック図である。FIG. 1 is a block diagram illustrating a functional configuration diagram of an image processing system according to a first embodiment of the present invention.
【図2】 入力画像、中間画像の一例を示す図である。FIG. 2 is a diagram illustrating an example of an input image and an intermediate image.
【図3】 JPEG方式による画像圧縮方法を説明する
ための模式図である。FIG. 3 is a schematic diagram for explaining an image compression method according to the JPEG method.
【図4】 m、pの組合わせの例を説明するための図で
ある。FIG. 4 is a diagram for explaining an example of a combination of m and p.
【図5】 本発明の第2の実施形態におけるプリンタシ
ステムの機能構成図を示すブロック図である。FIG. 5 is a block diagram illustrating a functional configuration diagram of a printer system according to a second embodiment of the present invention.
1 画像処理システム 2、3 画像処理装置 4 ホスト装置 5 プリンタ装置 10 検出手段 11 第1変換手段 12 画像圧縮手段 13 画像伸長手段 14 第2変換手段 15 出力手段 16 受信手段 17 印刷手段 REFERENCE SIGNS LIST 1 image processing system 2, 3 image processing device 4 host device 5 printer device 10 detection means 11 first conversion means 12 image compression means 13 image decompression means 14 second conversion means 15 output means 16 reception means 17 printing means
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H03M 7/40 H04N 1/00 E 5C062 H04N 1/00 1/41 B 5C077 1/409 B41J 3/00 A 5C078 1/41 H04N 1/40 101D 5J064 Fターム(参考) 2C087 AA03 AA09 BA03 BA06 BA07 BA12 BD40 2C187 AD03 2C262 AA24 AA26 AA27 AB13 AC02 AC07 BB03 BB15 BC03 BC10 BC19 CA08 DA17 EA04 EA06 FA20 5B021 AA01 BB12 5B057 AA11 CA01 CA08 CA12 CA16 CB12 CB18 CC01 CE11 CG02 CH18 DC22 5C062 AA05 AB22 AB40 AC04 AC25 5C077 LL19 MP01 PP54 PQ08 RR06 RR21 TT02 TT06 5C078 AA04 AA09 BA44 BA57 DA01 DA02 DA17 DA18 DB05 5J064 AA02 BA08 BA09 BA13 BA16 BB11 BB12 BC02 BD06 BD07──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H03M 7/40 H04N 1/00 E 5C062 H04N 1/00 1/41 B 5C077 1/409 B41J 3/00 A 5C078 1/41 H04N 1/40 101D 5J064 F-term (reference) 2C087 AA03 AA09 BA03 BA06 BA07 BA12 BD40 2C187 AD03 2C262 AA24 AA26 AA27 AB13 AC02 AC07 BB03 BB15 BC03 BC10 BC19 CA08 DA17 EA04 A01 A01 A01 A01 A0B5B5 CA16 CB12 CB18 CC01 CE11 CG02 CH18 DC22 5C062 AA05 AB22 AB40 AC04 AC25 5C077 LL19 MP01 PP54 PQ08 RR06 RR21 TT02 TT06 5C078 AA04 AA09 BA44 BA57 DA01 DA02 DA17 DA18 DB05 5J064 AA02 BA08 BA09 BA13 BA12
Claims (15)
たす画素を特定画素として検出する検出手段と、 前記特定画素については濃淡レベルを1/m倍(m>
1)に変換し、前記特定画素以外の画素については濃淡
レベルを1/n倍(n>m)に変換する変換手段と、 変換手段による変換後の各画素の濃淡レベルを用いて所
定の圧縮方式により画像圧縮を行う圧縮手段と、を備え
ることを特徴とする画像処理装置。1. A detecting means for scanning a compression target image to detect a pixel satisfying a predetermined condition as a specific pixel, and for increasing / decreasing a gray level of the specific pixel by 1 / m (m>
(1) converting means for converting pixels other than the specific pixel into 1 / n times (n> m) the gray level for pixels other than the specific pixel; and performing predetermined compression using the gray level of each pixel after conversion by the converting unit. An image processing apparatus comprising: compression means for performing image compression by a method.
像処理装置であって、 前記圧縮画像は、圧縮対象画像上の所定の条件を満たす
特定画素については濃淡レベルを1/m倍(m>1)に
変換し、前記特定画素以外の画素については濃淡レベル
を1/n倍(n>m)に変換し、変換後の各画素の濃淡
レベルを用いて所定の圧縮方式により画像圧縮を行って
得られる圧縮画像であり、 前記画像処理装置は、前記所定の圧縮方式に対応した伸
長方式により前記圧縮画像の伸長を行う伸長手段と、 前記伸長手段により伸長された画像の各画素について、
濃淡レベルをp倍(p>m)に変換する変換手段と、を
備えたことを特徴とする画像処理装置。2. An image processing apparatus for receiving a compressed image and decompressing the compressed image, wherein the compressed image has a shading level of 1 / m times (m>) for a specific pixel satisfying a predetermined condition on an image to be compressed. 1), the gray level of pixels other than the specific pixel is converted to 1 / n times (n> m), and image compression is performed by a predetermined compression method using the gray level of each pixel after the conversion. A compressed image obtained by the above, wherein the image processing apparatus expands the compressed image by an expansion method corresponding to the predetermined compression method, and for each pixel of the image expanded by the expansion means,
A conversion means for converting the gray level into p-fold (p> m).
記載の画像処理装置。3. The apparatus according to claim 2, wherein p = n.
The image processing apparatus according to any one of the preceding claims.
る濃淡レベル最大値を与える画素であること、圧縮対象
画像における濃淡レベル最小値を与える画素であるこ
と、のうち、少なくともいずれかの条件を含んでいるこ
とを特徴とする請求項1乃至3のいずれか1項に記載の
画像処理装置。4. The predetermined condition is a pixel that gives a maximum gray level in the image to be compressed and a pixel that gives a minimum gray level in the image to be compressed. The image processing device according to claim 1, wherein the image processing device includes the image processing device.
る濃淡値、又はYUV色空間におけるY(輝度)値であ
ることを特徴とする請求項1乃至4のいずれか1項に記
載の画像処理装置。5. The image processing apparatus according to claim 1, wherein the gray level is a gray value in an RGB color space or a Y (luminance) value in a YUV color space. .
であることを特徴とする請求項1乃至5のいずれか1項
に記載の画像圧縮装置。6. The image compression apparatus according to claim 1, wherein the predetermined compression method is a JPEG compression method.
画像処理装置を備えたことを特徴とするプリンタ装置。7. A printer comprising the image processing apparatus according to claim 1. Description:
スト装置と、請求項2又は3記載の画像処理装置を備え
たプリンタ装置とを備えたことを特徴とするプリンタシ
ステム。8. A printer system, comprising: a host device having the image processing device according to claim 1; and a printer device having the image processing device according to claim 2 or 3.
たす画素を特定画素として検出する検出工程と、 前記特定画素については濃淡レベルを1/m倍(m>
1)に変換し、前記特定画素以外の画素については濃淡
レベルを1/n倍(n>m)に変換する変換工程と、 変換工程における変換後の各画素の濃淡レベルを用いて
所定の圧縮方式により画像圧縮を行う圧縮工程と、を備
えることを特徴とする画像処理方法。9. A detecting step of scanning a compression target image to detect a pixel satisfying a predetermined condition as a specific pixel, and increasing a shading level of the specific pixel by 1 / m (m> m).
1), and converting a pixel other than the specific pixel into a gray level of 1 / n times (n>m); and a predetermined compression using the gray level of each pixel after the conversion in the converting step. And a compression step of performing image compression by a method.
画像処理方法であって、 前記圧縮画像は、圧縮対象画像上の所定の条件を満たす
特定画素については濃淡レベルを1/m倍(m>1)に
変換し、前記特定画素以外の画素については濃淡レベル
を1/n倍(n>m)に変換し、変換後の各画素の濃淡
レベルを用いて所定の圧縮方式により画像圧縮を行って
得られる圧縮画像であり、 前記画像処理方法は、前記所定の圧縮方式に対応した伸
長方式により前記圧縮画像の伸長を行う伸長工程と、 伸長工程により伸長された画像の各画素について、濃淡
レベルをp倍(p>m)に変換する変換工程と、を備え
たことを特徴とする画像処理方法。10. An image processing method for receiving a compressed image and decompressing the compressed image, wherein the compressed image has a gradation level of 1 / m times (m>) for a specific pixel satisfying a predetermined condition on an image to be compressed. 1), the gray level of pixels other than the specific pixel is converted to 1 / n times (n> m), and image compression is performed by a predetermined compression method using the gray level of each pixel after the conversion. The image processing method comprises: a decompression step of decompressing the compressed image by a decompression method corresponding to the predetermined compression method; and a shading level for each pixel of the image decompressed by the decompression step. And a conversion step of converting p into p times (p> m).
10記載の画像処理方法。11. The image processing method according to claim 10, wherein p = n.
ける濃淡レベル最大値を与える画素であること、圧縮対
象画像における濃淡レベル最小値を与える画素であるこ
と、のうち、少なくともいずれかの条件を含んでいるこ
とを特徴とする請求項9乃至11のいずれか1項に記載
の画像処理方法。12. The predetermined condition is a pixel that gives a maximum gray level in the image to be compressed and a pixel that gives a minimum gray level in the image to be compressed. The image processing method according to any one of claims 9 to 11, wherein the image processing method includes:
ける濃淡値、又はYUV色空間におけるY(輝度)値で
あることを特徴とする請求項9乃至12のいずれか1項
に記載の画像処理方法。13. The image processing method according to claim 9, wherein the gray level is a gray value in an RGB color space or a Y (luminance) value in a YUV color space. .
式であることを特徴とする請求項9乃至13のいずれか
1項に記載の画像圧縮装置。14. The image compression apparatus according to claim 9, wherein the predetermined compression method is a JPEG compression method.
載の画像処理方法をコンピュータで実行させるためのプ
ログラムを格納したコンピュータ読み取り可能な記録媒
体。15. A computer-readable recording medium storing a program for causing a computer to execute the image processing method according to claim 9. Description:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000336441A JP4281242B2 (en) | 2000-11-02 | 2000-11-02 | Image processing apparatus and method, printer apparatus having the image processing apparatus, and storage medium storing computer-readable program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000336441A JP4281242B2 (en) | 2000-11-02 | 2000-11-02 | Image processing apparatus and method, printer apparatus having the image processing apparatus, and storage medium storing computer-readable program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002140183A true JP2002140183A (en) | 2002-05-17 |
| JP4281242B2 JP4281242B2 (en) | 2009-06-17 |
Family
ID=18812010
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000336441A Expired - Fee Related JP4281242B2 (en) | 2000-11-02 | 2000-11-02 | Image processing apparatus and method, printer apparatus having the image processing apparatus, and storage medium storing computer-readable program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4281242B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2018032921A (en) * | 2016-08-23 | 2018-03-01 | 沖電気工業株式会社 | Image processing system and image decoder |
| CN111831872A (en) * | 2020-06-09 | 2020-10-27 | 中海油能源发展装备技术有限公司 | An adaptive grayscale visualization method for magnetic flux leakage data enhanced by small defect features |
-
2000
- 2000-11-02 JP JP2000336441A patent/JP4281242B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2018032921A (en) * | 2016-08-23 | 2018-03-01 | 沖電気工業株式会社 | Image processing system and image decoder |
| CN111831872A (en) * | 2020-06-09 | 2020-10-27 | 中海油能源发展装备技术有限公司 | An adaptive grayscale visualization method for magnetic flux leakage data enhanced by small defect features |
Also Published As
| Publication number | Publication date |
|---|---|
| JP4281242B2 (en) | 2009-06-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8265401B2 (en) | Image compressing apparatus, image compressing method, image decompressing apparatus, image decompressing method, image forming apparatus and recording medium | |
| JP5132517B2 (en) | Image processing apparatus and image processing method | |
| US20030031371A1 (en) | Image encoding apparatus and image decoding apparatus | |
| US7499592B2 (en) | Image decoding apparatus and its control method | |
| EP1545120A1 (en) | Image processing | |
| JP4115460B2 (en) | Image processing apparatus and method, and computer program and recording medium | |
| JP2002027255A (en) | Picture processor and picture processing method | |
| JP2004112695A (en) | Image processing apparatus and processing method thereof | |
| JP2002140183A (en) | Image processing apparatus and method, printer apparatus having the image processing apparatus, and storage medium storing computer readable program | |
| JP2003046789A (en) | Image encoding device and image decoding device | |
| JP2001016452A (en) | Image processor, image reader loading the same. image forming device and image processing method | |
| JP3227181B2 (en) | Image processing device | |
| JP3311221B2 (en) | Image processing apparatus and method | |
| JP3023215B2 (en) | Image processing device | |
| JP2002354266A (en) | Image processing apparatus, image processing system, image processing method, recording medium, and program | |
| JP2002051221A (en) | Image encoding device, image decoding device, system, method therefor, and storage medium | |
| JP4047144B2 (en) | Image processing apparatus and method | |
| JPH0896141A (en) | Image processing device | |
| JP2006304243A (en) | Image processing apparatus, printing apparatus, and image processing method | |
| JP4209174B2 (en) | Color image processing apparatus and method | |
| JP2005086353A (en) | Image processing apparatus, control method therefor, computer program, and computer-readable storage medium | |
| JP2003116009A (en) | Image encoding control equipment and method therefor | |
| JP2000333019A (en) | Image compression apparatus and method, and printer apparatus provided with the image compression apparatus | |
| JP2004112303A (en) | Image processing method, image processing apparatus, and image processing system | |
| JP3825871B2 (en) | Image processing apparatus and method, and computer-readable recording medium storing image processing program code |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060118 |
|
| 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: 20090224 |
|
| 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: 20090309 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120327 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120327 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130327 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140327 Year of fee payment: 5 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |