JP2012165245A - Image processing apparatus, image forming apparatus and program - Google Patents

Image processing apparatus, image forming apparatus and program Download PDF

Info

Publication number
JP2012165245A
JP2012165245A JP2011024967A JP2011024967A JP2012165245A JP 2012165245 A JP2012165245 A JP 2012165245A JP 2011024967 A JP2011024967 A JP 2011024967A JP 2011024967 A JP2011024967 A JP 2011024967A JP 2012165245 A JP2012165245 A JP 2012165245A
Authority
JP
Japan
Prior art keywords
image
pixel
value
pixels
target pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011024967A
Other languages
Japanese (ja)
Other versions
JP5699655B2 (en
Inventor
Kiyoshi Une
清 宇根
Koji Yorimoto
浩二 寄本
Yasuo Komatsu
康男 小松
Takumi Nishigata
拓未 西潟
Nagamasa Misu
長政 三須
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2011024967A priority Critical patent/JP5699655B2/en
Publication of JP2012165245A publication Critical patent/JP2012165245A/en
Application granted granted Critical
Publication of JP5699655B2 publication Critical patent/JP5699655B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color, Gradation (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing apparatus, image forming apparatus and program which reduce the loss of image quality caused by the processing for suppressing the white spots resulting from misregistration for an image where a plurality of colors are mixed.SOLUTION: A mixed color image 30C obtained by binarizing a mixed color image 30A is converted into a mixed color image 30D by multivaluing the pixels to be multivalued so that the density thereof exceeds a predetermined threshold when K pixels continue in the X direction for K pixels to be multivalued, otherwise multivaluing the pixels to be multivalued so that the density thereof is less than the predetermined threshold.

Description

本発明は、画像処理装置、画像形成装置、及びプログラムに関する。   The present invention relates to an image processing apparatus, an image forming apparatus, and a program.

特許文献1には、黒色を含む複数の色で表現された画像データを入力する入力手段と、画像データにおける黒色領域を検出する黒色領域検出手段と、黒色領域における黒色の濃度に応じて、黒色領域に出力する黒色以外の色材の量を決定する色材量決定手段と、黒色領域のエッジ部を検出するエッジ部検出手段と、エッジ部の周辺における色に応じた量の黒色以外の色材を、エッジ部に追加して出力すると共に、エッジ部以外の黒色領域に対して、黒色領域における黒色の濃度に応じた量の黒色の色材を出力すると共に、黒色以外の色材を、画像データの内容に拘わらず色材量決定手段によって決定された量出力する出力手段と、を備えた画像処理装置が開示されている。   Japanese Patent Application Laid-Open No. 2004-133830 discloses an input unit that inputs image data expressed in a plurality of colors including black, a black region detection unit that detects a black region in the image data, and a black color according to the black density in the black region. Color material amount determining means for determining the amount of color material other than black to be output to the area, edge part detecting means for detecting the edge part of the black area, and color other than black in an amount corresponding to the color around the edge part In addition to outputting the material in addition to the edge portion, for the black region other than the edge portion, the black color material in an amount corresponding to the black density in the black region is output, and the color material other than black is output. An image processing apparatus is disclosed that includes output means for outputting the amount determined by the color material amount determination means regardless of the content of the image data.

特許文献2には、複数の基本色を用いてカラーの画像を形成する画像形成装置における画像処理方法であって、画像に含まれるオブジェクトの隣接領域の色データを取得する第1のステップと、オブジェクトの境界付近における不自然さを低減するためにオブジェクトに対して行う処理として、取得した色データに基づいてトラッピングまたはオーバープリントの何れかを選択する第2のステップと、第2のステップにおいて選択された処理を実行する第3のステップと、を有する画像処理方法が開示されている。   Patent Document 2 discloses an image processing method in an image forming apparatus that forms a color image using a plurality of basic colors, the first step of acquiring color data of an adjacent region of an object included in the image, A second step of selecting either trapping or overprinting based on the acquired color data as processing to be performed on the object in order to reduce unnaturalness in the vicinity of the object boundary, and selection in the second step A third step of executing the processed processing is disclosed.

特許第3852234号Japanese Patent No. 3852234 特開2007−245657号公報JP 2007-245657 A

本発明の課題は、本発明の変換手段及び置換手段を有しない場合に比べ、複数の原色が混在した画像に対してレジずれが原因で発生する白抜けを抑制するための加工を施すことによって生じる画質の低下を軽減する画像処理装置、画像形成装置、及びプログラムを提供することである。   An object of the present invention is to perform processing for suppressing white spots caused by misregistration on an image in which a plurality of primary colors are mixed as compared with the case where the conversion unit and the replacement unit of the present invention are not provided. An object is to provide an image processing apparatus, an image forming apparatus, and a program for reducing the deterioration in image quality that occurs.

上記目的を達成するために、請求項1に記載の画像処理装置を、複数の原色が混在した混色画像を2値で示した2値化画像において、特定の原色の多値化対象画素に対して予め定められた方向に該特定の原色の画素が連続している場合、該多値化対象画素の濃度が予め定められた閾値以上となるように該多値化対象画素を多値化し、該多値化対象画素に対して該方向に該特定の原色の画素が連続していない場合、該多値化対象画素の濃度が該閾値未満となるように該多値化対象画素を多値化することにより該2値化画像を多値化画像に変換する変換手段と、前記変換手段によって変換されて得られた多値化画像において、前記閾値以上の濃度を有する前記特定の原色の画素のうちの注目画素を含む予め定められた領域に該注目画素とは異なる原色の画素が含まれる場合、該注目画素を該領域に含まれる各画素の原色が混在した画素に置き換える置換手段と、を含めて構成した。   In order to achieve the above-described object, the image processing apparatus according to claim 1, for a binarized image in which a mixed color image in which a plurality of primary colors are mixed is represented in binary, for a multi-value quantization target pixel of a specific primary color If the pixel of the specific primary color is continuous in a predetermined direction, the multi-value quantization target pixel is multi-valued so that the density of the multi-value quantization target pixel is equal to or higher than a predetermined threshold value. When the pixel of the specific primary color is not continuous in the direction with respect to the multi-value quantization target pixel, the multi-value quantization target pixel is multi-valued so that the density of the multi-value quantization target pixel is less than the threshold value. Conversion means for converting the binarized image into a multi-valued image by converting to a pixel value of the specific primary color having a density equal to or higher than the threshold in the multi-valued image obtained by conversion by the conversion means Is different from the target pixel in a predetermined region including the target pixel If it contains color pixels were constructed, including a replacement means for replacing the pixel colors of each pixel are mixed contained the target pixel to the area, the.

請求項2に記載の画像処理装置を、請求項1に記載の発明において、前記置換手段によって前記注目画素が置き換えられて得られた前記多値化画像を2値化する2値化手段を更に含むものとしてもよい。   The image processing apparatus according to claim 2, further comprising: binarizing means for binarizing the multi-valued image obtained by replacing the target pixel by the replacing means in the invention according to claim 1. It may be included.

請求項3に記載の画像処理装置を、請求項1または請求項2に記載の発明において、前記変換手段が、前記多値化対象画素を始点として前記方向に連続する前記特定の原色の画素に対して互いに異なる重み値を付与する重み値付与手段を有し、該重み値付与手段によって付与された重み値を加算して得た総計値を前記多値化対象画素の濃度に相当する値として適用することにより前記2値化画像を前記多値化画像に変換するものとしてもよい。   The image processing apparatus according to claim 3, wherein, in the invention according to claim 1 or claim 2, the conversion unit applies the pixel of the specific primary color that continues in the direction from the multi-value quantization target pixel. A weight value giving means for giving different weight values to each other, and a total value obtained by adding the weight values given by the weight value giving means as a value corresponding to the density of the multi-value quantization target pixel By applying this, the binarized image may be converted into the multi-valued image.

請求項4に記載の画像処理装置を、請求項3に記載の発明において、前記重み値付与手段は、更に、前記多値化対象画素を始点として前記方向に対して交差する方向に連続する前記特定の原色の画素に対して互いに異なる重み値を付与し、前記変換手段が、前記重み値付与手段によって前記方向に連続する画素に対して付与された重み値を加算して得た総計値及び前記重み値付与手段によって前記交差する方向に連続する前記特定の原色の画素に対して付与された重み値を加算して得た総計値のうちの予め定められた条件を満足した方を前記多値化対象画素の濃度に相当する値として適用することにより前記2値化画像を前記多値化画像に変換するものとしてもよい。   The image processing apparatus according to claim 4, wherein the weight value assigning unit is further continued in a direction intersecting the direction starting from the multi-value quantization target pixel. A weight value different from each other is given to a pixel of a specific primary color, and the conversion means adds a weight value given to pixels continuous in the direction by the weight value giving means, and a total value obtained by adding The one that satisfies a predetermined condition among the total values obtained by adding the weight values assigned to the pixels of the specific primary color that are continuous in the intersecting direction by the weight value assigning means. The binarized image may be converted into the multi-valued image by applying as a value corresponding to the density of the pixel to be binarized.

請求項5に記載の画像処理装置を、請求項3に記載の発明において、前記重み値付与手段が、更に、前記多値化対象画素を始点として前記方向に対して交差する方向に連続する前記特定の原色の画素に対して互いに異なる重み値を付与し、前記重み値付与手段によって前記方向に連続する画素に対して付与された重み値を加算して得た総計値と前記重み値付与手段によって前記交差する方向に連続する前記特定の原色の画素に対して付与された重み値を加算して得た総計値との何れかを前記多値化対象画素の濃度に相当する値として指定する指定手段を更に含み、前記変換手段が、前記指定手段によって指定された総計値を前記多値化対象画素の濃度に相当する値として適用することにより前記2値化画像を前記多値化画像に変換するものとしてもよい。   The image processing apparatus according to claim 5, wherein the weight value assigning unit further continues in a direction intersecting the direction starting from the multi-value quantization target pixel. A total value obtained by adding different weight values to pixels of a specific primary color and adding the weight values given to the pixels continuous in the direction by the weight value giving means and the weight value giving means The total value obtained by adding the weight values given to the pixels of the specific primary color that are continuous in the intersecting direction is designated as a value corresponding to the density of the multilevel pixel. Further comprising a designation unit, wherein the conversion unit applies the total value designated by the designation unit as a value corresponding to the density of the multi-valued pixel, thereby converting the binarized image into the multi-valued image. What to convert It may be.

請求項6に記載の画像処理装置を、請求項3〜請求項5の何れか1項に記載の発明において、入力された指示に応じて前記閾値を変更する変更手段を更に含み、前記重み値付与手段が画素に対して付与する重み値を、前記変更手段によって変更された前記閾値に対して予め定められた重み値としたものとしてもよい。   The image processing apparatus according to claim 6, further comprising changing means for changing the threshold value according to an input instruction in the invention according to any one of claims 3 to 5, wherein the weight value The weight value given to the pixel by the assigning unit may be a weight value predetermined for the threshold value changed by the changing unit.

請求項7に記載の画像処理装置を、請求項1〜請求項6の何れか1項に記載の発明において、前記変換手段が、更に、前記混色画像を多値で示した画像を示す画像情報が入力された場合、該画像情報により示される画像を2値化し、2値化して得た画像を前記2値化画像としたものとしてもよい。   The image processing apparatus according to claim 7, wherein the conversion unit further includes image information indicating an image in which the mixed-color image is expressed in multiple values. Is input, the image indicated by the image information may be binarized, and an image obtained by binarization may be used as the binarized image.

請求項8に記載の画像処理装置を、請求項1〜請求項7の何れか1項に記載の発明において、前記特定の原色を黒色としたものとしてもよい。   The image processing apparatus according to claim 8 may be the one in which the specific primary color is black in the invention according to any one of claims 1 to 7.

請求項9に記載の画像形成装置を、請求項1〜請求項8の何れか1項に記載の画像処理装置と、前記置換手段によって前記注目画素が置き換えられて得られた前記多値化画像が2値化されて得られた画像を記録媒体に形成する形成手段と、を含めて構成した。   The image forming apparatus according to claim 9, wherein the multi-valued image obtained by replacing the target pixel by the image processing apparatus according to any one of claims 1 to 8 and the replacement unit. And a forming means for forming an image obtained by binarizing the image on a recording medium.

請求項10に記載のプログラムを、コンピュータを、複数の原色が混在した混色画像を2値で示した2値化画像において、特定の原色の多値化対象画素に対して予め定められた方向に該特定の原色の画素が連続している場合、該多値化対象画素の濃度が予め定められた閾値以上となるように該濃度を多値化し、該多値化対象画素に対して該方向に該特定の原色の画素が連続していない場合、該多値化対象画素の濃度が該閾値未満となるように該多値化対象画素を多値化することにより該2値化画像を多値化画像に変換する変換手段、及び前記変換手段によって変換されて得られた多値化画像において、前記閾値以上の濃度を有する前記特定の原色の画素のうちの注目画素を含む予め定められた領域に該注目画素とは異なる原色の画素が含まれる場合、該注目画素を該領域に含まれる各画素の原色が混在した画素に置き換える置換手段として機能させるためのものとした。   The program according to claim 10, wherein a computer is used in a predetermined direction with respect to a multilevel binarization target pixel of a specific primary color in a binary image in which a mixed color image in which a plurality of primary colors are mixed is represented by a binary value. When the pixels of the specific primary color are continuous, the density is multi-valued so that the density of the multi-value quantization target pixel is equal to or higher than a predetermined threshold, and the direction with respect to the multi-value quantization target pixel is If the pixel of the specific primary color is not continuous, the binarized image is converted into a multi-valued image by converting the multi-valued pixel so that the density of the multi-valued pixel is less than the threshold. A conversion unit that converts the image into a digitized image, and a multi-valued image obtained by conversion by the conversion unit, includes a pixel of interest among the pixels of the specific primary color having a density equal to or higher than the threshold value. The area contains pixels of the primary color different from the pixel of interest If, was assumed to function as a replacement means for replacing the pixel colors of each pixel are mixed contained the target pixel in the region.

請求項1、請求項9及び請求項10に係る発明によれば、本発明の変換手段及び置換手段を有しない場合に比べ、複数の原色が混在した画像に対してレジずれが原因で発生する白抜けを抑制するための加工を施すことによって生じる画質の低下が軽減される、という効果が得られる。   According to the first, ninth, and tenth aspects of the present invention, it occurs due to a registration error in an image in which a plurality of primary colors are mixed, as compared with the case where the conversion unit and the replacement unit of the present invention are not provided. There is an effect that the deterioration of the image quality caused by the processing for suppressing the white spot is reduced.

請求項2に係る発明によれば、置換手段によって注目画素が置き換えられて得られた多値化画像を2値化しない場合に比べ、加工を施す過程で要する記憶容量が削減される、という効果が得られる。   According to the second aspect of the present invention, the storage capacity required in the process of processing is reduced compared to the case where the multi-valued image obtained by replacing the target pixel by the replacement unit is not binarized. Is obtained.

請求項3に係る発明によれば、本発明の重み値付与手段を有しない場合に比べ、2値化画像が容易に多値化される、という効果が得られる。   According to the third aspect of the present invention, an effect is obtained that the binarized image is easily multi-valued as compared with the case where the weight value assigning means of the present invention is not provided.

請求項4に係る発明によれば、本発明の変換手段を有しない場合に比べ、2値化画像が高精度に多値化される、という効果が得られる。   According to the fourth aspect of the present invention, compared to the case where the conversion means of the present invention is not provided, an effect that the binarized image is multi-valued with high accuracy can be obtained.

請求項5に係る発明によれば、2値化画像を多値化する上での利便性が向上する、という効果が得られる。   According to the fifth aspect of the present invention, there is an effect that convenience in multi-value binarization is improved.

請求項6に係る発明によれば、本発明の変更手段を有しない場合に比べ、白抜けを抑制するための加工の精度が容易に調整される、という効果が得られる。   According to the invention which concerns on Claim 6, compared with the case where it does not have the change means of this invention, the effect that the precision of the process for suppressing a white spot is adjusted easily is acquired.

請求項7に係る発明によれば、混色画像を多値で示した画像を示す画像情報が入力された場合、該画像情報により示される画像を2値化して得た画像を多値化しない場合に比べ、加工を施す過程で要する記憶容量が削減される、という効果が得られる。   According to the seventh aspect of the present invention, when image information indicating an image showing a multi-valued color image is input, the image obtained by binarizing the image indicated by the image information is not multi-valued As compared with the above, an effect that the storage capacity required in the process of processing is reduced can be obtained.

請求項8に係る発明によれば、特定の原色を黒色としない場合に比べ、画質の低下がより一層軽減される、という効果が得られる。   According to the eighth aspect of the invention, it is possible to obtain an effect that the deterioration of the image quality is further reduced as compared with the case where the specific primary color is not black.

実施形態に係る画像形成装置の構成の一例を示すブロック図である。1 is a block diagram illustrating an example of a configuration of an image forming apparatus according to an embodiment. トラッピングが施されない画像の一例及びトラッピングが施された画像の一例を示す模式図である。FIG. 6 is a schematic diagram illustrating an example of an image that is not trapped and an example of an image that is trapped. 多値で示した混色画像(その1)に対して従来の手法を用いてトラッピングを行ったときの処理の流れの一例を示す状態遷移図である。It is a state transition diagram which shows an example of the flow of a process when trapping is performed using the conventional method with respect to the color-mixed image (the 1) shown with multiple values. 多値で示した混色画像(その2)に対して従来の手法を用いてトラッピングを行ったときの処理の流れの一例を示す状態遷移図である。It is a state transition diagram which shows an example of the flow of a process when trapping is performed using the conventional method with respect to the color-mixed image (the 2) shown with multiple values. 実施形態に係るトラッピング処理プログラムの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the trapping process program which concerns on embodiment. 実施形態に係る多値化処理ルーチン・プログラムの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the multi-value process routine program which concerns on embodiment. 実施形態に係る1次元フィルタの構成の一例を示す模式図である。It is a schematic diagram which shows an example of a structure of the one-dimensional filter which concerns on embodiment. 実施形態に係るトラッピング処理の具体例を示す状態遷移図(その1)である。It is the state transition diagram (the 1) which shows the specific example of the trapping process which concerns on embodiment. 実施形態に係るトラッピング処理の具体例を示す状態遷移図(その2)である。It is a state transition diagram (the 2) which shows the example of the trapping process concerning an embodiment. 実施形態に係る1次元フィルタの変形例を示す模式図である。It is a schematic diagram which shows the modification of the one-dimensional filter which concerns on embodiment.

以下、図面を参照して本発明を実施するための形態の一例について詳細に説明する。なお、以下では、3段階以上の離散値で画素値を表現した画素(画像若しくは画像領域)を“多値で示した画素(画像若しくは画像領域)”又は“多値で表現された画素(画像若しくは画像領域)”と称する。   Hereinafter, an example of an embodiment for carrying out the present invention will be described in detail with reference to the drawings. In the following, a pixel (image or image region) representing a pixel value with three or more levels of discrete values is referred to as a “multi-valued pixel (image or image region)” or “multi-valued pixel (image). Or image area) ”.

図1は、本実施形態に係る画像形成装置10の構成の一例を示すブロック図である。同図に示すように、画像形成装置10は、各種プログラムの処理を実行することにより画像形成装置10全体を制御するCPU(中央処理装置)12と、画像形成装置10全体の作動を制御する制御プログラムや後述するトラッピング処理プログラム、各種データ等が予め記憶された記憶媒体であるROM(Read Only Memory)14と、各種プログラムの実行時のワークエリア等として用いられる記憶媒体であるRAM(Random Access Memory)16と、画像形成装置10の電源スイッチ(図示省略)が切られても各種プログラムやパラメータ等の各種情報を記憶する不揮発性の記憶媒体である二次記憶部(例えばハードディスク)18と、ディスプレイ上に透過型のタッチパネルが重ねられたタッチパネルディスプレイ等から構成され、各種情報がディスプレイの表示面に表示されると共に、ユーザがタッチパネルに触れることにより各種情報や指示を受け付けるUIパネル20と、通信手段を介して端末装置22(例えば、パーソナル・コンピュータ)と各種情報の授受が行うためのインタフェース(I/F)24とを含んで構成されている。   FIG. 1 is a block diagram illustrating an example of a configuration of an image forming apparatus 10 according to the present embodiment. As shown in the figure, the image forming apparatus 10 includes a CPU (central processing unit) 12 that controls the entire image forming apparatus 10 by executing processing of various programs, and a control that controls the operation of the entire image forming apparatus 10. ROM (Read Only Memory) 14 which is a storage medium in which a program, a trapping processing program to be described later, various data and the like are stored in advance, and a RAM (Random Access Memory) which is a storage medium used as a work area when executing various programs ) 16, a secondary storage unit (for example, hard disk) 18 that is a non-volatile storage medium that stores various types of information such as various programs and parameters even when the power switch (not shown) of the image forming apparatus 10 is turned off, and a display It consists of a touch panel display etc. with a transmissive touch panel superimposed on it. Various information is exchanged with the UI panel 20 that receives various information and instructions when the user touches the touch panel and the terminal device 22 (for example, a personal computer) through the communication means while being displayed on the display screen of the play. And an interface (I / F) 24 for this purpose.

また、画像形成装置10は、外部から画像を示す画像情報が入力された場合、入力された画像情報により示される画像を記録用紙に形成する画像形成部26を備えている。なお、本実施形態では、画像形成部26としてゼログラフィ方式で記録用紙にトナーによる画像を形成するプリンタを適用しているが、これに限らず、サーマル方式のプリンタやインクジェット方式のプリンタを適用してもよい。   The image forming apparatus 10 includes an image forming unit 26 that forms an image indicated by the input image information on a recording sheet when image information indicating the image is input from the outside. In this embodiment, a printer that forms an image with toner on recording paper by the xerographic method is applied as the image forming unit 26. However, the present invention is not limited to this, and a thermal printer or an inkjet printer is applied. May be.

CPU12、ROM14、RAM16、二次記憶部18、UIパネル20、I/F24、及び画像形成部26は、バス28を介して相互に接続されている。従って、CPU12は、ROM14、RAM16、及び二次記憶部18に対するアクセスと、UIパネル20への各種情報の表示と、UIパネル20によって受け付けられた各種情報の把握と、I/F24を介した各種情報の送受信と、画像形成部26の作動の制御と、を各々行う。   The CPU 12, ROM 14, RAM 16, secondary storage unit 18, UI panel 20, I / F 24, and image forming unit 26 are connected to each other via a bus 28. Therefore, the CPU 12 accesses the ROM 14, RAM 16, and secondary storage unit 18, displays various information on the UI panel 20, grasps various information received by the UI panel 20, and performs various operations via the I / F 24. Information transmission / reception and operation control of the image forming unit 26 are performed.

次に、本実施形態に係る画像形成装置10の作用について説明する。   Next, the operation of the image forming apparatus 10 according to the present embodiment will be described.

画像形成装置10は、外部(例えば、端末装置22)から、黒(K)、イエロー(Y)、マゼンタ(M)、シアン(C)の各原色で表現された画像を示す画像情報が入力されると、各原色の画像情報に対応したトナー像を記録用紙に順次に形成し、形成したトナー像を加熱及び加圧することにより記録用紙に定着させ、トナー像が定着された記録用紙を外部に排出する。   The image forming apparatus 10 receives image information indicating an image expressed in primary colors of black (K), yellow (Y), magenta (M), and cyan (C) from the outside (for example, the terminal device 22). Then, a toner image corresponding to the image information of each primary color is sequentially formed on the recording paper, and the formed toner image is fixed on the recording paper by heating and pressurizing, and the recording paper on which the toner image is fixed is externally provided. Discharge.

ところで、画像形成装置10では、KYMCのトナーを記録用紙に付着させるプロセスは原色毎に独立して行われる。従って、機械的な位置精度や記録用紙の搬送速度のむら等が原因となって各原色の画像の相対的な位置関係が数画素分ずれる所謂“レジずれ”が発生する場合がある。これにより、複数の原色が混在した混色画像を記録用紙に形成する場合、例えば図2に示すように記録用紙に形成される黒色の文字「あ」というKの画像領域とK以外の原色で形成された周辺の画像領域(例えば、Mの画像領域)との境界(Kの画像領域の輪郭)において部分的に本来存在しない非画像形成領域(以下、「白抜け」と称する。)が発生する場合がある。なお、図2の例では、記録用紙が白色であるため、Kの画像領域の輪郭において部分的に白い輪郭が発生する。そのため、一般的には、画像の輪郭部分、すなわち異なる原色の画像領域の境界領域に対してトラッピングを行うことによりレジずれが原因で発生する白抜けを抑制している。   By the way, in the image forming apparatus 10, the process of attaching the KYMC toner to the recording paper is performed independently for each primary color. Therefore, there may be a so-called “registration shift” in which the relative positional relationship of each primary color image is deviated by several pixels due to mechanical positional accuracy, unevenness in the conveyance speed of the recording paper, and the like. Thus, when a mixed color image in which a plurality of primary colors are mixed is formed on a recording sheet, for example, as shown in FIG. 2, a black character “A” formed on the recording sheet is formed with a K image area and a primary color other than K. A non-image forming area (hereinafter, referred to as “whiteout”) that does not partially exist at the boundary (outline of the K image area) with the peripheral image area (for example, the M image area) is generated. There is a case. In the example of FIG. 2, since the recording paper is white, a white outline is partially generated in the outline of the K image area. Therefore, in general, trapping is performed on the contour portion of the image, that is, the boundary region between the image regions of different primary colors, thereby suppressing white spots caused by misregistration.

なお、本実施形態において、「トラッピング」とは、複数の原色が混在した混色画像において一方の画像領域が他方の画像領域に対して予め定められた濃度差を有する異なる原色による2つの画像領域(例えば、Kの画像領域とMの画像領域)に挟まれた領域にその異なる原色を混在させる加工を施すことを意味する。また、以下では、錯綜を回避するために、上記の2つの画像領域に挟まれた領域をKの画像領域とし、この画像領域を構成しているKの単一画素が注目画素とされた場合に注目画素の画素値をKの画素の画素値とMの画素の画素値とを足し合わせる(Kの画素にMの画素の画素値を追加する)ことによりトラッピングを行う形態例を挙げて説明する。ここで、“足し合わせる”とは、数値(階調値)の加算ではなく、各色のレイヤの重ね合わせ(例えば、KのレイヤとMのレイヤとの重ね合わせ)によることを意味する。   In the present embodiment, “trapping” refers to two image regions of different primary colors in which one image region has a predetermined density difference with respect to the other image region in a mixed-color image in which a plurality of primary colors are mixed. For example, it means that the region between the K image region and the M image region) is processed so that the different primary colors are mixed. Also, in the following, in order to avoid complications, a region sandwiched between the two image regions is set as a K image region, and a single pixel of K constituting the image region is set as a target pixel. An example in which trapping is performed by adding the pixel value of the pixel of interest to the pixel value of the K pixel and the pixel value of the M pixel (adding the pixel value of the M pixel to the K pixel) will be described. To do. Here, “adding” means not the addition of numerical values (gradation values) but the superposition of the layers of each color (for example, the superposition of the K layer and the M layer).

ここで、図3を参照しながら従来のトラッピングの手法について説明する。なお、図3は、濃度が50%のKの画像領域と濃度が50%のMの画像領域とが隣接して構成され、かつ多値で表現された混色画像に対してトラッピングを行う過程の一例が示されている。同図(a)に示されるように、Kの画像領域とMの画像領域との境界領域は、縦横の各々に5個の画素が配置されるウィンドウを示す5×5のウィンドウを用いて判別される。つまり、5×5のウィンドウの中央に配置される画素を注目画素として、同図(a)の正面視左から右に(同図に示すX方向に)1画素単位で移動させると共に同図(a)の正面視上から下に(同図に示すY方向に)1ライン単位で移動させながら5×5のウィンドウに注目画素の画素値との画素値の差が予め定められた値以上の画素が含まれているか否かを判定することによってKの画像領域とMの画像領域との境界領域が判別される。なお、ここで言う画素値とは、各色を8ビットの階調値(例えばCMYKの階調値)で表現したものを示す。   Here, a conventional trapping method will be described with reference to FIG. FIG. 3 shows a process of trapping a mixed color image in which a K image area having a density of 50% and an M image area having a density of 50% are adjacent to each other and expressed in multiple values. An example is shown. As shown in FIG. 5A, the boundary area between the K image area and the M image area is determined using a 5 × 5 window indicating a window in which 5 pixels are arranged in each of the vertical and horizontal directions. Is done. That is, the pixel arranged in the center of the 5 × 5 window is set as a pixel of interest, and is moved in units of one pixel from left to right (in the X direction shown in the figure) in front view in FIG. The difference between the pixel value of the pixel of interest in the 5 × 5 window is greater than or equal to a predetermined value while moving in units of one line from the front view to the bottom (in the Y direction shown in FIG. 4A). By determining whether or not a pixel is included, a boundary region between the K image region and the M image region is determined. Note that the pixel value referred to here represents each color expressed by an 8-bit gradation value (for example, a CMYK gradation value).

5×5のウィンドウによってKの画像領域とMの画像領域との境界領域が判別されると、Kの画素が注目画素とされた場合、注目画素の現在の画素値を、5×5のウィンドウに含まれる全画素のうちの画素値が0の画素以外の画素の画素値を足し合わせた画素値に置き換える。同図(b)に示す例では、Kの画像領域においてMの画像領域との境界から2画素分の領域を構成している画素に対してトラッピングが行われている。この結果、Kの画像領域においてMの画像領域との境界から2画素分の領域がKとMとが混在した色で表される。このようにして多値で表現された混色画像に対してトラッピングが行われて得られたトラッピング済みの混色画像は2値化される。なお、同図(c)は、多値で示した混色画像を2値化せずにトラッピングを行ってから2値化した混色画像の一例を模式的に示している。   When the boundary area between the K image area and the M image area is determined by the 5 × 5 window, if the K pixel is the target pixel, the current pixel value of the target pixel is set to the 5 × 5 window. Is replaced with a pixel value obtained by adding the pixel values of pixels other than the pixel having a pixel value of 0. In the example shown in FIG. 5B, trapping is performed on pixels constituting an area of two pixels from the boundary with the M image area in the K image area. As a result, in the K image area, the area corresponding to two pixels from the boundary with the M image area is represented by a color in which K and M are mixed. The trapped mixed color image obtained by trapping the mixed color image expressed in multiple values in this way is binarized. FIG. 6C schematically shows an example of a mixed-color image obtained by binarizing a multi-valued mixed-color image after performing trapping without binarizing.

一方、多値で示した混色画像を2値化してからトラッピングを行う場合、一例として同図(a)に示す混色画像を同図(d)に示すように2値化してから、注目画素の現在の画素値を、5×5のウィンドウに含まれる全画素のうちの画素値が0の画素以外の画素の画素値を足し合わせた画素値に置き換える。なお、同図(e)は、多値で示した混色画像を2値化してからトラッピングを行った場合の混色画像の一例を模式的に示している。   On the other hand, when the trapping is performed after binarizing the multi-valued mixed color image, as an example, the mixed color image shown in FIG. 10A is binarized as shown in FIG. The current pixel value is replaced with a pixel value obtained by adding the pixel values of pixels other than the pixel having a pixel value of 0 among all the pixels included in the 5 × 5 window. FIG. 5E schematically shows an example of a mixed color image in the case where the multi-valued mixed color image is binarized and then trapped.

図4は、濃度が50%のKの画像領域と濃度が50%のMの画像領域とが重ねられて構成され、かつ多値で表現された混色画像を2値化する過程の一例が示されている。同図(a)に示すように多値で示したKの画像領域と多値で示したMの画像領域とが重ねられているため、トラッピングは行われずに2値化される。なお。同図(c)は、同図(a)に示す多値で表現された混色画像を2値化した混色画像の一例を模式的に示している。同図(a)〜(c)の例では、多値で示したKの画像領域の濃度50%に対して2値で示したKの画像領域でKが占める割合は50%となり、多値で示したMの画像領域の濃度50%に対して2値で示したMの画像領域でMが占める割合は50%となる。つまり、2値化の前後で混色画像の全体に対してKの占める割合及びMの占める割合に変化は生じない。   FIG. 4 shows an example of a process of binarizing a multi-valued mixed color image that is configured by superimposing a 50% density K image area and a 50% density M image area. Has been. As shown in FIG. 9A, since the multi-valued K image region and the multi-valued M image region are overlapped, they are binarized without being trapped. Note that. FIG. 7C schematically shows an example of a color mixture image obtained by binarizing the color mixture image expressed in multiple values shown in FIG. In the examples shown in FIGS. 5A to 5C, the ratio of K in the binary image area to 50% of the density of the multi-value K image area is 50%. The ratio of M in the M image area indicated by the binary value to 50% of the density of the M image area indicated by is 50%. That is, there is no change in the ratio of K and the ratio of M with respect to the entire mixed color image before and after binarization.

一方、同図(a)に示す多値で示した混色画像を2値化すると、混色画像は、一例として同図(d)に示すように、Kのみの画像領域、Mのみの画像領域、画素値が0の画素からなる領域、及びKの画素値とMの画素値とを足し合わせた画素値を有する画素からなる画像領域によって構成される。そして、同図(d)に示す2値で示した混色画像に対して従来の手法を用いてトラッピングを行うと、Kの画像領域にMの画像領域が重ねられて混色画像の全体に対してMの占める割合が75%になってしまう。そのため、一例として同図(e)に示すように、図4(c)に示す混色画像とは異なる混色画像が得られることになる。   On the other hand, when the multi-valued mixed-color image shown in FIG. 6A is binarized, the mixed-color image includes, as an example, as shown in FIG. It is composed of an area composed of pixels having a pixel value of 0 and an image area composed of pixels having pixel values obtained by adding the K pixel value and the M pixel value. Then, when the conventional method is used for trapping the binary color mixture image shown in FIG. 4D, the M image area is superimposed on the K image area, and the entire mixed color image is displayed. The proportion of M will be 75%. Therefore, as an example, a mixed color image different from the mixed color image shown in FIG. 4C is obtained as shown in FIG.

このように、従来のトラッピングの手法を用いると、トラッピングが行われるべきでない画素に対してトラッピングが行われてしまうことがあった。   As described above, when the conventional trapping technique is used, trapping may be performed on pixels that should not be trapped.

そこで、本実施形態に係る画像形成装置10では、トラッピングが行われるべきでない画素に対してトラッピングが行われることを回避する処理が実行される。   In view of this, in the image forming apparatus 10 according to the present embodiment, processing for avoiding trapping of pixels that should not be trapped is executed.

次に、図5を参照して、トラッピング処理を実行しているときの画像形成装置10の作用を説明する。なお、図5は、画像情報が入力された際にCPU12によって実行されるトラッピング処理プログラムの処理の流れを示すフローチャートであり、このトラッピング処理プログラムはROM14の予め定められた領域に予め記憶されている。また、ここでは、錯綜を回避するために、Kの画像領域を示すKレイヤ及びMの画像領域を示すMレイヤが重ね合わされて構成された混色画像であって、マトリクス状に配列された複数の画素によって構成された混色画像に対してトラッピングを行う場合について説明する。また、ここでは、錯綜を回避するために、混色画像におけるMの画像領域を構成しているMの画素を、白抜けを発生させる条件を満足した画素であることを前提にして説明する。また、ここでは、白抜けを発生させる条件として、白抜けが視認される濃度として予め定められた濃度に相当する画素値を有する、との条件を適用している。   Next, the operation of the image forming apparatus 10 when the trapping process is executed will be described with reference to FIG. FIG. 5 is a flowchart showing a process flow of the trapping process program executed by the CPU 12 when image information is input. This trapping process program is stored in a predetermined area of the ROM 14 in advance. . Further, here, in order to avoid complication, a mixed color image formed by superimposing the K layer indicating the K image region and the M layer indicating the M image region, which is a plurality of images arranged in a matrix A case where trapping is performed on a mixed color image formed of pixels will be described. Further, here, in order to avoid complications, the description will be made on the assumption that the M pixels constituting the M image area in the mixed-color image are pixels that satisfy a condition for generating white spots. Further, here, a condition that a pixel value corresponding to a predetermined density as a density at which white spots are visually recognized is applied as a condition for generating white spots.

同図のステップ100では、入力された画像情報により示される画像が多値で示した多値化画像あるか否かを判定し、否定判定となった場合にはステップ104に移行する一方、肯定判定となった場合にはステップ102に移行し、多値化画像を2値で示した2値化画像に変換した後、ステップ104に移行する。ステップ104では、多値化処理ルーチン・プログラムを実行する。   In step 100 of the figure, it is determined whether or not the image indicated by the input image information is a multi-valued image indicated by multi-values. If a negative determination is made, the process proceeds to step 104. If the determination is made, the process proceeds to step 102, the multi-valued image is converted into a binary image represented by binary values, and then the process proceeds to step 104. In step 104, a multi-value processing routine program is executed.

ここで、図6を参照して、本実施形態に係る多値化処理ルーチン・プログラムについて説明する。なお、図6は、多値化処理ルーチン・プログラムの処理の流れを示すフローチャートであり、このプログラムもROM14の予め定められた領域に予め記憶されている。   Here, with reference to FIG. 6, the multi-value processing routine program according to the present embodiment will be described. FIG. 6 is a flowchart showing the flow of processing of the multi-value processing routine program. This program is also stored in advance in a predetermined area of the ROM 14.

同図のステップ200では、特定の原色(ここでは、K)以外の原色のレイヤ(ここでは、Mレイヤ)を単純多値化した後、ステップ204に移行し、Kレイヤに対して一例として図7に示す1次元フィルタαを重ね合わせることにより1次元フィルタαに含まれる画素を連続性の有無の判定対象画素として指定する。ここで、単純多値化とは、入力の2値データを入力が“0”のときは出力を“0”とし、入力が“1のときは出力を多値化の最大値とすることを意味し、8ビット多値化とは、0−>0,1−>255に変換することを意味する。本実施形態に係る1次元フィルタαは、一例として図7に示すように水平方向(X方向)に5画素分の重み値を有している。また、1次元フィルタαを構成している5画素分の重み値は中央の画素位置を中心にして水平方向に対称に配置されている。同図に示す例では、1次元フィルタαの中央の画素位置Aに重み値として“0.65”が付与されている。また、画素位置Aに隣接する各画素位置Bには重み値として“0.1”が付与されている。更に、画素位置Bの各々に隣接する画素位置Cには重み値として“0.05”が付与されている。なお、上記ステップ204の処理では、1次元フィルタαの画素位置Aに配置された画素が多値化対象画素として扱われ、Kレイヤを構成している各画素に1次元フィルタαの画素位置Aを配置した際に1次元フィルタαに含まれる画素を連続性の有無の判定対象画素として指定する。また、上記ステップ204の処理では、Kレイヤを構成している画素の何れも未だに多値化されていない場合、Kレイヤの左上隅の画素が注目画素として扱われるように1次元フィルタαを配置する。   In step 200 of the figure, a primary color layer (here, M layer) other than a specific primary color (here, K) is simply multi-valued, and then the process proceeds to step 204, where the K layer is illustrated as an example. By superimposing the one-dimensional filter α shown in FIG. 7, the pixels included in the one-dimensional filter α are designated as determination target pixels for the presence or absence of continuity. Here, simple multi-level conversion means that when binary input data is “0”, the output is “0”, and when the input is “1,” the output is the maximum value of multi-level conversion. In other words, 8-bit multilevel conversion means conversion to 0-> 0, 1-> 255, and the one-dimensional filter α according to the present embodiment is shown in the horizontal direction ( The weight values for 5 pixels in the X direction are also symmetrically arranged in the horizontal direction with the center pixel position as the center. In the example shown in the figure, “0.65” is assigned as a weight value to the pixel position A in the center of the one-dimensional filter α, and each pixel position B adjacent to the pixel position A has a weight value. As a weight value, “0.1” is assigned to each pixel position C adjacent to each pixel position B. .05 "is added. In the processing of step 204 above, the pixel arranged at the pixel position A of the one-dimensional filter α is treated as a multi-valued pixel, and each pixel constituting the K layer. When the pixel position A of the one-dimensional filter α is placed in the pixel, the pixels included in the one-dimensional filter α are designated as the determination target pixels for the presence or absence of continuity. If none of the existing pixels has yet been multi-valued, the one-dimensional filter α is arranged so that the pixel at the upper left corner of the K layer is treated as the pixel of interest.

次のステップ206では、1次元フィルタαの画素位置Aに配置された画素、すなわち多値化対象画素がKの画素であるか(画素値が0の画素でないか)否かを判定し、否定判定となった場合にはステップ216に移行する一方、肯定判定となった場合にはステップ208に移行し、1次元フィルタαにおいて画素位置Aに配置された多値化対象画素を始点としてKの画素が連続しているか(孤立していないか)否かを判定し、肯定判定となった場合にはステップ210に移行し、1次元フィルタαにおいて多値化対象画素を始点として連続している画素の各々に対して対応する重み値を付与した後、ステップ212に移行し、多値化対象画素の画素値を算出することにより多値化対象画素の多値化を行った後、ステップ216に移行する。   In the next step 206, it is determined whether or not the pixel arranged at the pixel position A of the one-dimensional filter α, that is, the multi-value quantization target pixel is a K pixel (is not a pixel having a pixel value of 0). When the determination is made, the process proceeds to step 216, while when the determination is affirmative, the process proceeds to step 208, and the multivalue conversion target pixel arranged at the pixel position A in the one-dimensional filter α is set as a starting point. It is determined whether or not the pixels are continuous (not isolated). If the determination is affirmative, the process proceeds to step 210 and the one-dimensional filter α continues from the multi-value quantization target pixel as a starting point. After assigning a corresponding weight value to each of the pixels, the process proceeds to step 212, and multi-value conversion of the multi-value conversion target pixel is performed by calculating the pixel value of the multi-value conversion target pixel. Migrate to

上記ステップ212では、例えば、多値化対象画素を含めてKの画素が2画素連続していた場合には画素位置Aの重み値“0.65”に画素位置Bの重み値“0.1”を加算して得た“0.75”を多値化対象画素の濃度に相当する画素値(以下、「濃度相当値」と称する)として多値化対象画素の現在の画素値と置き換えることにより多値化対象画素を多値化している。また、多値化対象画素を含めてKの画素が3画素連続していた場合には画素位置Aの重み値“0.65”に画素位置Bの重み値“0.1”及び画素位置Cの重み値“0.05”を加算して得た“0.8”を濃度相当値として多値化対象画素の現在の画素値と置き換えることにより多値化対象画素を多値化している。   In the above step 212, for example, when there are two consecutive K pixels including the multi-valued pixel, the weight value “0.15” at the pixel position A is added to the weight value “0.15” at the pixel position B. "0.75" obtained by adding "" is replaced with the current pixel value of the multi-valued pixel as a pixel value corresponding to the density of the multi-valued pixel (hereinafter referred to as "density equivalent value"). Thus, the multi-valued pixel is multi-valued. Further, when there are three consecutive K pixels including the multi-valued pixel, the weight value “0.65” at the pixel position A, the weight value “0.1” at the pixel position B, and the pixel position C The pixel value to be multivalued is converted to a multivalued pixel by replacing “0.8” obtained by adding the weight value of “0.05” with the current pixel value of the pixel to be multivalued as a density equivalent value.

一方、上記ステップ208において否定判定となった場合にはステップ214に移行し、多値化対象画素に対して画素位置Aの重み値“0.65”を付与することにより多値化対象画素の多値化を行った後、ステップ216に移行する。ここでは、上記ステップ214の処理の一例として、画素位置Aの重み値“0.65”を濃度相当値として多値化対象画素の現在の画素値と置き換えることにより多値化対象画素を多値化する処理を適用している。
なお、本多値化処理ルーチン・プログラムでは、説明の便宜上、上記ステップ208の処理によって上記ステップ210又は上記ステップ214に分岐させる形態例を挙げて説明したが、これはあくまでも一例であり、上記ステップ208、上記ステップ210及び上記ステップ214を必ずしも設ける必要はない。この場合、上記ステップ212の処理に代えて、状況に応じて(例えば多値化対象画素が孤立しているか否かに応じて)上述したステップ210,214の処理を使い分けて多値化対象画素の画素値を多値化する処理を適用すれば良い。
On the other hand, when a negative determination is made in step 208, the process proceeds to step 214, and the weight value “0.65” of the pixel position A is assigned to the multi-value quantization target pixel to thereby determine the multi-value quantization target pixel. After multi-value conversion is performed, the process proceeds to step 216. Here, as an example of the processing of step 214, the weight value “0.65” at the pixel position A is replaced with the current pixel value of the multi-value target pixel as a density equivalent value, thereby converting the multi-value target pixel into a multi-value. Applying the process to convert.
In the present multi-value process routine program, for convenience of explanation, an example in which the process of step 208 branches to step 210 or step 214 has been described. However, this is only an example, and the above step 208, step 210 and step 214 are not necessarily provided. In this case, instead of the process in step 212, the multi-value quantization target pixel is used by properly using the processes in steps 210 and 214 described above depending on the situation (for example, depending on whether or not the multi-value quantization target pixel is isolated). A process for converting the pixel value into multi-values may be applied.

ステップ216では、Kのレイヤを構成している全画素を多値化したか否かを判定し、否定判定となった場合にはステップ218に移行し、1次元フィルタαの画素位置Aに次に予定された画素が配置されるように1次元フィルタαを移動させた後、ステップ204に移行する。なお、本多値化処理ルーチン・プログラムでは、Kレイヤを構成している全画素の何れも未だに多値化されていない状態で上記ステップ204の処理が実行されると、Kレイヤの左上隅の画素が多値化対象画素として扱われるように1次元フィルタαが配置される。そして、上記ステップ218の処理によって、1次元フィルタαを、Kレイヤを構成している画素の各々が1回ずつ多値化対象画素として扱われるようにKレイヤの水平方向(左から右)に1画素単位で移動させると共にKレイヤの垂直方向(上から下)に1ライン単位で移動させる。   In step 216, it is determined whether or not all the pixels constituting the K layer have been multi-valued. If the determination is negative, the process proceeds to step 218, and the pixel position A of the one-dimensional filter α is next. After moving the one-dimensional filter α so that the planned pixels are arranged, the process proceeds to step 204. In the present multi-value processing routine program, if the processing in step 204 is executed in a state where none of the pixels constituting the K layer has yet been multi-valued, the upper left corner of the K layer is displayed. The one-dimensional filter α is arranged so that the pixel is treated as a multilevel pixel. Then, by the processing in step 218, the one-dimensional filter α is moved in the horizontal direction of the K layer (from left to right) so that each pixel constituting the K layer is treated as a multi-valued pixel once. It is moved in units of one pixel and moved in units of one line in the vertical direction (from top to bottom) of the K layer.

一方、上記ステップ216において肯定判定となった場合には本多値化処理ルーチン・プログラムを終了し、トラッピング処理プログラムのステップ106に移行する。   On the other hand, if the determination in step 216 is affirmative, the multi-value quantization processing routine program is terminated, and the process proceeds to step 106 of the trapping processing program.

ステップ106では、特定の原色のレイヤ(ここでは、Kレイヤ)に対して上述した5×5のウィンドウを重ねることによって注目画素を指定する。すなわち、5×5のウィンドウの中央の画素位置に配置される画素を注目画素として指定した後、ステップ108に移行する。   In step 106, the target pixel is designated by superimposing the 5 × 5 window described above on a layer of a specific primary color (here, K layer). That is, after the pixel arranged at the center pixel position of the 5 × 5 window is designated as the target pixel, the process proceeds to step 108.

ステップ108では、5×5のウィンドウの中央の画素位置に配置された画素、すなわち注目画素がKの画素であるか(画素値が0の画素でないか)否かを判定し、否定判定となった場合にはステップ116に移行する一方、肯定判定となった場合にステップ110に移行する。   In step 108, it is determined whether or not the pixel arranged at the center pixel position of the 5 × 5 window, that is, the target pixel is a K pixel (whether the pixel value is not 0) or not. If YES in step 116, the flow advances to step 116, whereas if positive determination is made, the flow advances to step 110.

ステップ110では、注目画素の濃度相当値が予め定められた閾値以上であるか否かを判定し、否定判定となった場合にはステップ116に移行する一方、肯定判定となった場合にはステップ112に移行する。なお、上記予め定められた閾値は、連続画素数に対応する値を意味しており、閾値が大きいということは、画素数の連続性が高いことを意味する。例えば、本実施形態では、一例として、2画素連続しているか否かを判断するために用いられる閾値が“0.75”とされ、3画素連続しているか否かを判断するために用いられる閾値が“0.8”とされ、4画素連続しているか否かを判断するために用いられる閾値を“0.9”とされている。これらの閾値の組み合わせはあくまでも一例である。これに限らず、例えば、2画素連続しているか否かを判断するために用いられる閾値を“0.71”とし、3画素連続しているか否かを判断するために用いられる閾値を“0.8”とし、4画素連続しているか否かを判断するために用いられる閾値を0.99としても良い。この場合、例えば1次元フィルタαの画素位置Aの重み値を“0.6”、画素位置Bの重み値を“0.11”、画素位置Cの重み値を“0.09”とすれば良い。
また、閾値の組み合わせは上記のように一通りに限定される必要はなく、複数通り予め用意されていても良い。この場合、例えば上記ステップ110で用いられ得る閾値の組み合わせがROM14に予め複数記憶されており、この組み合わせがユーザの指示によって予め指定されるものとしてもよい。また、この組み合わせに対しては1次元フィルタαで用いられる重み値として一意に定められた重み値が対応付けられており、ROM14に閾値の組み合わせに対応付けられた状態で予め記憶されている。よって、ユーザがUIパネル20を介して閾値の組み合わせを指定することにより指定した閾値の組み合わせと共にこれに対応する重み値もCPU12によってROM14から読み出され、読み出された閾値は上記ステップ110の処理で用いられ、読み出された重み値は1次元フィルタαの重み値として適用される。
In step 110, it is determined whether or not the density equivalent value of the target pixel is equal to or greater than a predetermined threshold value. If the determination is negative, the process proceeds to step 116. If the determination is affirmative, step 110 is performed. 112. The predetermined threshold value means a value corresponding to the number of continuous pixels, and a large threshold means that the continuity of the number of pixels is high. For example, in the present embodiment, as an example, the threshold value used to determine whether or not two pixels are continuous is “0.75”, and is used to determine whether or not three pixels are continuous. The threshold value is “0.8”, and the threshold value used to determine whether or not four pixels are continuous is “0.9”. These combinations of threshold values are merely examples. For example, the threshold used to determine whether or not two pixels are continuous is “0.71”, and the threshold used to determine whether or not three pixels are continuous is “0”. .8 "and the threshold value used to determine whether or not four pixels are continuous may be set to 0.99. In this case, for example, if the weight value of the pixel position A of the one-dimensional filter α is “0.6”, the weight value of the pixel position B is “0.11”, and the weight value of the pixel position C is “0.09”. good.
Further, the threshold combinations need not be limited to one as described above, and a plurality of combinations may be prepared in advance. In this case, for example, a plurality of threshold combinations that can be used in step 110 may be stored in the ROM 14 in advance, and these combinations may be specified in advance by a user instruction. Further, a weight value uniquely determined as a weight value used in the one-dimensional filter α is associated with this combination, and is stored in advance in the ROM 14 in a state associated with the threshold combination. Therefore, the CPU 12 also reads out the weight value corresponding to the threshold combination specified by the user specifying the threshold combination via the UI panel 20 from the ROM 14, and the read threshold value is the processing in step 110. The read weight value is used as the weight value of the one-dimensional filter α.

ステップ112では、5×5のウィンドウにKの画素とMの画素との境界が存在するか否かを判定し、否定判定となった場合にはステップ116に移行する一方、肯定判定となった場合にはステップ114に移行し、トラッピングを行う。ここでのトラッピングとは、注目画素の現在の画素値を、5×5のウィンドウに含まれる全画素のうちの画素値が0の画素以外の画素(単純多値化なので“0”以外は“255”のみしかない)があれば置き換えることを意味する。   In step 112, it is determined whether or not a boundary between the K pixel and the M pixel exists in the 5 × 5 window. If the determination is negative, the process proceeds to step 116, but the determination is affirmative. In this case, the process proceeds to step 114 and trapping is performed. Trapping here means that the current pixel value of the pixel of interest is a pixel other than the pixel having a pixel value of 0 among all the pixels included in the 5 × 5 window (because it is simple multi-valued, other than “0” is “ If there is only 255 ", it means that it is replaced.

ステップ116では、Kレイヤを構成している全画素に対して上記ステップ108の処理を実行したか否かを判定し、否定判定となった場合にはステップ118に移行し、5×5のウィンドウの中央の画素位置に次に予定された画素が配置されるように5×5のウィンドウを移動させた後、ステップ106に移行する。なお、本トラッピング処理プログラムでは、Kレイヤを構成している画素の何れに対しても上記ステップ108の処理が実行されていない状態で上記ステップ106の処理が実行されると、Kレイヤの左上隅の画素が注目画素として扱われるように5×5のウィンドウが配置される。そして、上記ステップ118の処理によって、5×5のウィンドウを、Kレイヤを構成している画素の各々が1回ずつ注目画素として扱われるように水平方向(左から右)に1画素単位で移動させると共に垂直方向(上から下)に1ライン単位で移動させる。   In step 116, it is determined whether or not the processing in step 108 has been executed for all the pixels constituting the K layer. If the determination is negative, the process proceeds to step 118, and a 5 × 5 window is displayed. After the 5 × 5 window is moved so that the next scheduled pixel is arranged at the center pixel position, the process proceeds to step 106. In this trapping processing program, if the process of step 106 is executed without executing the process of step 108 for any of the pixels constituting the K layer, the upper left corner of the K layer A 5 × 5 window is arranged so that these pixels are treated as the target pixel. Then, by the processing in step 118, the 5 × 5 window is moved in units of one pixel in the horizontal direction (from left to right) so that each pixel constituting the K layer is treated as a target pixel once. And move in units of one line in the vertical direction (from top to bottom).

一方、ステップ116において肯定判定となった場合には本トラッピング処理プログラムを終了する。なお、このようにトラッピング処理によってトラッピングが行われて得られた混色画像はCPU12によって2値化されてRAM16における予め定められた記憶領域に記憶される。   On the other hand, if the determination in step 116 is affirmative, this trapping processing program is terminated. The mixed color image obtained by trapping by the trapping process is binarized by the CPU 12 and stored in a predetermined storage area in the RAM 16.

次に、図8及び図9を参照しながら本実施形態に係るトラッピング処理の具体例を説明する。なお、ここでは、錯綜を回避するために、上記ステップ110の処理で用いる閾値として、2画素連続しているか否かを判断するために用いられる閾値を“0.71”とし、3画素連続しているか否かを判断するために用いられる閾値を“0.8”とし、4画素連続しているか否かを判断するために用いられる閾値を0.99とし、1次元フィルタαの画素位置Aの重み値を“0.6”、画素位置Bの重み値を“0.11”、画素位置Cの重み値を“0.09”とした場合について説明する。また、ここでは、錯綜を回避するために、トラッピング後の2値化(単純2値化)で用いられる閾値として“0.6”以下の値を用いた場合について説明する。   Next, a specific example of the trapping process according to the present embodiment will be described with reference to FIGS. Here, in order to avoid complications, the threshold used for determining whether or not two pixels are continuous is set to “0.71” as the threshold used in the processing of step 110 above, and three pixels are consecutive. The threshold used to determine whether or not the pixel is “0.8” and the threshold used to determine whether or not four pixels are continuous is 0.99, and the pixel position A of the one-dimensional filter α The case where the weight value of “0.6” is set, the weight value of the pixel position B is “0.11”, and the weight value of the pixel position C is “0.09” will be described. Here, a case where a value of “0.6” or less is used as a threshold value used in binarization after trapping (simple binarization) in order to avoid complications will be described.

先ず、図8に示す具体例について説明する。図8は、本実施形態に係る画像形成装置10によって、Kの画像領域とMの画像領域とが隣接している多値で示した混色画像30Aを、トラッピングを行ってから2値化する過程の一例を示す模式図である。同図(a)に示すように、混色画像30Aは、濃度が80%のKの画像領域32A及び濃度が80%のMの画像領域34Aが隣接して構成された多値化画像である。ここで、従来のトラッピングの手法を用いて同図(a)に示す混色画像30Aに対して2値化せずにトラッピングを行うと、一例として同図(b)に示すようにKの画像領域32AにおいてMの画像領域34Aとの境界から2画素分の領域を構成している画素に対してトラッピングが行われる。この結果、混色画像30Aは、Kの画像領域32AにおいてMの画像領域34Aとの境界から2画素分の領域がKとMとが混在した色で表される。このようにして得られたトラッピング済みの混色画像30Aは、2値化されると、一例として同図(c)に示すように、混色画像30Aにおいてトラッピングが行われた領域(Kの画像領域30AとMの画像領域30Bとの境界領域)に対応する領域に対してトラッピングが行われた2値で示した混色画像30Bが得られる。   First, a specific example shown in FIG. 8 will be described. FIG. 8 shows a process in which the image forming apparatus 10 according to the present embodiment binarizes the multi-valued mixed-color image 30A indicated by the multi-valued image in which the K image area and the M image area are adjacent to each other after trapping. It is a schematic diagram which shows an example. As shown in FIG. 5A, the mixed color image 30A is a multi-valued image in which an image area 32A having a K density of 80% and an image area 34A having an M density of 80% are adjacent to each other. Here, when trapping is performed without binarizing the mixed-color image 30A shown in FIG. 5A using the conventional trapping technique, an image area of K as shown in FIG. In 32A, trapping is performed on the pixels constituting the area corresponding to two pixels from the boundary with the M image area 34A. As a result, the mixed-color image 30A is represented by a color in which K and M are mixed in a region corresponding to two pixels from the boundary with the M image region 34A in the K image region 32A. When the trapped mixed color image 30A obtained in this way is binarized, as shown in FIG. 5C as an example, a trapped region (K image region 30A) is displayed in the mixed color image 30A. A mixed color image 30B indicated by a binary value obtained by trapping an area corresponding to a boundary area between the image area 30B and the M image area 30B is obtained.

一方、混色画像30Aを2値化してからトラッピングを行う場合、先ず、一例として同図(a)及び(d)に示すように混色画像30Aを2値化して混色画像30Cに変換する。同図(d)の例では、同図(a)に示すKの画像領域32AがKの画像領域32Bに、同図(a)に示すMの画像領域34AがMの画像領域34Bに各々変換されている。Kの画像領域32Bは、Kの画像領域32Aに対応する領域を構成している複数の画素の80%の画素を予め定められたスクリーンパターンを用いてKの画素に変換することによって構成されている。また、Mの画像領域34Bは、Mの画像領域34Aに対応する領域を構成している複数の画素の80%の画素を予め定められたスクリーンパターンを用いてMの画素に変換することによって構成されている。なお、ここでは、Kの画像領域32Bを構成する際に用いられるスクリーンパターンのスクリーン角度として63度を、Mの画像領域34Bを構成する際に用いられるスクリーンパターンのスクリーン角度として117度を各々適用している。   On the other hand, when trapping is performed after binarizing the mixed-color image 30A, first, as an example, the mixed-color image 30A is binarized and converted into a mixed-color image 30C as shown in FIGS. In the example of FIG. 4D, the K image area 32A shown in FIG. 4A is converted into the K image area 32B, and the M image area 34A shown in FIG. 4A is converted into the M image area 34B. Has been. The K image area 32B is configured by converting 80% of a plurality of pixels constituting the area corresponding to the K image area 32A into K pixels using a predetermined screen pattern. Yes. The M image area 34B is configured by converting 80% of the plurality of pixels constituting the area corresponding to the M image area 34A into M pixels using a predetermined screen pattern. Has been. Here, 63 degrees is applied as the screen angle of the screen pattern used when constructing the K image area 32B, and 117 degrees is applied as the screen angle of the screen pattern used when constructing the M image area 34B. is doing.

次に、同図(e)に示すように混色画像30CのKの画素に着目し、1次元フィルタαを用いてKの画像領域32Bを構成しているKの各画素を多値化する。また、Kの画素とは別にMの画像領域34Bを構成しているMの各画素は単純多値化で多値化する。この結果、同図(d)に示す混色画像30Cは同図(f)に示すように多値で示した混色画像30Dに変換される。同図(f)に示す例では、水平方向にかけてKの画素が3連続している各画素には“0.8”の濃度相当値(濃度=80%)が付与され、水平方向にかけてKの画素が2連続している各画素には“0.71”の濃度相当値(濃度=71%)が付与され、水平方向に連続していない単一のKの画素には“0.6”の濃度相当値(濃度=60%)が付与される。そして、“0.71”の濃度相当値が付与された画素及び“0.6”の濃度相当値が付与された画素を孤立画素とし、“0.8”の濃度相当値が付与された画素を非孤立画素とした上で、5×5のウィンドウを用いて、注目画素に孤立画素が配置された場合は5×5のウィンドウ内のMの画素の存在の有無に拘わらず注目画素に対してトラッピングを行わず、注目画素に非孤立画素が配置され、かつ5×5のウィンドウにMの画素が存在する場合は注目画素に対してトラッピングを行う。この結果、混色画像30Dは、同図(g)に示すようにKの画像領域32BにおいてMの画像領域34Bとの境界から2画素分の領域の非孤立画素のみにトラッピングが行われ、この非孤立画素は、KとMとが混在した色(Kの画素の画素値とMの画素の画素値とが足し合わされて表現された色)で表される。   Next, paying attention to the K pixel of the mixed color image 30C as shown in FIG. 5E, the K pixels constituting the K image region 32B are multi-valued using the one-dimensional filter α. In addition to the K pixel, each of the M pixels constituting the M image area 34B is multi-valued by simple multi-value quantization. As a result, the mixed color image 30C shown in FIG. 11D is converted into a mixed color image 30D shown in multiple values as shown in FIG. In the example shown in FIG. 5F, a density equivalent value of “0.8” (density = 80%) is assigned to each pixel in which three K pixels are continuous in the horizontal direction, and K is set in the horizontal direction. Each pixel having two consecutive pixels is assigned a density equivalent value of “0.71” (density = 71%), and “0.6” for a single K pixel that is not continuous in the horizontal direction. Concentration equivalent value (density = 60%) is given. A pixel to which a density equivalent value of “0.71” and a pixel to which a density equivalent value of “0.6” is assigned are defined as isolated pixels, and a pixel to which a density equivalent value of “0.8” is assigned. Is a non-isolated pixel, and when an isolated pixel is arranged in the target pixel using a 5 × 5 window, the target pixel is determined regardless of the presence or absence of M pixels in the 5 × 5 window. If no non-isolated pixel is arranged in the target pixel and M pixels exist in the 5 × 5 window, trapping is performed on the target pixel. As a result, the mixed color image 30D is trapped only in the non-isolated pixels in the region corresponding to two pixels from the boundary with the M image region 34B in the K image region 32B as shown in FIG. The isolated pixel is represented by a color in which K and M are mixed (a color expressed by adding the pixel value of the K pixel and the pixel value of the M pixel).

このようにして得られたトラッピング済みの混色画像30Dは、2値化されると、一例として同図(h)に示すように、混色画像30Dにおいてトラッピングが行われた画素(非孤立画素)に対応する画素に対してトラッピングが行われた2値で示した混色画像30Eが得られる。ここでの2値化は単純2値化を行う。単純2値化とは、ある閾値に対してそれより小さい値は“0”とし、大きい値は“1”とする2値化のことである。この閾値には1次元フィルタαの画素位置Aの重み値以下の値を使用することで孤立ドットも欠落することなく表現される。   When the trapped mixed color image 30D obtained in this way is binarized, as shown in FIG. 5H as an example, the trapped pixel (non-isolated pixel) in the mixed color image 30D is displayed. A binary color mixed image 30E obtained by trapping the corresponding pixel is obtained. The binarization here is simple binarization. The simple binarization is binarization in which a value smaller than a certain threshold is “0” and a larger value is “1”. By using a value equal to or smaller than the weight value of the pixel position A of the one-dimensional filter α, this threshold value is expressed without missing isolated dots.

なお、上記ステップ110の処理で用いる閾値として“0.7”を適用した場合、同図(f)に示す混色画像30DのKの画像領域32Bにおいて“0.6”の濃度相当値が付与された画素を孤立画素とし、“0.7”の濃度相当値が付与された画素及び“0.8”の濃度相当値が付与された画素を非孤立画素とした上で、5×5のウィンドウを用いて、注目画素に孤立画素が配置された場合は5×5のウィンドウ内のMの画素の存在の有無に拘わらず注目画素に対してトラッピングを行わず、注目画素に非孤立画素が配置され、かつ5×5のウィンドウにMの画素が存在する場合は注目画素に対してトラッピングを行う。この結果、混色画像30Dは、Kの画像領域32BにおいてMの画像領域34Bとの境界から2画素分の領域の非孤立画素のみにトラッピングが行われ、この非孤立画素は、KとMとが混在した色で表される。このようにして得られたトラッピング済みの混色画像30Dは、単純2値化されると、一例として同図(i)に示すように、混色画像30Dにおいてトラッピングが行われた画素(非孤立画素)に対応する画素に対してトラッピングが行われた2値で示した混色画像30Fが得られる。
以上のように、同図(a)に示す混色画像30Aから同図(d)に示す混色画像30Cへの変換は、通常の2値化(一般的なスクリーン処理)によって実現されるのに対し、同図(f)に示す混色画像30Dから同図(i)に示す混色画像30Fへの変換及び同図(g)に示す混色画像30Dから同図(h)に示す混色画像30Eへの変換は、単純2値化(1×1単位で予め定められた閾値を超えているか否かで判断される2値化)によって実現される。
When “0.7” is applied as the threshold value used in the processing of step 110, a density equivalent value of “0.6” is assigned to the K image region 32B of the mixed color image 30D shown in FIG. 5 × 5 window with the isolated pixel as the isolated pixel, the pixel with the density equivalent value of “0.7” and the pixel with the density equivalent value of “0.8” as the non-isolated pixel When an isolated pixel is placed in the target pixel, trapping is not performed on the target pixel regardless of the presence or absence of M pixels in the 5 × 5 window, and a non-isolated pixel is placed in the target pixel. If there are M pixels in the 5 × 5 window, the pixel of interest is trapped. As a result, the mixed color image 30D is trapped only in the non-isolated pixels in the area corresponding to two pixels from the boundary with the M image area 34B in the K image area 32B. Represented in mixed colors. When the trapped mixed-color image 30D obtained in this way is simply binarized, as shown in FIG. 5 (i) as an example, the trapped pixels (non-isolated pixels) in the mixed-color image 30D. A mixed color image 30 </ b> F indicated by a binary value obtained by trapping the pixels corresponding to is obtained.
As described above, the conversion from the mixed color image 30A shown in FIG. 6A to the mixed color image 30C shown in FIG. 4D is realized by normal binarization (general screen processing). The conversion from the mixed color image 30D shown in (f) to the mixed color image 30F shown in (i) and the conversion from the mixed image 30D shown in (g) to the mixed color image 30E shown in (h). Is realized by simple binarization (binarization determined by whether or not a predetermined threshold value is exceeded in units of 1 × 1).

次に、図9に示す具体例について説明する。図9は、本実施形態に係る画像形成装置10によって、濃度が50%のKの画像領域と濃度が50%のMの画像領域とが重ねられて構成され、かつ多値で表現された混色画像40Aを2値化する過程の一例が示されている。同図(a)に示すように混色画像40Aは、多値で示したKの画像領域と多値で示したMの画像領域とが重ねられているため、トラッピングは行われずに2値化される。なお。同図(c)には、同図(a)に示す多値で表現された混色画像を2値化した混色画像の一例が示されている。同図(a)〜(c)の例では、多値で示したKの画像領域の濃度50%に対して2値で示したKの画像領域でKが占める割合は50%となり、多値で示したMの画像領域の濃度50%に対して2値で示したMの画像領域でMが占める割合は50%となる。つまり、2値化の前後で混色画像の全体に対してKの占める割合及びMの占める割合に変化は生じない。   Next, a specific example shown in FIG. 9 will be described. FIG. 9 shows a mixed color in which the image forming apparatus 10 according to the present embodiment is configured such that a K image area having a density of 50% and an M image area having a density of 50% are overlapped and expressed in multiple values. An example of the process of binarizing the image 40A is shown. As shown in FIG. 6A, the mixed color image 40A is binarized without being trapped because the multi-valued K image region and the multi-valued M image region are overlapped. The Note that. FIG. 2C shows an example of a color mixture image obtained by binarizing the color mixture image expressed in multiple values shown in FIG. In the examples shown in FIGS. 5A to 5C, the ratio of K in the binary image area to 50% of the density of the multi-value K image area is 50%. The ratio of M in the M image area indicated by the binary value to 50% of the density of the M image area indicated by is 50%. That is, there is no change in the ratio of K and the ratio of M with respect to the entire mixed color image before and after binarization.

一方、同図(a)に示す混色画像40Aを2値化してからトラッピングを行う場合、先ず、同図(a)に示す混色画像40Aを2値化することにより混色画像40Aを混色画像40Cに変換する。混色画像40Cは、一例として同図(d)に示すように、Kのみの画像領域、Mのみの画像領域、画素値が0の画素からなる領域及びKの画素値とMの画素値とを足し合わせた画素値を有する画素(Kのレイヤの画素とMのレイヤの画素とを重ね合わせた画素)からなる画像領域で構成される。   On the other hand, in the case of performing trapping after binarizing the mixed color image 40A shown in FIG. 10A, first, the mixed color image 40A shown in FIG. Convert. As an example, the mixed color image 40C includes an image area of only K, an image area of only M, an area composed of pixels having a pixel value of 0, and a pixel value of K and an M pixel value, as shown in FIG. It is composed of an image area composed of pixels (pixels obtained by superimposing K layer pixels and M layer pixels) having added pixel values.

次に、同図(e)に示すようにKのみの画素に着目し、1次元フィルタαを用いてKの各画素を多値化する。また、Kの画素とは別にMの画像領域を構成しているMの各画素は単純多値化する。この結果、同図(e)に示すKのみの画素は同図(f)に示すように多値で示したKのみの画素に変換される。同図(f)に示す例では、水平方向にかけてKの画素が2連続している各画素には“0.71”の濃度相当値(濃度=71%)が付与され、水平方向に連続していない単一のKの画素には“0.6”の濃度相当値(濃度=60%)が付与される。なお、水平方向にKの画素が3連続している各画素には“0.8”の濃度相当値が付与されるが、同図(f)に示す例では水平方向にKの画素が3連続している画素は存在しないため、同図(f)に示すKの画素の何れにも“0.8”の濃度相当値が付与されない。   Next, as shown in FIG. 5E, paying attention to only the pixel of K, each pixel of K is multi-valued using a one-dimensional filter α. In addition to the K pixel, each M pixel constituting the M image area is simply multi-valued. As a result, the K-only pixel shown in FIG. 5E is converted into a multi-valued K-only pixel as shown in FIG. In the example shown in FIG. 5F, a density equivalent value of “0.71” (density = 71%) is assigned to each pixel in which two K pixels continue in the horizontal direction, and the pixels are continuously in the horizontal direction. A single equivalent K pixel is assigned a density equivalent value of “0.6” (density = 60%). Note that a density equivalent value of “0.8” is assigned to each pixel in which three K pixels are arranged in the horizontal direction, but in the example shown in FIG. Since there is no continuous pixel, a density equivalent value of “0.8” is not given to any of the K pixels shown in FIG.

そして、同図(f)に示すKの画像領域に多値化されたMの画像領域を重ね合わせてから、“0.71”の濃度相当値が付与された画素及び“0.6”の濃度相当値が付与された画素を孤立画素とし、“0.8”の濃度相当値が付与された画素を非孤立画素とした上で、5×5のウィンドウを用いて、注目画素に孤立画素が配置された場合は5×5のウィンドウ内のMの画素の存在の有無に拘わらず注目画素に対してトラッピングを行わず、注目画素に非孤立画素が配置され、かつ5×5のウィンドウにMの画素が存在する場合は注目画素に対してトラッピングを行う。この結果、同図(h)に示すように、同図(c)に示す混色画像40Bが得られる。つまり、同図(f)に示すKの画像領域を構成している画素には非孤立画素が存在しないため、トラッピングが実施されない。   Then, after superimposing the multi-valued M image area on the K image area shown in FIG. 5F, the pixel to which the density equivalent value of “0.71” is assigned and “0.6”. A pixel to which a density equivalent value is assigned is an isolated pixel, a pixel to which a density equivalent value of “0.8” is assigned is a non-isolated pixel, and an isolated pixel is used as a target pixel using a 5 × 5 window. Is not trapped with respect to the target pixel regardless of the presence or absence of M pixels in the 5 × 5 window, a non-isolated pixel is disposed at the target pixel, and the 5 × 5 window When there are M pixels, trapping is performed on the target pixel. As a result, a mixed color image 40B shown in FIG. 10C is obtained as shown in FIG. That is, trapping is not performed because there are no non-isolated pixels in the pixels constituting the K image region shown in FIG.

以上詳細に説明したように、本実施形態に係る画像形成装置10によれば、トラッピングを行うべき画素に対してはトラッピングが行われ、トラッピングを行うべきでない画素に対してはトラッピングが行われないので、記録用紙に形成される画像の画質の低下が軽減される。   As described above in detail, according to the image forming apparatus 10 according to the present embodiment, trapping is performed on pixels that should be trapped, and trapping is not performed on pixels that should not be trapped. Therefore, a reduction in image quality of the image formed on the recording paper is reduced.

なお、上記実施形態では、1次元フィルタαを用いて多値化を行う場合の形態例を挙げて説明したが、これに限らず、例えば図10に示すように1次元フィルタαを90度回転させた1次元フィルタβを用いて多値化を行ってもよい。1次元フィルタα及びβの何れを用いるかは、入力2値化データのスクリーンパターンのスクリーン角度に応じて決定すればよい。例えば、スクリーン角度θが0度以上45度以下の場合及び135度以上180度未満の場合に1次元フィルタβを用いることが好ましい。この場合、1次元フィルタαによって多値化対象画素に付与された濃度相当値及び1次元フィルタβによって多値化対象画素に付与された濃度相当値の予め定められた条件を満足した方を適用することにより多値化を行う形態例が挙げられる。予め定められた条件としては、例えば、他方よりも大きな濃度相当値を有する、との条件や、他方よりも小さな濃度相当値を有する、との条件が挙げられる。   In the above-described embodiment, an example of a case where multi-value conversion is performed using the one-dimensional filter α has been described. However, the present invention is not limited to this, and for example, the one-dimensional filter α is rotated by 90 degrees as illustrated in FIG. Multi-value conversion may be performed using the one-dimensional filter β. Which of the one-dimensional filters α and β is used may be determined according to the screen angle of the screen pattern of the input binarized data. For example, it is preferable to use the one-dimensional filter β when the screen angle θ is 0 degree or more and 45 degrees or less and when the screen angle θ is 135 degrees or more and less than 180 degrees. In this case, the one that satisfies the predetermined conditions of the density equivalent value given to the multilevel pixel by the one-dimensional filter α and the density equivalent value given to the multilevel pixel by the one-dimensional filter β is applied. By doing so, an example of performing multi-value conversion is given. Examples of the predetermined condition include a condition that a value corresponding to the density is larger than the other, and a condition that the value is equivalent to a density that is smaller than the other.

また、ユーザがUIパネル20を介して1次元フィルタα及びβの何れを用いるかを予め指定し、指定した1次元フィルタによって多値化対象画素に付与された濃度相当値を適用することにより多値化を行ってもよい。1次元フィルタα及びβの何れを用いるかは、多値で示した画像を2値化する際に用いるスクリーンパターンのスクリーン角度に応じて決定すればよい。例えば、スクリーン角度θが45度よりも大きく135度よりも小さい場合には1次元フィルタαを用い、スクリーン角度θが0度以上45度以下の場合及び135度以上180度未満の場合に1次元フィルタβを用いることが好ましい。   In addition, the user designates in advance which one of the one-dimensional filters α and β is to be used via the UI panel 20 and applies the density-equivalent value given to the multilevel pixel by the designated one-dimensional filter. Pricing may be performed. Which one of the one-dimensional filters α and β is used may be determined according to the screen angle of the screen pattern used when binarizing the multi-valued image. For example, when the screen angle θ is larger than 45 degrees and smaller than 135 degrees, the one-dimensional filter α is used. When the screen angle θ is 0 degrees or more and 45 degrees or less and when the screen angle θ is 135 degrees or more and less than 180 degrees, it is one-dimensional. It is preferable to use the filter β.

また、多値化を行うために用いるフィルタは1次元フィルタに限らず、2次元フィルタを用いてもよい。この場合、例えば、重み値がマトリクス状に配列されたN×M(N及びM;2以上の自然数)の2次元フィルタを用いる形態例や、1次元フィルタα及びβを併用する形態例が挙げられる。   Moreover, the filter used for multi-value conversion is not limited to a one-dimensional filter, and a two-dimensional filter may be used. In this case, for example, a form example using an N × M (N and M; natural numbers of 2 or more) in which weight values are arranged in a matrix, or a form example using a combination of the one-dimensional filters α and β. It is done.

また、上記実施形態では、CPU12によってトラッピング処理プログラムが実行されることによりトラッピング処理プログラムの各ステップを実現するソフトウェア的な形態を例示したが、これに限らず、各種回路(一例として、ASIC(Application Specific Integrated Circuit))を接続して構成されるハードウェア的な形態や、ソフトウェア的な形態とハードウェア的な形態とを組み合わせた形態が挙げられる。   In the above-described embodiment, the software form for realizing each step of the trapping process program by executing the trapping process program by the CPU 12 is exemplified. However, the present invention is not limited to this, and various circuits (for example, ASIC (Application Specific integrated circuits)) are connected to each other in a hardware form, or a combination of a software form and a hardware form.

また、上記実施形態では、トラッピング処理プログラムがROM14に予め記憶されている場合の形態例を挙げて説明したが、本発明はこれに限定されるものではなく、これらのプログラムをCD−ROMやDVD−ROM、USBメモリなどのコンピュータによって読み取られる記録媒体に格納した状態で提供する形態を適用してもよいし、有線又は無線による通信手段を介して配信する形態を適用しても良い。   In the above embodiment, the trapping processing program has been described as an example in the case where the ROM 14 is stored in advance. However, the present invention is not limited to this, and these programs are stored in a CD-ROM or DVD. A form that is provided in a state of being stored in a recording medium that is read by a computer such as a ROM or a USB memory may be applied, or a form that is distributed via wired or wireless communication means may be applied.

10 画像形成装置
12 CPU
20 UIパネル
26 画像形成部
10 Image forming apparatus 12 CPU
20 UI panel 26 Image forming unit

Claims (10)

複数の原色が混在した混色画像を2値で示した2値化画像において、特定の原色の多値化対象画素に対して予め定められた方向に該特定の原色の画素が連続している場合、該多値化対象画素の濃度が予め定められた閾値以上となるように該多値化対象画素を多値化し、該多値化対象画素に対して該方向に該特定の原色の画素が連続していない場合、該多値化対象画素の濃度が該閾値未満となるように該多値化対象画素を多値化することにより該2値化画像を多値化画像に変換する変換手段と、
前記変換手段によって変換されて得られた多値化画像において、前記閾値以上の濃度を有する前記特定の原色の画素のうちの注目画素を含む予め定められた領域に該注目画素とは異なる原色の画素が含まれる場合、該注目画素を該領域に含まれる各画素の原色が混在した画素に置き換える置換手段と、
を含む画像処理装置。
In a binarized image in which a mixed color image in which a plurality of primary colors are mixed is represented by binary values, pixels of the specific primary color are continuous in a predetermined direction with respect to the multi-value quantization target pixel of the specific primary color The multi-value quantization target pixel is multi-valued so that the density of the multi-value quantization target pixel is equal to or higher than a predetermined threshold, and the pixel of the specific primary color is in the direction with respect to the multi-value quantization target pixel. Conversion means for converting the binarized image into a multilevel image by multileveling the multilevel pixel so that the density of the multilevel pixel is less than the threshold when not continuous When,
In the multi-valued image obtained by conversion by the conversion means, a primary color different from the target pixel in a predetermined region including the target pixel among the pixels of the specific primary color having a density equal to or higher than the threshold value. When a pixel is included, replacement means for replacing the target pixel with a pixel in which the primary colors of the pixels included in the region are mixed;
An image processing apparatus.
前記置換手段によって前記注目画素が置き換えられて得られた前記多値化画像を2値化する2値化手段を更に含む請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising binarization means for binarizing the multilevel image obtained by replacing the target pixel by the replacement means. 前記変換手段は、前記多値化対象画素を始点として前記方向に連続する前記特定の原色の画素に対して互いに異なる重み値を付与する重み値付与手段を有し、該重み値付与手段によって付与された重み値を加算して得た総計値を前記多値化対象画素の濃度に相当する値として適用することにより前記2値化画像を前記多値化画像に変換する請求項1または請求項2に記載の画像処理装置。   The converting means includes weight value assigning means for assigning different weight values to the specific primary color pixels continuous in the direction starting from the multi-value quantization target pixel, and the weight value assigning means provides the weight value assigning means. The binarized image is converted into the multilevel image by applying a total value obtained by adding the weighted values as a value corresponding to the density of the multilevel binarization pixel. 2. The image processing apparatus according to 2. 前記重み値付与手段は、更に、前記多値化対象画素を始点として前記方向に対して交差する方向に連続する前記特定の原色の画素に対して互いに異なる重み値を付与し、
前記変換手段は、前記重み値付与手段によって前記方向に連続する画素に対して付与された重み値を加算して得た総計値及び前記重み値付与手段によって前記交差する方向に連続する前記特定の原色の画素に対して付与された重み値を加算して得た総計値のうちの予め定められた条件を満足した方を前記多値化対象画素の濃度に相当する値として適用することにより前記2値化画像を前記多値化画像に変換する請求項3に記載の画像処理装置。
The weight value assigning unit further assigns different weight values to the pixels of the specific primary color that are continuous in the direction intersecting the direction starting from the multi-value pixel.
The converting means includes a total value obtained by adding the weight values given to the pixels that are continuous in the direction by the weight value giving means and the specific value that is continuous in the intersecting direction by the weight value giving means. By applying the one that satisfies a predetermined condition among the total values obtained by adding the weight values assigned to the primary color pixels as a value corresponding to the density of the multilevel pixel The image processing apparatus according to claim 3, wherein a binarized image is converted into the multilevel image.
前記重み値付与手段は、更に、前記多値化対象画素を始点として前記方向に対して交差する方向に連続する前記特定の原色の画素に対して互いに異なる重み値を付与し、
前記重み値付与手段によって前記方向に連続する画素に対して付与された重み値を加算して得た総計値と前記重み値付与手段によって前記交差する方向に連続する前記特定の原色の画素に対して付与された重み値を加算して得た総計値との何れかを前記多値化対象画素の濃度に相当する値として指定する指定手段を更に含み、
前記変換手段は、前記指定手段によって指定された総計値を前記多値化対象画素の濃度に相当する値として適用することにより前記2値化画像を前記多値化画像に変換する請求項3に記載の画像処理装置。
The weight value assigning unit further assigns different weight values to the pixels of the specific primary color that are continuous in the direction intersecting the direction starting from the multi-value pixel.
The total value obtained by adding the weight values given to the pixels continuous in the direction by the weight value giving means and the pixels of the specific primary color that are continuous in the intersecting direction by the weight value giving means And a specifying means for specifying any one of the total values obtained by adding the weight values given in the above as a value corresponding to the density of the multi-valued pixel,
The conversion unit converts the binarized image into the multilevel image by applying the total value specified by the specifying unit as a value corresponding to the density of the multilevel pixel. The image processing apparatus described.
入力された指示に応じて前記閾値を変更する変更手段を更に含み、
前記重み値付与手段が画素に対して付与する重み値を、前記変更手段によって変更された前記閾値に対して予め定められた重み値とした請求項3〜請求項5の何れか1項に記載の画像処理装置。
A change unit for changing the threshold value according to the input instruction;
The weight value given to the pixel by the weight value assigning unit is a weight value set in advance for the threshold value changed by the changing unit. Image processing apparatus.
前記変換手段は、更に、前記混色画像を多値で示した画像を示す画像情報が入力された場合、該画像情報により示される画像を2値化し、2値化して得た画像を前記2値化画像とした請求項1〜請求項6の何れか1項に記載の画像処理装置。   The conversion means further binarizes an image indicated by the image information when the image information indicating an image in which the mixed color image is expressed in multiple values is input, and converts the binary image to the binary value. The image processing apparatus according to any one of claims 1 to 6, wherein the image processing apparatus is a converted image. 前記特定の原色を黒色とした請求項1〜請求項7の何れか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the specific primary color is black. 請求項1〜請求項8の何れか1項に記載の画像処理装置と、
前記置換手段によって前記注目画素が置き換えられて得られた前記多値化画像が2値化されて得られた画像を記録媒体に形成する形成手段と、
を含む画像形成装置。
The image processing apparatus according to any one of claims 1 to 8,
Forming means for forming, on a recording medium, an image obtained by binarizing the multi-valued image obtained by replacing the target pixel by the replacing means;
An image forming apparatus including:
コンピュータを、
複数の原色が混在した混色画像を2値で示した2値化画像において、特定の原色の多値化対象画素に対して予め定められた方向に該特定の原色の画素が連続している場合、該多値化対象画素の濃度が予め定められた閾値以上となるように該濃度を多値化し、該多値化対象画素に対して該方向に該特定の原色の画素が連続していない場合、該多値化対象画素の濃度が該閾値未満となるように該多値化対象画素を多値化することにより該2値化画像を多値化画像に変換する変換手段、及び
前記変換手段によって変換されて得られた多値化画像において、前記閾値以上の濃度を有する前記特定の原色の画素のうちの注目画素を含む予め定められた領域に該注目画素とは異なる原色の画素が含まれる場合、該注目画素を該領域に含まれる各画素の原色が混在した画素に置き換える置換手段として機能させるためのプログラム。
Computer
In a binarized image in which a mixed color image in which a plurality of primary colors are mixed is represented by binary values, pixels of the specific primary color are continuous in a predetermined direction with respect to the multi-value quantization target pixel of the specific primary color The multi-value quantization target pixel is multi-valued so that the density of the multi-value quantization target pixel is equal to or higher than a predetermined threshold, and the pixels of the specific primary color are not continuous in the direction with respect to the multi-value quantization target pixel. A conversion unit that converts the binarized image into a multilevel image by multileveling the multilevel binarization pixel so that the density of the multilevel binarization pixel is less than the threshold; and the conversion In the multi-valued image obtained by conversion by the means, a primary color pixel different from the target pixel is present in a predetermined region including the target pixel among the specific primary color pixels having a density equal to or higher than the threshold value. If included, the pixel of interest is the primary color of each pixel included in the region A program for functioning as a replacement means for replacing with a mixed pixel.
JP2011024967A 2011-02-08 2011-02-08 Image processing apparatus, image forming apparatus, and program Expired - Fee Related JP5699655B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011024967A JP5699655B2 (en) 2011-02-08 2011-02-08 Image processing apparatus, image forming apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011024967A JP5699655B2 (en) 2011-02-08 2011-02-08 Image processing apparatus, image forming apparatus, and program

Publications (2)

Publication Number Publication Date
JP2012165245A true JP2012165245A (en) 2012-08-30
JP5699655B2 JP5699655B2 (en) 2015-04-15

Family

ID=46844197

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011024967A Expired - Fee Related JP5699655B2 (en) 2011-02-08 2011-02-08 Image processing apparatus, image forming apparatus, and program

Country Status (1)

Country Link
JP (1) JP5699655B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016048874A (en) * 2014-08-28 2016-04-07 株式会社東芝 Image forming apparatus
US10457068B2 (en) 2017-08-30 2019-10-29 Brother Kogyo Kabushiki Kaisha Image processing apparatus configured to trapping process and non-transitory computer-readable recording medium storing instructions for image processing including trapping process
JP7487525B2 (en) 2020-03-31 2024-05-21 セイコーエプソン株式会社 Recording device and recording method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006135568A (en) * 2004-11-05 2006-05-25 Konica Minolta Medical & Graphic Inc Image output system, controller, image output method, program and storage medium storing that program
JP2010245965A (en) * 2009-04-08 2010-10-28 Sharp Corp Image processor, image forming apparatus, image processing method, computer program, and recording medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006135568A (en) * 2004-11-05 2006-05-25 Konica Minolta Medical & Graphic Inc Image output system, controller, image output method, program and storage medium storing that program
JP2010245965A (en) * 2009-04-08 2010-10-28 Sharp Corp Image processor, image forming apparatus, image processing method, computer program, and recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016048874A (en) * 2014-08-28 2016-04-07 株式会社東芝 Image forming apparatus
US10457068B2 (en) 2017-08-30 2019-10-29 Brother Kogyo Kabushiki Kaisha Image processing apparatus configured to trapping process and non-transitory computer-readable recording medium storing instructions for image processing including trapping process
JP7487525B2 (en) 2020-03-31 2024-05-21 セイコーエプソン株式会社 Recording device and recording method

Also Published As

Publication number Publication date
JP5699655B2 (en) 2015-04-15

Similar Documents

Publication Publication Date Title
KR101223865B1 (en) Image processing apparatus and control method of image processing apparatus
US6943809B2 (en) Tiled vector flattened output
JP5699655B2 (en) Image processing apparatus, image forming apparatus, and program
JP2006352633A (en) Image processing method and its program
JP2008067044A (en) Image processor, image reader, image processing method, and image processing program
JP5282800B2 (en) Image processing apparatus and program
US10071564B2 (en) Control apparatus, image processing method and non-transitory recording medium storing image processing program
CN102461149A (en) Image forming apparatus and image processing method
JP2015126277A (en) Image processing apparatus and image processing method
US8565548B2 (en) Image processing apparatus which performs anti-aliasing on input image data and image processing method thereof
JP4453979B2 (en) Image reproducing apparatus, image reproducing method, program, and recording medium
JP2004135317A (en) Color image processing apparatus and color image processing method
JP2010074627A (en) Image processor and method of processing image
JP4492090B2 (en) Image forming apparatus and image forming method
JP6834559B2 (en) Image processing program and image processing equipment
JP2006270655A (en) Apparatus and method for image processing
JP2019149786A (en) Image processing apparatus, image forming apparatus, and program
JP6292061B2 (en) Information processing apparatus and program
JP2007214966A (en) Unit and method for processing image, and image forming apparatus
JP5994471B2 (en) Image processing program and information processing apparatus
JP5458969B2 (en) Image processing apparatus, image processing method, and program
JP4228804B2 (en) Image processing apparatus, image forming apparatus, image processing method, program thereof, and recording medium recording the program
JP5115203B2 (en) Image processing apparatus, encoding method, and decoding method
JP2013135396A (en) Image processor and image processing method
JP4409883B2 (en) Image printing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141006

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141111

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141218

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150202

R150 Certificate of patent or registration of utility model

Ref document number: 5699655

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees