JP5018878B2 - Resolution conversion program, resolution conversion method, and resolution conversion apparatus - Google Patents

Resolution conversion program, resolution conversion method, and resolution conversion apparatus Download PDF

Info

Publication number
JP5018878B2
JP5018878B2 JP2009507328A JP2009507328A JP5018878B2 JP 5018878 B2 JP5018878 B2 JP 5018878B2 JP 2009507328 A JP2009507328 A JP 2009507328A JP 2009507328 A JP2009507328 A JP 2009507328A JP 5018878 B2 JP5018878 B2 JP 5018878B2
Authority
JP
Japan
Prior art keywords
pixel
value
image data
complementary
pixel value
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.)
Active
Application number
JP2009507328A
Other languages
Japanese (ja)
Other versions
JPWO2008120336A1 (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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Publication of JPWO2008120336A1 publication Critical patent/JPWO2008120336A1/en
Application granted granted Critical
Publication of JP5018878B2 publication Critical patent/JP5018878B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

本発明は、画素ごとに画素値が対応付けられた画像データをメモリ展開して記憶するための記憶手段を備えたコンピュータ装置において、入力された二値網点画像データの解像度を出力装置の解像度へと変換する解像度変換をおこなう解像度変換プログラム、解像度変換方法および解像度変換装置に関し、特に、解像度変換をおこなっても、モアレが低減され、かつ多値段階での規則性をなくして網点形状を保持することが可能な解像度変換プログラム、解像度変換方法および解像度変換装置に関する。   According to the present invention, in a computer apparatus having storage means for storing and storing image data in which pixel values are associated with each pixel in a memory, the resolution of the input binary halftone dot image data is the resolution of the output apparatus. In particular, a resolution conversion program, a resolution conversion method, and a resolution conversion apparatus that perform resolution conversion to be converted into a halftone dot shape by reducing moire and eliminating regularity in a multivalued stage even when resolution conversion is performed. The present invention relates to a resolution conversion program, a resolution conversion method, and a resolution conversion apparatus that can be retained.

例えば、新聞制作システムで新聞イメージを作成する場合、RIP(Raster Image Processor)装置を使い、あらかじめ決まった展開解像度の印刷イメージを作成し、紙面送出システム部分で、印刷イメージの展開解像度から各印刷機の出力解像度へ解像度変換をおこなう。   For example, when a newspaper image is created by a newspaper production system, a print image having a predetermined development resolution is created using a RIP (Raster Image Processor) device, and each printing press is determined from the development resolution of the print image in the paper sending system portion. The resolution is converted to the output resolution.

しかし、二値画像イメージを解像度変換するとモアレ(干渉縞)が発生する。新聞印刷では、二値画像イメージで階調表現を行う代表的な手法として「網点」を使う。網点とはドットの集積によって面積階調表現を行う手法である。網点を解像度変換すると、網点周期と拡大縮小時に発生する座標変換時の端数が干渉し、モアレが発生する原因となる。   However, when the resolution of the binary image is converted, moire (interference fringes) is generated. In newspaper printing, “halftone dots” are used as a representative technique for expressing gradations in binary image images. A halftone dot is a technique for expressing area gradation by accumulation of dots. When resolution conversion of halftone dots is performed, a halftone dot period and a fraction at the time of coordinate conversion that occurs at the time of enlargement / reduction interfere with each other, causing moire.

この問題を解決するために、例えば特許文献1に開示されるように、単純な座標変換で発生する量子化誤差を軽減し、整数値とならない座標位置を多値階調画素として表した上で解像度変換して濃度変化を抑える方法が考案されている。この方法によれば、モアレを低減しつつ二値画像を多値画像へ変換し解像度変換することにより濃度保証をおこなうことができる。   In order to solve this problem, for example, as disclosed in Patent Document 1, a quantization error generated by simple coordinate transformation is reduced, and a coordinate position that does not become an integer value is expressed as a multi-value gradation pixel. A method of reducing the density change by converting the resolution has been devised. According to this method, it is possible to guarantee density by converting a binary image into a multi-value image and converting the resolution while reducing moire.

特開2003−179749号公報JP 2003-179749 A

しかしながら、上記特許文献1に代表される従来技術では、位置の規則性の問題が依然残る。すなわち、多値で解像度変換を行ったとき、座標位置により中間調(補間によって発生した白、黒の中間レベルの値)の出現確率が変化する。これによって依然としてモアレが発生することとなっていた。   However, in the prior art represented by the above-mentioned Patent Document 1, the problem of regularity of positions still remains. That is, when resolution conversion is performed with multiple values, the appearance probability of a halftone (white and black intermediate level values generated by interpolation) changes depending on the coordinate position. This still caused moiré.

そこで、二値階調段階での網点の周期性を取り除きモアレの発生を抑えるために、ぼかし(以下、平滑化と呼ぶ)によって網点形状を崩し、多値階調を得るデスクリーニング手法が考案されているが、デスクリーニングを行うと網点形状を保持できなくなり、原画像の網点が保存されないという問題が残っていた。   Therefore, in order to remove the periodicity of halftone dots in the binary gradation stage and suppress the occurrence of moire, there is a descreening technique that obtains multilevel gradation by breaking the halftone dot shape by blurring (hereinafter referred to as smoothing). Although it has been devised, there remains a problem that when the descreening is performed, the halftone dot shape cannot be maintained, and the halftone dot of the original image is not preserved.

本発明は、上記問題点(課題)を解消するためになされたものであって、本発明は、印刷イメージの展開解像度から各印刷機の出力解像度へ解像度変換をおこなっても、モアレが低減され、かつ多値段階での規則性をなくしつつ網点形状を保持することが可能な解像度変換プログラム、解像度変換方法および解像度変換装置を提供することを目的とする。   The present invention has been made to solve the above problems (problems), and the present invention reduces moiré even if resolution conversion is performed from the developed resolution of a print image to the output resolution of each printing press. Another object of the present invention is to provide a resolution conversion program, a resolution conversion method, and a resolution conversion apparatus capable of maintaining a halftone dot shape while eliminating regularity in a multi-value stage.

上述した問題を解決し、目的を達成するため、本発明は、画素ごとに画素値が対応付けられた画像データをメモリ展開して記憶するための記憶手段を備えたコンピュータ装置において、入力された二値網点画像データの解像度を出力装置の解像度へと変換する解像度変換を該コンピュータ装置に実行させる解像度変換プログラムであって、前記二値網点画像データを多値画像データへと変換して前記記憶手段に記憶させる多値変換手順と、前記多値変換手順により変換された多値画像データの解像度変換のための補完画素の補完位置を、一定条件のもとにランダムに決定する補完画素位置決定手順と、前記補完画素位置決定手順により決定された補完画素の画素値を、該補完画素の補完位置の所定近傍の画素の画素値に基づいて決定して前記記憶手段に記憶される前記多値画像データを更新する補完画素値決定手順と、前記補完画素値決定手順により更新された前記多値画像データを前記出力装置へ出力するための二値網点画像データへと変換して前記記憶手段に記憶させる二値変換手順とを前記コンピュータ装置に実行させることを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention is inputted in a computer apparatus provided with a storage means for storing and storing image data in which pixel values are associated with each pixel. A resolution conversion program for causing the computer device to perform resolution conversion for converting the resolution of binary halftone image data to the resolution of an output device, wherein the binary halftone image data is converted into multivalued image data. A multi-value conversion procedure stored in the storage means, and a complementary pixel for randomly determining a complementary position of a complementary pixel for resolution conversion of multi-value image data converted by the multi-value conversion procedure under a certain condition Determining a pixel value of a complementary pixel determined by the position determining procedure and the complementary pixel position determining procedure based on a pixel value of a pixel in a predetermined vicinity of the complementary position of the complementary pixel; A complementary pixel value determination procedure for updating the multi-value image data stored in the storage means, and a binary halftone image for outputting the multi-value image data updated by the complementary pixel value determination procedure to the output device A binary conversion procedure for converting the data into data and storing the data in the storage means is executed by the computer device.

また、本発明は、上記発明において、前記二値変換手順は、前記多値画像データのうちの処理対象の画素範囲を決定する画素範囲決定手順と、前記画素範囲決定手順により決定された処理対象の画素範囲の画素の画素値を合計して合計値を算出する画素値合計手順と、前記画素値合計手順により算出された合計値を、前記画素値が取りうる最大値で除算して商および剰余を算出する除算手順と、前記処理対象の画素範囲に属する画素値が大きい画素から前記商の数に相当する分だけの画素の画素値を前記最大値で置換し、画素値が前記最大値に置換された画素の次に画素値が大きい画素の画素値を前記剰余で置換したのち、画素値が未だ置換されていない画素の画素値を0で置換する画素値置換手順とをさらに含み、前記画素値置換手順によりすべての画素の画素値が置換された前記多値画像データを前記出力装置へ出力するための二値網点画像データへと変換して前記記憶手段に記憶させることを特徴とする。   Further, the present invention is the above invention, wherein the binary conversion procedure includes a pixel range determination procedure for determining a pixel range to be processed in the multi-valued image data, and a processing target determined by the pixel range determination procedure. A pixel value totaling procedure for calculating the total value by summing the pixel values of the pixels in the pixel range, and dividing the total value calculated by the pixel value totaling procedure by the maximum value that can be taken by the pixel value. A division procedure for calculating a remainder, and a pixel value corresponding to the number of quotients from a pixel having a large pixel value belonging to the pixel range to be processed is replaced with the maximum value, and the pixel value is the maximum value A pixel value replacement procedure for replacing the pixel value of the pixel having the next largest pixel value with the remainder after the pixel replaced with the pixel value and replacing the pixel value of the pixel whose pixel value has not yet been replaced with 0, According to the pixel value replacement procedure Pixel values of all pixels is equal to or to be stored in the storage means and converted into binary halftone dot image data for outputting the multi-value image data is substituted into the output device.

また、本発明は、上記発明において、前記多値変換手順により変換された多値画像データにおいて、画素値が周辺画素より高い画素の画素値を該周辺画素へ配分して画素値を分散する画素値分散手順を前記コンピュータ装置にさらに実行させ、前記画素値分散手順は、前記多値変換手順により変換された多値画像データの画素値が周辺画素より高い画素の画素値を該周辺画素へ配分して画素値を分散させ、前記補完画素位置決定手順は、前記画素値分散手順により画素値が分散された多値画像データの補完画素の補完位置を、一定条件のもとにランダムに決定することを特徴とする。   Further, according to the present invention, in the multi-value image data converted by the multi-value conversion procedure according to the above-described invention, the pixel values of pixels having pixel values higher than the peripheral pixels are distributed to the peripheral pixels and the pixel values are dispersed. And causing the computer device to further execute a value distribution procedure, wherein the pixel value distribution procedure distributes pixel values of pixels whose pixel values of the multi-value image data converted by the multi-value conversion procedure are higher than the peripheral pixels to the peripheral pixels. Then, the pixel value is distributed, and the complementary pixel position determining procedure randomly determines the complementary position of the complementary pixel of the multi-valued image data in which the pixel value is distributed by the pixel value distributing procedure under a certain condition. It is characterized by that.

また、本発明は、上記発明において、前記多値変換手順により変換された多値画像データにおいて、画素値が周辺画素より高い画素の画素値を該周辺画素へ配分して画素値を分散する画素値分散手順を前記コンピュータ装置にさらに実行させ、前記画素値分散手順は、前記補完画素値決定手順により前記補完画素の画素値が決定された多値画像データの画素値が周辺画素より高い画素の画素値を該周辺画素へ配分して画素値を分散させ、前記二値変換手順は、前記画素値分散手順により画素値が分散された多値画像データを前記出力装置へ出力するための二値網点画像データへと変換して前記記憶手段に記憶させることを特徴とする。   Further, according to the present invention, in the multi-value image data converted by the multi-value conversion procedure according to the above-described invention, the pixel values of pixels having pixel values higher than the peripheral pixels are distributed to the peripheral pixels and the pixel values are dispersed. Further causing the computer device to execute a value distribution procedure, wherein the pixel value distribution procedure is for pixels whose pixel values of the multi-valued image data for which the pixel values of the complementary pixels are determined by the complementary pixel value determination procedure are higher than the peripheral pixels Distributing pixel values to the surrounding pixels to distribute the pixel values, and the binary conversion procedure is a binary for outputting multi-valued image data in which pixel values are distributed by the pixel value distribution procedure to the output device. The image data is converted into halftone dot image data and stored in the storage means.

また、本発明は、画素ごとに画素値が対応付けられた画像データをメモリ展開して記憶するための記憶手段を備えたコンピュータ装置において、入力された二値網点画像データの解像度を出力装置の解像度へと変換する解像度変換方法であって、前記二値網点画像データを多値画像データへと変換して前記記憶手段に記憶させる多値変換工程と、前記多値変換工程により変換された多値画像データの解像度変換のための補完画素の補完位置を、一定条件のもとにランダムに決定する補完画素位置決定工程と、前記補完画素位置決定工程により決定された補完画素の画素値を、該補完画素の補完位置の所定近傍の画素の画素値に基づいて決定して前記記憶手段に記憶される前記多値画像データを更新する補完画素値決定工程と、前記補完画素値決定工程により更新された前記多値画像データを前記出力装置へ出力するための二値網点画像データへと変換して前記記憶手段に記憶させる二値変換工程とを含んだことを特徴とする。   According to another aspect of the present invention, there is provided a computer apparatus comprising storage means for storing image data in which pixel values are associated with each pixel in memory, and outputting the resolution of input binary halftone image data as an output device. A resolution conversion method for converting the binary halftone dot image data into multi-value image data and storing it in the storage means; and the multi-value conversion step. A complementary pixel position determining step for randomly determining a complementary pixel complementary position for resolution conversion of the multi-valued image data under a certain condition, and a pixel value of the complementary pixel determined by the complementary pixel position determining step Is determined based on the pixel value of a pixel in the vicinity of the complementary position of the complementary pixel and updates the multi-valued image data stored in the storage means; and the complementary pixel value A binary conversion step of converting the multi-valued image data updated in a predetermined step into binary halftone dot image data for output to the output device and storing the binary halftone image data in the storage means. .

また、本発明は、上記発明において、前記二値変換工程は、前記多値画像データのうちの処理対象の画素範囲を決定する画素範囲決定工程と、前記画素範囲決定工程により決定された処理対象の画素範囲の画素の画素値を合計して合計値を算出する画素値合計工程と、前記画素値合計工程により算出された合計値を、前記画素値が取りうる最大値で除算して商および剰余を算出する除算工程と、前記処理対象の画素範囲に属する画素値が大きい画素から前記商の数に相当する分だけの画素の画素値を前記最大値で置換し、画素値が前記最大値に置換された画素の次に画素値が大きい画素の画素値を前記剰余で置換したのち、画素値が未だ置換されていない画素の画素値を0で置換する画素値置換工程とをさらに含み、前記画素値置換工程によりすべての画素の画素値が置換された前記多値画像データを前記出力装置へ出力するための二値網点画像データへと変換して前記記憶手段に記憶させることを特徴とする。   Also, in the present invention according to the above invention, the binary conversion step includes a pixel range determination step for determining a pixel range to be processed in the multi-valued image data, and a processing target determined by the pixel range determination step. A pixel value summing step of summing pixel values of pixels in the pixel range of the pixel value to calculate a sum value, and dividing the sum value calculated by the pixel value summing step by a maximum value that can be taken by the pixel value. A division step for calculating a remainder, and a pixel value corresponding to the number of quotients from a pixel having a large pixel value belonging to the pixel range to be processed is replaced with the maximum value, and the pixel value is the maximum value A pixel value replacement step of substituting the pixel value of the pixel having the next largest pixel value with the remainder after replacing the pixel value with the remainder and then replacing the pixel value of the pixel whose pixel value has not yet been replaced with 0, According to the pixel value replacement step Pixel values of all pixels is equal to or to be stored in the storage means and converted into binary halftone dot image data for outputting the multi-value image data is substituted into the output device.

また、本発明は、画素ごとに画素値が対応付けられた画像データをメモリ展開して記憶するための記憶手段を備え、入力された二値網点画像データの解像度を出力装置の解像度へと変換する解像度変換装置であって、前記二値網点画像データを多値画像データへと変換して前記記憶手段に記憶させる多値変換手段と、前記多値変換手段により変換された多値画像データの解像度変換のための補完画素の補完位置を、一定条件のもとにランダムに決定する補完画素位置決定手段と、前記補完画素位置決定手段により決定された補完画素の画素値を、該補完画素の補完位置の所定近傍の画素の画素値に基づいて決定して前記記憶手段に記憶される前記多値画像データを更新する補完画素値決定手段と、前記補完画素値決定手段により更新された前記多値画像データを前記出力装置へ出力するための二値網点画像データへと変換して前記記憶手段に記憶させる二値変換手段とを有することを特徴とする。   In addition, the present invention includes storage means for storing and storing image data in which pixel values are associated with each pixel in a memory, and converting the resolution of the input binary halftone image data to the resolution of the output device. A resolution conversion device for converting, wherein the binary halftone image data is converted into multi-value image data and stored in the storage means, and the multi-value image converted by the multi-value conversion means Complement pixel position determining means for randomly determining complementary positions of complementary pixels for data resolution conversion under a certain condition, and the pixel values of the complementary pixels determined by the complementary pixel position determining means A complementary pixel value determining unit that updates the multi-valued image data that is determined based on a pixel value of a pixel in the vicinity of a pixel complementary position and that is stored in the storage unit, and updated by the complementary pixel value determining unit in front And having a binary conversion means for storing the multivalued image data in the storage means and converts into binary halftone dot image data for outputting to the output device.

また、本発明は、上記発明において、前記二値変換手段は、前記多値画像データのうちの処理対象の画素範囲を決定する画素範囲決定手段と、前記画素範囲決定手段により決定された処理対象の画素範囲の画素の画素値を合計して合計値を算出する画素値合計手段と、前記画素値合計手段により算出された合計値を、前記画素値が取りうる最大値で除算して商および剰余を算出する除算手段と、前記処理対象の画素範囲に属する画素値が大きい画素から前記商の数に相当する分だけの画素の画素値を前記最大値で置換し、画素値が前記最大値に置換された画素の次に画素値が大きい画素の画素値を前記剰余で置換したのち、画素値が未だ置換されていない画素の画素値を0で置換する画素値置換手段とをさらに有し、前記画素値置換手段によりすべての画素の画素値が置換された前記多値画像データを前記出力装置へ出力するための二値網点画像データへと変換して前記記憶手段に記憶させることを特徴とする。   Further, in the present invention according to the above invention, the binary conversion unit includes a pixel range determination unit that determines a pixel range to be processed in the multi-value image data, and a processing target that is determined by the pixel range determination unit. A pixel value summing unit that sums the pixel values of the pixels in the pixel range to calculate a sum, and a quotient obtained by dividing the sum calculated by the pixel value summing unit by a maximum value that the pixel value can take. A division means for calculating a remainder; and a pixel value corresponding to the number of quotients from a pixel having a large pixel value belonging to the pixel range to be processed is replaced with the maximum value, and the pixel value is the maximum value Pixel value replacement means for replacing the pixel value of the pixel having the next largest pixel value with the remainder after the pixel replaced with, and replacing the pixel value of the pixel whose pixel value has not yet been replaced with 0 , By the pixel value replacement means Pixel values of all pixels is equal to or to be stored in the storage means and converted into binary halftone dot image data for outputting the multi-value image data is substituted into the output device.

本発明によれば、画像の網点形状を残しつつ網点の規則性を排除するので、画像のモアレを低減するという効果を奏する。また、網点の規則性を排除するので、解像度変換前と解像度変換後のさまざまな解像度の組み合わせにおいてモアレを低減し、さまざまな解像度を有する複数の出力装置に対しても解像度変換のみでモアレ発生が少ない画像出力が可能となるという効果を奏する。   According to the present invention, since the regularity of halftone dots is eliminated while leaving the halftone dot shape of the image, the effect of reducing the moire of the image is achieved. Also, since the regularity of halftone dots is eliminated, moiré is reduced in various combinations of resolutions before and after resolution conversion, and moiré is generated only by resolution conversion for multiple output devices with various resolutions. There is an effect that an image output with less can be achieved.

また、本発明によれば、多値画像から二値画像への変換時に発生する誤差としての孤立点をより画素値の高い画素へと集中させて減少さることによって画像出力のノイズを減少させ、出力画像の品質が向上した安定した画像出力が可能となるという効果を奏する。   In addition, according to the present invention, the isolated points as errors that occur when converting from a multi-valued image to a binary image are reduced by concentrating the isolated points to pixels with higher pixel values, thereby reducing image output noise. There is an effect that stable image output with improved output image quality becomes possible.

また、本発明によれば、高い画素値を周辺の画素へと分散してモアレを低減させるという効果を奏する。   Further, according to the present invention, there is an effect that moire is reduced by distributing high pixel values to surrounding pixels.

以下に添付図面を参照し、本発明の解像度変換プログラム、解像度変換方法および解像度変換装置に係る実施例を詳細に説明する。なお、以下の実施例では、画像を所定解像度の二値網点画像データに変換したのち、該所定解像度を印刷機などの複数の出力装置それぞれの解像度へ変換した二値網点画像データを該出力装置へ送出する新聞制作システムに適用した場合を示すこととする。しかし、これに限らず、出力装置は印刷機以外の装置、例えば画像表示装置であってもよく、新聞制作システムに限らず、その他の画像印刷システムもしくは画像表示システムに適用してもよい。   Exemplary embodiments of a resolution conversion program, a resolution conversion method, and a resolution conversion apparatus according to the present invention will be described below in detail with reference to the accompanying drawings. In the following embodiment, after converting an image into binary halftone dot image data having a predetermined resolution, the binary halftone dot image data obtained by converting the predetermined resolution to the resolution of each of a plurality of output devices such as a printing press is converted into the binary dot image data. A case where the present invention is applied to a newspaper production system to be sent to an output device will be shown. However, the present invention is not limited to this, and the output device may be a device other than a printing machine, for example, an image display device, and may be applied not only to a newspaper production system but also to other image printing systems or image display systems.

なお、以下の実施例に示す解像度変換装置の各処理機能は、CPU(Central Processing Unit)(またはMPU(Micro Processing Unit)、MCU(Micro Controller Unit)などのマイクロ・コンピュータ)および当該CPU(またはMPU、MCUなどのマイクロ・コンピュータ)にて解析実行されるプログラムにて実現され、あるいは、ワイヤードロジックによるハードウェアとして実現されるものである。   Note that each processing function of the resolution conversion apparatus shown in the following embodiments includes a central processing unit (CPU) (or a microcomputer such as a micro processing unit (MPU) and a micro controller unit (MCU)) and the CPU (or MPU). Or a microcomputer that is analyzed and executed by a microcomputer such as an MCU) or hardware as wired logic.

また、以下の実施例では、多値画像データは、0から255までの数値で画素値が表現される256階調であるとする。この256階調の多値画像データに対応する二値網点画像データの二値は、最小画素値の0および最大画素値の255である。なお、多値画像データの階調は256階調に限定されるものではない。   In the following embodiment, it is assumed that the multi-value image data has 256 gradations in which pixel values are expressed by numerical values from 0 to 255. Binary halftone dot image data corresponding to the 256-level multi-valued image data has a minimum pixel value of 0 and a maximum pixel value of 255. Note that the gradation of the multi-valued image data is not limited to 256 gradations.

先ず、実施例の概要について説明する。図1は、実施例の概要を説明するための図である。同図に示すように、画像データ展開装置に取り込まれた画像は、例えば909dpi(dot per inch)の解像度の画像データへと展開される。そして、この909dpiの画像データは画像データ送出装置へと受け渡される。   First, an outline of the embodiment will be described. FIG. 1 is a diagram for explaining the outline of the embodiment. As shown in the figure, the image captured by the image data expansion device is expanded into image data having a resolution of, for example, 909 dpi (dot per inch). The 909 dpi image data is transferred to the image data transmission device.

909dpiの画像データを受け渡された画像データ送出装置は、接続される複数の出力装置に合わせて該画像データの解像度変換をおこない、それぞれの出力装置へと送出する。例えば、図示するように、909dpiの解像度である909dpi出力装置に対して画像データを送出するのであれば、解像度変換の必要はなく、909dpiの画像データをそのまま送出することとなる。   The image data transmission device that has received the 909 dpi image data converts the resolution of the image data in accordance with a plurality of connected output devices, and transmits the image data to each output device. For example, as shown in the figure, if image data is sent to a 909 dpi output device having a resolution of 909 dpi, there is no need for resolution conversion, and the image data of 909 dpi is sent as it is.

他方、1200dpiの解像度である1200dpi出力装置に対して画像データを送出するのであれば、909dpiから1200dpiへ解像度変換をおこない、1200dpiの画像データを送出することとなり、600dpiの解像度である600dpi出力装置に対して画像データを送出するのであれば、909dpiから600dpiへ解像度変換をおこない、600dpiの画像データを送出することとなる。   On the other hand, if image data is sent to a 1200 dpi output device with 1200 dpi resolution, the resolution will be converted from 909 dpi to 1200 dpi, and 1200 dpi image data will be sent. On the other hand, if image data is transmitted, resolution conversion is performed from 909 dpi to 600 dpi, and 600 dpi image data is transmitted.

このように、画像データ送出装置において各種の解像度を有する出力装置に合わせて実施例による解像度変換をおこない、この解像度変換された画像データを各出力装置へ送出することとすると、画像データ展開装置では一種類の解像度の画像データへと画像データを展開しておくだけで、解像度の異なる複数の出力装置に、網点形状を保持した、モアレのない画像を出力することが可能となる。   As described above, when the image data sending device performs resolution conversion according to the embodiment in accordance with an output device having various resolutions, and sends the resolution-converted image data to each output device, the image data developing device It is possible to output a moire-free image having a halftone dot shape to a plurality of output devices having different resolutions simply by developing the image data into one type of resolution image data.

ここで、モアレとは、次のようなものである。図2は、モアレを説明するための図である。同図に示すように、入力二値網点画像データを出力解像度に当てはめた場合に、多値画像データへ変換すると中間階調となる部分が出現する場合がある。この中間階調となる部分は、さらに二値網点画像データへ変換した場合に、取りうる最小の画素値と取りうる最大の画素値との二値のいずれかへと変換される部分が交互に出現することになる。これがモアレとよばれる干渉縞として人間の目に認識されることとなる。実施例は、このモアレを低減することを目的としている。   Here, the moire is as follows. FIG. 2 is a diagram for explaining moire. As shown in the figure, when the input binary halftone dot image data is applied to the output resolution, there are cases where a halftone portion appears when converted to multi-value image data. This half-tone part, when further converted into binary halftone dot image data, is the part that is converted into one of the binary value of the smallest possible pixel value and the largest possible pixel value. Will appear. This is recognized by human eyes as interference fringes called moire. The embodiment aims to reduce this moire.

なお、モアレの発生原因には、画像の拡大縮小、多値画像データから二値網点画像データへの変換、網点周期との干渉などによって発生する。   The cause of moiré occurs due to image enlargement / reduction, conversion from multi-value image data to binary halftone image data, interference with a halftone dot period, and the like.

次に、実施例にかかる解像度変換装置の構成を説明する。図3は、実施例にかかる解像度変換装置の構成を示す機能ブロック図である。同図に示すように、解像度変換装置100は、二値網点画像データ入力部101と、画像データ記憶手段としてのメモリなどである記憶部102と、二値多値変換処理部103と、平滑化処理部104と、補完位置乱数決定解像度変換処理部105と、再配置処理部106と、二値網点画像データ出力部107とを有する。   Next, the configuration of the resolution conversion apparatus according to the embodiment will be described. FIG. 3 is a functional block diagram illustrating the configuration of the resolution conversion apparatus according to the embodiment. As shown in the figure, a resolution conversion apparatus 100 includes a binary halftone dot image data input unit 101, a storage unit 102 such as a memory as an image data storage unit, a binary multi-value conversion processing unit 103, a smoothing A processing unit 104, a complementary position random number determination resolution conversion processing unit 105, a rearrangement processing unit 106, and a binary halftone image data output unit 107.

二値網点画像データ入力部101は、解像度変換装置100が外部から入力を受け付けた二値網点画像データを記憶部102に展開して記憶させる。二値多値変換処理部103は、記憶部102に記憶される二値網点画像データを単純方法で多値画像データへと変換する二値多値変換処理をおこなう。この二値多値変換処理の詳細は、後述する。   The binary halftone dot image data input unit 101 develops and stores binary halftone dot image data received by the resolution conversion apparatus 100 from the outside in the storage unit 102. The binary multi-value conversion processing unit 103 performs binary multi-value conversion processing for converting binary halftone dot image data stored in the storage unit 102 into multi-value image data by a simple method. Details of the binary multi-value conversion process will be described later.

平滑化処理部104は、記憶部102に記憶される多値画像データに対して平滑化処理をおこなう。この平滑化処理の詳細は後述する。補完位置乱数決定解像度変換処理部105は、記憶部102に記憶される平滑化処理された多値画像データに対して、画素の補完位置とその画素値とを決定して多値画像データの解像度変換をおこなう。補完位置乱数決定解像度変換処理の詳細は、後述する。   The smoothing processing unit 104 performs a smoothing process on the multivalued image data stored in the storage unit 102. Details of the smoothing process will be described later. The complementary position random number determination resolution conversion processing unit 105 determines the pixel complementary position and its pixel value for the smoothed multi-valued image data stored in the storage unit 102 and determines the resolution of the multi-valued image data. Perform the conversion. Details of the complementary position random number determination resolution conversion processing will be described later.

再配置処理部106は、補完位置乱数決定解像度変換処理部105によって解像度変換された多値画像データの画素値の配置に対して再配置処理をおこなう。この再配置処理の詳細は、後述する。二値網点画像データ出力部107は、再配置処理部106によって画素値が再配置された多値画像データを単純二値法により二値網点画像データへと変換して外部へ出力する。   The rearrangement processing unit 106 performs rearrangement processing on the arrangement of the pixel values of the multivalued image data subjected to resolution conversion by the complementary position random number determination resolution conversion processing unit 105. Details of the rearrangement process will be described later. The binary halftone image data output unit 107 converts the multivalued image data in which the pixel values are rearranged by the rearrangement processing unit 106 into binary halftone image data by the simple binary method, and outputs the binary halftone image data to the outside.

上記した解像度変換装置100は、モアレ発生を抑制する平滑化処理部104と、網点形状を保持する補完位置乱数決定解像度変換処理部105とを多段に構成したので、出力画像の劣化の原因追求を機能単位に行うことが可能となり、検証・開発効率を高めることができる。   Since the above-described resolution conversion apparatus 100 includes the smoothing processing unit 104 that suppresses the occurrence of moire and the complementary position random number determination resolution conversion processing unit 105 that retains the halftone dot shape in multiple stages, the cause of deterioration of the output image is pursued. Can be performed for each functional unit, and verification / development efficiency can be improved.

次に、図3に示した解像度変換装置100でおこなわれる解像度変換処理について説明する。図4は、解像度変換処理手順を示すフローチャートである。同図に示すように、先ず、二値多値変換処理部103は、二値網点画像データ入力部101からの二値網点画像データ入力の通知を受け、二値多値変換処理をおこなう(ステップS101)。続いて、平滑化処理部104は、ステップS101で変換された多値画像データに対して平滑化処理をおこなう(ステップS102)。この平滑化処理の詳細は、後述する。   Next, resolution conversion processing performed by the resolution conversion apparatus 100 shown in FIG. 3 will be described. FIG. 4 is a flowchart showing the resolution conversion processing procedure. As shown in the figure, first, the binary multilevel conversion processing unit 103 receives a binary halftone image data input notification from the binary halftone image data input unit 101, and performs a binary multilevel conversion process. (Step S101). Subsequently, the smoothing processing unit 104 performs a smoothing process on the multi-valued image data converted in step S101 (step S102). Details of the smoothing process will be described later.

続いて、補完位置乱数決定解像度変換処理部105は、ステップS102で平滑化処理された多値画像データに対して補完位置乱数決定解像度変換処理をおこなう(ステップS103)。この補完位置乱数決定解像度変換処理の詳細は、後述する。続いて、再配置処理部106は、ステップS103で補完位置乱数決定解像度変換処理された多値画像データに対して再配置処理をおこなう(ステップS104)。再配置処理の詳細は、後述する。   Subsequently, the complementary position random number determination resolution conversion processing unit 105 performs a complementary position random number determination resolution conversion process on the multi-valued image data smoothed in step S102 (step S103). Details of this complementary position random number determination resolution conversion processing will be described later. Subsequently, the rearrangement processing unit 106 performs rearrangement processing on the multi-valued image data that has undergone the complementary position random number determination resolution conversion processing in step S103 (step S104). Details of the rearrangement process will be described later.

なお、ステップS102とステップS103の処理順序は逆転してもよく、補完位置乱数決定解像度変換処理をおこなった後に平滑化処理を行うこととしてもよい。この場合、図3に示す機能ブロック図でも、二値多値変換処理部103によって変換された多値画像データは、先ず、補完位置乱数決定解像度変換処理部105によって補完位置乱数決定解像度変換処理され、こののちに平滑化処理部104によって平滑化処理されることとなる。そしてこの平滑化処理の後に、再配置処理がおこなわれる。   Note that the processing order of step S102 and step S103 may be reversed, and smoothing processing may be performed after performing complementary position random number determination resolution conversion processing. In this case, also in the functional block diagram shown in FIG. 3, the multi-value image data converted by the binary multi-value conversion processing unit 103 is first subjected to the complementary position random number determination resolution conversion processing by the complementary position random number determination resolution conversion processing unit 105. Thereafter, smoothing processing is performed by the smoothing processing unit 104. Then, after the smoothing process, a rearrangement process is performed.

図5は、図4のステップS101で示した二値多値変換処理の概要を説明するための図である。図5(a)に示すように、5×5の画素の集合のうち網掛け部分が二値表現において最大画素値(例えば1)が与えられている画素であり、それ以外の画素が二値表現における最小画素値(例えば0)が与えられている画素である。これを例えば256階調の多値表現へと変換すると、図5(b)に示すように、網掛け部分には画素値255が与えられ、それ以外の部分には画素値0が与えられることとなる。   FIG. 5 is a diagram for explaining the outline of the binary multi-value conversion process shown in step S101 of FIG. As shown in FIG. 5A, the shaded portion of the set of 5 × 5 pixels is a pixel to which the maximum pixel value (for example, 1) is given in binary representation, and the other pixels are binary. A pixel to which a minimum pixel value (for example, 0) is given in the expression. When this is converted into, for example, a 256-level multi-value expression, as shown in FIG. 5B, a pixel value 255 is given to the shaded portion, and a pixel value 0 is given to the other portions. It becomes.

次に、図4のステップS102で示した平滑化処理について説明する。図6は、平滑化処理手順を示すフローチャートである。なお、以下では、(x,y)(ただし、x、yは自然数)は、図7に示すように、平滑化処理対象の画像の画素の位置を示す座標とする。画像の左下を原点0とし、右へ向かうほどxの値が大きくなる横軸をx軸、上へ向かうほどyの値が大きくなる縦軸をy軸とする。(x,y)に位置する画素は、x軸方向のx+1番目、y軸方向のy+1番目に位置する画素である。xは0からx1までの値を取り、yは0からy1までの値を取りうる。 Next, the smoothing process shown in step S102 of FIG. 4 will be described. FIG. 6 is a flowchart showing the smoothing processing procedure. In the following, (x, y) (where x and y are natural numbers) are coordinates indicating the pixel position of the image to be smoothed as shown in FIG. The lower left of the image is the origin 0, the horizontal axis where the value of x increases toward the right is the x axis, and the vertical axis where the value of y increases toward the top is the y axis. The pixel located at (x, y) is the pixel located at x + 1th in the x-axis direction and y + 1th in the y-axis direction. x can take a value from 0 to x 1 , and y can take a value from 0 to y 1 .

同図に示すように、平滑化処理部104は、先ず、所定記憶領域に記憶される変数x、yに0を代入する(ステップS201)。なお、このxは、処理対象の画像を、画像のx軸に平行な直線(以下、x軸平行直線と呼ぶ)で横切った際の、この直線上での画素位置をあらわす。またyは、処理対象の画像を、画像の縦軸に平行な直線(以下、y軸平行直線と呼ぶ)で横切った際の、この直線上での画素位置をあらわす。   As shown in the figure, the smoothing processing unit 104 first substitutes 0 for variables x and y stored in a predetermined storage area (step S201). Note that x represents the pixel position on the straight line when the image to be processed is crossed by a straight line parallel to the x-axis of the image (hereinafter referred to as the x-axis parallel straight line). Y represents the pixel position on the straight line when the image to be processed is crossed by a straight line parallel to the vertical axis of the image (hereinafter referred to as the y-axis parallel straight line).

次に、平滑化処理部104は、画素位置(x,y)における画素値をI(x,y)と表現する場合に、αを所定の正数として、I(x+1,y)−I(x,y)<αが成り立つか否かを判定する(ステップS202)。I(x+1,y)−I(x,y)<αが成り立つと判定される場合に(ステップS202肯定)、ステップS203へ移り、I(x+1,y)−I(x,y)<αが成り立つと判定されない場合に(ステップS202否定)、ステップS205へ移る。なお、ここでのαは、I(x,y)の変化量の閾値である。   Next, in the case where the pixel value at the pixel position (x, y) is expressed as I (x, y), the smoothing processing unit 104 sets I (x + 1, y) −I ( It is determined whether or not x, y) <α holds (step S202). When it is determined that I (x + 1, y) −I (x, y) <α holds (Yes in step S202), the process proceeds to step S203, and I (x + 1, y) −I (x, y) <α is satisfied. If it is not determined that it is true (No at Step S202), the process proceeds to Step S205. Here, α is a threshold value for the amount of change in I (x, y).

ステップS203では、平滑化処理部104は、βを所定の正数として、I(x,y)にI(x,y)−βを代入し、I(x+1,y)にI(x+1,y)+βを代入する。続いて、平滑化処理部104は、xにx+1を代入する(ステップS204)。ステップS204が終了すると、ステップS206へ移る。一方、ステップS205では、平滑化処理部104は、I(x,y)にI(x,y)+βを代入し、I(x+1,y)にI(x+1,y)−βを代入する。ステップS205が終了すると、ステップS204へ移る。なお、ここでのβは、画素値の分配量(移動量)である。   In step S203, the smoothing processing unit 104 substitutes I (x, y) −β for I (x, y), with β being a predetermined positive number, and I (x + 1, y) for I (x + 1, y). ) Substitute + β. Subsequently, the smoothing processing unit 104 substitutes x + 1 for x (step S204). When step S204 ends, the process proceeds to step S206. On the other hand, in step S205, the smoothing processing unit 104 substitutes I (x, y) + β for I (x, y) and substitutes I (x + 1, y) −β for I (x + 1, y). When step S205 ends, the process proceeds to step S204. Here, β is a distribution amount (movement amount) of the pixel value.

続いて、平滑化処理部104は、x>x1となったか否かを判定する。すなわち、処理対象の画像のx軸の終端まで至ったか否かを判定する。x>x1となったと判定される場合に(ステップS206肯定)、ステップS207へ移り、x>x1となったと判定されない場合に(ステップS206否定)、ステップS202へ移る。 Subsequently, the smoothing processing unit 104 determines whether or not x> x 1 . That is, it is determined whether or not the end of the x axis of the image to be processed has been reached. When it is determined that x> x 1 is satisfied (Yes at Step S206), the process proceeds to Step S207, and when it is not determined that x> x 1 is satisfied (No at Step S206), the process proceeds to Step S202.

続いて、ステップS207では、平滑化処理部104は、yにy+1を代入する。続いて、平滑化処理部104は、y>y1となったか否かを判定する。すなわち、処理対象の画像のy軸の終端まで至ったか否かを判定する。y>y1となったと判定される場合に(ステップS208肯定)、平滑化処理は終了して解像度変換処理に復帰し、y>y1となったと判定されない場合に(ステップS208否定)、ステップS202へ移る。 Subsequently, in step S207, the smoothing processing unit 104 substitutes y + 1 for y. Subsequently, the smoothing processing unit 104 determines whether or not y> y 1 is satisfied. That is, it is determined whether or not the end of the y-axis of the image to be processed has been reached. When it is determined that y> y 1 is satisfied (Yes at Step S208), the smoothing process ends and the process returns to the resolution conversion process. When it is not determined that y> y 1 is satisfied (No at Step S208), Step The process proceeds to S202.

このように、yを固定して0≦x≦x1となるすべてのxについておこなわれる平滑化処理を、すべての0≦y≦y1となるすべてのyについておこなうことによって、平滑化処理部104が処理対象とする画像すべての平滑化が終了するまで平滑化処理が順次おこなわれることとなる。 As described above, the smoothing process performed for all x satisfying 0 ≦ x ≦ x 1 while fixing y is performed for all y satisfying 0 ≦ y ≦ y 1. The smoothing process is sequentially performed until the smoothing of all the images to be processed by 104 is completed.

なお、平滑化処理の概要は次の通りである。図8は、平滑化処理の概要を説明するための図である。同図に示すように、平滑化処理前に画素値が255であった画素の画素値は、その両隣の画素に一定量分配されることによって、画素値の突出を低減することができる。これは、「ぼかし」の効果が得られ、画素値の変化がなだらかな画像が得られ、モアレを低減することができる。   The outline of the smoothing process is as follows. FIG. 8 is a diagram for explaining an outline of the smoothing process. As shown in the figure, the pixel value of the pixel whose pixel value was 255 before the smoothing process is distributed to a pixel adjacent to the pixel value by a certain amount, thereby reducing the protrusion of the pixel value. As a result, an effect of “blurring” can be obtained, an image with a gentle change in pixel value can be obtained, and moire can be reduced.

なお、平滑化処理は、上記した方法に限らず、ガウスフィルタを使用する方法や、3行3列のフィルタ行列を使用するフィルタ平滑法であってもよい。   The smoothing process is not limited to the method described above, and may be a method using a Gaussian filter or a filter smoothing method using a 3 × 3 filter matrix.

なお、上記平滑化処理は、多値画像データに対して平滑化をおこなうので、二値網点画像データに対して平滑化をおこなう場合に比べ、モアレ周期の平滑化を考慮する必要がないという利点がある。   In addition, since the smoothing process performs smoothing on multi-valued image data, it is not necessary to consider the smoothing of the moire period compared to the case of smoothing on binary halftone image data. There are advantages.

次に、図4のステップS103で示した補完位置乱数決定解像度変換処理について説明する。図9は、補完位置乱数決定解像度変換処理手順を示すフローチャートである。同図に示すように、先ず、補完位置乱数決定解像度変換処理部105は、図10−1に示すように、矩形上で隣接する4つの頂点に位置する、画素値がI00、I01、I10、I11の画素の距離平均に基づく補完位置Pを算出する(ステップS301)。図10−1に示す例では、画素値がI00、I01、I10、I11である画素で構成される四角形の対角線の交点が距離平均に基づく補完位置Pである。なお、I00、I01、I10、I11は、Pの画素位置を(x,y)、画像横幅(x軸方向)の拡大縮小率をm、画像縦幅(y軸方向)の拡大縮小率をnとすると、それぞれ次式のように定義される。なお、以下で[・]はガウス記号であり、“・”を超えない整数を表わす。 Next, the complementary position random number determination resolution conversion process shown in step S103 of FIG. 4 will be described. FIG. 9 is a flowchart showing a complementary position random number determination resolution conversion processing procedure. As shown in the figure, first, as shown in FIG. 10A, the complementary position random number determination resolution conversion processing unit 105 has pixel values I 00 , I 01 , A complementary position P based on the average distance of the pixels of I 10 and I 11 is calculated (step S301). In the example shown in FIG. 10A, the intersection of square diagonal lines composed of pixels with pixel values I 00 , I 01 , I 10 , and I 11 is the complementary position P based on the distance average. Note that I 00 , I 01 , I 10 , and I 11 are P pixel position (x, y), image horizontal width (x-axis direction) m / magnification rate, and image vertical width (y-axis direction) enlargement If the reduction ratio is n, each is defined as follows. In the following, [•] is a Gaussian symbol and represents an integer not exceeding “•”.

Figure 0005018878
Figure 0005018878

次に、補完位置乱数決定解像度変換処理部105は、図10−2に示すように、例えば0から127までの範囲から乱数を抽出し、この抽出された乱数に基づき、平均距離に基づく補完位置Pを、次式に基づき決定されるP´へと移動させる(ステップS302)。ここで、次式における“rand(P,R)”は、補完位置Pを中心とする半径Rの円内に存在する画素を抽出乱数に基づきランダムに一つ決定する関数である。なお、Rの単位は、各種長さの単位またはdot数である。   Next, as illustrated in FIG. 10B, the complementary position random number determination resolution conversion processing unit 105 extracts random numbers from, for example, a range from 0 to 127, and based on the extracted random numbers, the complementary position based on the average distance is extracted. P is moved to P ′ determined based on the following equation (step S302). Here, “rand (P, R)” in the following equation is a function that randomly determines one pixel present in a circle having a radius R centered at the complementary position P based on the extracted random number. The unit of R is a unit of various lengths or the number of dots.

Figure 0005018878
Figure 0005018878

なお、(2)式において、Rを任意に設定することが可能であるので、このRは、画質調整のパラメータとして使用することが可能となる。   In equation (2), R can be arbitrarily set, so that R can be used as an image quality adjustment parameter.

ここで、図10−3に示すようにΔxおよびΔyを定義したときに、ΔxおよびΔyは次式で求められる。   Here, when Δx and Δy are defined as shown in FIG. 10-3, Δx and Δy are obtained by the following equations.

Figure 0005018878
Figure 0005018878

続いて、補完位置乱数決定解像度変換処理部105は、ΔxおよびΔyに基づき、次式に基づき、P´の画素値I´を算出する。なお、この処理は、「バイリニア変換」と呼ばれる処理である。なお、この「バイリニア変換」に代えて、「ニアレストネーバ方式」、「バイキュービック変換」、「平均画素法」などを用いてもよい。   Subsequently, the complementary position random number determination resolution conversion processing unit 105 calculates the pixel value I ′ of P ′ based on the following equation based on Δx and Δy. This process is a process called “bilinear conversion”. Instead of this “bilinear conversion”, “nearest neighbor method”, “bicubic conversion”, “average pixel method”, or the like may be used.

Figure 0005018878
Figure 0005018878

以上のようにして、画像の拡大縮小にともなう解像度変換のための画素の補完位置がランダムに決定され、この決定された補完位置P´の画素値が算出される。このようにして画素が補完されることによって、拡大縮小や解像度変換がおこなわれることとなる。   As described above, the complementary position of the pixel for resolution conversion accompanying the enlargement / reduction of the image is randomly determined, and the pixel value of the determined complementary position P ′ is calculated. As the pixels are complemented in this way, enlargement / reduction and resolution conversion are performed.

なお、上記した平滑化処理および補完位置乱数決定解像度変換処理をおこなうことによって、画素および画素値の分布の規則性(網点の規則性)を排除することが可能となるため、モアレを低減することができる。特に、補完位置乱数決定解像度変換処理によって、網点形状を保持しつつ、網点形状を保持しつつ網点の規則性を排除することができる。   In addition, by performing the smoothing process and the complementary position random number determination resolution conversion process described above, it becomes possible to eliminate the regularity of the distribution of pixels and pixel values (regularity of halftone dots), thereby reducing moire. be able to. In particular, by the complementary position random number determination resolution conversion process, it is possible to eliminate the regularity of the halftone dots while maintaining the halftone dot shape.

次に、図4のステップS104で示した再配置処理について説明する。図11は、再配置処理手順を示すフローチャートである。同図に示すように、先ず、再配置処理部106は、再配置対象の3×3の画素の領域を選択する(ステップS301)。ここで選択される領域は、例えば図12に示すように、画素に優先順位が付けられている。このように優先順位が付けられるのは、再配置対象の3×3の画素の領域内に同一画素値が存在した場合に対応するためである。   Next, the rearrangement process shown in step S104 of FIG. 4 will be described. FIG. 11 is a flowchart showing the rearrangement processing procedure. As shown in the figure, first, the rearrangement processing unit 106 selects a 3 × 3 pixel area to be rearranged (step S301). In the area selected here, for example, as shown in FIG. 12, the pixels are prioritized. The reason why priority is given in this way is to cope with the case where the same pixel value exists in the region of 3 × 3 pixels to be rearranged.

次に、再配置処理部106は、イメージバッファとしての記憶部102に、ステップS301で選択された領域のすべての画素の画素値を格納する(ステップS302)。続いて、イメージバッファ内のすべての画素値を合計し、この合計値を255(すなわち、画素値が取りうる最大値)で除算する(ステップS303)。   Next, the rearrangement processing unit 106 stores the pixel values of all the pixels in the region selected in step S301 in the storage unit 102 serving as an image buffer (step S302). Subsequently, all the pixel values in the image buffer are summed, and the sum is divided by 255 (that is, the maximum value that the pixel value can take) (step S303).

続いて、再配置処理部106は、ステップS301で選択された領域内で、画素値が大きい画素を、ステップS303の除算の商の数だけ順次、画素値を“255”で置換する(ステップS304)。続いて、“255”で画素値を置換した画素の次に画素値が大きい画素の画素値を、ステップS303の除算の剰余で置換する(ステップS305)。   Subsequently, the rearrangement processing unit 106 sequentially replaces pixels having a large pixel value by “255” in the region selected in step S301 by the number of division quotients in step S303 (step S304). ). Subsequently, the pixel value of the pixel having the next highest pixel value after the pixel value replaced with “255” is replaced with the remainder of the division in step S303 (step S305).

続いて、再配置処理部106は、ステップS304およびステップS305で画素値が更新されていない画素の画素値を0で置換する(ステップS306)。続いて、再配置処理部106は、処理対象の画像のすべての画素の画素値が置換されたか否かを判定する(ステップS307)。処理対象の画像のすべての画素の画素値が置換されたと判定される場合に(ステップS307肯定)、再配置処理を終了して解像度変換処理へ復帰する。一方、処理対象の画像のすべての画素の画素値が置換されたと判定されない場合に(ステップS307否定)、ステップS301へ移る。この次にステップS301が実行されるときは、再配置処理部106は、次の再配置対象の3×3の領域を選択することとなる。   Subsequently, the rearrangement processing unit 106 replaces the pixel value of the pixel whose pixel value has not been updated in step S304 and step S305 with 0 (step S306). Subsequently, the rearrangement processing unit 106 determines whether or not the pixel values of all the pixels of the processing target image have been replaced (step S307). When it is determined that the pixel values of all the pixels of the processing target image have been replaced (Yes in step S307), the rearrangement process is terminated and the process returns to the resolution conversion process. On the other hand, when it is not determined that the pixel values of all the pixels of the processing target image have been replaced (No at Step S307), the process proceeds to Step S301. Next, when step S301 is executed, the rearrangement processing unit 106 selects the next 3 × 3 area to be rearranged.

この再配置処理によって、従来の誤差拡散法に比べて画素のバラツキを抑え、原画像の網形状を極力保存し、平滑化処理および補完位置乱数決定解像度変換処理によって多く発生する階調(画像値)の中間値が、多値から二値への変換時に孤立画素となることを防止する。   This rearrangement process suppresses pixel variation compared to the conventional error diffusion method, preserves the net shape of the original image as much as possible, and generates gradations (image values) frequently generated by smoothing processing and complementary position random number determination resolution conversion processing. ) Is prevented from becoming an isolated pixel at the time of conversion from multivalue to binary.

次に、再配置処理前の原画像の画素値の分布が再配置処理によってどのように変化していくかについて説明する。図13は、再配置処理前の原画像の画素値の分布を示す図である。図14は、再配置処理過程および再配置処理後の画素値の分布を示す図である。   Next, how the distribution of pixel values of the original image before the rearrangement process changes due to the rearrangement process will be described. FIG. 13 is a diagram illustrating a distribution of pixel values of the original image before the rearrangement process. FIG. 14 is a diagram illustrating the rearrangement process and the distribution of pixel values after the rearrangement process.

図13(a0)は、再配置処理前の原画像の画素値の分布を示す。この原画像に対して再配置処理を施すと、図14において、(a1)→(a2)→(a3)→・・・→(an-2)→(an-1)→(an)のように画素値の分布が変遷していく。 FIG. 13 (a 0 ) shows the distribution of pixel values of the original image before the rearrangement process. When the rearrangement process is performed on the original image, in FIG. 14, (a 1 ) → (a 2 ) → (a 3 ) →... → (a n−2 ) → (a n−1 ) → The distribution of pixel values changes as in (a n ).

例えば、図14(a1)では、先ず、処理対象画像の左上の3×3の領域が処理対象の3×3の領域として選択され、この領域の画素の画素値“147”、“8”、“3”、“51”、“0”、“4”、“0”、“0”、“0”は、再配置処理によってそれぞれ“213”、“0”、“0”、“0”、“0”、“0”、“0”、“0”、“0”へと置換されている。ただし、画素値の表記順序は、図12に示した優先順位に従っている。以降も同様である。 For example, in FIG. 14A 1 , first, the 3 × 3 area at the upper left of the processing target image is selected as the 3 × 3 area to be processed, and the pixel values “147” and “8” of the pixels in this area are selected. , “3”, “51”, “0”, “4”, “0”, “0”, “0” are “213”, “0”, “0”, “0” by the relocation processing, respectively. , “0”, “0”, “0”, “0”, “0”. However, the display order of pixel values follows the priority order shown in FIG. The same applies thereafter.

この置換のプロセスは、次の通りである。すなわち、147+8+3+51+0+4+0+0+0=213であり、この213を画素値が取りうる最大値255で割ると、商は0、剰余は213である。このため、255で画素値を置換する画素はない。この領域で最大の画素値は147であるので、この147を213で置換する。残りの画素の画素値は、0で置換する。   This replacement process is as follows. In other words, 147 + 8 + 3 + 51 + 0 + 4 + 0 + 0 + 0 = 213. When 213 is divided by the maximum value 255 that the pixel value can take, the quotient is 0 and the remainder is 213. For this reason, there is no pixel whose pixel value is replaced with 255. Since the maximum pixel value in this region is 147, 147 is replaced with 213. The pixel values of the remaining pixels are replaced with 0.

次に、図14(a2)では、処理対象画像の左上の3×3の領域の一列だけ右となりの3×3の領域が処理対象の3×3の領域として選択され、この領域の画素の画素値“255”、“213”、“0”、“103”、“0”、“0”、“0”、“0”、“0”は、再配置処理によってそれぞれ“255”、“255”、“0”、“61”、“0”、“0”、“0”、“0”、“0”へと置換されている。 Next, in FIG. 14A 2 , a 3 × 3 area that is to the right of one column in the upper left 3 × 3 area of the processing target image is selected as a 3 × 3 area to be processed, and pixels in this area Pixel values “255”, “213”, “0”, “103”, “0”, “0”, “0”, “0”, “0” are respectively changed to “255”, “0” by the rearrangement process. Replaced by 255 ”,“ 0 ”,“ 61 ”,“ 0 ”,“ 0 ”,“ 0 ”,“ 0 ”,“ 0 ”.

この置換のプロセスは、次の通りである。すなわち、255+213+0+103+0+0+0+0+0=571であり、この571を画素値が取りうる最大値255で割ると、商は2、剰余は61である。このため、画素値が最も大きい画素値“255”および画素値“213”の画素の画素値を255で置換する。この領域でこれらの次に画素値が大きい画素は、画素値が“103”の画素であるので、この103を61で置換する。残りの画素の画素値は、0で置換する。   This replacement process is as follows. In other words, 255 + 213 + 0 + 103 + 0 + 0 + 0 + 0 + 0 = 571. When this 571 is divided by the maximum value 255 that the pixel value can take, the quotient is 2 and the remainder is 61. Therefore, the pixel value of the pixel value “255” and the pixel value “213” having the largest pixel value is replaced with 255. Since the pixel having the next largest pixel value in this area is the pixel having the pixel value “103”, 103 is replaced with 61. The pixel values of the remaining pixels are replaced with 0.

同様の処理を、処理対象の3×3の領域を一列ずつ左および下へずらすことによって、最終的に、図14(an)に示すように、すべての画素の画素値が置換され、画素の拡散が抑止され、画素値が集約された状態へと至る。この画素の拡散が抑止された状態は、従来の誤差拡散法によるモアレ低減の処理に比べ、画素の拡散を防止し、網点形状を保持するため、モアレの少ない高品質の出力画像を得ることが可能となる。 The same processing, by shifting the 3 × 3 area of the processing target to the left and down one by one row, and finally, as shown in FIG. 14 (a n), the pixel values of all the pixels is replaced, pixel Diffusion is suppressed, and the pixel values are aggregated. In this state where pixel diffusion is suppressed, compared to the conventional moiré reduction processing by error diffusion method, pixel diffusion is prevented and the halftone dot shape is maintained, so that a high-quality output image with less moiré can be obtained. Is possible.

なお、図15−1〜図15−5を参照して、以上実施例で示した解像度変換処理による原画像の処理結果の概要を示す。図15−1は、実施例の解像度変換処理前の原画像の概要を示す図である。図15−2は、多値変換処理後の画像の概要を示す図である。図15−3は、平滑化処理後の画像の概要を示す図である。図15−4は、補完位置乱数決定解像度変化変換処理後の画像の概要を示す図である。図15−5は、再配置処理後の画像の概要を示す図である。   In addition, with reference to FIG. 15-1 to FIG. 15-5, the outline of the processing result of the original image by the resolution conversion process shown in the above embodiment is shown. FIG. 15A is a diagram illustrating an outline of an original image before resolution conversion processing according to the embodiment. FIG. 15B is a diagram illustrating an outline of the image after the multi-value conversion process. FIG. 15C is a diagram illustrating an outline of the image after the smoothing process. FIG. 15D is a diagram illustrating an outline of the image after the complementary position random number determination resolution change conversion process. FIG. 15-5 is a diagram illustrating an outline of the image after the rearrangement process.

図15−1に示す現画像の多値変換処理後の画像では、図15−2に示すように、画素の画素値の分布に規則性が残ってモアレが発生している。さらに、この図15−2に示す多値変換処理後の画像に対して平滑化処理を施すと、図15−3に示すように、「ぼかし」によって、画素値の変化の鋭い「エッジ」が低減される。さらにこの図15−3に示す平滑化処理後の画像に対して補完位置乱数決定解像度変換処理を施すと、図15−4に示すように、網点形状の規則性が低減され、モアレが低減される。   In the image after the multi-value conversion processing of the current image shown in FIG. 15A, as shown in FIG. 15B, regularity remains in the pixel value distribution of the pixels, and moire occurs. Further, when smoothing processing is performed on the image after the multi-value conversion processing shown in FIG. 15-2, as shown in FIG. 15-3, “edges” with sharp pixel value changes are caused by “blurring”. Reduced. Further, when the complementary position random number determination resolution conversion process is performed on the smoothed image shown in FIG. 15-3, the regularity of the halftone dot shape is reduced and the moire is reduced as shown in FIG. 15-4. Is done.

しかしこのままでは、網点形状が崩れ、多値から二値へ変換の際に誤差が発生し、孤立画素が多く発生し、画像のノイズとなる。そこで、この図15−4の補完位置乱数決定解像度変換処理後の画像に対して再配置処理を施すと、図15−5に示すように、多値から二値への変換の際に発生する誤差をより画素値が高い画素へと集約し、該誤差の発生を低減することが可能となる。このようにして、高品位の画像出力が得られることとなる。   However, in this state, the halftone dot shape is lost, an error occurs when converting from multi-value to binary, and many isolated pixels are generated, resulting in image noise. Therefore, when the rearrangement process is performed on the image after the complementary position random number determination resolution conversion process of FIG. 15-4, as shown in FIG. 15-5, it occurs at the time of conversion from multivalue to binary. It is possible to aggregate errors into pixels with higher pixel values and reduce the occurrence of the errors. In this way, a high-quality image output can be obtained.

従来方法によれば、第1の特定解像度から第2の特定解像度への固定した解像度の組み合わせによる解像度変換における出力画質の画質保証をおこなうのみであったが、上記実施例によれば、さまざまな組み合わせの解像度間における解像度変換においても、出力画質の画質保証が可能となる。   According to the conventional method, only the image quality of the output image quality is ensured in the resolution conversion by the combination of the fixed resolutions from the first specific resolution to the second specific resolution. In the resolution conversion between the combined resolutions, the image quality of the output image quality can be guaranteed.

以上、本発明の実施例を説明したが、本発明は、これに限られるものではなく、特許請求の範囲に記載した技術的思想の範囲内で、更に種々の異なる実施例で実施されてもよいものである。また、実施例に記載した効果は、これに限定されるものではない。   As mentioned above, although the Example of this invention was described, this invention is not limited to this, In the range of the technical idea described in the claim, even if it implements in a various different Example, it is. It ’s good. Moreover, the effect described in the Example is not limited to this.

また、上記実施例において説明した各処理のうち、自動的におこなわれるものとして説明した処理の全部または一部を手動的におこなうこともでき、あるいは、手動的におこなわれるものとして説明した処理の全部または一部を公知の方法で自動的におこなうこともできる。この他、上記実施例で示した処理手順、制御手順、具体的名称、各種のデータやパラメータを含む情報については、特記する場合を除いて任意に変更することができる。   In addition, among the processes described in the above embodiment, all or part of the processes described as being automatically performed can be manually performed, or the processes described as being manually performed can be performed. All or a part can be automatically performed by a known method. In addition, the processing procedure, control procedure, specific name, information including various data and parameters shown in the above embodiment can be arbitrarily changed unless otherwise specified.

また、図示した各装置の各構成要素は機能概念的なものであり、必ずしも物理的に図示のように構成されていることを要しない。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。   Each component of each illustrated device is functionally conceptual and does not necessarily need to be physically configured as illustrated. In other words, the specific form of distribution / integration of each device is not limited to that shown in the figure, and all or a part thereof may be functionally or physically distributed or arbitrarily distributed in arbitrary units according to various loads or usage conditions. Can be integrated and configured.

さらに、各装置にて行なわれる各処理機能は、その全部または任意の一部が、CPU(Central Processing Unit)(またはMPU(Micro Processing Unit)、MCU(Micro Controller Unit)などのマイクロ・コンピュータ)および当該CPU(またはMPU、MCUなどのマイクロ・コンピュータ)にて解析実行されるプログラムにて実現され、あるいは、ワイヤードロジックによるハードウェアとして実現されてもよい。   Furthermore, each or all of the processing functions performed in each device are entirely or partially a CPU (Central Processing Unit) (or a microcomputer such as an MPU (Micro Processing Unit) or MCU (Micro Controller Unit)) and It may be realized by a program that is analyzed and executed by the CPU (or a microcomputer such as MPU or MCU), or may be realized as hardware by wired logic.

本発明は、画像出力システムにおいて、画像イメージの展開解像度から各出力装置の出力解像度へ解像度変換をおこなっても、画像のモアレが低減され、かつ多値段階での規則性をなくしつつ網点形状を保持し、各種解像度を有するそれぞれの出力装置で高品質の画像を出力したい場合に有用であり、特に、画像を含む新聞の制作システムにおいて、さまざまな解像度を有する印刷機において、解像度変換を経ても高品位の画像印刷出力を得たい場合に効果的である。   In the image output system, even if the resolution conversion is performed from the developed resolution of the image image to the output resolution of each output device, the moire of the image is reduced, and the dot shape is eliminated while eliminating the regularity at the multi-value stage. This is useful when you want to output high-quality images with each output device that has various resolutions, especially in newspaper production systems that include images, in a printer with various resolutions, through resolution conversion This is effective when it is desired to obtain a high-quality image print output.

図1は、実施例の概要を説明するための図である。FIG. 1 is a diagram for explaining the outline of the embodiment. 図2は、モアレを説明するための図である。FIG. 2 is a diagram for explaining moire. 図3は、実施例にかかる解像度変換装置の構成を示す機能ブロック図である。FIG. 3 is a functional block diagram illustrating the configuration of the resolution conversion apparatus according to the embodiment. 図4は、解像度変換処理手順を示すフローチャートである。FIG. 4 is a flowchart showing the resolution conversion processing procedure. 図5は、二値多値変換処理の概要を説明するための図である。FIG. 5 is a diagram for explaining the outline of the binary multi-value conversion process. 図6は、平滑化処理手順を示すフローチャートである。FIG. 6 is a flowchart showing the smoothing processing procedure. 図7は、平滑化処理対象の画像を説明するための図である。FIG. 7 is a diagram for explaining an image to be smoothed. 図8は、平滑化処理の概要を説明するための図である。FIG. 8 is a diagram for explaining an outline of the smoothing process. 図9は、補完位置乱数決定解像度変換処理手順を示すフローチャートである。FIG. 9 is a flowchart showing a complementary position random number determination resolution conversion processing procedure. 図10−1は、距離平均に基づいて算出される補完位置Pについて説明するための図である。FIG. 10A is a diagram for explaining the complementary position P calculated based on the average distance. 図10−2は、補完位置Pをランダムに移動させた移動後位置P´について説明するための図である。FIG. 10-2 is a diagram for explaining a post-movement position P ′ obtained by randomly moving the complementary position P. 図10−3は、移動後補完位置P´の画素値の算出の概要を説明するための図である。FIG. 10C is a diagram for explaining the outline of the calculation of the pixel value at the post-movement complementary position P ′. 図11は、再配置処理手順を示すフローチャートである。FIG. 11 is a flowchart showing the rearrangement processing procedure. 図12は、再配置処理の処理対象の画素範囲における画素の優先順位を示す図である。FIG. 12 is a diagram illustrating the priority order of pixels in a pixel range to be processed in the rearrangement process. 図13は、再配置処理前の原画像の画素値の分布を示す図である。FIG. 13 is a diagram illustrating a distribution of pixel values of the original image before the rearrangement process. 図14は、再配置処理過程および再配置処理後の画素値の分布を示す図である。FIG. 14 is a diagram illustrating the rearrangement process and the distribution of pixel values after the rearrangement process. 図15−1は、実施例の解像度変換処理前の原画像の概要を示す図である。FIG. 15A is a diagram illustrating an outline of an original image before resolution conversion processing according to the embodiment. 図15−2は、多値変換処理後の画像の概要を示す図である。FIG. 15B is a diagram illustrating an outline of the image after the multi-value conversion process. 図15−3は、平滑化処理後の画像の概要を示す図である。FIG. 15C is a diagram illustrating an outline of the image after the smoothing process. 図15−4は、補完位置乱数決定解像度変化処理後の画像の概要を示す図である。FIG. 15D is a diagram illustrating an outline of the image after the complementary position random number determination resolution change process. 図15−5は、再配置処理後の画像の概要を示す図である。FIG. 15-5 is a diagram illustrating an outline of the image after the rearrangement process.

100 解像度変換装置
101 二値網点画像データ入力部
102 記憶部
103 二値多値変換処理部
104 平滑化処理部
105 補完位置乱数決定解像度変換処理部
106 再配置処理部
107 二値網点画像データ出力部
DESCRIPTION OF SYMBOLS 100 Resolution converter 101 Binary halftone dot image data input part 102 Storage part 103 Binary multi-value conversion processing part 104 Smoothing process part 105 Complementary position random number determination Resolution conversion process part 106 Relocation processing part 107 Binary halftone dot image data Output section

Claims (5)

画素ごとに画素値が対応付けられた画像データをメモリ展開して記憶するための記憶手段を備えたコンピュータ装置において、入力された二値網点画像データの解像度を出力装置の解像度へと変換する解像度変換を該コンピュータ装置に実行させる解像度変換プログラムであって、
前記二値網点画像データを多値画像データへと変換して前記記憶手段に記憶させる多値変換手順と、
前記多値変換手順により変換された多値画像データの解像度変換のための補完画素の補完位置を、該多値画像データにおいて一定条件のもとにランダムに決定する補完画素位置決定手順と、
前記補完画素位置決定手順により決定された補完画素の画素値を、前記多値画像データにおける該補完画素の補完位置の所定近傍の画素の画素値に基づいて決定して前記記憶手段に記憶される前記多値画像データを更新する補完画素値決定手順と、
前記補完画素値決定手順により更新された前記多値画像データのうちの処理対象の画素範囲を決定する画素範囲決定手順と、
前記画素範囲決定手順により決定された処理対象の画素範囲の画素の画素値を合計して合計値を算出する画素値合計手順と、
前記画素値合計手順により算出された合計値を、前記画素値が取りうる最大値で除算して商および剰余を算出する除算手順と、
前記処理対象の画素範囲に属する画素値が大きい画素から前記商の数に相当する分だけの画素の画素値を前記最大値で置換し、画素値が前記最大値に置換された画素の次に画素値が大きい画素の画素値を前記剰余で置換したのち、画素値が未だ置換されていない画素の画素値を0で置換する画素値置換手順と、
前記画素値置換手順によりすべての画素の画素値が置換された前記多値画像データを前記出力装置へ出力するための二値網点画像データへと変換して前記記憶手段に記憶させる二値変換手順と
を前記コンピュータ装置に実行させることを特徴とする解像度変換プログラム。
In a computer apparatus having storage means for storing and storing image data in which pixel values are associated with each pixel in a memory, the resolution of the input binary halftone image data is converted into the resolution of the output apparatus. A resolution conversion program for causing the computer device to perform resolution conversion,
A multi-value conversion procedure for converting the binary halftone dot image data into multi-value image data and storing it in the storage means;
A complementary pixel position determination procedure for randomly determining a complementary pixel complementary position for resolution conversion of the multi-value image data converted by the multi-value conversion procedure under a certain condition in the multi-value image data;
The pixel value of the complementary pixel determined by the complementary pixel position determination procedure is determined based on the pixel value of a pixel in the vicinity of the complementary position of the complementary pixel in the multivalued image data and stored in the storage unit. A complementary pixel value determination procedure for updating the multi-value image data;
A pixel range determination procedure for determining a pixel range to be processed in the multi-valued image data updated by the complementary pixel value determination procedure ;
A pixel value total procedure for calculating the total value by summing the pixel values of the pixels in the pixel range to be processed determined by the pixel range determination procedure;
A division procedure for calculating the quotient and the remainder by dividing the total value calculated by the pixel value summation procedure by the maximum value that can be taken by the pixel value;
The pixel value of a pixel corresponding to the number of quotients from a pixel having a large pixel value belonging to the pixel range to be processed is replaced with the maximum value, and the pixel value is replaced with the maximum value. A pixel value replacement procedure for replacing a pixel value of a pixel having a large pixel value with the remainder and then replacing a pixel value of a pixel whose pixel value has not yet been replaced with 0;
Binary conversion in which the multivalued image data in which the pixel values of all pixels are replaced by the pixel value replacement procedure is converted into binary halftone dot image data for output to the output device and stored in the storage means A resolution conversion program that causes the computer apparatus to execute a procedure.
前記多値変換手順により変換された多値画像データにおいて、画素値が周辺画素より高い画素の画素値を該周辺画素へ配分して画素値を分散する画素値分散手順を前記コンピュータ装置にさらに実行させ、
前記画素値分散手順は、前記多値変換手順により変換された多値画像データの画素値が周辺画素より高い画素の画素値を該周辺画素へ配分して画素値を分散させ、
前記補完画素位置決定手順は、前記画素値分散手順により画素値が分散された多値画像データの補完画素の補完位置を、一定条件のもとにランダムに決定することを特徴とする請求項に記載の解像度変換プログラム。
In the multi-value image data converted by the multi-value conversion procedure, the computer device further executes a pixel value distribution procedure for distributing pixel values by distributing pixel values of pixels having pixel values higher than the peripheral pixels to the peripheral pixels. Let
The pixel value distribution procedure distributes pixel values by distributing pixel values of pixels whose pixel values of the multi-value image data converted by the multi-value conversion procedure are higher than the peripheral pixels to the peripheral pixels,
Said complementary pixel position determination procedure, according to claim 1, wherein the determining the complementary position of the complementary pixels of the multivalued image data in which the pixel values are distributed by the pixel value variance procedure, randomly under certain conditions Resolution conversion program described in 1.
前記多値変換手順により変換された多値画像データにおいて、画素値が周辺画素より高い画素の画素値を該周辺画素へ配分して画素値を分散する画素値分散手順を前記コンピュータ装置にさらに実行させ、
前記画素値分散手順は、前記補完画素値決定手順により前記補完画素の画素値が決定された多値画像データの画素値が周辺画素より高い画素の画素値を該周辺画素へ配分して画素値を分散させ、
前記二値変換手順は、前記画素値分散手順により画素値が分散された多値画像データを前記出力装置へ出力するための二値網点画像データへと変換して前記記憶手段に記憶させることを特徴とする請求項に記載の解像度変換プログラム。
In the multi-value image data converted by the multi-value conversion procedure, the computer device further executes a pixel value distribution procedure for distributing pixel values by distributing pixel values of pixels having pixel values higher than the peripheral pixels to the peripheral pixels. Let
The pixel value distribution procedure distributes pixel values of pixels whose pixel values of the multivalued image data whose pixel values of the complementary pixels are determined by the complementary pixel value determination procedure to higher than the peripheral pixels are distributed to the peripheral pixels. Distribute
In the binary conversion procedure, the multivalued image data in which pixel values are dispersed by the pixel value dispersion procedure is converted into binary halftone dot image data for output to the output device and stored in the storage means. The resolution conversion program according to claim 1 .
画素ごとに画素値が対応付けられた画像データをメモリ展開して記憶するための記憶手段を備えたコンピュータ装置において、入力された二値網点画像データの解像度を出力装置の解像度へと変換する解像度変換方法であって、
前記二値網点画像データを多値画像データへと変換して前記記憶手段に記憶させる多値変換工程と、
前記多値変換工程により変換された多値画像データの解像度変換のための補完画素の補完位置を、該多値画像データにおいて一定条件のもとにランダムに決定する補完画素位置決定工程と、
前記補完画素位置決定工程により決定された補完画素の画素値を、前記多値画像データにおける該補完画素の補完位置の所定近傍の画素の画素値に基づいて決定して前記記憶手段に記憶される前記多値画像データを更新する補完画素値決定工程と、
前記補完画素値決定工程により更新された前記多値画像データのうちの処理対象の画素範囲を決定する画素範囲決定工程と、
前記画素範囲決定工程により決定された処理対象の画素範囲の画素の画素値を合計して合計値を算出する画素値合計工程と、
前記画素値合計工程により算出された合計値を、前記画素値が取りうる最大値で除算して商および剰余を算出する除算工程と、
前記処理対象の画素範囲に属する画素値が大きい画素から前記商の数に相当する分だけの画素の画素値を前記最大値で置換し、画素値が前記最大値に置換された画素の次に画素値が大きい画素の画素値を前記剰余で置換したのち、画素値が未だ置換されていない画素の画素値を0で置換する画素値置換工程と
前記画素値置換工程によりすべての画素の画素値が置換された前記多値画像データを前記出力装置へ出力するための二値網点画像データへと変換して前記記憶手段に記憶させる二値変換工程と
を含んだことを特徴とする解像度変換方法。
In a computer apparatus having storage means for storing and storing image data in which pixel values are associated with each pixel in a memory, the resolution of the input binary halftone image data is converted into the resolution of the output apparatus. A resolution conversion method,
A multi-value conversion step of converting the binary halftone dot image data into multi-value image data and storing it in the storage means;
A complementary pixel position determination step of randomly determining a complementary position of a complementary pixel for resolution conversion of the multi-value image data converted by the multi-value conversion step under a certain condition in the multi-value image data;
The pixel value of the complementary pixel determined in the complementary pixel position determining step is determined based on the pixel value of a pixel in the vicinity of the complementary position of the complementary pixel in the multivalued image data and stored in the storage unit. A complementary pixel value determining step for updating the multi-valued image data;
A pixel range determination step for determining a pixel range to be processed in the multi-valued image data updated by the complementary pixel value determination step ;
A pixel value totaling step of calculating a total value by summing pixel values of pixels in the pixel range to be processed determined by the pixel range determination step;
A division step of calculating a quotient and a remainder by dividing the total value calculated by the pixel value totaling step by a maximum value that can be taken by the pixel value;
The pixel value of a pixel corresponding to the number of quotients from a pixel having a large pixel value belonging to the pixel range to be processed is replaced with the maximum value, and the pixel value is replaced with the maximum value. A pixel value replacement step of replacing a pixel value of a pixel having a large pixel value with the remainder and then replacing a pixel value of a pixel whose pixel value has not yet been replaced with 0
Binary conversion in which the multivalued image data in which the pixel values of all the pixels have been replaced in the pixel value replacing step is converted into binary halftone dot image data for output to the output device and stored in the storage means A resolution conversion method comprising the steps of:
画素ごとに画素値が対応付けられた画像データをメモリ展開して記憶するための記憶手段を備え、入力された二値網点画像データの解像度を出力装置の解像度へと変換する解像度変換装置であって、
前記二値網点画像データを多値画像データへと変換して前記記憶手段に記憶させる多値変換手段と、
前記多値変換手段により変換された多値画像データの解像度変換のための補完画素の補完位置を、該多値画像データにおいて一定条件のもとにランダムに決定する補完画素位置決定手段と、
前記補完画素位置決定手段により決定された補完画素の画素値を、前記多値画像データにおける該補完画素の補完位置の所定近傍の画素の画素値に基づいて決定して前記記憶手段に記憶される前記多値画像データを更新する補完画素値決定手段と、
前記補完画素値決定手段により更新された前記多値画像データのうちの処理対象の画素範囲を決定する画素範囲決定手段と、
前記画素範囲決定手段により決定された処理対象の画素範囲の画素の画素値を合計して合計値を算出する画素値合計手段と、
前記画素値合計手段により算出された合計値を、前記画素値が取りうる最大値で除算して商および剰余を算出する除算手段と、
前記処理対象の画素範囲に属する画素値が大きい画素から前記商の数に相当する分だけの画素の画素値を前記最大値で置換し、画素値が前記最大値に置換された画素の次に画素値が大きい画素の画素値を前記剰余で置換したのち、画素値が未だ置換されていない画素の画素値を0で置換する画素値置換手段と、
前記画素値置換手段によりすべての画素の画素値が置換された前記多値画像データを前記出力装置へ出力するための二値網点画像データへと変換して前記記憶手段に記憶させる二値変換手段と
を有することを特徴とする解像度変換装置。
A resolution conversion device comprising storage means for storing and storing image data in which pixel values are associated with each pixel in a memory, and converting the resolution of the input binary halftone image data into the resolution of the output device There,
Multi-value conversion means for converting the binary halftone dot image data into multi-value image data and storing it in the storage means;
Complementary pixel position determining means for randomly determining a complementary pixel complementary position for resolution conversion of the multi-valued image data converted by the multi-valued converting means under a predetermined condition in the multi-valued image data;
The pixel value of the complementary pixel determined by the complementary pixel position determining unit is determined based on the pixel value of a pixel in the vicinity of the complementary position of the complementary pixel in the multi-value image data and stored in the storage unit. Complementary pixel value determining means for updating the multi-valued image data;
Pixel range determining means for determining a pixel range to be processed in the multi-valued image data updated by the complementary pixel value determining means ;
Pixel value summing means for summing pixel values of pixels in the pixel range to be processed determined by the pixel range determining means, and calculating a total value;
Dividing means for calculating the quotient and the remainder by dividing the total value calculated by the pixel value summing means by the maximum value that can be taken by the pixel value;
The pixel value of a pixel corresponding to the number of quotients from a pixel having a large pixel value belonging to the pixel range to be processed is replaced with the maximum value, and the pixel value is replaced with the maximum value. A pixel value replacement unit that replaces a pixel value of a pixel having a large pixel value with the remainder and then replaces a pixel value of a pixel whose pixel value has not yet been replaced with 0;
Binary conversion in which the multivalued image data in which the pixel values of all the pixels are replaced by the pixel value replacement means is converted into binary halftone dot image data for output to the output device and stored in the storage means And a resolution conversion apparatus.
JP2009507328A 2007-03-28 2007-03-28 Resolution conversion program, resolution conversion method, and resolution conversion apparatus Active JP5018878B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2007/056724 WO2008120336A1 (en) 2007-03-28 2007-03-28 Resolution conversion program, resolution conversion method, and resolution conversion apparatus

Publications (2)

Publication Number Publication Date
JPWO2008120336A1 JPWO2008120336A1 (en) 2010-07-15
JP5018878B2 true JP5018878B2 (en) 2012-09-05

Family

ID=39807929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009507328A Active JP5018878B2 (en) 2007-03-28 2007-03-28 Resolution conversion program, resolution conversion method, and resolution conversion apparatus

Country Status (2)

Country Link
JP (1) JP5018878B2 (en)
WO (1) WO2008120336A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003179749A (en) * 2001-12-11 2003-06-27 Fujitsu Ltd Data converting method
JP2007035025A (en) * 2005-06-23 2007-02-08 Canon Inc Image conversion apparatus, method thereof, program and computer-readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4409883B2 (en) * 2003-08-22 2010-02-03 株式会社東芝 Image printing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003179749A (en) * 2001-12-11 2003-06-27 Fujitsu Ltd Data converting method
JP2007035025A (en) * 2005-06-23 2007-02-08 Canon Inc Image conversion apparatus, method thereof, program and computer-readable storage medium

Also Published As

Publication number Publication date
WO2008120336A1 (en) 2008-10-09
JPWO2008120336A1 (en) 2010-07-15

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
JP3921678B2 (en) Image processing method and apparatus
JP5230816B2 (en) Program, image processing apparatus, and image processing method
JP5825306B2 (en) Image scaling apparatus and image scaling method
US20060215186A1 (en) Method and system for scaling with dot gain control
JP2012070269A (en) Image processing apparatus and image processing method
JP5018878B2 (en) Resolution conversion program, resolution conversion method, and resolution conversion apparatus
US6628427B1 (en) Method and apparatus for image processing which improves performance of gray scale image transformation
JP3092769B2 (en) Image processing device
JP4108517B2 (en) Halftoning processing method and halftoning processing system
JP4241441B2 (en) Image processing apparatus, image processing method, and image processing program
JP2001285634A (en) Image processing apparatus
JP4459837B2 (en) Image processing apparatus, image processing method, program for causing computer to execute the method, and recording medium
JP3581460B2 (en) Image processing method and apparatus
JP6651776B2 (en) Image processing apparatus, image processing method, and program
EP2894841B1 (en) Information processing apparatus, information processing method, and storage medium
JP7250508B2 (en) Image processing device, image processing method, and program
JP4589887B2 (en) Image processing device
JP5297347B2 (en) Pixel number conversion method, program for executing the same, and pixel number conversion apparatus
JP2011120027A (en) Image processor and processing method
JP3714820B2 (en) Image processing method
JP4412213B2 (en) Image processing apparatus, image processing method, and program
JP2024019937A (en) Program, image processing apparatus, and image processing method
JP4262148B2 (en) Image processing apparatus and image processing method
JP2004320374A (en) Image processor, image processing method, printer, printing method, and program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110712

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110909

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120131

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120420

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20120427

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 5018878

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

Year of fee payment: 3