JP4629057B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP4629057B2
JP4629057B2 JP2007004748A JP2007004748A JP4629057B2 JP 4629057 B2 JP4629057 B2 JP 4629057B2 JP 2007004748 A JP2007004748 A JP 2007004748A JP 2007004748 A JP2007004748 A JP 2007004748A JP 4629057 B2 JP4629057 B2 JP 4629057B2
Authority
JP
Japan
Prior art keywords
pixel
data
density
pixels
threshold
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.)
Expired - Fee Related
Application number
JP2007004748A
Other languages
Japanese (ja)
Other versions
JP2008172605A (en
Inventor
敏明 六尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Mita Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Mita Corp filed Critical Kyocera Mita Corp
Priority to JP2007004748A priority Critical patent/JP4629057B2/en
Publication of JP2008172605A publication Critical patent/JP2008172605A/en
Application granted granted Critical
Publication of JP4629057B2 publication Critical patent/JP4629057B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像データの解像度を変換する画像処理装置に関する。   The present invention relates to an image processing apparatus that converts the resolution of image data.

複写機、ファクシミリ、プリンター、及びこれらの複合機等の画像形成装置では、多値画像データを、より高解像度の二値画像データに変換したい場合があり、このような画像処理を行う画像処理装置が用いられている(例えば、特許文献1参照。)。このような画像処理装置では、原画像の各画素を、高解像度化した画像データにおける複数の画素に対応させ、原画像の画素の濃度値に応じて、対応する複数の画素における印字ドットの数を増減することで、原画像の階調を高解像度の二値画像データで表現するようになっている。
特開2002−185785号公報
In an image forming apparatus such as a copying machine, a facsimile, a printer, and a complex machine of these, there is a case where it is desired to convert multi-value image data into higher-resolution binary image data. An image processing apparatus that performs such image processing Is used (for example, refer to Patent Document 1). In such an image processing apparatus, each pixel of the original image is made to correspond to a plurality of pixels in the image data with high resolution, and the number of print dots in the corresponding pixels is determined according to the density value of the pixels of the original image. The gradation of the original image is expressed by high-resolution binary image data.
JP 2002-185785 A

ところで、画像形成装置、特に感光体ドラム上に静電潜像を形成し、この静電潜像を現像、転写することにより、画像を形成する画像形成装置では、感光体ドラム上に離散的にドットの静電潜像が形成される場合よりも、ドットがある程度集中している方が、静電潜像が安定し、画像品質が向上することが知られている。そこで、原画像から高解像度化した画像データを生成する画像処理装置において、原画像から高解像度化した画像データを生成する際に、濃度値に応じた数のドットを離散させずに塊まりになるように配置するドット位置寄せ処理を行うことで、画像形成装置における画像品質を向上させ易くすることが考えられる。   By the way, in an image forming apparatus, particularly an image forming apparatus which forms an electrostatic latent image on a photosensitive drum, and develops and transfers the electrostatic latent image, the image forming apparatus forms discrete images on the photosensitive drum. It is known that the electrostatic latent image is more stable and the image quality is improved when the dots are concentrated to some extent than when the electrostatic latent image of dots is formed. Therefore, in an image processing apparatus that generates high-resolution image data from an original image, when generating high-resolution image data from the original image, the number of dots corresponding to the density value is not clustered and is agglomerated. It is conceivable that the image quality in the image forming apparatus can be easily improved by performing the dot positioning process to be arranged as described above.

このようなドット位置寄せ処理を行う方法としては、例えば、目的画素と目的画素に隣接する周囲の画素との濃度値の組み合わせを予めパターン化して記憶しておき、各パターン毎にドットの配置を対応付けて記憶しておくことで、原画像を高解像度化する際にパターンマッチングにより各画素の濃度値の組み合わせに応じたドットパターンで高解像度の画像データを生成することが考えられる。しかしながら、このようにパターンマッチングによりドットの配置を決定する場合、マッチングパターンの数、及びこれに対応するドットパターンの数が膨大になり、これらのデータを記憶するために必要なメモリの容量が増大するという不都合があった。また、パターンマッチングにより予め決められたドット配置にすると、ドット配置が規則的になって、画像に模様が現れてしまうおそれがあるという不都合があった。   As a method for performing such dot positioning processing, for example, a combination of density values of the target pixel and surrounding pixels adjacent to the target pixel is stored in advance, and the dot arrangement is set for each pattern. By storing in association with each other, it is conceivable to generate high-resolution image data with a dot pattern corresponding to a combination of density values of each pixel by pattern matching when the resolution of the original image is increased. However, when the dot arrangement is determined by pattern matching in this way, the number of matching patterns and the number of corresponding dot patterns become enormous, and the memory capacity necessary to store these data increases. There was an inconvenience of doing. Further, when the dot arrangement determined in advance by pattern matching is used, there is a problem that the dot arrangement becomes regular and a pattern may appear in the image.

本発明は、このような事情に鑑みて為された発明であり、画像データを高解像度化しつつ、パターンマッチングを行うことなくドット位置寄せ処理を行うことができる画像処理装置を提供することを目的とする。   The present invention has been made in view of such circumstances, and an object of the present invention is to provide an image processing apparatus capable of performing dot positioning processing without performing pattern matching while increasing the resolution of image data. And

本発明に係る画像処理装置は、複数の濃度階調を有する濃度値によって各画素の濃度が表わされた原画像データから、当該原画像データより解像度の高い高解像画像データを生成する画像処理装置であって、前記原画像データの注目画素を、碁盤目状に前記濃度階調の数と略等しい数の第1画素に分割し、前記各第1画素の濃度値を、前記注目画素に隣接する画素の濃度値と前記注目画素の濃度値の間を線形補間を用いて補間することにより得られた濃度値とすることにより、前記注目画素を前記複数の第1画素で表す拡大注目画素データを生成する注目画素拡大処理部と、前記注目画素拡大処理部により生成された拡大注目画素データにおける各第1画素の濃度値を、各濃度値の大小関係に基づき順位付けした各第1画素の順位の番号を示す濃度順位データを閾値データとして生成する閾値データ生成部と、前記拡大注目画素データの各第1画素の濃度値を、前記閾値データ生成部で得られた閾値データの各第1画素の値に基づき二値化したデータを、前記原画像データより高解像度化された二値化画像データとして生成する二値化画像生成部とを備える。 An image processing apparatus according to the present invention generates, from original image data in which the density of each pixel is represented by density values having a plurality of density gradations, high-resolution image data having a higher resolution than the original image data. In the processing device, the target pixel of the original image data is divided into a number of first pixels substantially equal to the number of density gradations in a grid pattern, and the density value of each first pixel is determined as the target pixel. Enlargement representing the target pixel by the plurality of first pixels by setting the density value obtained by interpolating between the density value of the pixel adjacent to the target pixel and the density value of the target pixel using linear interpolation A pixel-of-interest enlargement processing unit that generates pixel-of-interest data, and a density value of each first pixel in the enlarged pixel-of-interest data generated by the pixel-of-interest enlargement processing unit is ranked based on the magnitude relationship of each density value. 1 pixel ranking number A threshold data generation unit that generates density rank data as threshold data, and sets the density value of each first pixel of the enlarged pixel data to the value of each first pixel of the threshold data obtained by the threshold data generation unit. A binarized image generating unit that generates binarized data based on the binarized image data with higher resolution than the original image data.

この構成によれば、注目画素拡大処理部によって、前記原画像データの注目画素が、碁盤目状に原画像データの濃度階調の数と略等しい数の第1画素に分割される。また、分割された各第1画素の濃度値が、原画像データにおける注目画素に隣接する隣接画素と注目画素との濃度値の差を補間することにより得られた濃度値とすることにより、注目画素を複数の第1画素で表す拡大注目画素データが生成される。そして、閾値データ生成部によって、注目画素拡大処理部により生成された拡大注目画素データにおける各第1画素の濃度値を、各濃度値の大小関係に基づき順位付けした各第1画素の順位の番号を示す濃度順位データが、閾値データとして生成される。そうすると、拡大注目画素データの中心からみて各第1画素の位置する方向にある隣接画素の濃度値が大きいほど、当該第1画素の濃度値が大きくなるので、閾値データにおける各第1画素の値には、隣接画素の濃度値が反映される。また、二値化画像生成部によって、拡大注目画素データの各第1画素の濃度値を閾値データ生成部で得られた閾値データの各第1画素の値に基づき二値化したデータが、原画像データより高解像度化された二値化画像データとして生成される。そうすると、閾値データの各第1画素の値には、隣接画素の濃度値が反映されているから、画像データを高解像度化しつつ、パターンマッチングを行うことなく隣接画素の濃度値に応じてドット位置寄せ処理を行うことができる。   According to this configuration, the target pixel enlargement processing unit divides the target pixel of the original image data into a number of first pixels substantially equal to the number of density gradations of the original image data in a grid pattern. Further, the density value of each divided first pixel is set to a density value obtained by interpolating the difference in density value between the adjacent pixel adjacent to the target pixel and the target pixel in the original image data. Expanded pixel-of-interest data that represents a pixel by a plurality of first pixels is generated. Then, the threshold data generation unit ranks the density values of the first pixels in the enlarged pixel-of-interest data generated by the pixel-of-interest enlargement processing unit based on the magnitude relationship of the respective density values. Is generated as threshold value data. Then, since the density value of the first pixel increases as the density value of the adjacent pixel in the direction in which each first pixel is located when viewed from the center of the enlarged target pixel data, the value of each first pixel in the threshold data The density value of the adjacent pixel is reflected in. In addition, the binarized image generation unit binarizes the density value of each first pixel of the enlarged target pixel data based on the value of each first pixel of the threshold data obtained by the threshold data generation unit. It is generated as binary image data with higher resolution than the image data. Then, since the density value of the adjacent pixel is reflected in the value of each first pixel of the threshold data, the dot position is determined according to the density value of the adjacent pixel without performing pattern matching while increasing the resolution of the image data. Alignment processing can be performed.

また、前記濃度値は、値が大きくなるほど濃度が濃くなることを示すものであり、前記閾値データ生成部は、前記各第1画素の濃度値を大きいものから順に順位付けして前記濃度順位データを生成し、前記二値化画像生成部は、前記閾値データにおける各第1画素の値より前記濃度値が大きい第1画素をドット有り、前記閾値データにおける各第1画素の値より前記濃度値が小さい第1画素をドット無しに設定することにより、前記二値化画像データを生成することが好ましい。   The density value indicates that the density increases as the value increases, and the threshold data generation unit ranks the density values of the first pixels in descending order, and sets the density ranking data. The binarized image generation unit includes a dot in which the density value is larger than the value of each first pixel in the threshold data, and the density value is greater than the value of each first pixel in the threshold data. It is preferable that the binarized image data is generated by setting the first pixel having a small dot size without dots.

この構成によれば、前記濃度値は、値が大きくなるほど濃度が濃くなることを示すものであるから、拡大注目画素データの中心からみて各第1画素の位置する方向にある隣接画素の濃度が濃いほど、当該第1画素の濃度値が大きくなる結果、閾値データにおける各第1画素の値は、隣接画素の濃度が濃いほど大きくなる。そうすると、濃度順位データにおける各第1画素の順位の番号、すなわち閾値データにおける各第1画素の値は、隣接画素の濃度が濃いほど小さくなる。従って、閾値データにおける各第1画素の値より濃度値が大きい第1画素をドット有り、閾値データにおける各第1画素の値より前記濃度値が小さい第1画素をドット無しに設定すると、濃度が濃い隣接画素に近い位置の第1画素ほど、ドット有に設定されやすくなるため、パターンマッチングを行うことなく隣接画素の濃度値に応じてドット位置寄せ処理が行われる。   According to this configuration, since the density value indicates that the density increases as the value increases, the density of adjacent pixels in the direction in which each first pixel is located as viewed from the center of the enlarged pixel data of interest. As the density increases, the density value of the first pixel increases. As a result, the value of each first pixel in the threshold data increases as the density of the adjacent pixels increases. Then, the order number of each first pixel in the density order data, that is, the value of each first pixel in the threshold data becomes smaller as the density of the adjacent pixels is higher. Accordingly, if the first pixel having a density value larger than the value of each first pixel in the threshold data is set to have a dot and the first pixel having the density value smaller than the value of each first pixel in the threshold data is set to no dot, the density is set. Since the first pixel closer to the darker adjacent pixel is more likely to be set to have a dot, the dot positioning process is performed according to the density value of the adjacent pixel without performing pattern matching.

また、前記拡大注目画素データにおいて、優先的にドットを配置するべき順位を前記各第1画素について設定した優先順位データを予め記憶する優先順位記憶部をさらに備え、前記閾値データ生成部は、前記濃度値が等しい第1画素が複数存在する場合、当該濃度値が等しい第1画素間の順位を、前記優先順位記憶部により記憶されている優先順位データに基づき順位付けすることが好ましい。   Further, the enlarged pixel-of-interest data further includes a priority order storage unit that pre-stores priority order data in which the order in which dots should be preferentially set is set for each first pixel, and the threshold value data generation unit includes: When there are a plurality of first pixels having the same density value, it is preferable to rank the ranks between the first pixels having the same density value based on the priority data stored in the priority storage unit.

この構成によれば、濃度値が等しい第1画素が複数存在する場合、閾値データ生成部によって、当該濃度値が等しい第1画素間の順位が、優先順位記憶部により記憶されている優先順位データに基づき順位付けされるので、濃度値が等しい第1画素間の順位を、優先的にドットを配置するべき順位に設定することができる。   According to this configuration, when there are a plurality of first pixels having the same density value, the priority data stored in the priority storage unit by the threshold data generation unit stores the rank between the first pixels having the same density value. Therefore, the order between the first pixels having the same density value can be set to the order in which the dots should be preferentially arranged.

また、前記拡大注目画素データにおいて、優先的にドットを配置するべき順位を前記各第1画素について設定した優先順位データを予め記憶する優先順位記憶部をさらに備え、前記閾値データ生成部は、前記原画像データの各画素間における濃度値の差が、予め設定された濃度差閾値より小さい場合、前記優先順位記憶部により記憶されている優先順位データを前記閾値データとして生成することが好ましい。   Further, the enlarged pixel-of-interest data further includes a priority order storage unit that pre-stores priority order data in which the order in which dots should be preferentially set is set for each first pixel, and the threshold value data generation unit includes: When the difference in density value between the pixels of the original image data is smaller than a preset density difference threshold, it is preferable to generate the priority order data stored in the priority order storage unit as the threshold data.

この構成によれば、原画像データの各画素間における濃度値の差が、予め設定された濃度差閾値より小さい場合、優先的にドットを配置するべき位置にドットが配置されるので、各画素間のわずかな濃度差に応じてドット位置寄せ処理が行われた場合のように、妥当でないドット配置にされるおそれが低減される。   According to this configuration, when the density value difference between the pixels of the original image data is smaller than a preset density difference threshold, the dots are preferentially arranged at positions where the dots should be arranged. As in the case where the dot positioning process is performed according to a slight density difference between them, the possibility of an inappropriate dot arrangement is reduced.

また、前記拡大注目画素データにおいて、優先的にドットを配置するべき順位を前記各第1画素について設定した優先順位データを予め記憶する優先順位記憶部をさらに備え、前記閾値データ生成部は、前記注目画素拡大処理部により生成された拡大注目画素データの各第1画素間における濃度値の差が、予め設定された濃度差閾値より小さい場合、前記優先順位記憶部により記憶されている優先順位データを前記閾値データとして生成するようにしてもよい。   Further, the enlarged pixel-of-interest data further includes a priority order storage unit that pre-stores priority order data in which the order in which dots should be preferentially set is set for each first pixel, and the threshold value data generation unit includes: When the difference in density value between the first pixels of the enlarged pixel-of-interest data generated by the pixel-of-interest enlargement processing unit is smaller than a preset density difference threshold, the priority order data stored in the priority order storage unit May be generated as the threshold data.

この構成によれば、拡大注目画素データの各第1画素間における濃度値の差が、予め設定された濃度差閾値より小さく、従って原画像データの各画素間における濃度値の差が小さい場合、優先的にドットを配置するべき位置にドットが配置されるので、各画素間のわずかな濃度差に応じてドット位置寄せ処理が行われた場合のように、妥当でないドット配置にされるおそれが低減される。   According to this configuration, when the difference in density value between the first pixels of the pixel-of-interest data is smaller than a preset density difference threshold value, and accordingly, the difference in density value between the pixels of the original image data is small, Since dots are arranged at positions where dots should be arranged preferentially, there is a risk that dot arrangement will be invalid as in the case where dot positioning processing is performed according to a slight density difference between pixels. Reduced.

また、前記優先順位データは、前記拡大注目画素データにおける中央部の第1画素の順位が周辺部の第1画素の順位より高くなるように、各第1画素の順位が設定され、前記閾値データ生成部は、前記原画像データにおける各画素の濃度値の合計が、予め設定された全体濃度閾値より大きい場合、前記優先順位データにおける各第1画素の順位を逆の順序にしたものを前記閾値データとして生成することが好ましい。   Further, the priority data is set such that the order of the first pixels is set so that the order of the first pixel in the center in the enlarged pixel data is higher than the order of the first pixels in the peripheral part. When the total density value of each pixel in the original image data is larger than a preset overall density threshold value, the generation unit sets the first pixel order in the priority order data in the reverse order as the threshold value. It is preferable to generate as data.

この構成によれば、優先順位データは、拡大注目画素データにおける中央部の第1画素の順位が周辺部の第1画素の順位より高くなるように、すなわちドットの配置が高解像度化された注目画素における中央部に集中しやすくなるように設定されている。そして、原画像データにおける各画素の濃度値の合計が、予め設定された全体濃度閾値より大きい場合、すなわち原画像の濃度が全体的に濃い場合、閾値データ生成部によって、優先順位データにおける各第1画素の順位を逆の順序にしたものが閾値データとして生成され、従って、ドットの配置が高解像度化された注目画素における周辺部に集中しやすくなるようにされる。これにより、隣接画素の濃度が高いにもかかわらず、優先順位データに基づき高解像度化された注目画素の中央部にドットが集中されて、妥当でないドット配置にされるおそれが低減される。   According to this configuration, the priority order data is such that the order of the first pixel in the central part in the enlarged noticed pixel data is higher than the order of the first pixel in the peripheral part, that is, the attention is given to the dot arrangement having a higher resolution. It is set so that it is easy to concentrate at the center of the pixel. When the total density value of each pixel in the original image data is larger than a preset overall density threshold, that is, when the density of the original image is overall high, the threshold data generation unit causes each of the first priority data to be A pixel in which the order of one pixel is reversed is generated as threshold data, so that the dot arrangement is easily concentrated on the periphery of the pixel of interest having a high resolution. As a result, the possibility that the dots are concentrated in the center of the pixel of interest whose resolution has been increased based on the priority order data despite the high density of the adjacent pixels, resulting in an inappropriate dot arrangement is reduced.

また、前記二値化画像生成部によって生成された二値化画像データにおける第1画素を、所定の数ずつ集合させて第2画素とし、当該第2画素に含まれる前記第1画素の値の合計を当該第2画素の濃度値として設定することにより得られた画像データを、前記高解像画像データとして生成する高解像画像生成部をさらに備えることが好ましい。   In addition, a predetermined number of first pixels in the binarized image data generated by the binarized image generation unit are aggregated into a second pixel, and the value of the first pixel included in the second pixel is set. It is preferable that the image processing apparatus further includes a high-resolution image generation unit that generates image data obtained by setting the sum as the density value of the second pixel as the high-resolution image data.

この構成によれば、二値化画像データにおける第1画素が所定の数ずつ集合されて第2画素とされるので、二値化画像データの解像度を超えない範囲で第2画素からなる所望の解像度を有する高解像画像データを得ることができる。また、当該第2画素に含まれる第1画素の値の合計が当該第2画素の濃度値として設定されるので、高解像画像データにおける第2画素の濃度値を、二値化画像データから得ることが容易である。   According to this configuration, since a predetermined number of first pixels in the binarized image data are assembled into the second pixel, a desired pixel consisting of the second pixel within a range not exceeding the resolution of the binarized image data. High resolution image data having resolution can be obtained. In addition, since the sum of the values of the first pixels included in the second pixel is set as the density value of the second pixel, the density value of the second pixel in the high resolution image data is calculated from the binarized image data. Easy to get.

このような構成の画像処理装置は、原画像データの注目画素が、碁盤目状に原画像データの濃度階調の数と略等しい数の第1画素に分割される。また、分割された各第1画素の濃度値が、原画像データにおける注目画素に隣接する隣接画素と注目画素との濃度値の差を補間することにより得られた濃度値とすることにより、注目画素を複数の第1画素で表す拡大注目画素データが生成される。そして、拡大注目画素データにおける各第1画素の濃度値を、各濃度値の大小関係に基づき順位付けした各第1画素の順位の番号を示す濃度順位データが、閾値データとして生成される。そうすると、拡大注目画素データの中心からみて各第1画素の位置する方向にある隣接画素の濃度値が大きいほど、当該第1画素の濃度値が大きくなるので、閾値データにおける各第1画素の値には、隣接画素の濃度値が反映される。また、拡大注目画素データの各第1画素の濃度値を閾値データの各第1画素の値に基づき二値化したデータが、原画像データより高解像度化された二値化画像データとして生成される。そうすると、閾値データの各第1画素の値には、隣接画素の濃度値が反映されているから、画像データを高解像度化しつつ、パターンマッチングを行うことなく隣接画素の濃度値に応じてドット位置寄せ処理を行うことができる。   In the image processing apparatus having such a configuration, the target pixel of the original image data is divided into a number of first pixels substantially equal to the number of density gradations of the original image data in a grid pattern. Further, the density value of each divided first pixel is set to a density value obtained by interpolating the difference in density value between the adjacent pixel adjacent to the target pixel and the target pixel in the original image data. Expanded pixel-of-interest data that represents a pixel by a plurality of first pixels is generated. Then, density rank data indicating the rank number of each first pixel obtained by ranking the density values of the respective first pixels in the enlarged pixel data based on the magnitude relationship of the respective density values is generated as threshold data. Then, since the density value of the first pixel increases as the density value of the adjacent pixel in the direction in which each first pixel is located when viewed from the center of the enlarged target pixel data, the value of each first pixel in the threshold data The density value of the adjacent pixel is reflected in. In addition, data obtained by binarizing the density value of each first pixel of the enlarged target pixel data based on the value of each first pixel of the threshold data is generated as binary image data with higher resolution than the original image data. The Then, since the density value of the adjacent pixel is reflected in the value of each first pixel of the threshold data, the dot position is determined according to the density value of the adjacent pixel without performing pattern matching while increasing the resolution of the image data. Alignment processing can be performed.

以下、本発明に係る実施形態を図面に基づいて説明する。図1は、本発明の一実施形態に係る画像処理装置の構成の一例を示すブロック図である。図1に示す画像処理装置1は、注目画素拡大処理部2と、閾値データ生成部3と、二値化画像生成部4と、高解像画像生成部5と、優先順位記憶部6とを備えて構成されている。   Embodiments according to the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an example of the configuration of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus 1 illustrated in FIG. 1 includes a target pixel enlargement processing unit 2, a threshold data generation unit 3, a binarized image generation unit 4, a high resolution image generation unit 5, and a priority order storage unit 6. It is prepared for.

なお、画像処理装置1は、例えばASIC(Application Specific Integrated Circuit)等の集積回路によって構成されてもよく、ASIC等の集積回路とEEPROM(Electrically Erasable and Programmable Read Only Memory)等の不揮発性メモリ等とを組み合わせて構成されていてもよい。あるいは画像処理装置1は、例えば所定の演算処理を実行するCPU(Central Processing Unit)と、所定の制御プログラムが記憶されたROM(Read Only Memory)やHDD(Hard Disk Drive)等の不揮発性記憶装置と、データを一時的に記憶するRAM(Random Access Memory)と、これらの周辺回路等とを備えて構成され、不揮発性記憶装置に記憶された制御プログラムを実行することにより、注目画素拡大処理部2、閾値データ生成部3、二値化画像生成部4、及び高解像画像生成部5として機能するように構成されていてもよい。   The image processing apparatus 1 may be configured by an integrated circuit such as an ASIC (Application Specific Integrated Circuit), for example, and an integrated circuit such as an ASIC and a nonvolatile memory such as an EEPROM (Electrically Erasable and Programmable Read Only Memory). May be combined. Alternatively, the image processing apparatus 1 includes, for example, a CPU (Central Processing Unit) that executes predetermined arithmetic processing and a non-volatile storage device such as a ROM (Read Only Memory) or a HDD (Hard Disk Drive) in which a predetermined control program is stored. And a RAM (Random Access Memory) that temporarily stores data and peripheral circuits thereof, and the like, and by executing a control program stored in the non-volatile storage device, a target pixel enlargement processing unit 2, the threshold data generation unit 3, the binarized image generation unit 4, and the high resolution image generation unit 5 may function.

注目画素拡大処理部2は、処理対象となる原画像データG1の注目画素P0について、碁盤目状に原画像データG1の濃度階調の数と略等しい数の第1画素Qに分割し、各第1画素Qの濃度値を、注目画素P0と隣接する画素と注目画素P0との濃度値の差を補間することにより得られた濃度値とすることにより、注目画素P0を複数の第1画素Qで表す拡大注目画素データG3を生成する。   The target pixel enlargement processing unit 2 divides the target pixel P0 of the original image data G1 to be processed into a number of first pixels Q that are substantially equal to the number of density gradations of the original image data G1 in a grid pattern. By setting the density value of the first pixel Q to a density value obtained by interpolating the density value difference between the pixel adjacent to the target pixel P0 and the target pixel P0, the target pixel P0 is a plurality of first pixels. Expanded attention pixel data G3 represented by Q is generated.

優先順位記憶部6は、例えばEEPROM等の不揮発性メモリを用いて構成されており、拡大注目画素データG3において、優先的にドットを配置するべき順位を各第1画素Qについて設定した優先順位データGYが、予め記憶されている。優先順位データGYは、例えば拡大注目画素データG3における中央部の第1画素Qの順位が周辺部の第1画素Qの順位より高くなるように、各第1画素Qの順位が設定されている。   The priority order storage unit 6 is configured using a nonvolatile memory such as an EEPROM, for example, and in the enlarged pixel data G3, priority order data in which the order in which dots should be preferentially arranged is set for each first pixel Q. GY is stored in advance. In the priority order data GY, for example, the order of each first pixel Q is set so that the order of the first pixel Q at the center in the enlarged target pixel data G3 is higher than the order of the first pixel Q at the peripheral part. .

閾値データ生成部3は、注目画素拡大処理部2により生成された拡大注目画素データG3における各第1画素Qの濃度値を、値が大きいものから順に順位付けして濃度順位データG4を生成し、これを閾値データG5として生成する。また、閾値データ生成部3は、濃度値が等しい第1画素Qが複数存在する場合、当該濃度値が等しい第1画素Q間の順位を、優先順位記憶部6により記憶されている優先順位データに基づき順位付けすることで、濃度順位データG4を生成し、これを閾値データG5として生成する。   The threshold data generation unit 3 ranks the density values of the first pixels Q in the enlarged pixel-of-interest data G3 generated by the pixel-of-interest enlargement processing unit 2 in descending order, and generates the density ranking data G4. This is generated as threshold data G5. In addition, when there are a plurality of first pixels Q having the same density value, the threshold data generating unit 3 stores the priority order between the first pixels Q having the same density value, which is stored in the priority level storage unit 6. The density ranking data G4 is generated by ranking based on the threshold value data G5.

そして、閾値データ生成部3は、原画像データG1における注目画素P0及び注目画素P0に隣接する画素の間における濃度値の差が、予め設定された濃度差閾値より小さい場合、優先順位記憶部6により記憶されている優先順位データGYを閾値データG5として生成する。さらに、閾値データ生成部3は、原画像データG1における注目画素P0及び注目画素P0に隣接する画素の濃度値の合計が、予め設定された全体濃度閾値より大きい場合、優先順位データGYにおける各第1画素Qの順位を逆の順序に並び替えたものを閾値データG5として生成する。   Then, when the difference in density value between the target pixel P0 and the pixel adjacent to the target pixel P0 in the original image data G1 is smaller than a preset density difference threshold value, the threshold data generation unit 3 Is generated as threshold data G5. Further, the threshold value data generation unit 3 determines that each of the priority data GY has a predetermined value when the sum of the density values of the target pixel P0 and the pixels adjacent to the target pixel P0 in the original image data G1 is larger than a preset overall density threshold value. The threshold data G5 is generated by rearranging the order of one pixel Q in the reverse order.

二値化画像生成部4は、閾値データG5における各第1画素Qの値より濃度値が大きい第1画素Qの値を「1」、閾値データG5における各第1画素Qの値より濃度値が小さい第1画素Qの値を「0」とすることにより、二値化画像データG6を生成する。   The binarized image generation unit 4 sets the value of the first pixel Q having a density value larger than the value of each first pixel Q in the threshold data G5 to “1” and the density value from the value of each first pixel Q in the threshold data G5. The binarized image data G6 is generated by setting the value of the first pixel Q having a small value to “0”.

高解像画像生成部5は、二値化画像生成部4によって生成された二値化画像データG6における第1画素Qを、所定の数ずつ集合させて第2画素Rとし、当該第2画素Rに含まれる第1画素Qの値の合計を当該第2画素Rの濃度値として設定することにより得られた画像データを、高解像画像データG7とする。   The high resolution image generation unit 5 collects a predetermined number of first pixels Q in the binarized image data G6 generated by the binarized image generation unit 4 to form the second pixel R, and the second pixel Image data obtained by setting the total value of the first pixels Q included in R as the density value of the second pixel R is referred to as high-resolution image data G7.

次に、上述のように構成された画像処理装置1の動作の一例について説明する。図2は、画像処理装置1による画像処理の対象となる原画像データの一例を示す説明図である。図2に示す原画像データG1は、例えば主走査600dpi(dot per inch)、副走査600dpiの画像データであり、注目画素P0と、注目画素の周囲に隣接する八つの画素P1〜P8との濃度値をそれぞれ示している。原画像データG1の各濃度値は、例えば0〜15の16階調を有している。   Next, an example of the operation of the image processing apparatus 1 configured as described above will be described. FIG. 2 is an explanatory diagram illustrating an example of original image data to be subjected to image processing by the image processing apparatus 1. The original image data G1 shown in FIG. 2 is, for example, image data of main scanning 600 dpi (dot per inch) and sub scanning 600 dpi, and the density of the target pixel P0 and eight pixels P1 to P8 adjacent to the periphery of the target pixel. Each value is shown. Each density value of the original image data G1 has, for example, 16 gradations of 0 to 15.

注目画素拡大処理部2は、図2に示す原画像データG1における注目画素P0の濃度値と、画素P1〜P8の濃度値との間を線形補間することにより、注目画素P0と画素P1〜P8との間を埋める画素を生成することで、例えば主走査方向に4倍、副走査方向に4倍拡大した拡大注目画素データG3を生成する。 The target pixel enlargement processing unit 2 linearly interpolates between the density value of the target pixel P0 and the density values of the pixels P1 to P8 in the original image data G1 shown in FIG. 2 to thereby generate the target pixel P0 and the pixels P1 to P8. by generating a pixel fill between, for example, the main scanning direction four times, that generates an enlarged target pixel data G3 which enlarged four times in the sub-scanning direction.

そこで、例えば主走査方向に4倍、副走査方向に4倍拡大した拡大注目画素データG3を生成する場合、注目画素拡大処理部2によって、図2に示す原画像データG1が、一旦まず主走査方向に8倍、副走査方向に8倍拡大されて、図3に示す拡大画像データG2が生成される。図3に示す拡大画像データG2において、図2に示す原画像データG1の各画素を○で囲んで示している。図3においては、拡大画像データG2の各画素をX軸方向(主走査方向)とY軸方向(副走査方向)とのXY座標で示している。XY座標は、拡大画像データG2の中央に配置された注目画素P0の座標を(0,0)として、X座標が−8〜+8、Y座標が−8〜+8の範囲で付与されている。   Thus, for example, when generating enlarged pixel data G3 enlarged by 4 times in the main scanning direction and 4 times in the sub-scanning direction, the original image data G1 shown in FIG. The image is enlarged by 8 times in the direction and 8 times in the sub-scanning direction, and the enlarged image data G2 shown in FIG. 3 is generated. In the enlarged image data G2 shown in FIG. 3, each pixel of the original image data G1 shown in FIG. In FIG. 3, each pixel of the enlarged image data G2 is indicated by XY coordinates in the X-axis direction (main scanning direction) and the Y-axis direction (sub-scanning direction). The XY coordinates are given in the range of −8 to +8 for the X coordinate and −8 to +8 for the Y coordinate, where the coordinate of the target pixel P0 arranged at the center of the enlarged image data G2 is (0, 0).

拡大画像データG2において、注目画素P0が8×8倍に拡大された領域は、座標(−4,−4)の画素の中央と、座標(4,−4)の画素の中央と、座標(4,4)の画素の中央と、座標(−4,4)の画素の中央とで囲まれた領域(破線で囲まれた領域)に対応している。同様に、画素P1〜P8も、注目画素拡大処理部2によって8×8倍に拡大される結果、画素P1は座標(−8,−8)、画素P2は座標(0,−8)、画素P3は座標(8,−8)、画素P4は座標(−8,0)、画素P5は座標(8,0)、画素P6は座標(−8,8)、画素P7は座標(0,8)、画素P8は座標(8,8)に配置される。   In the enlarged image data G2, the region in which the pixel of interest P0 is enlarged 8 × 8 times is the center of the pixel at coordinates (−4, −4), the center of the pixel at coordinates (4, −4), and the coordinates ( This corresponds to a region (region surrounded by a broken line) surrounded by the center of the pixel of (4, 4) and the center of the pixel of coordinate (−4, 4). Similarly, the pixels P1 to P8 are enlarged by 8 × 8 times by the target pixel enlargement processing unit 2, so that the pixel P1 has coordinates (−8, −8), the pixel P2 has coordinates (0, −8), and the pixel P3 is coordinate (8, -8), pixel P4 is coordinate (-8,0), pixel P5 is coordinate (8,0), pixel P6 is coordinate (-8,8), pixel P7 is coordinate (0,8) ), The pixel P8 is arranged at the coordinates (8, 8).

さらに、注目画素拡大処理部2によって、注目画素P0と、画素P1〜P8との間の座標に配置される画素の濃度が、注目画素P0と、画素P1〜P8との間で距離に応じて線形補間されることにより、拡大画像データG2における各座標の濃度値が算出される。   Further, the density of pixels arranged at the coordinates between the target pixel P0 and the pixels P1 to P8 by the target pixel enlargement processing unit 2 depends on the distance between the target pixel P0 and the pixels P1 to P8. By performing linear interpolation, the density value of each coordinate in the enlarged image data G2 is calculated.

このようにして生成された拡大画像データG2において、太線で囲んだ部分が注目画素P0に対応している。ここで、原画像データG1の各濃度値は16階調で表されているので、注目画素拡大処理部2によって、注目画素P0に対応する太線枠内の領域から、濃度値の階調数と同じ16個の画素(ハッチングで示す画素)が、第1画素Q00〜Q03,Q10〜Q13,Q20〜Q23,Q30〜Q33として取得され、図4に示す拡大注目画素データG3が生成される。以下、第1画素Q00〜Q03,Q10〜Q13,Q20〜Q23,Q30〜Q33を総称して第1画素Qと称する。 In the enlarged image data G2 generated in this way, a portion surrounded by a thick line corresponds to the target pixel P0. Here, since each density value of the original image data G1 is expressed by 16 gradations, the attention pixel enlargement processing unit 2 determines the number of gradations of the density value from the area within the thick line frame corresponding to the attention pixel P0. The same 16 pixels (pixels indicated by hatching ) are acquired as the first pixels Q00 to Q03, Q10 to Q13, Q20 to Q23, and Q30 to Q33, and enlarged pixel data G3 shown in FIG. 4 is generated. Hereinafter, the first pixels Q00 to Q03, Q10 to Q13, Q20 to Q23, and Q30 to Q33 are collectively referred to as the first pixel Q.

この場合、図4に示す拡大注目画素データG3における第1画素Qは、処理対象となる原画像データG1の注目画素P0が、碁盤目状に原画像データG1の濃度階調の数と等しい16個の第1画素Qに分割され、各第1画素Qの濃度値は、注目画素P0と隣接する画素P1〜P8と注目画素P0との濃度値の差を補間することにより得られた濃度値とされている。   In this case, in the first pixel Q in the enlarged target pixel data G3 shown in FIG. 4, the target pixel P0 of the original image data G1 to be processed is equal to the number of density gradations of the original image data G1 in a grid pattern. The first pixel Q is divided into a plurality of first pixels Q, and the density value of each first pixel Q is obtained by interpolating the density value difference between the target pixel P0 and adjacent pixels P1 to P8 and the target pixel P0. It is said that.

なお、原画像データG1の各濃度値は16階調に限らず、例えば濃度値が256階調であれば、拡大注目画素データG3を16×16の碁盤目状にしてもよい。   Each density value of the original image data G1 is not limited to 16 gradations. For example, if the density value is 256 gradations, the enlarged pixel data G3 may be formed in a 16 × 16 grid pattern.

次に、閾値データ生成部3によって、注目画素拡大処理部2により生成された拡大注目画素データG3における各第1画素Qの濃度値が、値が大きいものから順に順位付けされて図5に示す濃度順位データG4が生成される。そして、閾値データ生成部3によって、優先順位記憶部6に記憶されている優先順位データGYと濃度順位データG4とに基づいて閾値データG5が生成される。   Next, the threshold value data generation unit 3 ranks the density values of the first pixels Q in the enlarged pixel-of-interest data G3 generated by the pixel-of-interest enlargement processing unit 2 in descending order of the values, as shown in FIG. Density ranking data G4 is generated. Then, the threshold data generation unit 3 generates threshold data G5 based on the priority order data GY and the density order data G4 stored in the priority order storage unit 6.

具体的には、優先順位記憶部6には、例えば図6に示すように、最も優先順位の高いものを「0」として、各第1画素Qに対応して0〜15の番号を付与して構成された優先順位データGYが記憶されている。優先順位データGYは、例えば拡大注目画素データG3における中央部の第1画素Q11,Q21,Q22,Q12の順位が周辺部の第1画素Q00,Q01,Q02,Q03,Q10,Q13,Q20,Q23,Q30,Q31,Q32,Q33の順位より高くなるように、各第1画素Qの順位が設定されている。   Specifically, for example, as shown in FIG. 6, the priority order storage unit 6 is assigned a number from 0 to 15 corresponding to each first pixel Q, with “0” being the highest priority order. The priority order data GY configured as described above is stored. The priority order data GY is, for example, the order of the first pixels Q11, Q21, Q22, Q12 in the central portion in the enlarged pixel data G3 is the first pixels Q00, Q01, Q02, Q03, Q10, Q13, Q20, Q23 in the peripheral portion. , Q30, Q31, Q32, Q33, the order of each first pixel Q is set so as to be higher.

そして、閾値データ生成部3によって、濃度順位データG4における各第1画素Qの順位番号に、濃度階調の数である16が乗算され、その乗算結果に優先順位データGYにおける各第1画素Qの優先順位を示す番号がそれぞれ加算されて図7に示す中間データG41が生成される。さらに、閾値データ生成部3によって、中間データG41における各第1画素Qの値が、小さいものから順に順位付けされて図8に示す閾値データG5が生成される。閾値データG5における各第1画素Qの順位番号は、番号が小さいほど、優先的にドットが配置されることを示しており、例えば図8に示す閾値データG5では、ドットが右上方向に集まるようにドットの位置寄せ処理が行われることを意味している。   Then, the threshold data generation unit 3 multiplies the rank number of each first pixel Q in the density rank data G4 by 16 which is the number of density gradations, and the multiplication result is multiplied by each first pixel Q in the priority rank data GY. Are added to generate the intermediate data G41 shown in FIG. Further, the threshold data generation unit 3 ranks the values of the first pixels Q in the intermediate data G41 in order from the smallest value, and generates threshold data G5 shown in FIG. The rank number of each first pixel Q in the threshold data G5 indicates that dots are preferentially arranged as the number is smaller. For example, in the threshold data G5 shown in FIG. 8, the dots gather in the upper right direction. This means that dot positioning processing is performed.

ここで、例えば図4に示す拡大注目画素データG3のように、各第1画素Qの濃度値がすべて異なっている場合には、濃度順位データG4における各第1画素Qの順位番号に濃度階調の数である16が乗算されてから、優先順位データGYにおける各第1画素Qの優先順位を示す番号がそれぞれ加算されるから、中間データG41における各第1画素Qの値の大小関係は、濃度順位データG4における各第1画素Qの順位のまま維持されるので、図8に示す閾値データG5は、図5に示す順位データG4と同じになる。   Here, for example, when the density values of the first pixels Q are all different, as in the enlarged pixel-of-interest data G3 shown in FIG. 4, the density level is assigned to the rank number of each first pixel Q in the density rank data G4. After the key number 16 is multiplied, the number indicating the priority of each first pixel Q in the priority data GY is added, so the magnitude relationship between the values of each first pixel Q in the intermediate data G41 is Since the order of each first pixel Q in the density order data G4 is maintained, the threshold data G5 shown in FIG. 8 is the same as the order data G4 shown in FIG.

一方、例えば拡大注目画素データG3の各第1画素Qの濃度値がすべて等しい場合には、濃度順位データG4における各第1画素Qの順位番号は、図9に示すようにすべて「1」となる。そうすると、閾値データ生成部3によって、図9に示す濃度順位データG4における各第1画素Qの順位番号に、濃度階調の数である16が乗算され、その乗算結果に優先順位データGYにおける各第1画素Qの優先順位を示す番号がそれぞれ加算される結果、図10に示す中間データG41が生成される。さらに、閾値データ生成部3によって、図10に示す中間データG41における各第1画素Qの値が、小さいものから順に順位付けされると、図11に示す閾値データG5が生成される。そうすると、図11に示す閾値データG5は、図6に示す優先順位データGYの優先順位通りの順位番号が、各第1画素Qに付与され、優先順位データGYで示される優先順位でドットの位置寄せ処理が行われる。   On the other hand, for example, when the density values of the first pixels Q of the enlarged pixel data G3 are all equal, the rank numbers of the first pixels Q in the density rank data G4 are all “1” as shown in FIG. Become. Then, the threshold value data generating unit 3 multiplies the rank number of each first pixel Q in the density rank data G4 shown in FIG. 9 by 16 that is the number of density gradations, and the multiplication result is assigned to each priority rank data GY. As a result of adding the numbers indicating the priorities of the first pixels Q, intermediate data G41 shown in FIG. 10 is generated. Furthermore, when the threshold data generating unit 3 ranks the values of the first pixels Q in the intermediate data G41 shown in FIG. 10 in order from the smallest, the threshold data G5 shown in FIG. 11 is generated. Then, the threshold data G5 shown in FIG. 11 is given the rank number according to the priority of the priority data GY shown in FIG. 6 to each first pixel Q, and the dot position with the priority shown by the priority data GY. A misalignment process is performed.

なお、閾値データ生成部3は、濃度値が等しい第1画素Qが複数存在する場合、当該濃度値が等しい第1画素Q間の順位を、優先順位記憶部6により記憶されている優先順位データGYに基づき順位付けすればよく、例えば図4に示す拡大注目画素データG3の各第1画素Qに、濃度階調の数である16を乗算してから優先順位データGYにおける各第1画素Qの優先順位を示す番号をそれぞれ加算し、その加算結果を大きいものから順に順位付けすることにより、閾値データG5を生成するようにしてもよく、その他の方法により閾値データG5を生成するものであってもよい。これにより、濃度値が等しい第1画素Qが複数存在する場合、優先順位データGYに基づき順位付けすることができる。   In addition, when there are a plurality of first pixels Q having the same density value, the threshold data generating unit 3 stores the priority order between the first pixels Q having the same density value by the priority order storage unit 6. For example, each first pixel Q of the enlarged pixel-of-interest data G3 shown in FIG. 4 is multiplied by 16 that is the number of density gradations, and then each first pixel Q in the priority data GY is ranked. The threshold data G5 may be generated by adding the numbers indicating the priorities of the numbers and ranking the addition results in descending order, or the threshold data G5 may be generated by other methods. May be. Thereby, when there are a plurality of first pixels Q having the same density value, ranking can be performed based on the priority order data GY.

また、閾値データ生成部3は、原画像データG1における画素P1〜P8の間における濃度値の差、例えば画素P1〜P8の濃度値の最大値と最小値との差が、予め設定された濃度差閾値、例えば「3」より小さい場合、優先順位記憶部6により記憶されている優先順位データGYに「1」を加算して得られる固定値を、閾値データG5として生成する。画素P1〜P8の濃度差が小さい場合には、そのような小さな濃度差に基づいてドットの位置寄せ処理を行うと、ドットの配置が不適当になる場合がある。そこで、閾値データ生成部3は、画素P1〜P8の間における濃度値の差が予め設定された濃度差閾値より小さい場合には、優先順位記憶部6により記憶されている優先順位データGYに基づき閾値データG5を生成することで、不適当なドットの位置寄せ処理が行われるおそれを低減することができる。   Further, the threshold data generation unit 3 determines a difference in density value between the pixels P1 to P8 in the original image data G1, for example, a difference between the maximum value and the minimum value of the density values of the pixels P1 to P8. When the difference threshold is smaller than “3”, for example, a fixed value obtained by adding “1” to the priority order data GY stored in the priority order storage unit 6 is generated as the threshold data G5. When the density difference between the pixels P1 to P8 is small, if the dot positioning process is performed based on such a small density difference, the arrangement of the dots may be inappropriate. Therefore, the threshold data generation unit 3 is based on the priority order data GY stored in the priority order storage unit 6 when the difference in density value between the pixels P1 to P8 is smaller than a preset density difference threshold. By generating the threshold value data G5, it is possible to reduce the possibility of improper dot positioning processing.

なお、閾値データ生成部3は、原画像データG1の画素P1〜P8の間における濃度値の差が予め設定された濃度差閾値より小さい場合に、優先順位データGYに基づき閾値データG5を生成する例に限られず、例えば原画像データG1の画素P1〜P8及び注目画素P0の間における濃度値の差が予め設定された濃度差閾値より小さい場合に優先順位データGYに基づき閾値データG5を生成するようにしてもよく、例えば拡大注目画素データG3の各第1画素Qの間における濃度値の差が予め設定された濃度差閾値より小さい場合に、優先順位データGYに基づき閾値データG5を生成するようにしてもよい。   The threshold data generation unit 3 generates threshold data G5 based on the priority order data GY when the difference in density value between the pixels P1 to P8 of the original image data G1 is smaller than a preset density difference threshold. The threshold value data G5 is generated based on the priority order data GY when the density value difference between the pixels P1 to P8 of the original image data G1 and the target pixel P0 is smaller than a preset density difference threshold. For example, when the density value difference between the first pixels Q of the enlarged target pixel data G3 is smaller than a preset density difference threshold value, threshold data G5 is generated based on the priority order data GY. You may do it.

さらに、閾値データ生成部3は、原画像データG1における画素P1〜P8の間における濃度値の差、例えば画素P1〜P8の濃度値の最大値と最小値との差が、予め設定された濃度差閾値、例えば「3」より小さく、かつ原画像データG1における注目画素P0及び画素P1〜P8の濃度値の合計が、予め設定された全体濃度閾値、例えば「13」より大きい場合、すなわち全体的に画像が濃い場合、優先順位データGYにおける各第1画素Qの順位を逆の順序に並び替えたものを閾値データG5として生成する。   Further, the threshold data generation unit 3 determines a difference in density value between the pixels P1 to P8 in the original image data G1, for example, a difference between the maximum value and the minimum value of the density values of the pixels P1 to P8. When the difference threshold is smaller than “3”, for example, and the sum of the density values of the target pixel P0 and the pixels P1 to P8 in the original image data G1 is larger than a preset overall density threshold, for example “13”, that is, If the image is dark, the threshold data G5 is generated by rearranging the order of the first pixels Q in the priority order data GY in the reverse order.

例えば、図12に示すように、画素P1〜P8の濃度値がすべて「0」、すなわち白であった場合、画素P1〜P8の濃度値の最大値と最小値との差は「3」より小さいから、閾値データG5は、優先順位データGYに基づき図11に示すように中心にドットが集まるように、中心部の値が小さく設定される。このような閾値データG5に基づき生成される注目画素P0の二値化画像データG6は、図12に示すように中心部にドットが集まった画像データとなり、ドット位置寄せ処理として妥当な結果が得られる。   For example, as shown in FIG. 12, when the density values of the pixels P1 to P8 are all “0”, that is, white, the difference between the maximum value and the minimum value of the density values of the pixels P1 to P8 is from “3”. Since the threshold value data G5 is small, the value at the center is set small so that the dots gather at the center as shown in FIG. 11 based on the priority data GY. The binarized image data G6 of the target pixel P0 generated based on such threshold data G5 is image data in which dots are gathered at the center as shown in FIG. 12, and a reasonable result is obtained as a dot positioning process. It is done.

一方、図13に示すように、画素P1〜P8の濃度値がすべて「15」、すなわち黒であった場合、画素P1〜P8の濃度値の最大値と最小値との差は「3」より小さいから、閾値データG5は、優先順位データGYに基づき図13に示すように中心にドットが集まるように、中心部の値が小さく設定される。このような閾値データG5に基づき生成される注目画素P0の二値化画像データG6は、中心部にドットが集まった画像データとなる。そうすると、注目画素P0の外側を取り囲むようにドットが配置され、周囲のドットから離れて注目画素P0の中央にドットが配置される結果となり、ドット位置寄せ処理として妥当でない。   On the other hand, as shown in FIG. 13, when the density values of the pixels P1 to P8 are all “15”, that is, black, the difference between the maximum value and the minimum value of the density values of the pixels P1 to P8 is from “3”. Since the threshold value data G5 is small, the value at the center is set small so that the dots gather at the center as shown in FIG. 13 based on the priority data GY. The binarized image data G6 of the target pixel P0 generated based on such threshold data G5 is image data in which dots are gathered at the center. Then, the dots are arranged so as to surround the outside of the target pixel P0, and the dots are arranged in the center of the target pixel P0 away from the surrounding dots, which is not appropriate as the dot positioning process.

そこで、閾値データ生成部3は、原画像データG1における画素P1〜P8の間における濃度値の差が予め設定された濃度差閾値、例えば「3」より小さく、かつ原画像データG1における注目画素P0及び画素P1〜P8の濃度値の合計が、予め設定された全体濃度閾値、例えば「13」より大きい場合、優先順位データGYにおける各第1画素Qの順位を逆の順序に並び替えて閾値データG5を生成する。そうすると、図14に示すように、注目画素P0の二値化画像データG6は、外側にドットが集まった画像データとなり、注目画素P0を取り囲む画素P1〜P8のドットに近づけるように注目画素P0のドットが配置されるので、ドット位置寄せ処理として妥当な結果が得られる。   Therefore, the threshold data generation unit 3 has a density value difference between the pixels P1 to P8 in the original image data G1 smaller than a preset density difference threshold, for example, “3”, and the target pixel P0 in the original image data G1. And the sum of the density values of the pixels P1 to P8 is larger than a preset overall density threshold, for example, “13”, the threshold data is obtained by rearranging the order of the first pixels Q in the priority order data GY in the reverse order. G5 is generated. Then, as shown in FIG. 14, the binarized image data G6 of the target pixel P0 becomes image data in which dots are gathered outside, and the pixel of interest P0 is brought closer to the dots of the pixels P1 to P8 surrounding the target pixel P0. Since dots are arranged, a reasonable result can be obtained as the dot positioning process.

次に、閾値データ生成部3によって、上述のようにして得られた例えば図8に示す閾値データG5よりも、拡大注目画素データG3の値が大きい第1画素Qが、ドットを配置することを示す「1」、閾値データG5よりも拡大注目画素データG3の値が小さい第1画素Qが、ドットを配置しないことを示す「0」とされて、図15に示す二値化画像データG6が生成される。   Next, the threshold value data generation unit 3 arranges dots in the first pixel Q having a larger value of the pixel-of-interest pixel data G3 than, for example, the threshold value data G5 shown in FIG. 8 obtained as described above. The first pixel Q having a value of “1” indicating that the pixel-of-interest data G3 is smaller than the threshold data G5 is set to “0” indicating that no dot is arranged, and the binarized image data G6 illustrated in FIG. Generated.

以上、注目画素拡大処理部2、閾値データ生成部3、及び二値化画像生成部4によって、図2に示す原画像データG1から、注目画素P0が4×4倍解像度が高められ、例えば主走査2400dpi、副走査2400dpiの解像度で図15に示す二値化画像データG6が生成されるので、パターンマッチングを行うことなくドット位置寄せ処理を行うことができる。   As described above, the target pixel enlargement processing unit 2, the threshold data generation unit 3, and the binarized image generation unit 4 can increase the resolution of the target pixel P0 from the original image data G1 shown in FIG. Since the binarized image data G6 shown in FIG. 15 is generated with the resolution of scanning 2400 dpi and sub-scanning 2400 dpi, the dot positioning process can be performed without performing pattern matching.

次に、高解像画像生成部5によって、図15に示す二値化画像データG6が所望の解像度の高解像画像データG7に変換される。例えば、主走査2400dpi、副走査2400dpiの解像度の画像データが所望の場合には、高解像画像生成部5によって、二値化画像データG6がそのまま高解像画像データG7として用いられる。   Next, the binarized image data G6 shown in FIG. 15 is converted into high resolution image data G7 having a desired resolution by the high resolution image generation unit 5. For example, when image data having a resolution of 2400 dpi for main scanning and 2400 dpi for sub scanning is desired, the high-resolution image generation unit 5 uses the binarized image data G6 as it is as the high-resolution image data G7.

また、例えば、主走査1200dpi、副走査1200dpiの解像度の画像データが所望の場合には、高解像画像生成部5によって、図16に示すように、二値化画像データG6における第1画素Qが、四つずつ集合されて第2画素R1,R2,R3,R4とされ、第2画素R1,R2,R3,R4それぞれに含まれる第1画素Qの値の合計が第2画素R1,R2,R3,R4それぞれの濃度値として設定される。これにより、図17に示すように、注目画素P0が主走査1200dpi、副走査1200dpiの解像度にされた高解像画像データG7が得られる。この場合、第2画素R1,R2,R3,R4の濃度値は、0〜4の5階調となる。   Further, for example, when image data having a resolution of main scanning 1200 dpi and sub-scanning 1200 dpi is desired, the high resolution image generation unit 5 performs first pixel Q in the binarized image data G6 as shown in FIG. Are assembled into four second pixels R1, R2, R3, R4, and the total value of the first pixels Q included in each of the second pixels R1, R2, R3, R4 is the second pixels R1, R2. , R3 and R4 are set as respective density values. As a result, as shown in FIG. 17, high resolution image data G7 in which the pixel of interest P0 has a resolution of main scanning 1200 dpi and sub scanning 1200 dpi is obtained. In this case, the density values of the second pixels R1, R2, R3, and R4 are 5 gradations of 0 to 4.

また、例えば、主走査600dpi、副走査1200dpiの解像度の画像データが所望の場合には、高解像画像生成部5によって、図18に示すように、二値化画像データG6における第1画素Qが、八つずつ集合されて第2画素R5,R6とされ、第2画素R5,R6それぞれに含まれる第1画素Qの値の合計が第2画素R5,R6それぞれの濃度値として設定される。これにより、図19に示すように、注目画素P0が主走査600dpi、副走査1200dpiの解像度にされた高解像画像データG7が得られる。この場合、第2画素R5,R6の濃度値は、0〜8の9階調となる。   Further, for example, when image data having a resolution of 600 dpi in the main scanning and 1200 dpi in the sub-scanning is desired, the high resolution image generating unit 5 performs the first pixel Q in the binarized image data G6 as shown in FIG. Are assembled into eight second pixels R5 and R6, and the sum of the values of the first pixels Q included in the second pixels R5 and R6 is set as the density value of each of the second pixels R5 and R6. . Thereby, as shown in FIG. 19, high resolution image data G7 in which the pixel of interest P0 has a resolution of main scanning 600 dpi and sub scanning 1200 dpi is obtained. In this case, the density values of the second pixels R5 and R6 are 9 gradations from 0 to 8.

以上のように、高解像画像生成部5によって、所望の解像度の高解像画像データG7が得られる。   As described above, the high resolution image generation unit 5 obtains the high resolution image data G7 having a desired resolution.

なお、優先順位データGYは、図6に示すように、中央部の第1画素Qの順位が周辺部の第1画素Qの順位より高くなるように各第1画素Qの順位が設定されている例に限られず、例えば図20に示すように、順位の高い第1画素Qが固まらないように配置されるものとしてもよく、その他種々の優先順位データGYを用いることができる。   As shown in FIG. 6, in the priority order data GY, the order of each first pixel Q is set so that the order of the first pixel Q in the central part is higher than the order of the first pixel Q in the peripheral part. For example, as shown in FIG. 20, the first pixels Q having higher ranks may be arranged so as not to be hardened, and other various priority order data GY can be used.

本発明の一実施形態に係る画像処理装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the image processing apparatus which concerns on one Embodiment of this invention. 図1に示す画像処理装置による画像処理の対象となる原画像データの一例を示す説明図である。It is explanatory drawing which shows an example of the original image data used as the object of the image processing by the image processing apparatus shown in FIG. 拡大画像データの一例を示す説明図である。It is explanatory drawing which shows an example of enlarged image data. 拡大注目画素データの一例を示す説明図である。It is explanatory drawing which shows an example of expansion attention pixel data. 濃度順位データの一例を示す説明図である。It is explanatory drawing which shows an example of density | concentration order data. 優先順位データの一例を示す説明図である。It is explanatory drawing which shows an example of priority order data. 中間データの一例を示す説明図である。It is explanatory drawing which shows an example of intermediate data. 閾値データの一例を示す説明図である。It is explanatory drawing which shows an example of threshold value data. 順位データの一例を示す説明図である。It is explanatory drawing which shows an example of order data. 中間データの一例を示す説明図である。It is explanatory drawing which shows an example of intermediate data. 閾値データの一例を示す説明図である。It is explanatory drawing which shows an example of threshold value data. ドット位置寄せ処理の一例を示す説明図である。It is explanatory drawing which shows an example of a dot position alignment process. ドット位置寄せ処理の一例を示す説明図である。It is explanatory drawing which shows an example of a dot position alignment process. ドット位置寄せ処理の一例を示す説明図である。It is explanatory drawing which shows an example of a dot position alignment process. 二値化画像データの一例を示す説明図である。It is explanatory drawing which shows an example of binarized image data. 図1に示す高解像画像生成部の動作を説明するための説明図である。It is explanatory drawing for demonstrating operation | movement of the high resolution image generation part shown in FIG. 高解像画像データの一例を示す説明図である。It is explanatory drawing which shows an example of high resolution image data. 図1に示す高解像画像生成部の動作を説明するための説明図である。It is explanatory drawing for demonstrating operation | movement of the high resolution image generation part shown in FIG. 高解像画像データの一例を示す説明図である。It is explanatory drawing which shows an example of high resolution image data. 優先順位データの一例を示す説明図である。It is explanatory drawing which shows an example of priority order data.

符号の説明Explanation of symbols

1 画像処理装置
2 注目画素拡大処理部
3 閾値データ生成部
4 二値化画像生成部
5 高解像画像生成部
6 優先順位記憶部
G1 原画像データ
G2 拡大画像データ
G3 拡大注目画素データ
G4 濃度順位データ
G41 中間データ
G5 閾値データ
G6 二値化画像データ
G7 高解像画像データ
GY 優先順位データ
P0 注目画素
P1〜P8 画素
Q,Q00〜Q03,Q10〜Q13,Q20〜Q23,Q30〜Q33 第1画素
R,R1〜R6 第2画素
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 2 Target pixel expansion process part 3 Threshold value data generation part 4 Binary image generation part 5 High resolution image generation part 6 Priority order memory | storage part G1 Original image data G2 Enlarged image data G3 Enlarged attention pixel data G4 Density order Data G41 Intermediate data G5 Threshold data G6 Binary image data G7 High resolution image data GY Priority data P0 Pixels of interest P1 to P8 Pixels Q, Q00 to Q03, Q10 to Q13, Q20 to Q23, Q30 to Q33 First pixel R, R1-R6 second pixel

Claims (7)

複数の濃度階調を有する濃度値によって各画素の濃度が表わされた原画像データから、当該原画像データより解像度の高い高解像画像データを生成する画像処理装置であって、
前記原画像データの注目画素を、碁盤目状に前記濃度階調の数と略等しい数の第1画素に分割し、前記各第1画素の濃度値を、前記注目画素に隣接する画素の濃度値と前記注目画素の濃度値の間を線形補間を用いて補間することにより得られた濃度値とすることにより、前記注目画素を前記複数の第1画素で表す拡大注目画素データを生成する注目画素拡大処理部と、
前記注目画素拡大処理部により生成された拡大注目画素データにおける各第1画素の濃度値を、各濃度値の大小関係に基づき順位付けした各第1画素の順位の番号を示す濃度順位データを閾値データとして生成する閾値データ生成部と、
前記拡大注目画素データの各第1画素の濃度値を、前記閾値データ生成部で得られた閾値データの各第1画素の値に基づき二値化したデータを、前記原画像データより高解像度化された二値化画像データとして生成する二値化画像生成部と
を備えることを特徴とする画像処理装置。
An image processing apparatus that generates high resolution image data having a higher resolution than the original image data from original image data in which the density of each pixel is represented by density values having a plurality of density gradations,
The target pixel of the original image data is divided into a number of first pixels that are substantially equal to the number of density gradations in a grid pattern, and the density value of each first pixel is determined as the density of a pixel adjacent to the target pixel . with density values obtained by interpolation using linear interpolation between the values and the density values of the pixel of interest, to generate an enlarged target pixel data representing the pixel of interest in the plurality of first pixel A target pixel enlargement processing unit;
Density rank data indicating the rank number of each first pixel obtained by ranking the density values of the first pixels in the enlarged pixel-of-interest data generated by the pixel-of-interest enlargement processing unit based on the magnitude relationship of the density values. A threshold data generation unit for generating data;
Data obtained by binarizing the density value of each first pixel of the enlarged pixel-of-interest data based on the value of each first pixel of the threshold data obtained by the threshold data generation unit has a higher resolution than the original image data An image processing apparatus comprising: a binarized image generation unit that generates the binarized image data.
前記濃度値は、値が大きくなるほど濃度が濃くなることを示すものであり、
前記閾値データ生成部は、前記各第1画素の濃度値を大きいものから順に順位付けして前記濃度順位データを生成し、
前記二値化画像生成部は、前記閾値データにおける各第1画素の値より前記濃度値が大きい第1画素をドット有り、前記閾値データにおける各第1画素の値より前記濃度値が小さい第1画素をドット無しに設定することにより、前記二値化画像データを生成すること
を特徴とする請求項1記載の画像処理装置。
The concentration value indicates that the concentration increases as the value increases,
The threshold data generation unit ranks the density values of the first pixels in descending order to generate the density ranking data,
The binarized image generation unit has a dot in which the first pixel having the density value larger than the value of each first pixel in the threshold data, and the first density value is smaller than the value of each first pixel in the threshold data. The image processing apparatus according to claim 1, wherein the binarized image data is generated by setting pixels to have no dots.
前記拡大注目画素データにおいて、優先的にドットを配置するべき順位を前記各第1画素について設定した優先順位データを予め記憶する優先順位記憶部をさらに備え、
前記閾値データ生成部は、前記濃度値が等しい第1画素が複数存在する場合、当該濃度値が等しい第1画素間の順位を、前記優先順位記憶部により記憶されている優先順位データに基づき順位付けすること
を特徴とする請求項1又は2記載の画像処理装置。
In the enlarged pixel-of-interest data, further comprising: a priority storage unit that stores in advance priority data in which the order in which dots should be preferentially arranged is set for each first pixel;
When there are a plurality of first pixels with the same density value, the threshold data generation unit ranks the ranks between the first pixels with the same density value based on the priority order data stored in the priority storage unit. The image processing apparatus according to claim 1, wherein the image processing apparatus is attached.
前記拡大注目画素データにおいて、優先的にドットを配置するべき順位を前記各第1画素について設定した優先順位データを予め記憶する優先順位記憶部をさらに備え、
前記閾値データ生成部は、前記原画像データの各画素間における濃度値の差が、予め設定された濃度差閾値より小さい場合、前記優先順位記憶部により記憶されている優先順位データを前記閾値データとして生成すること
を特徴とする請求項1又は2記載の画像処理装置。
In the enlarged pixel-of-interest data, further comprising: a priority storage unit that stores in advance priority data in which the order in which dots should be preferentially arranged is set for each first pixel;
The threshold data generation unit, when a difference in density value between each pixel of the original image data is smaller than a preset density difference threshold, the priority data stored in the priority storage unit is the threshold data The image processing device according to claim 1, wherein the image processing device is generated as:
前記拡大注目画素データにおいて、優先的にドットを配置するべき順位を前記各第1画素について設定した優先順位データを予め記憶する優先順位記憶部をさらに備え、
前記閾値データ生成部は、前記注目画素拡大処理部により生成された拡大注目画素データの各第1画素間における濃度値の差が、予め設定された濃度差閾値より小さい場合、前記優先順位記憶部により記憶されている優先順位データを前記閾値データとして生成すること
を特徴とする請求項1又は2記載の画像処理装置。
In the enlarged pixel-of-interest data, further comprising: a priority storage unit that stores in advance priority data in which the order in which dots should be preferentially arranged is set for each first pixel;
The threshold value data generation unit, when the difference in density value between the first pixels of the expanded pixel-of-interest data generated by the pixel-of-interest expansion processing unit is smaller than a preset density difference threshold, the priority storage unit 3. The image processing apparatus according to claim 1, wherein the priority order data stored in step 1 is generated as the threshold data.
前記優先順位データは、前記拡大注目画素データにおける中央部の第1画素の順位が周辺部の第1画素の順位より高くなるように、各第1画素の順位が設定され、
前記閾値データ生成部は、前記原画像データにおける各画素の濃度値の合計が、予め設定された全体濃度閾値より大きい場合、前記優先順位データにおける各第1画素の順位を
逆の順序にしたものを前記閾値データとして生成すること
を特徴とする請求項4又は5記載の画像処理装置。
In the priority order data, the order of the first pixels is set so that the order of the first pixel in the central part in the enlarged pixel-of-interest data is higher than the order of the first pixels in the peripheral part.
The threshold data generation unit is configured such that when the total density value of each pixel in the original image data is larger than a preset overall density threshold, the order of each first pixel in the priority data is reversed. The image processing apparatus according to claim 4, wherein the threshold value data is generated.
前記二値化画像生成部によって生成された二値化画像データにおける第1画素を、所定の数ずつ集合させて第2画素とし、当該第2画素に含まれる前記第1画素の値の合計を当該第2画素の濃度値として設定することにより得られた画像データを、前記高解像画像データとして生成する高解像画像生成部をさらに備えること
を特徴とする請求項1〜6のいずれか1項に記載の画像処理装置。
A predetermined number of first pixels in the binarized image data generated by the binarized image generation unit are aggregated into a second pixel, and the sum of the values of the first pixels included in the second pixel is calculated. The high-resolution image generation part which produces | generates the image data obtained by setting as a density value of the said 2nd pixel as said high-resolution image data is further provided. The image processing apparatus according to item 1.
JP2007004748A 2007-01-12 2007-01-12 Image processing device Expired - Fee Related JP4629057B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007004748A JP4629057B2 (en) 2007-01-12 2007-01-12 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007004748A JP4629057B2 (en) 2007-01-12 2007-01-12 Image processing device

Publications (2)

Publication Number Publication Date
JP2008172605A JP2008172605A (en) 2008-07-24
JP4629057B2 true JP4629057B2 (en) 2011-02-09

Family

ID=39700265

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007004748A Expired - Fee Related JP4629057B2 (en) 2007-01-12 2007-01-12 Image processing device

Country Status (1)

Country Link
JP (1) JP4629057B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100965551B1 (en) 2008-12-31 2010-06-23 한국항공우주연구원 Method and apparatus for compression and decompression of lattice arrayed images
JP5672349B2 (en) * 2013-09-13 2015-02-18 株式会社リコー Image forming apparatus and image forming method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002135572A (en) * 2000-10-30 2002-05-10 Ricoh Co Ltd Image processing apparatus and image forming device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002135572A (en) * 2000-10-30 2002-05-10 Ricoh Co Ltd Image processing apparatus and image forming device

Also Published As

Publication number Publication date
JP2008172605A (en) 2008-07-24

Similar Documents

Publication Publication Date Title
JP4559118B2 (en) Bit mask generation system, printer driver, printing method incorporating the generated bit mask mask, and method of using the same
JP4629057B2 (en) Image processing device
JP2008067044A (en) Image processor, image reader, image processing method, and image processing program
JP2006295624A (en) Image processor, method therefor, computer program, and recording medium
CN103581497B (en) Image processing equipment and image processing method
JP5940506B2 (en) Halftone dot addition device, halftone dot addition program, and halftone dot addition method
US9894244B2 (en) Image processing system and image processing method that perform correction of shifting bitmap data in a sub-scanning direction to cancel bending of and electro-photographic laser scanning line
US10423854B2 (en) Image processing apparatus that identifies character pixel in target image using first and second candidate character pixels
JP4108517B2 (en) Halftoning processing method and halftoning processing system
JP6097524B2 (en) Image processing method, image processing apparatus, and program
JP4892247B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP4522812B2 (en) Image processing apparatus, image processing method, program for causing computer to execute the method, and computer-readable recording medium
CN104143175A (en) IMAGE PROCESSING APPARATUs and image processing method
JP2006261764A (en) Image processing method and apparatus, and image forming apparatus
US20070188812A1 (en) Image processing device, image reading device and image processing method
JP2019149786A (en) Image processing apparatus, image forming apparatus, and program
JP4035284B2 (en) Image processing apparatus and image processing method
JP4238673B2 (en) Image processing apparatus, image processing method, and image processing program
JP6260144B2 (en) Image processing apparatus and computer program
JP6174190B2 (en) Image forming apparatus, image output program, and image output method
JP4650945B2 (en) Image processing method, image processing apparatus, image recording apparatus, program, and recording medium
JP2000069278A (en) Image processing unit, image processing method and recording medium
JP4759531B2 (en) Image processing apparatus and image forming apparatus
JP2010191931A (en) Image processing apparatus, image forming apparatus, computer program, recording medium and image processing method
JP5018878B2 (en) Resolution conversion program, resolution conversion method, and resolution conversion apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100907

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101008

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

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

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

Free format text: PAYMENT UNTIL: 20131119

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4629057

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20131119

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

Free format text: PAYMENT UNTIL: 20131119

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees