JP2007311912A - Image processing apparatus - Google Patents
Image processing apparatus Download PDFInfo
- Publication number
- JP2007311912A JP2007311912A JP2006136749A JP2006136749A JP2007311912A JP 2007311912 A JP2007311912 A JP 2007311912A JP 2006136749 A JP2006136749 A JP 2006136749A JP 2006136749 A JP2006136749 A JP 2006136749A JP 2007311912 A JP2007311912 A JP 2007311912A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- image
- gradations
- gradation
- reducing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
本発明は、例えばカラーの多値画像データを2値化して記録用紙に記録する機能を有するコピー機又はプリンタ等の画像処理装置に関する。 The present invention relates to an image processing apparatus such as a copier or a printer having a function of binarizing, for example, color multivalued image data and recording it on recording paper.
従来から広く利用されているコピー機は、光学的に読み取って取得した多値画像データを2値化するなどの階調数を減少させる処理を行い、階調数が減少された画像データを記録用紙に記録する機能を有している。多値画像データの2値化は、画像データの各画素の階調値と閾値との比較により行われるが、一定の閾値を用いて比較を行った場合には、擬似的な中間階調の再現性が低く、画質を低下させるため、階調数を減少させる種々のアルゴリズムが提案されており、例えば組織的ディザ方式及び誤差拡散方式等が知られている。 Copiers that have been widely used in the past perform processing to reduce the number of gradations, such as binarizing the multi-valued image data obtained by optical reading, and record the image data with the reduced number of gradations It has a function of recording on paper. The binarization of the multi-value image data is performed by comparing the gradation value of each pixel of the image data with a threshold value. However, when the comparison is performed using a certain threshold value, a pseudo intermediate gradation value is obtained. Various algorithms for reducing the number of gradations have been proposed in order to reduce the image quality due to low reproducibility, and for example, a systematic dither method and an error diffusion method are known.
組織的ディザ方式は、例えば4×4の小さな領域にて2値化のための閾値を一定規則で組織的に変化させ、この領域毎に比較を行って画像データを2値化する方式である。組織的ディザ方式は、一定の閾値を用いた単純な2値化と比較して中間階調の再現性が高く、処理が簡単であるため、従来から広く利用されているアルゴリズムであるが、エッジ部分及び文字部分等の再現性が十分ではなく、モアレが発生する可能性があるという問題がある。 The systematic dither method is a method in which, for example, a threshold value for binarization is systematically changed according to a certain rule in a small area of 4 × 4, and comparison is performed for each area to binarize image data. . The systematic dither method is an algorithm that has been widely used since it has a high reproducibility of halftones and is easy to process compared to simple binarization using a fixed threshold. There is a problem that the reproducibility of the part and the character part is not sufficient, and moire may occur.
誤差拡散方式は、画像データの各画素の階調値を2値化する際に生じる量子化誤差、即ち2値化前の画素の階調値に対する2値化後の階調値の差を、いまだ2値化されていない画素に分配して2値化する方式である。量子化誤差を周辺の未処理画素へ分配するため、組織的ディザ方式と比較して、誤差拡散方式は2値化された画像にモアレが発生しにくく、中間階調の再現性がより高いという利点がある。 The error diffusion method is a quantization error that occurs when binarizing the gradation value of each pixel of image data, that is, the difference between the gradation value after binarization with respect to the gradation value of the pixel before binarization, This is a method of binarizing by distributing to pixels that have not been binarized yet. Compared with the systematic dither method, since the quantization error is distributed to the surrounding unprocessed pixels, the error diffusion method is less likely to cause moiré in the binarized image and has higher reproducibility of the intermediate gradation. There are advantages.
特許文献1においては、ファクシミリ通信によりデータの送信を行う通信モードの場合には、集中型ディザ方式により多値画像データを2値化し、読み取った画像のコピーを行うコピーモードの場合には、誤差拡散方式により多値画像データを2値化することによって、コピー画像の画質を保ったままで、通信時間を最大限に短縮することが可能なファクシミリ装置が提案されている。
In
特許文献2においては、読み取った画像がコピー写真であればコピー写真再現用ディザマトリクスを選択して2値化を行い、それ以外の写真モードであれば通信先の装置の記録特性を判断して、同一の記録特性でなければ標準写真再現用ディザマトリクスの中から該当するものを選択して2値化を行い、同一の記録特性であればコピー写真再現用ディザマトリクスを選択して2値化を行う構成とすることにより、読み取った画像を自装置で記録する場合と、他装置で記録する場合とで記録濃度に大きな違いが生じない画像情報処理装置が提案されている。
一方、コピー機においては、読み取った原稿の画像データを複数部出力する場合、特に部毎に複数部の出力を行う所謂ソート機能を利用する場合に、読み取った原稿の画像データを一時的にメモリに記憶しておく必要がある。その他にも、例えば複数の画像を1頁に
集約する場合、及び記録用紙の両面に画像を記録する場合等にも画像データを一時的にメモリに記憶する場合がある。メモリに画像データを一時的に記憶する際には、メモリ容量が限られているため画像データを圧縮して記憶することが多く、画像データの圧縮には、例えばJPEG方式の圧縮アルゴリズムを用いることができる。
On the other hand, in a copying machine, when outputting a plurality of copies of image data of a read document, particularly when using a so-called sort function that outputs a plurality of copies for each copy, the image data of the read document is temporarily stored in a memory. It is necessary to memorize it. In addition, for example, image data may be temporarily stored in a memory when, for example, a plurality of images are collected on one page and when images are recorded on both sides of a recording sheet. When storing image data temporarily in the memory, the memory capacity is limited, so the image data is often compressed and stored. For example, a JPEG compression algorithm is used to compress the image data. Can do.
JPEG方式は、画像データの圧縮の際にデータの一部を切り捨てることによって圧縮効率を高めているため、圧縮された画像データを元の画像データへ戻すことができない所謂不可逆圧縮である。JPEG方式の圧縮では、まずRGB形式の画像データを輝度、青方向の色相及び赤方向の色相の三要素(所謂YCbCr形式)に変換し、人間の目は輝度の違いには敏感であるが色相の違いは見落としやすいという性質を利用して、色相に関する情報の一部を間引くことによりデータ量を少なくした後に圧縮を行っている。圧縮には離散コサイン変換が用いられており、これらの処理は8画素四方のブロック単位で行うため、圧縮率によってはブロック毎に色又は濃度等が均一化され、所謂ブロックノイズが発生する場合がある。 The JPEG method is a so-called irreversible compression in which compressed image data cannot be returned to the original image data because the compression efficiency is improved by truncating a part of the data when compressing the image data. In JPEG compression, image data in RGB format is first converted into three elements (so-called YCbCr format) of luminance, hue in the blue direction, and hue in the red direction (so-called YCbCr format), but the human eye is sensitive to the difference in luminance. The difference is that it is easy to overlook and the compression is performed after reducing the amount of data by thinning out part of the information about the hue. Discrete cosine transform is used for compression, and these processes are performed in units of 8 pixel square blocks. Therefore, depending on the compression ratio, color or density may be equalized for each block, and so-called block noise may occur. is there.
このように、JPEG方式の圧縮によってブロックノイズが発生した画像データを、組織的ディザ方式により2値化した場合には、ブロック毎の境界が弱められるため、ブロックノイズに起因する画質の低下は起こりにくいが、誤差拡散方式により2値化を行った場合には、ブロック毎の境界がより強調され、画質が低下する虞があるという問題がある。 In this way, when image data in which block noise has been generated by JPEG compression is binarized by systematic dithering, the boundaries of each block are weakened, so image quality deterioration due to block noise occurs. Although it is difficult, when binarization is performed by the error diffusion method, there is a problem that the boundary of each block is more emphasized and the image quality may be deteriorated.
特許文献1に記載のファクシミリ装置は、データの送信を行う通信モードと、画像のコピーを行うコピーモードとで2値化のアルゴリズムを変更させるのみであり、コピーモードにおいては誤差拡散方式を用いて2値化を行うため、上述の問題が発生する。特許文献2に記載の画像情報処理装置は、組織的ディザ方式で用いられるディザマトリクスを条件に応じて変更するものであり、誤差拡散方式を用いないため上述の問題が発生する虞はないが、組織的ディザ方式のみでは2値化した画像のエッジ部分及び文字部分等の再現性が十分ではなく、モアレが発生する可能性がある。
The facsimile apparatus described in
本発明は、斯かる事情に鑑みてなされたものであって、その目的とするところは、取得した画像データを圧縮しない場合と圧縮する場合とで、画像データの階調数減少の方式を変更する構成とすることにより、画像データの圧縮と階調数減少方式との組み合わせにより発生する画質の低下を防止することができる画像処理装置を提供することにある。 The present invention has been made in view of such circumstances, and the object of the present invention is to change the method of reducing the number of gradations of image data depending on whether the acquired image data is not compressed or compressed. Accordingly, it is an object of the present invention to provide an image processing apparatus capable of preventing a deterioration in image quality caused by a combination of image data compression and a gradation number reduction method.
また本発明の他の目的とするところは、取得した画像データを圧縮しない場合には、誤差拡散方式により画像データの階調数減少を行う構成とすることにより、中間階調の再現性よく画像データの階調数を減少することができる画像処理装置を提供することにある。 Another object of the present invention is to reduce the number of gradations of the image data by the error diffusion method when the acquired image data is not compressed, so that the image can be reproduced with high reproducibility of the intermediate gradation. An object of the present invention is to provide an image processing apparatus capable of reducing the number of gradations of data.
また本発明の他の目的とするところは、取得した画像データを圧縮する場合には、組織的ディザ方式により画像データの階調数減少を行う構成とすることにより、ブロックノイズにより画質が低下することを防止できる画像処理装置を提供することにある。 Another object of the present invention is to reduce image quality due to block noise by reducing the number of gradations of image data using an organized dither method when compressing acquired image data. An object of the present invention is to provide an image processing apparatus that can prevent this.
また本発明の他の目的とするところは、写真画像を含む画像データの階調数を減少させる場合には、画像データの圧縮を行わない構成とすることにより、中間階調の再現性よく写真画像の階調数を減少することができる画像処理装置を提供することにある。 Another object of the present invention is to reduce the number of gradations of image data including a photographic image, so that the image data is not compressed, so that the photograph can be reproduced with high reproducibility of intermediate gradations. An object of the present invention is to provide an image processing apparatus capable of reducing the number of gradations of an image.
また本発明の他の目的とするところは、階調数を減少した画像データを記録用紙に記録する場合に、画像データが写真画像を含む場合であっても、複数部の記録、ソート又は集約等のために、複数の画像データをメモリに蓄積した後で記録を行うときには、画像データを圧縮し、誤差拡散方式ではない方式で階調数の減少を行う構成とすることにより、装置に搭載されたメモリを有効に利用でき、画質の低下を抑制することができる画像処理装
置を提供することにある。
Another object of the present invention is to record, sort or consolidate a plurality of copies even when the image data includes a photographic image when recording image data with a reduced number of gradations on a recording sheet. For example, when recording after storing a plurality of image data in the memory, the image data is compressed, and the number of gradations is reduced by a method other than the error diffusion method. It is an object of the present invention to provide an image processing apparatus that can effectively use a memory that has been used and that can suppress deterioration in image quality.
また本発明の他の目的とするところは、写真画像を含む画像データを取得し、取得した画像データの圧縮を行った場合には、誤差拡散方式による階調数の減少を行わずに組織的ディザ方式などの他の方式による階調数の減少を行う構成とすることにより、圧縮した画像データを誤差拡散方式で階調数減少を行うことなく、ブロックノイズにより画質が低下することを防止できる画像処理装置を提供することにある。 Another object of the present invention is that when image data including a photographic image is acquired and the acquired image data is compressed, the number of gradations is not reduced by the error diffusion method. By adopting a configuration in which the number of gradations is reduced by another method such as a dither method, it is possible to prevent image quality from being deteriorated due to block noise without reducing the number of gradations of the compressed image data by the error diffusion method. An object is to provide an image processing apparatus.
また本発明の他の目的とするところは、画像データの圧縮をJPEG方式で行う構成とすることにより、装置に搭載されたメモリを有効に利用できる画像処理装置を提供することにある。 Another object of the present invention is to provide an image processing apparatus capable of effectively using a memory mounted in the apparatus by adopting a configuration in which image data is compressed by the JPEG method.
また本発明の他の目的とするところは、画像データの階調数を2階調に減少する構成とすることにより、プリンタなどが画像データを記録用紙に記録する場合、又はファクシミリ装置などが画像データの送受信を行う場合等に適した階調数の減少を行うことができる画像処理装置を提供することにある。 Another object of the present invention is to reduce the number of gradations of image data to two, so that a printer or the like records image data on a recording sheet or a facsimile apparatus or the like. An object of the present invention is to provide an image processing apparatus capable of reducing the number of gradations suitable for transmitting and receiving data.
第1発明に係る画像処理装置は、画像データの階調数を減少する処理を行う画像処理装置において、画像データを取得する取得手段と、取得した画像データを圧縮する圧縮手段と、周辺画素の階調値の減少結果に応じて対象画素の階調数の減少を行う階調数減少方式により、画像データの階調数を減少する第1の階調数減少手段と、該第1の階調数減少手段とは別の方式により、画像データの階調数を減少する第2の階調数減少手段とを備え、前記圧縮手段が画像データの圧縮を行わない場合、前記第1の階調数減少手段が画像データの階調数を減少する処理を行い、前記圧縮手段が画像データの圧縮を行う場合、前記第2の階調数減少手段が圧縮された画像データの階調数を減少する処理を行うようにしてあることを特徴とする。 An image processing apparatus according to a first aspect of the present invention is an image processing apparatus that performs processing for reducing the number of gradations of image data, an acquisition unit that acquires image data, a compression unit that compresses the acquired image data, and a peripheral pixel First gradation number reduction means for reducing the number of gradations of the image data by a gradation number reduction method for reducing the number of gradations of the target pixel in accordance with the reduction result of the gradation value, and the first floor And a second gradation number reduction means for reducing the number of gradations of the image data by a method different from the key reduction means, and when the compression means does not compress the image data, the first floor When the logarithmic reduction means performs processing to reduce the number of gradations of the image data, and the compression means compresses the image data, the second gradation number reduction means determines the number of gradations of the compressed image data. It is characterized in that a decreasing process is performed.
本発明においては、画像データの階調数を減少させるときに、画像データを圧縮した後に階調数を減少させる場合と、画像データを圧縮せずに階調数を減少させる場合とで、階調数減少の方式を別にする。画像データの圧縮により例えばブロックノイズが発生する虞があるときに、圧縮を行った場合にはブロックノイズを減少するか又はブロックノイズを強調することがない階調数減少の方式を用い、圧縮を行わない場合には、周辺画素の階調数の減少結果に応じた対象画素の階調数の減少を行い、中間階調の再現性が高い階調数減少の方式を用いることによって、画質が向上する。 In the present invention, when the number of gradations of the image data is reduced, there are a case where the number of gradations is reduced after the image data is compressed and a case where the number of gradations is reduced without compressing the image data. Separate the log reduction method. For example, when there is a possibility that block noise may occur due to compression of image data, if compression is performed, the block noise is reduced or the number of gradations that does not enhance the block noise is reduced. If not, the number of gradations of the target pixel is reduced according to the result of reduction of the number of gradations of the surrounding pixels, and the image quality is improved by using a method of reducing the number of gradations with high reproducibility of the intermediate gradation. improves.
また、第2発明に係る画像処理装置は、前記第1の階調数減少手段が、誤差拡散方式により画像データの階調数を減少するようにしてあることを特徴とする。 The image processing apparatus according to the second invention is characterized in that the first gradation number reducing means reduces the gradation number of the image data by an error diffusion method.
本発明においては、画像データを圧縮せずに階調数を減少させる場合には、誤差拡散方式により画像データの階調数減少を行う。組織的ディザ方式等と比較して、モアレの発生などがないため、画質が向上する。 In the present invention, when the number of gradations is reduced without compressing the image data, the number of gradations of the image data is reduced by an error diffusion method. Compared with the systematic dither method or the like, image quality is improved because there is no moiré.
また、第3発明に係る画像処理装置は、前記第2の階調数減少手段が、組織的ディザ方式により画像データの階調数を減少するようにしてあることを特徴とする。 The image processing apparatus according to the third invention is characterized in that the second gradation number reducing means reduces the gradation number of the image data by a systematic dither method.
本発明においては、画像データを圧縮した後に階調数を減少させる場合には、組織的ディザ方式により画像データの階調数減少を行う。画像データの圧縮によりブロックノイズが発生した場合に、組織的ディザ方式は、誤差拡散方式と比較してブロックノイズを強調することがなく、又はブロックノイズを低減することも可能であるため、画質の低下を抑
制できる。
In the present invention, when the number of gradations is reduced after the image data is compressed, the number of gradations of the image data is reduced by a systematic dither method. When block noise occurs due to compression of image data, the systematic dither method does not emphasize block noise or can reduce block noise compared to the error diffusion method. Reduction can be suppressed.
また、第4発明に係る画像処理装置は、前記取得手段が取得する画像データが写真画像を含む場合に、前記圧縮手段による画像データの圧縮を行わないようにしてあることを特徴とする。 The image processing apparatus according to the fourth invention is characterized in that the image data is not compressed by the compression means when the image data acquired by the acquisition means includes a photographic image.
本発明においては、写真画像を含む画像データの階調数を減少させる場合には、画像データの圧縮を行わずに、誤差拡散方式などにより階調数を減少させる。写真画像を含む画像データは、色及び濃度等の値が同程度の部分が多く含まれている可能性が高く、このような部分では圧縮によりブロックノイズが発生しやすい。このため、写真画像を含む画像データは可能な限り圧縮せずに階調数を減少させることで、中間階調の再現性よく画像データの階調数を減少することができる。 In the present invention, when the number of gradations of image data including a photographic image is reduced, the number of gradations is reduced by an error diffusion method or the like without compressing the image data. Image data including a photographic image is likely to include many portions having similar values such as color and density, and block noise is likely to occur due to compression in such portions. Therefore, the number of gradations of image data can be reduced with good reproducibility of intermediate gradations by reducing the number of gradations without compressing image data including a photographic image as much as possible.
また、第5発明に係る画像処理装置は、階調数を減少した画像データを記録用紙に記録する記録手段を備え、前記取得手段が取得する画像データが写真画像を含む場合であっても、前記記録手段が複数の画像データを蓄積した後に記録を行うときには、前記圧縮手段による画像データの圧縮を行い、前記第2の階調数減少手段による階調数の減少を行うようにしてあることを特徴とする。 An image processing apparatus according to a fifth aspect of the present invention includes a recording unit that records image data with a reduced number of gradations on a recording sheet, and the image data acquired by the acquiring unit includes a photographic image. When recording is performed after the recording means accumulates a plurality of image data, the compression of the image data is performed by the compression means, and the number of gradations is reduced by the second gradation number reduction means. It is characterized by.
本発明においては、階調数を減少した画像データを記録用紙に記録する場合に、画像データが写真画像を含む場合であっても、複数の画像データをメモリに蓄積した後で記録を行うときには、画像データを圧縮した後に誤差拡散方式ではない方式で階調数の減少を行う。例えば、画像データを複数部記録する場合、複数部の画像データをソートして記録する場合、又は1頁に複数の画像を集約して記録する場合等には、写真画像を含む場合であってもメモリに一時的に画像データを蓄積する必要があるため、画像データを圧縮する。圧縮した画像データは組織的ディザ方式などの方式で階調数の減少を行い、画質の低下を抑制する。 In the present invention, when image data with a reduced number of gradations is recorded on a recording sheet, even when the image data includes a photographic image, when recording is performed after storing a plurality of image data in a memory. After the image data is compressed, the number of gradations is reduced by a method other than the error diffusion method. For example, when a plurality of image data are recorded, when a plurality of image data are sorted and recorded, or when a plurality of images are collected and recorded on one page, a photographic image is included. Since it is necessary to temporarily store the image data in the memory, the image data is compressed. The compressed image data is subjected to a reduction in the number of gradations by a method such as a systematic dither method, thereby suppressing deterioration in image quality.
また、第6発明に係る画像処理装置は、画像データの階調数を減少する処理を行う画像処理装置において、画像データを取得する取得手段と、取得した画像データを圧縮する圧縮手段と、誤差拡散方式により画像データの階調数を減少する階調数減少手段とを備え、前記取得手段が取得した画像データが写真画像を含み、前記圧縮手段が取得した画像データの圧縮を行った場合には、前記階調数減少手段による階調数の減少を行わないようにしてあることを特徴とする。 An image processing apparatus according to a sixth aspect of the invention is an image processing apparatus that performs processing for reducing the number of gradations of image data, an acquisition means for acquiring image data, a compression means for compressing the acquired image data, and an error A gradation number reduction means for reducing the number of gradations of the image data by a diffusion method, the image data acquired by the acquisition means includes a photographic image, and the image data acquired by the compression means is compressed Is characterized in that the gradation number is not reduced by the gradation number reducing means.
本発明においては、写真画像を含む画像データを取得し、取得した画像データの圧縮を行う場合には、誤差拡散方式による階調数の減少を行わない。圧縮と誤差拡散方式による階調数の減少の組み合わせによりブロックノイズ画発生して画質を低下させることがない。 In the present invention, when image data including a photographic image is acquired and the acquired image data is compressed, the number of gradations is not reduced by the error diffusion method. A block noise image is not generated by a combination of compression and a reduction in the number of gradations by the error diffusion method, and the image quality is not deteriorated.
また、第7発明に係る画像処理装置は、前記圧縮手段が、JPEG方式により画像データを圧縮するようにしてあることを特徴とする。 An image processing apparatus according to a seventh aspect is characterized in that the compression means compresses image data by a JPEG method.
本発明においては、画像データをJPEG方式により圧縮し、画像データのデータサイズを縮小することで装置に搭載されたメモリを有効に利用する。JPEG方式で圧縮する際にブロックノイズが発生する可能性があるため、圧縮を行った場合には誤差拡散方式による階調数の減少を行わず、組織的ディザ方式などの方式で階調数の減少を行うことによって、ブロックノイズによる画質の低下を抑制できる。 In the present invention, the image data is compressed by the JPEG method, and the data size of the image data is reduced to effectively use the memory mounted in the apparatus. Since block noise may occur when compressing with the JPEG method, when the compression is performed, the number of tones is not reduced by the error diffusion method, but the number of tones is changed by a method such as an organized dither method. By performing the reduction, it is possible to suppress deterioration in image quality due to block noise.
また、第8発明に係る画像処理装置は、前記階調数減少手段が、画像データの階調数を
2階調に減少するようにしてあることを特徴とする。
The image processing apparatus according to the eighth invention is characterized in that the gradation number reducing means reduces the gradation number of the image data to two gradations.
本発明においては、画像データの階調数を2階調に減少する。プリンタなどが記録用紙に記録を行う場合には、ドットの有無で画像を再現するため、画像データの階調数を2階調に減少する必要がある。また、画像データの送受信を行う場合には、画像データのデータ量は少ないことが望ましいため、画像データの階調数を2階調に減少することによってデータ量を削減できる。 In the present invention, the number of gradations of the image data is reduced to two gradations. When a printer or the like performs recording on recording paper, it is necessary to reduce the number of gradations of image data to two gradations in order to reproduce an image with or without dots. In addition, when image data is transmitted and received, it is desirable that the amount of image data is small. Therefore, the amount of data can be reduced by reducing the number of gradations of image data to two.
第1発明による場合は、画像データの階調数を減少させるときに、画像データを圧縮した後に階調数を減少させる場合と、画像データを圧縮せずに階調数を減少させる場合とで、階調数減少の方式を変更する構成とすることにより、画像データの圧縮と階調数減少方式との組み合わせにより発生する画質の低下を防止することができる。例えば、圧縮を行った場合にはブロックノイズを低減するか又はブロックノイズを強調することがない階調数減少の方式を用い、圧縮を行わない場合には中間階調の再現性が高い階調数減少の方式を用いることによって、ブロックノイズによる画質の低下を防止することができるため、高品質な画像データの記録用紙への記録又はディスプレイへの表示等を行うことができる。 According to the first invention, when the number of gradations of the image data is reduced, the number of gradations is reduced after the image data is compressed, and the case where the number of gradations is reduced without compressing the image data. By adopting a configuration in which the method for reducing the number of gradations is changed, it is possible to prevent the deterioration in image quality caused by the combination of compression of image data and the method for reducing the number of gradations. For example, when compression is used, a method of reducing the number of gradations that does not reduce block noise or enhance block noise is used, and when compression is not performed, gradation with high reproducibility of intermediate gradations By using the method of reducing the number, it is possible to prevent the image quality from being deteriorated due to block noise, so that high-quality image data can be recorded on a recording sheet or displayed on a display.
また、第2発明による場合は、取得した画像データを圧縮しない場合には、誤差拡散方式により画像データの階調数減少を行う構成とすることにより、組織的ディザ方式等と比較してモアレの発生などがなく、中間階調の再現性よく画像データの階調数を減少することができるため、高品質な画像データの記録用紙への記録又はディスプレイへの表示等を行うことができる。 According to the second aspect of the invention, when the acquired image data is not compressed, a configuration in which the number of gradations of the image data is reduced by the error diffusion method is used, so that moire is reduced as compared with the systematic dither method. Since there is no occurrence and the number of gradations of image data can be reduced with good reproducibility of intermediate gradations, high-quality image data can be recorded on a recording sheet or displayed on a display.
また、第3発明による場合は、取得した画像データを圧縮する場合には、組織的ディザ方式により画像データの階調数減少を行う構成とすることにより、画像データの圧縮によりブロックノイズが発生した場合に、誤差拡散方式と比較して組織的ディザ方式はブロックノイズを強調することがなく、又はブロックノイズを低減することも可能であるため、ブロックノイズにより画質が低下することを防止でき、画像データを圧縮する必要がある場合であっても高品質な画像データの記録用紙への記録又はディスプレイへの表示等を行うことができる。 According to the third aspect of the present invention, when the acquired image data is compressed, block noise is generated due to the compression of the image data by adopting a configuration in which the number of gradations of the image data is reduced by a systematic dither method. In some cases, compared to the error diffusion method, the systematic dither method does not emphasize the block noise or can reduce the block noise. Even when data needs to be compressed, high-quality image data can be recorded on a recording sheet or displayed on a display.
また、第4発明による場合は、写真画像を含む画像データの階調数を減少させる場合には、画像データの圧縮を行わない構成とすることにより、圧縮によってブロックノイズが発生しやすい写真画像の画質の低下を抑制することができるため、高品質な写真画像の記録用紙への記録又はディスプレイへの表示等を行うことができる。 According to the fourth aspect of the present invention, when reducing the number of gradations of image data including a photographic image, a configuration in which the image data is not compressed is used to reduce the number of gradations of the photographic image in which block noise easily occurs. Since deterioration in image quality can be suppressed, high-quality photographic images can be recorded on recording paper or displayed on a display.
また、第5発明による場合は、階調数を減少した画像データを記録用紙に記録する場合に、画像データが写真画像を含む場合であっても、複数の画像データをメモリに蓄積した後で記録を行うときには、画像データを圧縮し、誤差拡散方式ではない方式で階調数の減少を行う構成とすることにより、装置に搭載されたメモリを有効に利用できると共に、ブロックノイズなどによる画質の低下を抑制することができるため、画像データを圧縮する必要がある場合であっても高品質な画像データの記録用紙への記録又はディスプレイへの表示等を行うことができる。 According to the fifth aspect of the present invention, when image data with a reduced number of gradations is recorded on a recording sheet, even if the image data includes a photographic image, a plurality of image data are stored in the memory. When recording, the image data is compressed and the number of gradations is reduced by a method other than the error diffusion method, so that the memory installed in the apparatus can be used effectively and the image quality due to block noise or the like can be reduced. Since reduction can be suppressed, even when image data needs to be compressed, high-quality image data can be recorded on a recording sheet, displayed on a display, or the like.
また、第6発明による場合は、写真画像を含む画像データを取得し、取得した画像データの圧縮を行う場合には、誤差拡散方式による階調数の減少を行わずに組織的ディザ方式などの他の方式による階調数の減少を行う構成とすることにより、圧縮によってブロックノイズが発生しやすい写真画像の画質の低下を抑制することができるため、高品質な写真
画像の記録用紙への記録又はディスプレイへの表示等を行うことができる。
According to the sixth aspect of the invention, when image data including a photographic image is acquired and the acquired image data is compressed, a systematic dither method or the like is used without reducing the number of gradations by the error diffusion method. By adopting a configuration that reduces the number of gradations by other methods, it is possible to suppress deterioration in the image quality of photographic images that are likely to generate block noise due to compression, so recording high-quality photographic images on recording paper Alternatively, display on a display can be performed.
また、第7発明による場合は、画像データの圧縮をJPEG方式で行い、圧縮を行った場合には誤差拡散方式による階調数の減少を行わず、組織的ディザ方式などの方式で階調数の減少を行う構成とすることにより、JPEG方式の圧縮により発生するブロックノイズによる画質の低下を抑制して、装置に搭載されたメモリを有効に利用することができる。 According to the seventh aspect of the invention, image data is compressed by the JPEG method, and when compression is performed, the number of gradations is not reduced by the error diffusion method, but by a method such as a systematic dither method. By reducing the image quality, it is possible to suppress deterioration of image quality due to block noise generated by JPEG compression and to effectively use the memory installed in the apparatus.
また、第8発明による場合は、画像データの階調数を2階調に減少する構成とすることにより、プリンタなどが画像データを記録用紙に記録する場合、又はファクシミリ装置などが画像データの送受信を行う場合等に適した階調数の減少を行うことができ、この場合にブロックノイズなどによる画質の低下を抑制することができる。 According to the eighth aspect of the invention, the configuration is such that the number of gradations of the image data is reduced to two, so that the printer or the like records the image data on the recording paper, or the facsimile apparatus or the like transmits and receives the image data. It is possible to reduce the number of gradations suitable for the case where the image quality is performed. In this case, it is possible to suppress the deterioration of the image quality due to block noise or the like.
以下、本発明をその実施の形態を示す図面に基づき具体的に説明する。なお、本実施の形態においては画像処理装置として、コピー機能、プリンタ機能、スキャナ機能及びファクシミリ機能等を備える複合機を例に説明を行う。図1は、本発明の実施の形態に係る複合機の構成を示すブロック図である。図において1は、複合機に備えられたNCU(Network Control Unit)2、モデム3、画像処理部5、ROM7、RAM8、表示部9、操作部10及びLAN(Local Area Network)インタフェース11等の各部の制御を行う制御部であり、これら各部と制御部1とはバス12を介して接続されている。
Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof. In the present embodiment, an image processing apparatus will be described as an example of a multifunction machine having a copy function, a printer function, a scanner function, a facsimile function, and the like. FIG. 1 is a block diagram showing a configuration of a multifunction machine according to an embodiment of the present invention. In FIG. 1,
制御部1は、具体的にはCPU(Central Processing Unit)で構成されており、ファクシミリ装置の各部を制御すると共に、ROM7に記憶された制御プログラムに従って、後述の処理及びその他の種々のソフトウェア的機能を実行するようにしてある。
Specifically, the
また、NCU2は、PSTN(Public Switched Telephone
Network、公衆電話回線網)との回線の閉結及び開放の動作を行うハードウェアであり、PSTNとモデム3とのインタフェース回路を有している。モデム3は、ファクシミリ通信によるデータの送信を行う場合には、デジタルの画像データをアナログの音声データに変換し、PSTNを介して他のファクシミリ機能を有する装置へ送信するようにしてあり、また、データの受信を行う場合には、アナログの音声信号をデジタルの画像データに変換するようにしてある。
In addition, NCU2 is a PSTN (Public Switched Telephone).
This is hardware for closing and opening a line with a network (public telephone line network), and has an interface circuit between the PSTN and the
ROM7には、複合機の動作に必要な種々のソフトウェアの制御プログラムが記憶されており、マスクROM、EEPROM又はフラッシュメモリ等の不揮発性のメモリ素子により構成されている。RAM8は、制御部1が制御処理又は演算処理等を行う際に発生する一時的なデータを記憶するものであり、SRAM、DRAM又はフラッシュメモリ等の書き換え可能なメモリ素子により構成されている。
The ROM 7 stores various software control programs necessary for the operation of the multifunction peripheral, and is configured by a nonvolatile memory element such as a mask ROM, an EEPROM, or a flash memory. The
表示部9は、例えば液晶パネルなどにより構成されるものであり、複合機の動作状態又はユーザへの警告メッセージ等を表示するようにしてある。操作部10は、複数のボタン又はスイッチ等を有しており、ユーザがこれらのボタン又はスイッチ等へ与える操作を受け付けて制御部1へ通知するようにしてある。なお、操作部10は表示部9の表示画面に対するユーザの接触を検知するタッチセンサ(図示せず)を有しており、表示部9に表示されたメニュー又はボタン等にユーザが触れることで操作を受け付けることが可能にしてある。これは所謂タッチパネルであり、操作部10はタッチパネルを含むものである。制御部1は、操作部10が受け付けた操作に応じて処理を行うようにしてある。
The
LANインタフェース11は、所謂LANケーブルを接続するためのコネクタを有しており、コネクタに接続されたLANケーブルを介して社内LAN又は家庭内LAN等のLANに接続し、PCとの間でデータの送受信を行うものである。 The LAN interface 11 has a connector for connecting a so-called LAN cable. The LAN interface 11 is connected to a LAN such as an in-house LAN or a home LAN via a LAN cable connected to the connector, and transmits data to and from a PC. Transmit and receive.
また、複合機は、コピー機能、ファクシミリ機能及びスキャナ機能を利用する際に原稿の読み取りを行う読取部4と、コピー機能、ファクシミリ機能及びプリンタ機能を利用する際に記録用紙へ画像データの記録を行う記録部6とを備えている。読取部4は、例えばCCD(Charge Coupled Device)を利用した光学系で原稿を読み取り、読み取った原稿を基にした画像データを出力するようにしてあり、読取部4が出力する画像データは画像処理部5へ与えられるようにしてある。また、図示は省略するが、読取部4はADF(Auto Document Feeder、原稿自動送り装置)を有しており、複数頁の原稿を自動的に読み取ることができるようにしてある。画像処理部5は、読取部4から与えられた画像データ、モデム3が受信した画像データ、LANを介してPCから与えられた画像データを一時的に記憶するための画像メモリ21を有しており、与えられた画像データに後述の画像処理を行って記録部6へ与えるようにしてある。記録部6は、電子写真方式のプリンタであり、与えられた画像データを基に、記録用紙へ記録を行うようにしてある。
In addition, the multi-function device records the image data on a recording sheet when using the copy function, the facsimile function, and the printer function, and the
例えば、複合機のコピー機能は、読取部4にて原稿を読み取って画像データを取得し、取得した画像データに画像処理部5が種々の画像処理を行い、記録部6にて記録用紙に記録することで実現される。ファクシミリ機能は、読取部4にて原稿を読み取って画像処理部5からモデム3へ画像データを与え、モデム3及びNCU2によりPSTNを介して他の装置へ画像データを送信し、また、他の装置から画像データを受信した場合は、受信した画像データをモデム3から画像処理部5へ与え、記録部6にて記録用紙に記録することで実現される。スキャナ機能は、読取部4にて読み取った原稿の画像データを、画像処理部5からLANインタフェース11を介してPCへ送信することで実現される。プリンタ機能は、PCからLANインタフェース11を介して受信した画像データを画像処理部5へ与え、記録部6にて記録用紙に記録することで実現される。
For example, the copy function of the multifunction peripheral acquires image data by reading a document with the
図2は、本発明の実施の形態に係る複合機の画像処理部5の構成を示すブロック図である。画像処理部5は、読取部4により読み取られた原稿の赤色成分(R成分)、緑色成分(G成分)及び青色成分(B成分)のそれぞれを示すアナログ信号を所定の大きさに増幅し、増幅したアナログ信号をサンプルホールド回路により一定のタイミング毎にサンプルホールドするAFE(Analog Front End)回路22を有しており、AFE回路22にてサンプルホールドされた3つの値はA/D変換回路23へ与えられるようにしてある。A/D変換回路23は、AFE回路22から与えられた3つのアナログ値を、例えば8bitのデジタル信号にそれぞれ変換して出力するようにしてある。
FIG. 2 is a block diagram illustrating a configuration of the
A/D変換回路23が出力するR成分、G成分及びB成分の3つのデジタル信号、即ちRGB系の画像データは、シェーディング補正回路24へ与えられる。シェーディング補正回路24は、与えられた画像データに対して、読取部4の照明系、結像系又は撮像系等にて生じた各種の歪みを取り除く補正を行い、補正した画像データを入力色空間変換回路25へ与えるようにしてある。入力色空間変換回路25は、与えられたRGB系の画像データを、輝度、青方向の色相及び赤方向の色相の3つの成分で構成されるYCbCr系の画像データに変換してメモリコントローラ26へ与えるようにしてある。
Three digital signals of R component, G component, and B component output from the A /
メモリコントローラ26は、制御部1の制御により、入力色空間変換回路25又はJPEG圧縮伸張回路32からの画像データを画像メモリ21へ記憶すると共に、画像メモリ21に記憶された画像データを読み出してJPEG圧縮伸張回路32又は画像処理回路2
7へ与えるものである。なお、メモリコントローラ26は、画像メモリ21へ画像データを記憶する場合には、JPEG圧縮伸張回路32にて画像データを圧縮した後に記憶を行い、画像メモリ21から画像データを読み出す場合には、読み出した画像データをJPEG圧縮伸張回路32にて伸張して画像処理回路27へ与えるようにしてある。
The
7 is given. The
入力色空間変換回路25から画像データが与えられ、これをファクシミリ機能により他の装置へ送信する場合又はLANを介してPCへ送信する場合には、メモリコントローラ26は、JPEG圧縮伸張回路32にて画像データの圧縮を行った後、画像メモリ21に画像データを記憶し、制御部1が画像メモリ21に記憶された画像データをモデム3又はLANインタフェース11へ与えるようにしてある。また、ファクシミリ機能により他の装置から受信した画像データ又はLANを介してPCから受信した画像データは、制御部1により画像メモリ21へ記憶され、メモリコントローラ26がこれを読み出してJPEG圧縮伸張回路32にて伸張した後、画像処理回路27へ与えることで記録を行うようにしてある。
When image data is given from the input color
また、読取部4にて読み取った原稿の画像データを記録部6にて記録する場合、即ち原稿のコピーを行う場合には、メモリコントローラ26は、入力色空間変換回路25から与えられた画像データを画像処理回路27へ与えるようにしてある。また、原稿を複数部コピーする場合又は原稿を集約してコピーする場合等には、入力色空間変換回路25から与えられた画像データをJPEG圧縮伸張回路32にて圧縮し、画像メモリ21に複数の画像データを一時的に蓄積した後に、画像処理回路27へ画像データを与えるようにしてある。
When the image data of the document read by the
画像処理回路27は、例えば上述のように複数の原稿を集約してコピーする場合に、与えられた複数の画像データを集約して1つの画像データを作成する処理を行うものであり、その他にも例えば画像データの拡大及び縮小等の画像処理を行うことができ、画像処理を施した画像データを出力色空間変換回路28へ与えるようにしてある。出力色空間変換回路28は、与えられたYCbCr系の画像データを、シアン、マゼンダ、イエロー、黒の4つの成分で構成されるCMYK系の画像データに変換して出力するようにしてある。
For example, when a plurality of originals are aggregated and copied as described above, the
出力色空間変換回路28が出力したCMYK系の画像データは、階調数を減少するための組織的ディザ方式階調数減少回路30及び誤差拡散方式階調数減少回路29へ与えられる。組織的ディザ方式階調数減少回路30は、組織的ディザ方式のアルゴリズムで画像データの階調数の減少処理、例えば2値化処理を行って、階調数を減少したCMYK系の画像データを選択回路31へ与えるようにしてある。誤差拡散方式階調数減少回路29は、誤差拡散方式のアルゴリズムで画像データの階調数の減少処理を行って、階調数を減少したCMYK系の画像データを選択回路31へ与えるようにしてある。選択回路31は、制御部1からの命令に応じて、組織的ディザ方式階調数減少回路30又は誤差拡散方式階調数減少回路29のいずれか一方から与えられた画像データを選択して記録部6へ与え、記録部6にて記録用紙に画像データの記録を行うようにしてある。
The CMYK image data output from the output color
図3は、JPEG圧縮伸張回路32が行うJPEG圧縮処理の概要を説明するための模式図である。入力色空間変換回路25が出力するYCbCr系の画像データ(図3(a)参照)は、メモリコントローラ26からJPEG圧縮伸張回路32へ与えられる。JPEG圧縮伸張回路32は、与えられた画像データを8画素×8画素のブロックに分割し(図3(b)参照)、各ブロック毎にDCT(Discrete Cosine Transform、離散コサイン変換)を行って周波数成分に変換し、量子化テーブルを基に量子化を行った後に、ハフマン符号を用いた圧縮を行う。
FIG. 3 is a schematic diagram for explaining an outline of the JPEG compression processing performed by the JPEG compression /
このようにJPEG方式では8画素×8画素のブロック毎に圧縮処理を行うため、圧縮
後の画像データ(図3(c)参照)にブロック間の境界線が視認されるブロックノイズ(図3(c)に破線で示す)が発生することがある。これは、圧縮前の画像中のエッジでない部分では色の濃度が徐々に増減するが、圧縮後の画像中ではブロック間の境界部分で色の濃度変化が大きく、この濃度の差を視認するためである。
As described above, since compression processing is performed for each block of 8 pixels × 8 pixels in the JPEG method, block noise (FIG. 3 (FIG. 3 (FIG. 3C) in which boundary lines between blocks are visually recognized in the compressed image data (see FIG. 3C)). c) may occur). This is because the color density gradually increases or decreases in the non-compressed part of the image before compression, but in the post-compression image, the color density changes greatly at the boundary part between blocks, and this density difference is visually recognized. It is.
図4は、組織的ディザ方式階調数減少回路30が行う階調数減少処理の概要を説明するための模式図である。本図に示す例は、組織的ディザ方式階調数減少回路30へ入力される画像データの各画素が8bitの情報量を有する、即ち各画素が256階調の階調数を有する場合である(図4(a)参照)。組織的ディザ方式では、4×4のディザマトリクスに16個の閾値を予め設定しておき(図4(b)参照)、入力画像データの4画素×4画素の領域毎にディザマトリクスの閾値との比較を行って、各画素の階調値が閾値より小さい場合にはこの画素を最低階調値(即ち0)に変換し、閾値より大きい場合には最高階調値(即ち255)に変換することで、2値化を行う(図4(c)参照)。
FIG. 4 is a schematic diagram for explaining the outline of the gradation number reduction process performed by the systematic dither gradation
このように、組織的ディザ方式は閾値との比較により階調数の減少を行う方式であるため、JPEG方式の圧縮によってブロックノイズが発生した場合であっても、ブロックノイズが閾値を超えない程度のものであれば、階調数の減少後にはブロックノイズを抑えることができる。しかし、4×4のディザマトリクスによって繰り返し比較を行うため、ディザマトリクスの大きさで周期的な模様が視認される、所謂モアレが発生する虞があるという問題がある。 As described above, the systematic dither method is a method in which the number of gradations is reduced by comparison with a threshold value, so that even when block noise occurs due to JPEG compression, the block noise does not exceed the threshold value. If it is, the block noise can be suppressed after the number of gradations is reduced. However, since the comparison is repeatedly performed using a 4 × 4 dither matrix, there is a problem that a so-called moire in which a periodic pattern is visually recognized with the size of the dither matrix may occur.
図5は、誤差拡散方式階調数減少回路29が行う階調数減少処理の概要を説明するための模式図である。本図に示す例は、誤差拡散方式階調数減少回路29へ入力される画像データの各画素が256階調の階調数を有し、2値化のための閾値を128とした場合である。また、画像データの水平方向、即ち図5の右方向をx方向とし、垂直方向、即ち図5の下方向をy方向とし、2値化を行う画素(以下、注目画素という)をf(x、y)とした場合に、注目画素f(x、y)の右隣の画素f(x+1、y)と、右下隣の画素f(x+1、y+1)と、下隣の画素f(x、y+1)とに、注目画素f(x、y)を2値化した場合に生じる誤差Er(x、y)を以下に示す式に基づいて拡散する例である。
f(x+1、y)=f(x+1、y)+Er(x、y)*(3/8)
f(x+1、y+1)=f(x+1、y+1)+Er(x、y)*(1/8)
f(x、y+1)=f(x、y+1)+Er(x、y)*(2/8)
Er(x、y)=f(x、y)−{0 or 255}
FIG. 5 is a schematic diagram for explaining the outline of the gradation number reduction process performed by the error diffusion method gradation
f (x + 1, y) = f (x + 1, y) + Er (x, y) * (3/8)
f (x + 1, y + 1) = f (x + 1, y + 1) + Er (x, y) * (1/8)
f (x, y + 1) = f (x, y + 1) + Er (x, y) * (2/8)
Er (x, y) = f (x, y) − {0 or 255}
まず、注目画素を画像データの最左上の画素f(0、0)=143とした場合(図5(a)参照)、閾値の128との比較によりf(0、0)=255に2値化され、このときの誤差はEr(0、0)=143−255=−112となる。この誤差Er(0、0)を右隣の画素f(1、0)=51と、右下隣の画素f(1、1)=99と、下隣の画素f(0、1)=86とに拡散すると、以下のようになる。
f(1、0)=51−112*(3/8)=9
f(1、1)=99−112*(1/8)=84
f(0、1)=86−112*(2/8)=56
First, when the pixel of interest is the upper left pixel f (0, 0) = 143 in the image data (see FIG. 5A), the binary value of f (0, 0) = 255 is obtained by comparison with the threshold value of 128. The error at this time is Er (0, 0) = 143-255 = −112. This error Er (0, 0) is determined by changing the right adjacent pixel f (1, 0) = 51, the lower right adjacent pixel f (1, 1) = 99, and the lower adjacent pixel f (0, 1) = 86. When diffusing, it becomes as follows.
f (1,0) = 51-112 * (3/8) = 9
f (1,1) = 99−112 * (1/8) = 84
f (0, 1) = 86−112 * (2/8) = 56
次いで、注目画素をx方向へ1つずらしてf(1、0)=9とした場合(図5(b)参照)、閾値の128との比較によりf(1、0)=0に2値化され、このときの誤差はEr(1、0)=9−0=9となる。この誤差Er(1、0)を右隣の画素f(2、0)=63と、右下隣の画素f(2、1)=55と、下隣の画素f(1、1)=84とに拡散すると、以下のようになる。
f(2、0)=63+9*(3/8)=66
f(2、1)=55+9*(1/8)=56
f(1、1)=84+9*(2/8)=86
Next, when the pixel of interest is shifted by one in the x direction to be f (1, 0) = 9 (see FIG. 5B), a binary value of f (1, 0) = 0 is obtained by comparison with a threshold value of 128. The error at this time is Er (1, 0) = 9−0 = 9. The error Er (1, 0) is determined by changing the right adjacent pixel f (2, 0) = 63, the lower right adjacent pixel f (2, 1) = 55, and the lower adjacent pixel f (1, 1) = 84. When diffusing, it becomes as follows.
f (2, 0) = 63 + 9 * (3/8) = 66
f (2,1) = 55 + 9 * (1/8) = 56
f (1,1) = 84 + 9 * (2/8) = 86
次いで、注目画素をx方向へ1つずらしてf(2、0)=66とした場合(図5(c)参照)、閾値の128との比較によりf(2、0)=0に2値化され、このときの誤差はEr(2、0)=66−0=66となる。この誤差Er(2、0)を右隣の画素f(3、0)=177と、右下隣の画素f(3、1)=30と、下隣の画素f(2、1)=56とに拡散すると、以下のようになる。
f(3、0)=177+66*(3/8)=202
f(3、1)=30+66*(1/8)=38
f(2、1)=56+66*(2/8)=73
Next, when the pixel of interest is shifted by one in the x direction to be f (2, 0) = 66 (see FIG. 5C), a binary value of f (2, 0) = 0 is obtained by comparison with a threshold value of 128. The error at this time is Er (2, 0) = 66−0 = 66. This error Er (2, 0) is determined by changing the right adjacent pixel f (3, 0) = 177, the lower right adjacent pixel f (3, 1) = 30, and the lower adjacent pixel f (2, 1) = 56. When diffusing, it becomes as follows.
f (3,0) = 177 + 66 * (3/8) = 202
f (3, 1) = 30 + 66 * (1/8) = 38
f (2,1) = 56 + 66 * (2/8) = 73
以上のように、注目画素をx方向へ、更にy方向へ順次移動させて処理を繰り返し行うことによって、画像データの2値化を行うことができる。2値化の誤差を右隣、右下隣及び下隣の画素へ拡散することができるため、組織的ディザ方式のようにモアレが発生することがなく、中間階調の再現性がより高いという利点がある。しかし、画像データにJPEG方式の圧縮を行うことによってブロックノイズが発生した場合、ブロックノイズの影響が周辺の画素へ拡散し、画質が低下する虞がある。 As described above, it is possible to binarize image data by repeatedly moving the pixel of interest sequentially in the x direction and further in the y direction. Since the binarization error can be diffused to the right adjacent pixel, the lower right adjacent pixel, and the adjacent lower pixel, moire does not occur unlike the systematic dither method, and the reproducibility of the intermediate gradation is higher. There are advantages. However, when block noise occurs due to JPEG compression of image data, the influence of block noise may spread to surrounding pixels, and image quality may deteriorate.
図6及び図7は、本発明の実施の形態に係る複合機の制御部1が行うコピー処理の手順を示すフローチャートである。なお、本フローチャートに示す例では、複数部のコピーを行うか否か、及び写真を含む原稿のコピーを行うか否か(写真モードか否か)の2つをユーザが設定することができるものとする。まず、制御部1は、ユーザが操作部10を操作することによって、複数部のコピーが設定されたか否かを調べ(ステップS1)、複数部のコピーが設定されていない場合には(S1:NO)、更に写真モードのコピーが設定されたか否かを調べる(ステップS2)。
6 and 7 are flowcharts showing a copy processing procedure performed by the
写真モードのコピーが設定されていない場合(S2:NO)、読取部4により原稿を読み取り(ステップS3)、読み取ったRGB系の画像データをYCbCr系の画像データに変換した後に、JPEG圧縮伸張回路32にて圧縮して(ステップS4)、画像メモリ21へ記憶する。次いで、画像メモリ21から圧縮した画像データを読み出して伸張し、YCbCr系の画像データをCMYK系の画像データに変換した後に階調数の減少処理を行い、組織的ディザ方式階調数減少回路30による階調数減少処理の結果である画像データを選択回路31により選択し(ステップS5)、階調数が減少された画像データを記録部6にて記録用紙に記録する(ステップS6)。次いで、全ての原稿についてのコピーが終了したか否かを調べ(ステップS7)、終了していない場合は(S7:NO)、ステップS3へ戻り、原稿の読み取りから記録までの処理を繰り返し行う。全ての原稿についてコピーが終了した場合(S7:YES)、コピー処理を終了する。
When copying in the photographic mode is not set (S2: NO), the original is read by the reading unit 4 (step S3), and after the read RGB image data is converted into YCbCr image data, the JPEG compression / decompression circuit The image data is compressed at 32 (step S4) and stored in the
また、ステップS2にて、写真モードのコピーが設定されている場合(S2:YES)、読取部4により原稿を読み取り(ステップS8)、読み取った画像データを圧縮することなく階調数減少処理を行って、誤差拡散方式階調数減少回路29による階調数減少処理の結果である画像データを選択回路31により選択し(ステップS9)、階調数が減少された画像データを記録部6にて記録用紙に記録する(ステップS10)。次いで、全ての原稿についてのコピーが終了したか否かを調べ(ステップS11)、終了していない場合は(S11:NO)、ステップS8へ戻り、原稿の読み取りから記録までの処理を繰り返し行う。全ての原稿についてコピーが終了した場合(S11:YES)、コピー処理を終了する。
If copying in the photographic mode is set in step S2 (S2: YES), the original is read by the reading unit 4 (step S8), and the gradation number reduction process is performed without compressing the read image data. Then, the selection circuit 31 selects image data as a result of the gradation number reduction process by the error diffusion method gradation number reduction circuit 29 (step S9), and the image data with the reduced gradation number is stored in the
また、ステップS1にて、複数部のコピーが設定されている場合(S1:YES)、写真モードのコピーが設定されているか否かに関わらず、読取部4により原稿を読み取り(
ステップS12)、読み取った画像データをJPEG圧縮伸張回路32にて圧縮して(ステップS13)、画像メモリ21へ蓄積する(ステップS14)。次いで、画像メモリ21から圧縮した画像データを読み出して伸張した後に階調数の減少処理を行い、組織的ディザ方式階調数減少回路30による階調数減少処理の結果である画像データを選択回路31により選択し(ステップS15)、階調数が減少された画像データを記録部6にて記録用紙に記録する(ステップS16)。次いで、全ての原稿についてのコピーが終了したか否かを調べ(ステップS17)、終了していない場合は(S17:NO)、ステップS12へ戻り、原稿の読み取りから記録までの処理を繰り返し行う。
If multiple copies are set in step S1 (S1: YES), the document is read by the
In step S12), the read image data is compressed by the JPEG compression / decompression circuit 32 (step S13) and stored in the image memory 21 (step S14). Next, after the compressed image data is read out from the
全ての原稿について一通りのコピーが終了した場合(S17:YES)、画像メモリ21から蓄積した画像データを読み出して(ステップS18)、JPEG圧縮伸張回路32にて伸張した後に階調数の減少処理を行い、組織的ディザ方式階調数減少回路30による階調数減少処理の結果である画像データを選択回路31により選択し(ステップS19)、階調数が減少された画像データを記録部6にて記録用紙に記録する(ステップS20)。次いで、ユーザにより設定されたコピー部数について全ての記録が終了したか否かを調べ(ステップS21)、終了していない場合は(S21:NO)、ステップS18へ戻り、画像メモリ21に蓄積した画像データの読み出しから記録までの処理を繰り返し行い、設定されたコピー部数について全ての記録を終了した場合(S21:YES)、コピー処理を終了する。
When all the copies have been completed for all the originals (S17: YES), the stored image data is read from the image memory 21 (step S18) and decompressed by the JPEG compression /
以上の構成の複合機においては、コピー処理を行うときに写真モードが設定された場合には、画像データの圧縮を行わずに誤差拡散方式による階調数の減少を行い、それ以外の場合には、画像データを圧縮して組織的ディザ方式による階調数の減少を行う構成としたため、JPEG方式の圧縮により画像データにブロックノイズが発生することに起因して画質を低下させることなく、高品質に記録用紙に画像データを記録することができる。 In the MFP with the above configuration, if the photo mode is set when performing the copy process, the number of gradations is reduced by the error diffusion method without compressing the image data, and in other cases Since the image data is compressed and the number of gradations is reduced by the systematic dither method, the JPEG compression reduces the image quality due to the occurrence of block noise in the image data. Image data can be recorded on recording paper with high quality.
なお、本フローチャートは、ユーザがコピーを行う場合に複数部のコピーを行うか否か、及び写真を含む原稿のコピーを行うか否か(写真モードか否か)の2つのみを設定することができる場合を示すが、その他に例えば複数の原稿を集約してコピーするか否か、又は原稿を拡大/縮小してコピーするか否か等の条件を設定することができる構成であってもよく、この場合には本フローチャートを適宜拡張し、JPEG方式による画像データの圧縮を行った場合には組織的ディザ方式による階調数の減少を行い、圧縮を行わない場合には誤差拡散方式による階調数の減少を行う構成とすればよい。また、ユーザが写真モードの設定を行う構成としたが、これに限るものではなく、読取部4が読み取った画像データに写真を含むか否かを自動的に検出する構成としてもよい。また、複合機のコピー機能について本発明を適用した場合について説明を行ったが、これに限るものではなく、ファクシミリ機能又はプリンタ機能等についても同様に、画像データをJPEG方式で圧縮したか否かに応じて階調数の減少を行う方式を変更する本発明の構成を適用することができる。また、複合機でなく、コピー機能のみを有する機器、所謂コピー機であっても同様の構成を適用することができる。
In this flowchart, when the user performs copying, only two are set: whether or not to copy a plurality of copies and whether or not to copy a document including a photograph (whether or not the photograph mode is set). In other configurations, for example, it is possible to set conditions such as whether to copy a plurality of originals together or whether to copy originals with enlargement / reduction. In this case, this flowchart is expanded as appropriate. When image data is compressed by the JPEG method, the number of gradations is reduced by the systematic dither method. When compression is not performed, the error diffusion method is used. A configuration in which the number of gradations is reduced may be employed. Further, the configuration is such that the user sets the photo mode. However, the present invention is not limited to this, and it may be configured to automatically detect whether the image data read by the
(変形例)
図6及び図7に示したコピー処理においては、写真モードであるか否かに応じてJPEG方式の画像データの圧縮を行うか否かを決定する構成としたが、変形例に係る複合機のコピー処理は、写真モードでない場合、例えば文字原稿をコピーする文字モードの場合であっても、複数部のコピーを行うのでなければ、JPEG方式による圧縮を行わずに誤差拡散方式による階調数の減少を行う構成である。
(Modification)
In the copy processing shown in FIG. 6 and FIG. 7, it is configured to determine whether or not to compress JPEG image data depending on whether or not the mode is a photo mode. If the copy process is not in the photo mode, for example, in the character mode for copying a text document, the number of gradations by the error diffusion method is not performed without performing the compression by the JPEG method unless multiple copies are made. It is the structure which performs reduction.
図8は、本発明の実施の形態の変形例に係る複合機の制御部1が行うコピー処理の手順を示すフローチャートである。まず、制御部1は、ユーザが操作部10を操作することに
よって、複数部のコピーが設定されたか否かを調べ(ステップS41)、複数部のコピーが設定されていない場合には(S41:NO)、読取部4により原稿を読み取り(ステップS42)、読み取った画像データを圧縮することなく階調数減少処理を行って、誤差拡散方式階調数減少回路29による階調数減少処理の結果である画像データを選択回路31により選択し(ステップS43)、階調数が減少された画像データを記録部6にて記録用紙に記録する(ステップS44)。次いで、全ての原稿についてのコピーが終了したか否かを調べ(ステップS45)、終了していない場合は(S45:NO)、ステップS42へ戻り、原稿の読み取りから記録までの処理を繰り返し行う。全ての原稿についてコピーが終了した場合(S45:YES)、コピー処理を終了する。
FIG. 8 is a flowchart illustrating a copy processing procedure performed by the
また、ステップS41にて、複数部のコピーが設定されている場合(S41:YES)、読取部4により原稿を読み取り(ステップS46)、読み取った画像データをJPEG圧縮伸張回路32にて圧縮して(ステップS47)、画像メモリ21へ蓄積する(ステップS48)。次いで、画像メモリ21から圧縮した画像データを読み出して伸張した後に階調数の減少処理を行い、組織的ディザ方式階調数減少回路30による階調数減少処理の結果である画像データを選択回路31により選択し(ステップS49)、階調数が減少された画像データを記録部6にて記録用紙に記録する(ステップS50)。次いで、全ての原稿についてのコピーが終了したか否かを調べ(ステップS51)、終了していない場合は(S51:NO)、ステップS46へ戻り、原稿の読み取りから記録までの処理を繰り返し行う。
If multiple copies are set in step S41 (S41: YES), the document is read by the reading unit 4 (step S46), and the read image data is compressed by the JPEG compression /
全ての原稿について一通りのコピーが終了した場合(S51:YES)、画像メモリ21から蓄積した画像データを読み出して(ステップS52)、JPEG圧縮伸張回路32にて伸張した後に階調数の減少処理を行い、組織的ディザ方式階調数減少回路30による階調数減少処理の結果である画像データを選択回路31により選択し(ステップS53)、階調数が減少された画像データを記録部6にて記録用紙に記録する(ステップS54)。次いで、ユーザにより設定されたコピー部数について全ての記録が終了したか否かを調べ(ステップS55)、終了していない場合は(S55:NO)、ステップS52へ戻り、画像メモリ21に蓄積した画像データの読み出しから記録までの処理を繰り返し行い、設定されたコピー部数について全ての記録を終了した場合(S55:YES)、コピー処理を終了する。
When all the copies have been completed for all the originals (S51: YES), the stored image data is read from the image memory 21 (step S52) and decompressed by the JPEG compression /
以上のように、必ずしも写真モードであるか否か、即ちコピーする原稿に写真画像が含まれているか否かに応じて、JPEG方式による画像データの圧縮を行うか否かを決定する構成でなくてもよく、少なくともJPEG方式による画像データの圧縮を行った場合には、誤差拡散方式による階調数の減少を行わない構成であればよい。これにより、JPEG方式の圧縮によって生じるブロックノイズにより記録部6が記録する画像の品質の低下を抑制することができる。
As described above, it is not a configuration that determines whether or not to compress image data by the JPEG method depending on whether or not it is in the photographic mode, that is, whether or not a photographic image is included in the original to be copied. Alternatively, at least when the image data is compressed by the JPEG method, the number of gradations may not be reduced by the error diffusion method. As a result, it is possible to suppress deterioration in the quality of the image recorded by the
1 制御部
4 読取部(取得手段)
5 画像処理部
6 記録部(記録手段)
21 画像メモリ
26 メモリコントローラ
29 誤差拡散方式階調数減少回路(第1の階調数減少手段)
30 組織的ディザ方式階調数減少回路(第2の階調数減少手段)
31 選択回路
32 JPEG圧縮伸張回路(圧縮手段)
1
5
21
30 Systematic dither method gradation number reduction circuit (second gradation number reduction means)
31
Claims (8)
画像データを取得する取得手段と、
取得した画像データを圧縮する圧縮手段と、
周辺画素の階調値の減少結果に応じて対象画素の階調数の減少を行う階調数減少方式により、画像データの階調数を減少する第1の階調数減少手段と、
該第1の階調数減少手段とは別の方式により、画像データの階調数を減少する第2の階調数減少手段と
を備え、
前記圧縮手段が画像データの圧縮を行わない場合、前記第1の階調数減少手段が画像データの階調数を減少する処理を行い、
前記圧縮手段が画像データの圧縮を行う場合、前記第2の階調数減少手段が圧縮された画像データの階調数を減少する処理を行うようにしてあること
を特徴とする画像処理装置。 In an image processing apparatus that performs processing for reducing the number of gradations of image data,
Acquisition means for acquiring image data;
Compression means for compressing the acquired image data;
First gradation number reduction means for reducing the number of gradations of the image data by a gradation number reduction method for reducing the number of gradations of the target pixel according to the result of reduction of the gradation values of the peripheral pixels;
A second gradation number reduction means for reducing the number of gradations of the image data by a method different from the first gradation number reduction means,
When the compression means does not compress the image data, the first gradation number reduction means performs a process of reducing the gradation number of the image data,
An image processing apparatus, wherein when the compression unit compresses image data, the second gradation number reduction unit performs a process of reducing the gradation number of the compressed image data.
前記取得手段が取得する画像データが写真画像を含む場合であっても、前記記録手段が複数の画像データを蓄積した後に記録を行うときには、前記圧縮手段による画像データの圧縮を行い、前記第2の階調数減少手段による階調数の減少を行うようにしてある請求項1乃至請求項4のいずれか1つに記載の画像処理装置。 Comprising recording means for recording image data having a reduced number of gradations on recording paper;
Even when the image data acquired by the acquisition means includes a photographic image, when the recording means performs recording after accumulating a plurality of image data, the image data is compressed by the compression means, and the second 5. The image processing apparatus according to claim 1, wherein the number of gradations is reduced by the number of gradation reduction means.
画像データを取得する取得手段と、
取得した画像データを圧縮する圧縮手段と、
誤差拡散方式により画像データの階調数を減少する階調数減少手段と
を備え、
前記取得手段が取得した画像データが写真画像を含み、前記圧縮手段が取得した画像データの圧縮を行った場合には、前記階調数減少手段による階調数の減少を行わないようにしてあること
を特徴とする画像処理装置。 In an image processing apparatus that performs processing for reducing the number of gradations of image data,
Acquisition means for acquiring image data;
Compression means for compressing the acquired image data;
A gradation number reducing means for reducing the number of gradations of the image data by an error diffusion method,
When the image data acquired by the acquisition unit includes a photographic image, and the image data acquired by the compression unit is compressed, the gradation number is not reduced by the gradation number reduction unit. An image processing apparatus characterized by the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006136749A JP2007311912A (en) | 2006-05-16 | 2006-05-16 | Image processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006136749A JP2007311912A (en) | 2006-05-16 | 2006-05-16 | Image processing apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007311912A true JP2007311912A (en) | 2007-11-29 |
Family
ID=38844394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006136749A Pending JP2007311912A (en) | 2006-05-16 | 2006-05-16 | Image processing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007311912A (en) |
-
2006
- 2006-05-16 JP JP2006136749A patent/JP2007311912A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8254672B2 (en) | Image compressing method, image compressing apparatus and image forming apparatus | |
JP4708460B2 (en) | Display control apparatus, image forming apparatus, display device control method, control program, and recording medium | |
US8130410B2 (en) | Image processing method, image processing apparatus, image forming system and recording medium readable by a computer | |
US8159718B2 (en) | Image processing to determine if pixel in compressed data is chromatic or achromtic based on selection threshold | |
US20040156076A1 (en) | Method of and apparatus for image processing, and computer product | |
US20070252850A1 (en) | Image processing method and image processing apparatus | |
JPH0591313A (en) | Facsimile equipment | |
JP4731595B2 (en) | Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method | |
JP3915795B2 (en) | Image processing apparatus and image processing program | |
JP2005348170A (en) | Image reader, image processor, image forming apparatus, image processing method, computer program and recording medium | |
JPH04238462A (en) | Picture processor | |
JP6762140B2 (en) | Image processing equipment, image forming equipment, programs and recording media | |
JP2004112140A (en) | Image processing apparatus | |
JP3117331B2 (en) | Image data processing device | |
JP2010278924A (en) | Image processing apparatus, image forming apparatus, image processing method, program, and recording medium | |
JP2007311912A (en) | Image processing apparatus | |
JP2006011754A (en) | Image processing device and image processing method | |
JP2005332154A (en) | Image processor and image processing method | |
JP2015005835A (en) | Image processing device, image forming device, and recording medium | |
JP4926128B2 (en) | Image processing apparatus, image reading apparatus, image forming apparatus, computer program, recording medium, and image processing method | |
JPH01177258A (en) | Communication terminal equipment | |
JP4333951B2 (en) | Image processing apparatus, image processing method, image processing program, and recording medium | |
JP3448969B2 (en) | Image processing device | |
JP3991922B2 (en) | Image processing device | |
JP4974072B2 (en) | Image processing device |