Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7380237B2 - Image processing device, image forming device, and image processing program - Google Patents
[go: Go Back, main page]

JP7380237B2 - Image processing device, image forming device, and image processing program - Google Patents

Image processing device, image forming device, and image processing program Download PDF

Info

Publication number
JP7380237B2
JP7380237B2 JP2020005456A JP2020005456A JP7380237B2 JP 7380237 B2 JP7380237 B2 JP 7380237B2 JP 2020005456 A JP2020005456 A JP 2020005456A JP 2020005456 A JP2020005456 A JP 2020005456A JP 7380237 B2 JP7380237 B2 JP 7380237B2
Authority
JP
Japan
Prior art keywords
pixel
pixels
interest
colored
dots
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
JP2020005456A
Other languages
Japanese (ja)
Other versions
JP2021114662A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2020005456A priority Critical patent/JP7380237B2/en
Publication of JP2021114662A publication Critical patent/JP2021114662A/en
Application granted granted Critical
Publication of JP7380237B2 publication Critical patent/JP7380237B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Color, Gradation (AREA)
  • Control Or Security For Electrophotography (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

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

例えば、特許文献1には、粒状性がよい出力画像を得ることができる画像処理装置が記載されている。この画像処理装置は、誤差拡散処理で得られた第1解像度の第1画像データであって、白画素と有色画素とを含む複数の画素で構成される第1画像データを取得する取得手段を備える。また、この画像処理装置は、第1画像データの複数の画素各々に白ドットと有色ドットの少なくとも一方を含む複数のドットを割り当て、第1画像データを第1解像度より大きい第2解像度の第2画像データに変換する解像度変換手段を備える。また、この解像度変換手段は、第1画像データの注目する有色画素を含む予め定めた領域に占める有色画素の割合に応じて、注目する有色画素に割り当てる白ドットに対する有色ドットの比率を変更する。 For example, Patent Document 1 describes an image processing device that can obtain an output image with good graininess. This image processing device includes an acquisition means for acquiring first image data of a first resolution obtained by error diffusion processing and composed of a plurality of pixels including white pixels and colored pixels. Be prepared. The image processing device also assigns a plurality of dots including at least one of white dots and colored dots to each of the plurality of pixels of the first image data, and converts the first image data into a second image with a second resolution larger than the first resolution. A resolution conversion means for converting into image data is provided. Further, the resolution converting means changes the ratio of colored dots to white dots to be assigned to the colored pixel of interest in accordance with the proportion of colored pixels in a predetermined area including the colored pixel of interest of the first image data.

特開2019-149786号公報JP2019-149786A

従来、注目画素の周囲の白画素の数に応じて注目画素を補正する所謂孤立点補正を行う場合がある。この場合、ある領域内における有色画素の割合が略同じであるにもかかわらず、補正される画素と、補正されない画素とが発生する。このため、出力画像に濃度ムラが発生する。 Conventionally, so-called isolated point correction is sometimes performed in which a pixel of interest is corrected according to the number of white pixels surrounding the pixel of interest. In this case, some pixels are corrected and some pixels are not corrected, even though the proportion of colored pixels in a certain area is approximately the same. Therefore, density unevenness occurs in the output image.

本発明は、注目画素の周囲の白画素の数に応じて注目画素を補正する場合と比較して、濃度ムラの発生を抑制することができる画像処理装置、画像形成装置、及び画像処理プログラムを提供することを目的とする。 The present invention provides an image processing device, an image forming device, and an image processing program that can suppress the occurrence of density unevenness compared to the case where a pixel of interest is corrected according to the number of white pixels surrounding the pixel of interest. The purpose is to provide.

上記目的を達成するために、第1態様に係る画像処理装置は、プロセッサを備え、前記プロセッサが、複数の白画素及び複数の有色画素を含む画像データに対して、注目する有色画素である注目画素及び前記注目画素の周囲の複数画素を含む第1領域を設定し、前記第1領域内の前記複数画素の全てが白画素又は前記複数画素の予め定められた数未満が有色画素である場合、前記画像データに対して、前記第1領域よりも大きい第2領域を設定し、前記第2領域に占める有色画素の割合が閾値以下である場合、前記注目画素を補正する。 In order to achieve the above object, an image processing device according to a first aspect includes a processor, and the processor processes image data that includes a plurality of white pixels and a plurality of colored pixels into a focused colored pixel. A first region including a pixel and a plurality of pixels around the pixel of interest is set, and all of the plurality of pixels in the first region are white pixels or less than a predetermined number of the plurality of pixels are colored pixels. , a second region larger than the first region is set for the image data, and if a proportion of colored pixels occupying the second region is less than or equal to a threshold value, the pixel of interest is corrected.

また、第2態様に係る画像処理装置は、第1態様に係る画像処理装置において、前記プロセッサが、前記第2領域に占める有色画素の割合が前記閾値よりも大きい場合、前記注目画素の補正を行わない。 Further, in the image processing apparatus according to a second aspect, in the image processing apparatus according to the first aspect, when the proportion of colored pixels occupying the second area is larger than the threshold value, the processor corrects the pixel of interest. Not performed.

また、第3態様に係る画像処理装置は、第2態様に係る画像処理装置において、前記プロセッサが、前記第1領域内の前記複数画素の前記予め定められた数以上が有色画素である場合、前記第2領域の設定を行わない。 Further, in the image processing device according to a third aspect, in the image processing device according to the second aspect, when the processor determines that at least the predetermined number of the plurality of pixels in the first area are colored pixels, The second area is not set.

また、第4態様に係る画像処理装置は、第1態様~第3態様のいずれか1の態様に係る画像処理装置において、前記第1領域が、前記注目画素を中心とするn×n(nは3以上の奇数)の領域であり、前記第2領域が、前記注目画素を中心とするm×m(mはnより大きい奇数)の領域であるとされている。 Further, in the image processing device according to a fourth aspect, in the image processing device according to any one of the first to third aspects, the first area is n×n (n is an odd number greater than or equal to 3), and the second region is an m×m region (m is an odd number greater than n) centered on the pixel of interest.

また、第5態様に係る画像処理装置は、第4態様に係る画像処理装置において、前記予め定められた数が、前記第1領域のnが大きいほど、大きな値となり、前記閾値が、前記第2領域のmが大きいほど、大きな値となる。 Further, in the image processing apparatus according to a fifth aspect, in the image processing apparatus according to the fourth aspect, the predetermined number becomes a larger value as n of the first area becomes larger, and the threshold value becomes a larger value than the first area. The larger m in the two regions is, the larger the value becomes.

また、第6態様に係る画像処理装置は、第1態様~第5態様のいずれか1の態様に係る画像処理装置において、前記画像データを構成する複数の画素の各々が、複数のドットが割り当てられており、前記複数のドットの各々が、露光装置が備える発光素子が対応付けられており、前記白画素が、前記複数のドットに、発光素子を消灯するドットである白ドットが割り当てられた画素であり、前記有色画素が、前記複数のドットに、発光素子を点灯するドットである有色ドットが割り当てられた画素であり、前記注目画素の補正が、前記注目画素に割り当てられた複数の有色ドットの少なくとも1つを白ドットに変更する補正であるとされている。 Further, in the image processing device according to a sixth aspect, in the image processing device according to any one of the first to fifth aspects, each of the plurality of pixels constituting the image data is assigned a plurality of dots. Each of the plurality of dots is associated with a light emitting element included in the exposure apparatus, and the white pixel is a white dot that turns off the light emitting element. The pixel is a pixel, and the colored pixel is a pixel to which a colored dot, which is a dot that lights up a light emitting element, is assigned to the plurality of dots, and the correction of the pixel of interest is a pixel in which a plurality of colored dots, which are dots that light up a light emitting element, are assigned to the plurality of dots, and the correction of the pixel of interest is performed using a plurality of colored dots assigned to the pixel of interest. It is said that this is a correction that changes at least one of the dots to a white dot.

更に、上記目的を達成するために、第7態様に係る画像形成装置は、第1態様~第6態様のいずれか1の態様に係る画像処理装置と、前記画像処理装置から取得した画像データに基づいて、画像を出力する画像出力部と、を備えている。 Furthermore, in order to achieve the above object, an image forming apparatus according to a seventh aspect includes an image processing apparatus according to any one of the first to sixth aspects, and image data acquired from the image processing apparatus. and an image output unit that outputs an image based on the image.

更に、上記目的を達成するために、第8態様に係る画像処理プログラムは、複数の白画素及び複数の有色画素を含む画像データに対して、注目する有色画素である注目画素及び前記注目画素の周囲の複数画素を含む第1領域を設定し、前記第1領域内の前記複数画素の全てが白画素又は前記複数画素の予め定められた数未満が有色画素である場合、前記画像データに対して、前記第1領域よりも大きい第2領域を設定し、前記第2領域に占める有色画素の割合が閾値以下である場合、前記注目画素を補正することを、コンピュータに実行させる。 Furthermore, in order to achieve the above object, the image processing program according to the eighth aspect includes a pixel of interest that is a colored pixel of interest and a pixel of interest that is a colored pixel of interest for image data including a plurality of white pixels and a plurality of colored pixels. If a first region including a plurality of surrounding pixels is set, and all of the plurality of pixels in the first region are white pixels or less than a predetermined number of the plurality of pixels are colored pixels, the image data is Then, a second region larger than the first region is set, and when a proportion of colored pixels occupying the second region is less than or equal to a threshold value, the computer is caused to correct the pixel of interest.

第1態様、第7態様、及び第8態様によれば、注目画素の周囲の白画素の数に応じて注目画素を補正する場合と比較して、濃度ムラの発生を抑制することができる、という効果を有する。 According to the first aspect, the seventh aspect, and the eighth aspect, the occurrence of density unevenness can be suppressed compared to the case where the pixel of interest is corrected according to the number of white pixels surrounding the pixel of interest. It has this effect.

第2態様によれば、注目画素の補正を行うことで中間濃度が薄くなることを抑制することができる、という効果を有する。 According to the second aspect, it is possible to suppress the intermediate density from becoming thinner by correcting the pixel of interest.

第3態様によれば、第2領域が不必要に設定されないようにすることができる、という効果を有する。 According to the third aspect, there is an effect that the second area can be prevented from being set unnecessarily.

第4態様によれば、第1領域にn×nの領域及び第2領域にm×mの領域を適用しない場合と比較して、第1領域及び第2領域を容易に設定することができる、という効果を有する。 According to the fourth aspect, the first region and the second region can be easily set compared to the case where the n×n region is not applied to the first region and the m×m region is not applied to the second region. , has the effect of

第5態様によれば、注目画素を補正するか否かを、第1領域及び第2領域の大きさに応じて決定することができる、という効果を有する。 According to the fifth aspect, it is possible to determine whether or not to correct the pixel of interest depending on the sizes of the first region and the second region.

第6態様によれば、注目画素を目立たなくし、粒状性を向上させることができる、という効果を有する。 According to the sixth aspect, there is an effect that the pixel of interest can be made less noticeable and graininess can be improved.

実施形態に係る画像形成装置の電気的な構成の一例を示すブロック図である。FIG. 1 is a block diagram illustrating an example of an electrical configuration of an image forming apparatus according to an embodiment. 実施形態に係る画像処理装置の機能的な構成の一例を示すブロック図である。FIG. 1 is a block diagram illustrating an example of a functional configuration of an image processing device according to an embodiment. 実施形態に係る誤差拡散処理の説明に供する図である。FIG. 3 is a diagram for explaining error diffusion processing according to the embodiment. (A)は、画像データの1画素に割り当てられた複数のドットの配列の一例を示す図である。(B)は、有色画素に対する点灯パターンの一例を示す図である。(C)は、白色画素に対する点灯パターンの一例を示す図である。(A) is a diagram showing an example of an arrangement of a plurality of dots assigned to one pixel of image data. (B) is a diagram showing an example of a lighting pattern for colored pixels. (C) is a diagram showing an example of a lighting pattern for white pixels. 比較例に係る孤立点補正処理の説明に供する図である。FIG. 7 is a diagram for explaining isolated point correction processing according to a comparative example. (A)は、比較例に係る画像データを示す図である。(B)は、比較例に係る画像データの補正されない部分に対応する有色画素の配置パターンを示す図である。(C)は、比較例に係る画像データの補正される部分に対応する有色画素の配置パターンを示す図である。(A) is a diagram showing image data according to a comparative example. (B) is a diagram showing an arrangement pattern of colored pixels corresponding to an uncorrected portion of image data according to a comparative example. (C) is a diagram showing an arrangement pattern of colored pixels corresponding to a corrected portion of image data according to a comparative example. (A)及び(B)は、実施形態に係る孤立点補正処理の説明に供する図である。(A) and (B) are diagrams for explaining isolated point correction processing according to the embodiment. 実施形態に係る画像処理プログラムによる処理の流れの一例を示すフローチャートである。3 is a flowchart illustrating an example of the flow of processing by an image processing program according to an embodiment. 第1ウインドウによる注目画素の選択状態の一例を示す図である。FIG. 6 is a diagram illustrating an example of a state in which a pixel of interest is selected by a first window. 実施形態に係る発光素子の点灯パターンの一例を示す図である。It is a figure showing an example of the lighting pattern of the light emitting element concerning an embodiment.

以下、図面を参照して、本発明を実施するための形態の一例について詳細に説明する。 EMBODIMENT OF THE INVENTION Hereinafter, with reference to drawings, an example of the form for implementing this invention is demonstrated in detail.

図1は、本実施形態に係る画像形成装置20の電気的な構成の一例を示すブロック図である。 FIG. 1 is a block diagram showing an example of the electrical configuration of an image forming apparatus 20 according to this embodiment.

図1に示すように、本実施形態に係る画像形成装置20は、画像処理装置10と、表示部21と、操作部22と、画像読取部23と、画像出力部24と、通信部25と、を備えている。画像処理装置10は、CPU(Central Processing Unit)11と、ROM(Read Only Memory)12と、RAM(Random Access Memory)13と、入出力インターフェース(I/O)14と、記憶部15と、を備えている。本実施形態に係る画像処理装置10は、画像形成装置20が備える画像処理部として構成されている。 As shown in FIG. 1, the image forming apparatus 20 according to the present embodiment includes an image processing apparatus 10, a display section 21, an operation section 22, an image reading section 23, an image output section 24, and a communication section 25. , is equipped with. The image processing device 10 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, an input/output interface (I/O) 14, and a storage section 15. We are prepared. The image processing apparatus 10 according to the present embodiment is configured as an image processing section included in the image forming apparatus 20.

CPU11、ROM12、RAM13、及びI/O14は、バスを介して各々接続されている。I/O14には、記憶部15と、表示部21と、操作部22と、画像読取部23と、画像出力部24と、通信部25と、を含む各機能部が接続されている。これらの各機能部は、I/O14を介して、CPU11と相互に通信可能とされる。 The CPU 11, ROM 12, RAM 13, and I/O 14 are each connected via a bus. Each functional section including a storage section 15, a display section 21, an operation section 22, an image reading section 23, an image output section 24, and a communication section 25 is connected to the I/O 14. Each of these functional units can communicate with the CPU 11 via the I/O 14.

CPU11、ROM12、RAM13、及びI/O14によって制御部が構成される。制御部は、画像形成装置20の一部の動作を制御するサブ制御部として構成されてもよいし、画像形成装置20の全体の動作を制御するメイン制御部の一部として構成されてもよい。制御部の各ブロックの一部又は全部には、例えば、LSI(Large Scale Integration)等の集積回路又はIC(Integrated Circuit)チップセットが用いられる。上記各ブロックに個別の回路を用いてもよいし、一部又は全部を集積した回路を用いてもよい。上記各ブロック同士が一体として設けられてもよいし、一部のブロックが別に設けられてもよい。また、上記各ブロックのそれぞれにおいて、その一部が別に設けられてもよい。制御部の集積化には、LSIに限らず、専用回路又は汎用プロセッサを用いてもよい。 A control unit is configured by the CPU 11, ROM 12, RAM 13, and I/O 14. The control unit may be configured as a sub-control unit that controls a part of the operation of the image forming apparatus 20, or may be configured as a part of a main control unit that controls the entire operation of the image forming apparatus 20. . For example, an integrated circuit such as an LSI (Large Scale Integration) or an IC (Integrated Circuit) chipset is used for a part or all of each block of the control section. Individual circuits may be used for each of the above blocks, or a part or all of them may be integrated. Each of the blocks described above may be provided integrally, or some blocks may be provided separately. Moreover, in each of the above-mentioned blocks, a part thereof may be provided separately. The integration of the control section is not limited to LSI, but a dedicated circuit or a general-purpose processor may also be used.

記憶部15としては、例えば、HDD(Hard Disk Drive)、SSD(Solid State Drive)、フラッシュメモリ等が用いられる。記憶部15には、本実施形態に係る画像処理プログラム15Aが記憶される。なお、この画像処理プログラム15Aは、ROM12に記憶されていてもよい。 As the storage unit 15, for example, an HDD (Hard Disk Drive), an SSD (Solid State Drive), a flash memory, etc. are used. The storage unit 15 stores an image processing program 15A according to the present embodiment. Note that this image processing program 15A may be stored in the ROM 12.

画像処理プログラム15Aは、例えば、画像形成装置20に予めインストールされていてもよい。画像処理プログラム15Aは、不揮発性の記憶媒体に記憶して、又はネットワークを介して配布して、画像形成装置20に適宜インストールすることで実現してもよい。なお、不揮発性の記憶媒体の例としては、CD-ROM(Compact Disc Read Only Memory)、光磁気ディスク、HDD、DVD-ROM(Digital Versatile Disc Read Only Memory)、フラッシュメモリ、メモリカード等が想定される。 The image processing program 15A may be installed in the image forming apparatus 20 in advance, for example. The image processing program 15A may be realized by being stored in a nonvolatile storage medium, or distributed via a network, and installed in the image forming apparatus 20 as appropriate. Note that examples of nonvolatile storage media include CD-ROM (Compact Disc Read Only Memory), magneto-optical disk, HDD, DVD-ROM (Digital Versatile Disc Read Only Memory), flash memory, memory card, etc. Ru.

表示部21には、例えば、液晶ディスプレイ(LCD:Liquid Crystal Display)、有機EL(Electro Luminescence)ディスプレイ等が用いられる。表示部21は、タッチパネルを一体的に有していてもよい。操作部22には、例えば、テンキー、スタートキー等の各種の操作キーが設けられている。表示部21及び操作部22は、画像形成装置20のユーザから各種の指示を受け付ける。この各種の指示には、例えば、原稿の読み取りを開始させる指示や、原稿のコピーを開始させる指示等が含まれる。表示部21は、ユーザから受け付けた指示に応じて実行された処理の結果や、処理に対する通知等の各種の情報を表示する。 For example, a liquid crystal display (LCD), an organic EL (electro luminescence) display, or the like is used for the display unit 21. The display unit 21 may integrally include a touch panel. The operation unit 22 is provided with various operation keys such as a numeric keypad and a start key. The display unit 21 and the operation unit 22 receive various instructions from the user of the image forming apparatus 20. These various instructions include, for example, an instruction to start reading a document, an instruction to start copying a document, and the like. The display unit 21 displays various information such as the results of processing executed in response to instructions received from the user and notifications regarding the processing.

画像読取部23は、画像形成装置20の上部に設けられた自動原稿送り装置(図示省略)の給紙台に置かれた原稿を1枚ずつ取り込み、取り込んだ原稿を光学的に読み取って画像情報を得る。あるいは、画像読取部23は、プラテンガラス等の原稿台に置かれた原稿を光学的に読み取って画像情報を得る。 The image reading unit 23 captures the originals placed on the paper feed tray of an automatic document feeder (not shown) provided at the top of the image forming apparatus 20 one by one, optically reads the imported originals, and obtains image information. get. Alternatively, the image reading unit 23 optically reads a document placed on a document table such as a platen glass to obtain image information.

画像出力部24は、画像読取部23による読み取りによって得られた画像情報、又は、ネットワーク(図示省略)を介して接続された外部のパーソナルコンピュータ(PC:Personal Computer)等から得られた画像情報に基づく画像を、紙等の記録媒体(以下、単に「用紙」という。)に出力する。なお、本実施形態においては、画像を出力する方式として、電子写真方式を例示して説明する。 The image output unit 24 outputs image information obtained by reading by the image reading unit 23 or image information obtained from an external personal computer (PC) or the like connected via a network (not shown). The image based on the image is output to a recording medium such as paper (hereinafter simply referred to as "paper"). Note that in this embodiment, an electrophotographic method will be exemplified and explained as a method for outputting an image.

画像を出力する方式が電子写真方式の場合、画像出力部24は、感光体ドラム、帯電装置、露光装置、現像装置、転写装置、及び定着装置を含んでいる。帯電装置は、感光体ドラムに電圧を印加して感光体ドラムの表面を帯電させる。露光装置は、帯電装置で帯電された感光体ドラムを画像情報に応じた光で露光することにより感光体ドラムに静電潜像を形成する。現像装置は、感光体ドラムに形成された静電潜像をトナーにより現像することで感光体ドラムにトナー像を形成する。転写装置は、感光体ドラムに形成されたトナー像を用紙に転写する。定着装置は、用紙に転写されたトナー像を加熱及び加圧により定着させる。 When the image output method is an electrophotographic method, the image output section 24 includes a photosensitive drum, a charging device, an exposure device, a developing device, a transfer device, and a fixing device. The charging device applies a voltage to the photoreceptor drum to charge the surface of the photoreceptor drum. The exposure device forms an electrostatic latent image on the photoreceptor drum by exposing the photoreceptor drum charged by the charging device to light according to image information. The developing device forms a toner image on the photoreceptor drum by developing the electrostatic latent image formed on the photoreceptor drum with toner. The transfer device transfers the toner image formed on the photoreceptor drum onto paper. The fixing device fixes the toner image transferred to the paper by applying heat and pressure.

通信部25は、例えば、インターネット、LAN(Local Area Network)、WAN(Wide Area Network)等のネットワークに接続されており、外部のPC等との間でネットワークを介して通信が可能とされる。 The communication unit 25 is connected to a network such as the Internet, a LAN (Local Area Network), or a WAN (Wide Area Network), and is capable of communicating with an external PC or the like via the network.

ところで、上述したように、注目画素の周囲の白画素の数に応じて注目画素を補正する所謂孤立点補正を行う場合に、ある領域内における有色画素の割合が略同じであるにもかかわらず、補正される画素と、補正されない画素とが発生する。このため、出力画像に濃度ムラが発生する。 By the way, as mentioned above, when performing so-called isolated point correction in which the pixel of interest is corrected according to the number of white pixels surrounding the pixel of interest, even though the proportion of colored pixels in a certain area is approximately the same, , some pixels are corrected and some pixels are not corrected. Therefore, density unevenness occurs in the output image.

このため、本実施形態に係る画像処理装置10のCPU11は、記憶部15に記憶されている画像処理プログラム15AをRAM13に書き込んで実行することで、図2に示す各部として機能する。このCPU11は、プロセッサの一例である。 Therefore, the CPU 11 of the image processing device 10 according to the present embodiment functions as each unit shown in FIG. 2 by writing the image processing program 15A stored in the storage unit 15 into the RAM 13 and executing it. This CPU 11 is an example of a processor.

図2は、本実施形態に係る画像処理装置10の機能的な構成の一例を示すブロック図である。 FIG. 2 is a block diagram showing an example of the functional configuration of the image processing device 10 according to this embodiment.

図2に示すように、本実施形態に係る画像処理装置10のCPU11は、色変換部11A、誤差拡散部11B、及び補正部11Cとして機能する。 As shown in FIG. 2, the CPU 11 of the image processing device 10 according to this embodiment functions as a color conversion section 11A, an error diffusion section 11B, and a correction section 11C.

本実施形態に係る色変換部11Aは、画像読取部23で取得されたRGB(R:レッド、G:グリーン、B:ブルー)データを、CMYK(C:シアン、M:マゼンタ、Y:イエロー、K:ブラック)色空間で各画素の色指定を行うCMYKデータに変換する。 The color conversion unit 11A according to the present embodiment converts the RGB (R: red, G: green, B: blue) data acquired by the image reading unit 23 into CMYK (C: cyan, M: magenta, Y: yellow). K: black) is converted into CMYK data that specifies the color of each pixel in the color space.

本実施形態に係る誤差拡散部11Bは、CMYK各色データを、誤差拡散処理により二値の各色データに変換する。二値の各色データは、濃度が0(ゼロ)の白画素と、予め定められた濃度の有色画素とで表される二値の画像データである。例えば、K色(黒色)データは、白画素と黒画素とで表される二値の画像データである。 The error diffusion unit 11B according to this embodiment converts CMYK color data into binary color data by error diffusion processing. Each binary color data is binary image data represented by a white pixel with a density of 0 (zero) and a colored pixel with a predetermined density. For example, K color (black) data is binary image data represented by white pixels and black pixels.

ここで、図3を参照して、二値化に用いる誤差拡散処理について説明する。 Here, error diffusion processing used for binarization will be described with reference to FIG. 3.

図3は、本実施形態に係る誤差拡散処理の説明に供する図である。 FIG. 3 is a diagram for explaining error diffusion processing according to this embodiment.

誤差拡散処理は、出力画像においてモアレが発生しない点では、ディザ処理よりも優れた中間調処理の方法である。図3の例では、点線の矢印で示すように、処理対象となる画像データの左上隅から処理を開始し、左から右、上から下へと処理を行うものとする。次に処理する画素Gには斜線が付されている。画素Gの画素値fが閾値より大きい場合は、画素Gを白画素とし、画素Gの画素値fが閾値以下である場合は、画素Gを有色画素とする。 Error diffusion processing is a halftone processing method that is superior to dither processing in that moiré does not occur in the output image. In the example of FIG. 3, as indicated by the dotted arrow, processing is started from the upper left corner of the image data to be processed, and processing is performed from left to right and from top to bottom. The pixel G to be processed next is shaded. When the pixel value f of the pixel G is larger than the threshold value, the pixel G is made a white pixel, and when the pixel value f of the pixel G is less than or equal to the threshold value, the pixel G is made a colored pixel.

画素Gを白画素又は有色画素とすると、元の画素値(=f)と処理後の画素値との間に誤差が発生する。例えば、有色画素の画素値を255、白画素の画素値を0、閾値を127とする。この場合、画素Gを有色画素とすると誤差e=(f-255)であり、画素Gを白画素とすると誤差e=fである。この誤差eを、処理前の周囲の画素G1からG4に拡散させる。例えば、次に処理される画素G1の画素値f1には、誤差eの一部が加算される。 When pixel G is a white pixel or a colored pixel, an error occurs between the original pixel value (=f) and the processed pixel value. For example, assume that the pixel value of a colored pixel is 255, the pixel value of a white pixel is 0, and the threshold value is 127. In this case, if pixel G is a colored pixel, the error is e=(f-255), and if pixel G is a white pixel, the error is e=f. This error e is diffused to surrounding pixels G1 to G4 before processing. For example, a part of the error e is added to the pixel value f1 of the pixel G1 to be processed next.

本実施形態に係る補正部11Cは、誤差拡散処理後の画像データに対して、孤立点補正処理を行う。本実施形態に係る孤立点補正処理の内容については後述する。 The correction unit 11C according to this embodiment performs isolated point correction processing on the image data after the error diffusion processing. The details of the isolated point correction process according to this embodiment will be described later.

ここで、補正対象とする画像データは、一例として、CMYK各色データを誤差拡散処理によって変換して得られる二値の各色データとして表される。この画像データは、複数の白画素及び複数の有色画素を含んでいる。上述したように、白画素は、濃度が0(ゼロ)の画素であり、有色画素は、予め定められた濃度の画素である。画像データの1つの画素(ピクセル)には、複数のドットが割り当てられている。 Here, the image data to be corrected is represented, for example, as binary color data obtained by converting CMYK color data by error diffusion processing. This image data includes a plurality of white pixels and a plurality of colored pixels. As described above, a white pixel is a pixel with a density of 0 (zero), and a colored pixel is a pixel with a predetermined density. A plurality of dots are assigned to one pixel of image data.

一方、画像出力部24が備える露光装置には、例えば、発光素子が用紙の幅方向に複数配列されたプリントヘッドが用いられる。この種の露光装置では、1つの発光素子に1つのドットが対応付けられている。なお、発光素子には、一例として、LED(Light Emitting Diode)等が用いられる。つまり、画像データの各ドットは、発光素子の点消灯情報を表している。 On the other hand, the exposure device included in the image output section 24 uses, for example, a print head in which a plurality of light emitting elements are arranged in the width direction of the paper. In this type of exposure apparatus, one dot is associated with one light emitting element. Note that, as an example of the light emitting element, an LED (Light Emitting Diode) or the like is used. In other words, each dot of the image data represents information on turning on and off the light emitting element.

上記ドットには、白ドットと有色ドットとがある。白ドットは、発光素子を消灯(オフ)するドットであり、有色ドットは、発光素子を点灯(オン)するドットである。有色ドットに応じて発光素子を点灯することにより、1ドット分が露光されて、1ドット分の静電潜像が形成される。用紙上には、トナーにより有色ドットが形成される。上述の白画素は、複数のドットに白ドットが割り当てられた画素であり、有色画素は、複数のドットに有色ドットが割り当てられた画素である。 The above dots include white dots and colored dots. The white dots are dots that turn off the light emitting elements, and the colored dots are dots that turn on the light emitting elements. By lighting up the light emitting elements in accordance with the colored dots, one dot is exposed and an electrostatic latent image of one dot is formed. Colored dots are formed on the paper by toner. The above-mentioned white pixel is a pixel in which a white dot is assigned to a plurality of dots, and the colored pixel is a pixel in which a colored dot is assigned to a plurality of dots.

次に、図4(A)~図4(C)を参照して、画素とドットとの関係について具体的に説明する。 Next, the relationship between pixels and dots will be specifically explained with reference to FIGS. 4(A) to 4(C).

図4(A)は、画像データの1画素に割り当てられた複数のドットの配列の一例を示す図である。ここでは、1画素に割り当てられるドットの個数は8個である。8個のドットは、2行4列で配列されている。8個のドットの各々には、0番から7番までの番号が付与されている。 FIG. 4A is a diagram showing an example of an arrangement of a plurality of dots assigned to one pixel of image data. Here, the number of dots assigned to one pixel is eight. The eight dots are arranged in two rows and four columns. Each of the eight dots is assigned a number from 0 to 7.

図4(B)は、有色画素に対する点灯パターンの一例を示す図であり、図4(C)は、白色画素に対する点灯パターンの一例を示す図である。 FIG. 4(B) is a diagram showing an example of a lighting pattern for colored pixels, and FIG. 4(C) is a diagram showing an example of a lighting pattern for white pixels.

ここで、点灯パターンとは、画像データの1画素に割り当てられた複数のドットにおける、白ドットと有色ドットの配置パターン、すなわち、描画パターンを表している。画像データの有色画素は、図4(B)に示すように、複数のドットの全部が有色ドットとなる。一方、画像データの白画素は、図4(C)に示すように、複数のドットの全部が白ドットとなる。 Here, the lighting pattern represents an arrangement pattern of white dots and colored dots among a plurality of dots assigned to one pixel of image data, that is, a drawing pattern. In the colored pixels of the image data, all of the plurality of dots are colored dots, as shown in FIG. 4(B). On the other hand, in the white pixels of the image data, all of the plurality of dots are white dots, as shown in FIG. 4(C).

本実施形態に係る画像出力部24は、画像処理装置10から取得した画像データに基づいて、画像を用紙に出力する。 The image output unit 24 according to the present embodiment outputs an image onto paper based on the image data acquired from the image processing device 10.

なお、画像処理装置10の各部(色変換部11A、誤差拡散部11B、及び補正部11C)の機能は、ソフトウェアに限定されるものではなく、例えば、ASIC(Application Specific Integrated Circuit)等の専用のハードウェアで実現してもよい。 Note that the functions of each part of the image processing device 10 (color conversion unit 11A, error diffusion unit 11B, and correction unit 11C) are not limited to software, but are, for example, dedicated software such as ASIC (Application Specific Integrated Circuit). It may also be realized by hardware.

次に、図5及び図6を参照して、比較例に係る孤立点補正処理の概要について説明する。 Next, an outline of isolated point correction processing according to a comparative example will be described with reference to FIGS. 5 and 6.

図5は、比較例に係る孤立点補正処理の説明に供する図である。 FIG. 5 is a diagram for explaining isolated point correction processing according to a comparative example.

図5に示すように、3画素×3画素の領域であるウインドウWの中心に位置する画素を注目画素Pxとする。注目画素Pxは、有色画素である。比較例に係る孤立点補正処理では、注目画素Pxの周囲にある白画素の数に応じて注目画素Pxを補正する。例えば、ウインドウWにおける注目画素Pxの周囲8画素の全てが白画素である場合、注目画素Pxは孤立点と判定される。図5の例では、周囲8画素の画素値の合計をsumとした場合、sum=w[2][2]+w[2][3]+w[2][4]+w[3][2]+w[3][4]+w[4][2]+w[4][3]+w[4][4]、と表される。sum=0(ゼロ)である場合、注目画素Pxは孤立点と判定される。また、sum≧閾値である場合、ウインドウWはベタ領域と判定される。また、0<sum<閾値である場合、ウインドウWは中間調領域と判定される。 As shown in FIG. 5, the pixel located at the center of the window W, which is an area of 3 pixels x 3 pixels, is defined as the pixel of interest Px. The pixel of interest Px is a colored pixel. In the isolated point correction process according to the comparative example, the pixel of interest Px is corrected according to the number of white pixels around the pixel of interest Px. For example, if all eight pixels surrounding the pixel of interest Px in the window W are white pixels, the pixel of interest Px is determined to be an isolated point. In the example of FIG. 5, if the sum of the pixel values of the surrounding eight pixels is sum, then sum=w[2][2]+w[2][3]+w[2][4]+w[3][2] +w[3][4]+w[4][2]+w[4][3]+w[4][4]. When sum=0 (zero), the pixel of interest Px is determined to be an isolated point. Furthermore, if sum≧threshold, the window W is determined to be a solid area. Further, if 0<sum<threshold, the window W is determined to be a halftone area.

注目画素Pxが孤立点と判定された場合、注目画素Pxに割り当てられている複数の有色ドットの少なくとも1つを白ドットに変更する補正、すなわち、発光素子の点灯パターンを変更する補正が行われる。一方、ウインドウWにおける注目画素Pxの周囲8画素の一部が有色画素である場合、注目画素Pxは孤立点と判定されず、注目画素Pxの補正は行われない。この孤立点補正処理は、画像濃度の薄いハイライト部分等の有色画素が比較的目立つ領域に施すことで、粒状性の向上を図ることを目的とする。 When the pixel of interest Px is determined to be an isolated point, a correction is performed to change at least one of the plurality of colored dots assigned to the pixel of interest Px to a white dot, that is, a correction is performed to change the lighting pattern of the light emitting element. . On the other hand, if some of the eight pixels surrounding the pixel of interest Px in the window W are colored pixels, the pixel of interest Px is not determined to be an isolated point, and no correction is performed on the pixel of interest Px. The purpose of this isolated point correction processing is to improve graininess by applying it to areas where colored pixels are relatively conspicuous, such as highlight areas with low image density.

図6(A)は、比較例に係る画像データを示す図である。また、図6(B)は、比較例に係る画像データの補正されない部分R1に対応する有色画素の配置パターンを示す図である。また、図6(C)は、比較例に係る画像データの補正される部分R2に対応する有色画素の配置パターンを示す図である。 FIG. 6A is a diagram showing image data according to a comparative example. Moreover, FIG. 6(B) is a diagram showing an arrangement pattern of colored pixels corresponding to the uncorrected portion R1 of the image data according to the comparative example. Further, FIG. 6C is a diagram showing an arrangement pattern of colored pixels corresponding to the corrected portion R2 of the image data according to the comparative example.

図6(A)に示す画像データは、周期的なパターンを有している。この画像データに対して、比較例に係る孤立点補正処理を適用した場合、補正されない部分R1と、補正される部分R2とが発生する。 The image data shown in FIG. 6(A) has a periodic pattern. When the isolated point correction process according to the comparative example is applied to this image data, an uncorrected portion R1 and a corrected portion R2 are generated.

つまり、補正されない部分R1の場合、図6(B)に示すように、ウインドウWにおける注目画素Pxの周囲8画素のうち2画素が有色画素であるため、孤立点と判定されず、孤立点補正処理は行われない。一方、補正される部分R2の場合、図6(C)に示すように、ウインドウWにおける注目画素Pxの周囲8画素の全てが白画素であるため、孤立点と判定され、孤立点補正処理が行われる。しかし、図6(B)の例では、所定の領域(例えば7画素×7画素の領域)に占める有色画素の割合が13/49であり、図6(C)の例では、所定の領域(例えば7画素×7画素の領域)に占める有色画素の割合が14/49である。つまり、所定の領域に占める有色画素の割合が略同じであるにかかわらず、補正されない部分R1と、補正される部分R2とが発生する。このような画像データを出力すると、濃度ムラに見えてしまう。この濃度ムラは、図6(A)に示すような周期的なパターンを有する画像において特に顕著に発生する。 In other words, in the case of the uncorrected portion R1, as shown in FIG. 6(B), two of the eight pixels surrounding the pixel of interest Px in the window W are colored pixels, so it is not determined to be an isolated point, and the isolated point is corrected. No processing takes place. On the other hand, in the case of the portion R2 to be corrected, as shown in FIG. 6(C), all eight pixels surrounding the pixel of interest Px in the window W are white pixels, so it is determined to be an isolated point, and the isolated point correction process is performed. It will be done. However, in the example of FIG. 6(B), the ratio of colored pixels in the predetermined area (for example, a 7 pixel x 7 pixel area) is 13/49, and in the example of FIG. For example, the ratio of colored pixels to an area of 7 pixels x 7 pixels is 14/49. In other words, even though the proportion of colored pixels occupying a predetermined area is approximately the same, a portion R1 that is not corrected and a portion R2 that is corrected occur. If such image data is output, density unevenness will appear. This density unevenness occurs particularly prominently in an image having a periodic pattern as shown in FIG. 6(A).

次に、図7(A)及び図7(B)を参照して、本実施形態に係る孤立点補正処理について具体的に説明する。 Next, isolated point correction processing according to this embodiment will be specifically described with reference to FIGS. 7(A) and 7(B).

図7(A)及び図7(B)は、本実施形態に係る孤立点補正処理の説明に供する図である。 FIGS. 7A and 7B are diagrams for explaining isolated point correction processing according to this embodiment.

本実施形態に係る補正部11Cは、誤差拡散処理後の画像データに対して、一例として、図7(A)に示すように、注目画素Px及び注目画素Pxの周囲の複数画素を含む第1ウインドウW1を設定する。注目画素Pxは、有色画素である。第1ウインドウW1は、第1領域の一例である。第1ウインドウW1は、注目画素Pxを中心とするn画素×n画素(nは3以上の奇数)の領域である。図7(A)の例の場合、第1ウインドウW1は3画素×3画素の領域であるため、注目画素Pxの周囲の複数画素は8個となる。なお、第1ウインドウW1の大きさは、3画素×3画素に限定されず、5画素×5画素、7画素×7画素等であってもよい。 For example, as shown in FIG. 7A, the correction unit 11C according to the present embodiment corrects the image data after the error diffusion process, as shown in FIG. Set window W1. The pixel of interest Px is a colored pixel. The first window W1 is an example of a first area. The first window W1 is an area of n pixels by n pixels (n is an odd number of 3 or more) centered on the pixel of interest Px. In the example of FIG. 7A, the first window W1 is an area of 3 pixels x 3 pixels, so the number of pixels surrounding the pixel of interest Px is eight. Note that the size of the first window W1 is not limited to 3 pixels x 3 pixels, but may be 5 pixels x 5 pixels, 7 pixels x 7 pixels, or the like.

補正部11Cは、第1ウインドウW1内の複数画素の全てが白画素又は複数画素の予め定められた数未満が有色画素である場合、注目画素Pxを孤立点と判定し、上記画像データに対して、第1ウインドウW1よりも大きい第2ウインドウW2を設定する。なお、上記予め定められた数は、第1ウインドウW1の大きさが3画素×3画素の場合には、例えば、2以上5以下の範囲で適宜設定される。また、第2ウインドウW2は、第2領域の一例である。第2ウインドウW2は、注目画素Pxを中心とするm画素×m画素(mはnよりも大きい奇数)の領域である。図7(A)の例の場合、第2ウインドウW2は7画素×7画素の領域である。 When all of the plurality of pixels in the first window W1 are white pixels or less than a predetermined number of the plurality of pixels are colored pixels, the correction unit 11C determines the pixel of interest Px to be an isolated point, and corrects the above image data. Then, a second window W2 larger than the first window W1 is set. Note that, when the size of the first window W1 is 3 pixels x 3 pixels, the predetermined number is appropriately set, for example, in the range of 2 or more and 5 or less. Further, the second window W2 is an example of a second area. The second window W2 is an area of m pixels×m pixels (m is an odd number larger than n) centered on the pixel of interest Px. In the example of FIG. 7A, the second window W2 is an area of 7 pixels×7 pixels.

一方、補正部11Cは、第1ウインドウW1内の複数画素の上記予め定められた数以上が有色画素である場合、注目画素Pxを孤立点と判定せず、第2ウインドウW2の設定を行わない。すなわち、注目画素Pxの補正は行われない。なお、上記予め定められた数は、固定値に限定されず、第1ウインドウW1のnが大きいほど、大きな値としてもよい。 On the other hand, if more than the predetermined number of pixels in the first window W1 are colored pixels, the correction unit 11C does not determine the pixel of interest Px to be an isolated point and does not set the second window W2. . That is, the pixel of interest Px is not corrected. Note that the predetermined number is not limited to a fixed value, and may be set to a larger value as n of the first window W1 becomes larger.

補正部11Cは、第2ウインドウW2が設定され、第2ウインドウW2に占める有色画素の割合が閾値以下である場合、注目画素Pxを補正する。この閾値は、例えば、第2ウインドウW2の大きさの1/4程度を目処に設定されることが望ましい。第2ウインドウW2の大きさが7画素×7画素であれば、7画素×7画素=49画素の1/4として、例えば、12/49が閾値となる。つまり、上記の閾値は、第2ウインドウW2のmが大きいほど、大きな値としてもよい。 The correction unit 11C corrects the pixel of interest Px when the second window W2 is set and the proportion of colored pixels occupying the second window W2 is equal to or less than the threshold value. This threshold value is desirably set to, for example, about 1/4 of the size of the second window W2. If the size of the second window W2 is 7 pixels x 7 pixels, the threshold value is 1/4 of 7 pixels x 7 pixels = 49 pixels, for example, 12/49. That is, the above threshold value may be set to a larger value as m of the second window W2 becomes larger.

図7(A)の例では、第1ウインドウW1内の周囲8画素の全てが白画素であり、かつ、第2ウインドウW2に占める有色画素の割合(=4/49)が閾値(=12/49)以下であるため、注目画素Pxは補正される。なお、ここでいう補正は、上述したように、注目画素Pxに割り当てられている複数の有色ドットの少なくとも1つを白ドットに変更する補正、すなわち、発光素子の点灯パターンを変更する補正を行う。 In the example of FIG. 7A, all of the surrounding eight pixels in the first window W1 are white pixels, and the ratio of colored pixels in the second window W2 (=4/49) is the threshold (=12/ 49) Since the following is true, the pixel of interest Px is corrected. Note that, as described above, the correction here is a correction that changes at least one of the plurality of colored dots assigned to the pixel of interest Px to a white dot, that is, a correction that changes the lighting pattern of the light emitting element. .

一方、補正部11Cは、第2ウインドウW2に占める有色画素の割合が閾値よりも大きい場合、注目画素Pxの補正を行わない。つまり、注目画素Pxが孤立点と判定された場合であっても、孤立点補正は行わない。 On the other hand, the correction unit 11C does not correct the pixel of interest Px when the proportion of colored pixels occupying the second window W2 is larger than the threshold value. In other words, even if the pixel of interest Px is determined to be an isolated point, isolated point correction is not performed.

図7(B)の例では、第1ウインドウW1内の周囲8画素の全てが白画素であり、かつ、第2ウインドウW2に占める有色画素の割合(=13/49)が閾値(=12/49)よりも大きいため、注目画素Pxは補正されない。 In the example of FIG. 7B, all of the surrounding eight pixels in the first window W1 are white pixels, and the ratio of colored pixels in the second window W2 (=13/49) is the threshold value (=12/49). 49), the pixel of interest Px is not corrected.

ここで、孤立点補正処理は、一例として、図7(A)に示すように、注目画素Pxが孤立点であり、かつ、有色画素の割合が比較的低い領域、つまり、有色画素が比較的目立つハイライト部分等に適用することを目的としている。このため、図7(B)に示すように、注目画素Pxが孤立点であっても、有色画素の割合が比較的高い領域では注目画素Pxは比較的目立たないため適用しなくてもよい。 Here, as shown in FIG. 7A, the isolated point correction process is performed in an area where the pixel of interest Px is an isolated point and where the proportion of colored pixels is relatively low, that is, where the colored pixels are relatively It is intended to be applied to conspicuous highlighted areas. Therefore, as shown in FIG. 7B, even if the pixel of interest Px is an isolated point, the pixel of interest Px is relatively inconspicuous in a region where the proportion of colored pixels is relatively high, so it does not need to be applied.

本実施形態に係る孤立点補正処理を適用することにより、上述の濃度ムラの発生が抑制される。特に、上述の図6(A)に示すような周期的なパターンを有する画像データに対して適用すると、顕著な濃度ムラ抑制効果が得られる。また、本実施形態に係る孤立点補正処理によって中間濃度が薄くなることも防止される。 By applying the isolated point correction processing according to this embodiment, the occurrence of the above-described density unevenness is suppressed. Particularly, when applied to image data having a periodic pattern as shown in FIG. 6A, a remarkable effect of suppressing density unevenness can be obtained. Furthermore, the isolated point correction processing according to this embodiment also prevents the intermediate density from becoming thinner.

次に、図8を参照して、本実施形態に係る画像処理装置10の作用を説明する。 Next, with reference to FIG. 8, the operation of the image processing apparatus 10 according to this embodiment will be described.

図8は、本実施形態に係る画像処理プログラム15Aによる処理の流れの一例を示すフローチャートである。 FIG. 8 is a flowchart showing an example of the flow of processing by the image processing program 15A according to the present embodiment.

本例では、誤差拡散処理後の画像データに対して、本実施形態に係る孤立点補正処理を施す場合について説明する。 In this example, a case will be described in which isolated point correction processing according to the present embodiment is performed on image data after error diffusion processing.

図8のステップ100では、CPU11が、誤差拡散処理後の画像データに対して、一例として、上述の図7(A)又は図7(B)に示す第1ウインドウW1を設定する。 In step 100 of FIG. 8, the CPU 11 sets the first window W1 shown in FIG. 7(A) or FIG. 7(B), as an example, for the image data after the error diffusion process.

ステップ101では、CPU11が、ステップ100で設定した第1ウインドウW1内の注目画素Pxを選択する。本実施形態では、第1ウインドウW1の移動により、画像データの各画素が順に注目画素Pxとして選択される。 In step 101, the CPU 11 selects the pixel of interest Px within the first window W1 set in step 100. In this embodiment, by moving the first window W1, each pixel of the image data is sequentially selected as the pixel of interest Px.

図9は、第1ウインドウW1による注目画素Pxの選択状態の一例を示す図である。 FIG. 9 is a diagram showing an example of a selection state of the pixel of interest Px by the first window W1.

図9に示すように、誤差拡散処理により取得された画像データ50に対し、各画素が順に注目画素Pxとなるように、3画素×3画素の第1ウインドウW1を1画素ずつ移動させる。例えば、画像データ50の左上隅の画素から選択を開始し、左から右、上から下へと第1ウインドウW1を移動させる。 As shown in FIG. 9, the first window W1 of 3 pixels x 3 pixels is moved pixel by pixel with respect to the image data 50 acquired by the error diffusion process so that each pixel becomes the pixel of interest Px in turn. For example, selection starts from the pixel at the upper left corner of the image data 50, and the first window W1 is moved from left to right and from top to bottom.

1つの画素が注目画素Pxに重なるように、画像データ50上に第1ウインドウW1を配置する。この例では、第1ウインドウW1の中心画素が、注目画素Pxに重なる。また、第1ウインドウW1内には、注目画素Pxと注目画素Pxに隣接する8個の周囲画素とが含まれる。第1ウインドウW1の大きさは、3画素×3画素に限定されない。例えば、5画素×5画素、9画素×5画素等、第1ウインドウW1の大きさを変更してもよい。 The first window W1 is arranged on the image data 50 so that one pixel overlaps the pixel of interest Px. In this example, the center pixel of the first window W1 overlaps the pixel of interest Px. Furthermore, the first window W1 includes a pixel of interest Px and eight surrounding pixels adjacent to the pixel of interest Px. The size of the first window W1 is not limited to 3 pixels x 3 pixels. For example, the size of the first window W1 may be changed to 5 pixels x 5 pixels, 9 pixels x 5 pixels, etc.

ステップ102では、CPU11が、注目画素Pxが有色画素であるか否かを判定する。注目画素Pxが有色画素であると判定した場合(肯定判定の場合)、ステップ103に移行し、注目画素Pxが有色画素ではないと判定した場合(否定判定の場合)、ステップ108に移行する。 In step 102, the CPU 11 determines whether the pixel of interest Px is a colored pixel. If it is determined that the pixel of interest Px is a colored pixel (in the case of an affirmative determination), the process proceeds to step 103, and if it is determined that the pixel of interest Px is not a colored pixel (in the case of a negative determination), the process proceeds to step 108.

ステップ103では、CPU11が、注目画素Pxが孤立点であるか否かを判定する。具体的に、上述したように、第1ウインドウW1内の注目画素Pxの周囲複数画素(例えば、周囲8画素)の全てが白画素又は周囲複数画素の予め定められた数未満が有色画素であるか否かを判定する。注目画素Pxが孤立点である、すなわち、注目画素Pxの周囲複数画素の全てが白画素又は周囲複数画素の予め定められた数未満が有色画素であると判定した場合(肯定判定の場合)、ステップ104に移行する。一方、注目画素Pxが孤立点ではない、すなわち、注目画素Pxの周囲複数画素の予め定められた数以上が有色画素であると判定した場合(否定判定の場合)、ステップ108に移行する。 In step 103, the CPU 11 determines whether the pixel of interest Px is an isolated point. Specifically, as described above, all of the surrounding pixels (for example, 8 surrounding pixels) of the pixel of interest Px in the first window W1 are white pixels, or less than a predetermined number of surrounding pixels are colored pixels. Determine whether or not. When it is determined that the pixel of interest Px is an isolated point, that is, that all of the surrounding pixels of the pixel of interest Px are white pixels or less than a predetermined number of surrounding pixels are colored pixels (in case of affirmative determination), The process moves to step 104. On the other hand, if it is determined that the pixel of interest Px is not an isolated point, that is, a predetermined number or more of the surrounding pixels of the pixel of interest Px are colored pixels (in the case of a negative determination), the process moves to step 108.

ステップ104では、CPU11が、上記画像データに対して、一例として、上述の図7(A)又は図7(B)に示す第2ウインドウW2を設定する。第2ウインドウW2は、第1ウインドウW1よりも大きく、例えば、7画素×7画素である。 In step 104, the CPU 11 sets, for example, the second window W2 shown in FIG. 7(A) or FIG. 7(B) above for the image data. The second window W2 is larger than the first window W1, for example, 7 pixels×7 pixels.

ステップ105では、CPU11が、ステップ104で設定した第2ウインドウW2に占める有色画素の割合を算出する。例えば、図7(A)の例では、有色画素の割合は4/49と算出され、図7(B)の例では、有色画素の割合は13/49と算出される。 In step 105, the CPU 11 calculates the proportion of colored pixels occupying the second window W2 set in step 104. For example, in the example of FIG. 7(A), the ratio of colored pixels is calculated as 4/49, and in the example of FIG. 7(B), the ratio of colored pixels is calculated as 13/49.

ステップ106では、CPU11が、ステップ105で算出した、第2ウインドウW2に占める有色画素の割合が閾値以下であるか否かを判定する。第2ウインドウW2に占める有色画素の割合が閾値以下であると判定した場合(肯定判定の場合)、ステップ107に移行し、第2ウインドウW2に占める有色画素の割合が閾値より大きいと判定した場合(否定判定の場合)、ステップ108に移行する。 In step 106, the CPU 11 determines whether the proportion of colored pixels in the second window W2 calculated in step 105 is less than or equal to a threshold value. If it is determined that the proportion of colored pixels occupying the second window W2 is less than or equal to the threshold value (in the case of an affirmative determination), the process moves to step 107, and if it is determined that the proportion of colored pixels occupying the second window W2 is greater than the threshold value. (In case of negative determination), the process moves to step 108.

ステップ107では、CPU11が、注目画素Pxを補正する。具体的には、注目画素Pxに割り当てられている複数の有色ドットの少なくとも1つを白ドットに変更する補正、すなわち、発光素子の点灯パターンを変更する補正を行う。 In step 107, the CPU 11 corrects the pixel of interest Px. Specifically, a correction is performed to change at least one of the plurality of colored dots assigned to the pixel of interest Px to a white dot, that is, a correction is performed to change the lighting pattern of the light emitting element.

図10は、本実施形態に係る発光素子の点灯パターンの一例を示す図である。 FIG. 10 is a diagram showing an example of a lighting pattern of a light emitting element according to this embodiment.

図10に示す点灯パターンの例は、上述の図4(A)に示す1画素に割り当てられた8個のドットにおける、白ドットと有色ドットの配置パターンを示している。図10には1番~9番の9種類の点灯パターンが例示されている。1番では、上述の図4(C)と同様に、複数のドットの全部が白ドットである。全ドット(図10の例では8個)に対する有色ドットの割合は、0/8である。9番では、上述の図4(B)と同様に、複数のドットの全部が有色ドットである。全ドットに対する有色ドットの割合は、8/8である。2番から8番では、全ドットに対する有色ドットの割合が、1/8から7/8まで変化する。 The example of the lighting pattern shown in FIG. 10 shows an arrangement pattern of white dots and colored dots among the eight dots assigned to one pixel shown in FIG. 4A described above. FIG. 10 illustrates nine types of lighting patterns numbered 1 to 9. In No. 1, all of the plurality of dots are white dots, similar to the above-described FIG. 4(C). The ratio of colored dots to all dots (eight in the example of FIG. 10) is 0/8. In No. 9, all of the plurality of dots are colored dots, similar to the above-described FIG. 4(B). The ratio of colored dots to all dots is 8/8. From No. 2 to No. 8, the ratio of colored dots to all dots changes from 1/8 to 7/8.

2番では、有色ドットの数が1個であり、全ドットに対する有色ドットの割合は、1/8である。3番では、有色ドットの数が2個であり、全ドットに対する有色ドットの割合は、2/8である。4番では、有色ドットの数が3個であり、全ドットに対する有色ドットの割合は、3/8である。5番では、有色ドットの数が4個であり、全ドットに対する有色ドットの割合は、4/8である。6番では、有色ドットの数が5個であり、全ドットに対する有色ドットの割合は、5/8である。7番では、有色ドットの数が6個であり、全ドットに対する有色ドットの割合は、6/8である。8番では、有色ドットの数が7個であり、全ドットに対する有色ドットの割合は7/8である。 In No. 2, the number of colored dots is one, and the ratio of colored dots to all dots is 1/8. In No. 3, the number of colored dots is 2, and the ratio of colored dots to all dots is 2/8. In No. 4, the number of colored dots is 3, and the ratio of colored dots to all dots is 3/8. In No. 5, the number of colored dots is 4, and the ratio of colored dots to all dots is 4/8. In No. 6, the number of colored dots is 5, and the ratio of colored dots to all dots is 5/8. In No. 7, the number of colored dots is 6, and the ratio of colored dots to all dots is 6/8. In No. 8, the number of colored dots is 7, and the ratio of colored dots to all dots is 7/8.

例えば、第1ウインドウW1内の注目画素Pxの周囲複数画素に含まれる有色画素の個数と点灯パターンとの関係を予め定めておいてもよい。具体的には、有色画素の個数が第1閾値未満の場合は「5番の点灯パターン(有色ドットの割合は4/8)」、有色画素の個数が第1閾値以上で第2閾値未満の場合は「7番の点灯パターン(有色ドットの割合は6/8)」、有色画素の個数が第2閾値以上の場合は「8番の点灯パターン(有色ドットの割合は7/8)」というように、有色画素の個数と点灯パターンとの関係を予め定めておいて、検知された有色画素の個数に応じた点灯パターンを取得すればよい。この場合、第1ウインドウW1内の有色画素の個数が少ないほど、有色ドットの割合が低くなる、つまり、白ドットの割合が高くなる点灯パターンが取得される。なお、第1閾値及び第2閾値(>第1閾値)は1以上の整数である。また、閾値は、複数に限定されず、1つでもよい。 For example, the relationship between the number of colored pixels included in the surrounding pixels of the pixel of interest Px in the first window W1 and the lighting pattern may be determined in advance. Specifically, if the number of colored pixels is less than the first threshold, "No. 5 lighting pattern (ratio of colored dots is 4/8)" is used, and if the number of colored pixels is greater than or equal to the first threshold but less than the second threshold, If the number of colored pixels is equal to or higher than the second threshold, it is called "lighting pattern No. 7 (ratio of colored dots is 6/8)" and "lighting pattern No. 8 (ratio of colored dots is 7/8)". Thus, the relationship between the number of colored pixels and the lighting pattern may be determined in advance, and a lighting pattern corresponding to the number of detected colored pixels may be obtained. In this case, the smaller the number of colored pixels in the first window W1, the lower the proportion of colored dots, that is, the higher the proportion of white dots, a lighting pattern is obtained. Note that the first threshold value and the second threshold value (>first threshold value) are integers of 1 or more. Moreover, the threshold value is not limited to a plurality of values, and may be one.

ステップ108では、CPU11が、画像データに対して、次の画素があるか否かを判定する。次の画素があると判定した場合(肯定判定の場合)、ステップ100に戻り処理を繰り返し、次の画素がないと判定した場合(否定判定の場合)、本画像処理プログラム15Aによる一連の処理を終了する。 In step 108, the CPU 11 determines whether or not there is the next pixel in the image data. If it is determined that there is a next pixel (in the case of a positive determination), the process returns to step 100 and the process is repeated; if it is determined that there is no next pixel (in the case of a negative determination), a series of processes by the image processing program 15A are performed. finish.

このように本実施形態によれば、注目画素が孤立点であり、かつ、有色画素の割合が比較的低い領域の場合には、注目画素の補正を行い、一方、注目画素が孤立点であり、かつ、有色画素の割合が比較的高い領域の場合には、注目画素の補正は行わない。これにより、濃度ムラの発生が抑制される。 As described above, according to the present embodiment, if the pixel of interest is an isolated point and the proportion of colored pixels is relatively low, the pixel of interest is corrected; , and in a region where the proportion of colored pixels is relatively high, the pixel of interest is not corrected. This suppresses the occurrence of density unevenness.

なお、上記各実施形態において、プロセッサとは広義的なプロセッサを指し、汎用的なプロセッサ(例えば、CPU: Central Processing Unit、等)や、専用のプロセッサ(例えば、GPU: Graphics Processing Unit、ASIC: Application Specific Integrated Circuit、FPGA: Field Programmable Gate Array、プログラマブル論理デバイス、等)を含むものである。 Note that in each of the above embodiments, the processor refers to a processor in a broad sense, and includes a general-purpose processor (e.g., CPU: Central Processing Unit, etc.) and a dedicated processor (e.g., GPU: Graphics Processing Unit, ASIC: Application Specific Integrated Circuit, FPGA: Field Programmable Gate Array, programmable logic device, etc.).

また、上記各実施形態におけるプロセッサの動作は、1つのプロセッサによって成すのみでなく、物理的に離れた位置に存在する複数のプロセッサが協働して成すものであってもよい。また、プロセッサの各動作の順序は、上記各実施形態において記載した順序のみに限定されるものではなく、適宜変更してもよい。 Further, the operation of the processor in each of the above embodiments may be performed not only by one processor, but also by a plurality of processors located at physically separate locations. Further, the order of each operation of the processor is not limited to the order described in each of the above embodiments, and may be changed as appropriate.

以上、実施形態に係る画像処理装置を例示して説明した。実施形態は、画像処理装置が備える各部の機能をコンピュータに実行させるためのプログラムの形態としてもよい。実施形態は、このプログラムを記憶したコンピュータが読み取り可能な記憶媒体の形態としてもよい。 The image processing apparatus according to the embodiment has been described above as an example. The embodiment may be in the form of a program for causing a computer to execute the functions of each unit included in the image processing apparatus. Embodiments may be in the form of a computer readable storage medium storing this program.

その他、上記実施形態で説明した画像処理装置の構成は、一例であり、主旨を逸脱しない範囲内において状況に応じて変更してもよい。 In addition, the configuration of the image processing apparatus described in the above embodiment is merely an example, and may be changed according to the situation without departing from the spirit of the invention.

また、上記実施形態で説明したプログラムの処理の流れも、一例であり、主旨を逸脱しない範囲内において不要なステップを削除したり、新たなステップを追加したり、処理順序を入れ替えたりしてもよい。 Furthermore, the process flow of the program described in the above embodiment is only an example, and unnecessary steps may be deleted, new steps may be added, or the processing order may be changed without departing from the main purpose. good.

また、上記実施形態では、プログラムを実行することにより、実施形態に係る処理がコンピュータを利用してソフトウェア構成により実現される場合について説明したが、これに限らない。実施形態は、例えば、ハードウェア構成や、ハードウェア構成とソフトウェア構成との組み合わせによって実現してもよい。 Further, in the above embodiment, a case has been described in which the processing according to the embodiment is realized by a software configuration using a computer by executing a program, but the present invention is not limited to this. The embodiments may be realized by, for example, a hardware configuration or a combination of a hardware configuration and a software configuration.

10 画像処理装置
11 CPU
11A 色変換部
11B 誤差拡散部
11C 補正部
12 ROM
13 RAM
14 I/O
15 記憶部
15A 画像処理プログラム
20 画像形成装置
21 表示部
22 操作部
23 画像読取部
24 画像出力部
25 通信部
10 Image processing device 11 CPU
11A Color conversion section 11B Error diffusion section 11C Correction section 12 ROM
13 RAM
14 I/O
15 Storage unit 15A Image processing program 20 Image forming device 21 Display unit 22 Operation unit 23 Image reading unit 24 Image output unit 25 Communication unit

Claims (8)

プロセッサを備え、
前記プロセッサは、
複数の白画素及び複数の有色画素を含む画像データに対して、注目する有色画素である注目画素及び前記注目画素の周囲の複数画素を含む第1領域を設定し、前記第1領域内の前記複数画素の全てが白画素又は前記複数画素の予め定められた数未満が有色画素である場合、前記画像データに対して、前記第1領域よりも大きい第2領域を設定し、前記第2領域に占める有色画素の割合が閾値以下である場合、前記注目画素を補正する
画像処理装置。
Equipped with a processor,
The processor includes:
For image data including a plurality of white pixels and a plurality of colored pixels, a first region including a pixel of interest which is a colored pixel of interest and a plurality of pixels around the pixel of interest is set, and the If all of the plurality of pixels are white pixels or less than a predetermined number of the plurality of pixels are colored pixels, a second region larger than the first region is set for the image data, and the second region is An image processing device that corrects the pixel of interest when the proportion of colored pixels in the pixel of interest is equal to or less than a threshold value.
前記プロセッサは、前記第2領域に占める有色画素の割合が前記閾値よりも大きい場合、前記注目画素の補正を行わない
請求項1に記載の画像処理装置。
The image processing device according to claim 1, wherein the processor does not correct the pixel of interest when the proportion of colored pixels occupying the second region is larger than the threshold value.
前記プロセッサは、前記第1領域内の前記複数画素の前記予め定められた数以上が有色画素である場合、前記第2領域の設定を行わない
請求項2に記載の画像処理装置。
The image processing device according to claim 2 , wherein the processor does not set the second region if more than the predetermined number of the plurality of pixels in the first region are colored pixels.
前記第1領域は、前記注目画素を中心とするn×n(nは3以上の奇数)の領域であり、
前記第2領域は、前記注目画素を中心とするm×m(mはnより大きい奇数)の領域である
請求項1~請求項3のいずれか1項に記載の画像処理装置。
The first area is an n×n area (n is an odd number of 3 or more) centered on the pixel of interest,
The image processing device according to any one of claims 1 to 3, wherein the second area is an m×m (m is an odd number greater than n) area centered on the pixel of interest.
前記予め定められた数は、前記第1領域のnが大きいほど、大きな値となり、
前記閾値は、前記第2領域のmが大きいほど、大きな値となる
請求項4に記載の画像処理装置。
The predetermined number becomes a larger value as n of the first region becomes larger,
The image processing device according to claim 4, wherein the threshold value becomes a larger value as m of the second region becomes larger.
前記画像データを構成する複数の画素の各々は、複数のドットが割り当てられており、
前記複数のドットの各々は、露光装置が備える発光素子が対応付けられており、
前記白画素は、前記複数のドットに、発光素子を消灯するドットである白ドットが割り当てられた画素であり、
前記有色画素は、前記複数のドットに、発光素子を点灯するドットである有色ドットが割り当てられた画素であり、
前記注目画素の補正は、前記注目画素に割り当てられた複数の有色ドットの少なくとも1つを白ドットに変更する補正である
請求項1~請求項5のいずれか1項に記載の画像処理装置。
Each of the plurality of pixels constituting the image data is assigned a plurality of dots,
Each of the plurality of dots is associated with a light emitting element included in the exposure device,
The white pixel is a pixel in which a white dot that turns off a light emitting element is assigned to the plurality of dots,
The colored pixel is a pixel in which a colored dot, which is a dot that lights up a light emitting element, is assigned to the plurality of dots,
The image processing device according to any one of claims 1 to 5, wherein the correction of the pixel of interest is a correction of changing at least one of a plurality of colored dots assigned to the pixel of interest to a white dot.
請求項1~請求項6のいずれか1項に記載の画像処理装置と、
前記画像処理装置から取得した画像データに基づいて、画像を出力する画像出力部と、
を備えた画像形成装置。
An image processing device according to any one of claims 1 to 6,
an image output unit that outputs an image based on the image data acquired from the image processing device;
An image forming apparatus equipped with
複数の白画素及び複数の有色画素を含む画像データに対して、注目する有色画素である注目画素及び前記注目画素の周囲の複数画素を含む第1領域を設定し、前記第1領域内の前記複数画素の全てが白画素又は前記複数画素の予め定められた数未満が有色画素である場合、前記画像データに対して、前記第1領域よりも大きい第2領域を設定し、前記第2領域に占める有色画素の割合が閾値以下である場合、前記注目画素を補正することを、
コンピュータに実行させるための画像処理プログラム。
For image data including a plurality of white pixels and a plurality of colored pixels, a first region including a pixel of interest which is a colored pixel of interest and a plurality of pixels around the pixel of interest is set, and the If all of the plurality of pixels are white pixels or less than a predetermined number of the plurality of pixels are colored pixels, a second region larger than the first region is set for the image data, and the second region is If the proportion of colored pixels in the pixel is below a threshold, correcting the pixel of interest;
An image processing program that is executed by a computer.
JP2020005456A 2020-01-16 2020-01-16 Image processing device, image forming device, and image processing program Active JP7380237B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020005456A JP7380237B2 (en) 2020-01-16 2020-01-16 Image processing device, image forming device, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020005456A JP7380237B2 (en) 2020-01-16 2020-01-16 Image processing device, image forming device, and image processing program

Publications (2)

Publication Number Publication Date
JP2021114662A JP2021114662A (en) 2021-08-05
JP7380237B2 true JP7380237B2 (en) 2023-11-15

Family

ID=77077765

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020005456A Active JP7380237B2 (en) 2020-01-16 2020-01-16 Image processing device, image forming device, and image processing program

Country Status (1)

Country Link
JP (1) JP7380237B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011164873A (en) 2010-02-09 2011-08-25 Fuji Xerox Co Ltd Image processing apparatus, image forming apparatus and image processing program
JP2018174420A (en) 2017-03-31 2018-11-08 ブラザー工業株式会社 Image processing apparatus and computer program
JP2019149786A (en) 2018-02-28 2019-09-05 富士ゼロックス株式会社 Image processing apparatus, image forming apparatus, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011164873A (en) 2010-02-09 2011-08-25 Fuji Xerox Co Ltd Image processing apparatus, image forming apparatus and image processing program
JP2018174420A (en) 2017-03-31 2018-11-08 ブラザー工業株式会社 Image processing apparatus and computer program
JP2019149786A (en) 2018-02-28 2019-09-05 富士ゼロックス株式会社 Image processing apparatus, image forming apparatus, and program

Also Published As

Publication number Publication date
JP2021114662A (en) 2021-08-05

Similar Documents

Publication Publication Date Title
JP5006731B2 (en) Image forming apparatus and image correction method
JP5144161B2 (en) Color image forming apparatus and color image forming method
US9967429B2 (en) Image processing apparatus, image processing method, and storage medium
JP2009034866A (en) Image forming apparatus and image forming method
JP2013236180A (en) Image processing apparatus, and image processing method and program
JP2009055377A (en) Color image forming apparatus and color image correction method
JP2012231401A (en) Image processing apparatus, image processing method, and computer program
US10890856B2 (en) Image forming apparatus, method of controlling the same, and storage medium
JP2009159434A (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium recording the program
US20110058224A1 (en) Color processor, image forming apparatus, color processing method and computer readable medium
JP6128827B2 (en) Image processing apparatus, control method therefor, and program
JP2009094786A (en) Image forming apparatus and image forming method
JP7380237B2 (en) Image processing device, image forming device, and image processing program
JP4189598B2 (en) Image processing apparatus and image processing method
JP2005117615A (en) Image forming apparatus, image forming method, and its program
US7719713B2 (en) Image processing apparatus, image processing method multicolor image forming apparatus, computer-readable medium, and computer data signal
JP4169054B2 (en) Image processing apparatus, image processing method, and program
JP7098957B2 (en) Image processing equipment, image forming equipment, and programs
JP5678501B2 (en) Image processing apparatus and image processing method
JP6882889B2 (en) Image forming device and image forming method
JP7380270B2 (en) Image processing device and image processing program
US10477067B2 (en) Image forming apparatus, image forming method, and storage medium
JP4146458B2 (en) Image processing apparatus and image processing program
EP2469833B1 (en) Image processing apparatus using threshold matrix of resolution higher than resolution of input image
JP4471324B2 (en) Image processing apparatus and control method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221223

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230915

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231016

R150 Certificate of patent or registration of utility model

Ref document number: 7380237

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150