JP2019075702A - Image reading device, image reading method, and image reading program - Google Patents

Image reading device, image reading method, and image reading program Download PDF

Info

Publication number
JP2019075702A
JP2019075702A JP2017200684A JP2017200684A JP2019075702A JP 2019075702 A JP2019075702 A JP 2019075702A JP 2017200684 A JP2017200684 A JP 2017200684A JP 2017200684 A JP2017200684 A JP 2017200684A JP 2019075702 A JP2019075702 A JP 2019075702A
Authority
JP
Japan
Prior art keywords
pixel
white
pixels
image reading
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017200684A
Other languages
Japanese (ja)
Inventor
紘輝 松本
Hiroki Matsumoto
紘輝 松本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2017200684A priority Critical patent/JP2019075702A/en
Publication of JP2019075702A publication Critical patent/JP2019075702A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

To reduce dots sporadically remaining after removal of a specified color.SOLUTION: An image reading device 1 removes a removal color that is a color specified in advance. The image reading device 1 comprises: an image reading unit 100 that reads an image to create RGB image data including an R gradation value, a G gradation value, and a B gradation value; a mask processing unit 151 that converts a pixel having the removal color into a white pixel that is a pixel in white color having the highest brightness; and an isolated point processing unit 152 that takes, as a target pixel, a non-white adjacent pixel adjacent to the white pixel, having a brightness higher than a first threshold set in advance, and being a non-white pixel that is a pixel not converted into the white pixel, and when all peripheral pixels that are pixels on the periphery of the target pixel are the white pixel, converts the target pixel into the white pixel.SELECTED DRAWING: Figure 2

Description

本発明は、画像読取装置、画像読取方法及び画像読取プログラムに関し、詳しくは、特定の色を除去する画像処理に関する。   The present invention relates to an image reading apparatus, an image reading method, and an image reading program, and more particularly to image processing for removing a specific color.

画像形成装置は、典型的には加法混色のRGB色空間で原稿画像の読み取りを実行して画像データを生成し、減法混色のCMY色空間(又はCMYK色空間)の色材で画像を再現する。原稿画像には、たとえば印刷媒体自体が特定の色を有する場合や裏写りが発生する場合において文字の読取が困難になる場合がある。さらに、ユーザーは、モノクロ原稿に所定の色で手書きによって文字等を記載した後に、その手書き文字等の除去を望む場合もある。このような場合を想定して、特定の色を除去する指定色除去機能が提案されている。   The image forming apparatus typically reads an original image in an additive RGB color space to generate image data, and reproduces an image in a colorant in a subtractive CMY color space (or CMYK color space). . In the case of an original image, for example, when the print medium itself has a specific color or when show-through occurs, it may be difficult to read characters. Furthermore, the user may wish to remove handwritten characters and the like after writing the characters and the like by handwriting in a predetermined color on a monochrome document. Given such a case, a designated color removal function has been proposed for removing a specific color.

具体的には、たとえば特許文献1は、読取画像から除去色(指定色)を除去する除去手段と、除去手段で除去色の除去された読取画像が、白黒画像であるかカラー画像であるか判定する判定手段とを備える技術を提案している。この技術によれば、ユーザーが指定した色成分を除去した画像を作成し、カラーモノクロ判定を正確に行うことができるとしている。特許文献1では、ユーザーにより指定された色相値からの所定の閾値範囲で、彩度値がある所定の閾値以上で、かつ明度が所定範囲内であった場合に指定色であると判定される。   Specifically, for example, in Patent Document 1, it is determined whether the removal unit that removes the removal color (designated color) from the read image, and whether the read image from which the removal color is removed by the removal unit is a black and white image or a color image. A technique is proposed which comprises: According to this technology, it is possible to create an image from which color components designated by the user have been removed, and to perform color / monochrome determination accurately. In Patent Document 1, the color is determined to be the designated color when the saturation value is equal to or greater than a predetermined threshold and the lightness is within the predetermined range within a predetermined threshold range from the hue value designated by the user. .

特開2009−100026号公報JP, 2009-100026, A

しかし、本願発明者は、指定色除去機能は、特に低濃度部において読取時のノイズに起因するドットが散発的に発生(残存)していることを見出した。このような散発的なドットは、特に指定色の除去後の白い印刷媒体上において容易に視認可能なので、画像品質の劣化につながっている。   However, the inventor of the present application has found that the designated color removal function is a sporadic occurrence (remaining) of dots caused by noise during reading, particularly in the low density portion. Such sporadic dots are particularly visible on white print media after removal of specified colors, leading to image quality degradation.

本発明は、このような状況に鑑みてなされたものであり、指定色の除去後に散発的に残存するドットを抑制する技術を提供することを目的とする。   The present invention has been made in view of such a situation, and an object of the present invention is to provide a technique for suppressing dots that remain sporadically after removal of a designated color.

本発明は、予め指定された色である除去色を除去する画像読取装置を提供する。前記画像読取装置は、画像を読み取ってRの階調値と、Gの階調値と、Bの階調値とを含むRGB画像データを生成する画像読取部と、前記除去色を有する画素を明度が最も高い白色の画素である白画素に変換するマスク処理部と、前記白画素に未変換の画素である非白色画素であって予め設定されている第1の閾値よりも高い明度を有し、前記白画素に隣接する非白色隣接画素を着目画素とし、前記着目画素の周辺の画素である周辺画素が全て前記白画素である場合には、前記着目画素を白画素に変換する孤立点処理部とを備える。   The present invention provides an image reader that removes a removal color that is a pre-specified color. The image reading apparatus reads an image and generates an RGB image data including R gradation value, G gradation value, and B gradation value, and a pixel having the removed color. A mask processing unit that converts a white pixel that is the highest in brightness to a white pixel, and a non-white pixel that is a pixel that is not converted to the white pixel and has a brightness higher than a preset first threshold If the non-white adjacent pixel adjacent to the white pixel is a pixel of interest and all surrounding pixels around the pixel of interest are the white pixels, an isolated point for converting the pixel of interest to a white pixel And a processing unit.

本発明は、予め指定された色である除去色を除去する画像読取方法を提供する。前記画像読取方法は、画像を読み取ってRの階調値と、Gの階調値と、Bの階調値とを含むRGB画像データを生成する画像読取工程と、前記除去色を有する画素を明度が最も高い白色の画素である白画素に変換するマスク処理工程と、前記白画素に未変換の画素である非白色画素であって予め設定されている第1の閾値よりも高い明度を有し、前記白画素に隣接する非白色隣接画素を着目画素とし、前記着目画素の周辺の画素である周辺画素が全て前記白画素である場合には、前記着目画素を白画素に変換する孤立点処理工程とを備える。   The present invention provides an image reading method for removing a removal color that is a predesignated color. The image reading method includes an image reading step of reading an image to generate RGB image data including a tone value of R, a tone value of G, and a tone value of B, and a pixel having the removed color. There is a mask processing step of converting into a white pixel which is a white pixel having the highest lightness, and a non-white pixel which is an unconverted pixel of the white pixel and has a brightness higher than a preset first threshold. If the non-white adjacent pixel adjacent to the white pixel is a pixel of interest and all surrounding pixels around the pixel of interest are the white pixels, an isolated point for converting the pixel of interest to a white pixel And a processing step.

本発明は、予め指定された色である除去色を除去する画像読取装置を制御するための画像読取プログラムを提供する。前記画像読取プログラムは、画像を読み取ってRの階調値と、Gの階調値と、Bの階調値とを含むRGB画像データを生成する画像読取部、前記除去色を有する画素を明度が最も高い白色の画素である白画素に変換するマスク処理部、及び前記白画素に未変換の画素である非白色画素であって予め設定されている第1の閾値よりも高い明度を有し、前記白画素に隣接する非白色隣接画素を着目画素とし、前記着目画素の周辺の画素である周辺画素が全て前記白画素である場合には、前記着目画素を白画素に変換する孤立点処理部として前記画像読取装置を機能させる。   The present invention provides an image reading program for controlling an image reading apparatus that removes a removal color that is a predetermined color. The image reading program reads an image and generates an RGB image data including an R gradation value, a G gradation value, and a B gradation value, and an image reading unit for lightening pixels having the removed color. Mask processing unit that converts a white pixel that is the highest white pixel, and a non-white pixel that is a pixel that is not converted to the white pixel and has a brightness higher than a preset first threshold An isolated point process that converts a target pixel into a white pixel when a non-white adjacent pixel adjacent to the white pixel is a target pixel and all peripheral pixels around the target pixel are the white pixel. The image reading apparatus functions as a part.

本発明によれば、指定色の除去後に散発的に残存するドットを抑制することができる。   According to the present invention, it is possible to suppress sporadically remaining dots after removal of a designated color.

本発明の第1実施形態に係る画像形成装置1の全体構成を示す概略構成図である。FIG. 1 is a schematic configuration view showing an entire configuration of an image forming apparatus 1 according to a first embodiment of the present invention. 第1実施形態に係る画像形成装置1の全体構成を示すブロックダイアグラムである。1 is a block diagram showing an entire configuration of an image forming apparatus 1 according to a first embodiment. 第1実施形態に係る画像データ生成処理の内容を示すフローチャートである。It is a flowchart which shows the content of the image data generation process which concerns on 1st Embodiment. 第1実施形態に係るマスク処理とマスク処理後の残存ドットを示す説明図である。It is explanatory drawing which shows the residual dot after the mask process which concerns on 1st Embodiment, and a mask process. 第1実施形態に係る隣接孤立点除去処理の内容を示すフローチャートである。It is a flowchart which shows the content of the adjacent isolated point removal process which concerns on 1st Embodiment. 第1実施形態に係る隣接孤立点除去処理の内容を示す説明図である。It is explanatory drawing which shows the content of the adjacent isolated point removal process which concerns on 1st Embodiment. 第2実施形態に係る画像データ生成処理の内容を示すフローチャートである。It is a flow chart which shows the contents of the image data generation processing concerning a 2nd embodiment. 第2実施形態に係るマスク処理の内容を示す説明図である。It is an explanatory view showing the contents of the mask processing concerning a 2nd embodiment. 第2実施形態に係る隣接孤立点除去処理の内容を示すフローチャートである。It is a flowchart which shows the content of the adjacent isolated point removal process which concerns on 2nd Embodiment. 第2実施形態に係る隣接孤立点除去処理の内容を示す説明図である。It is explanatory drawing which shows the content of the adjacent isolated point removal process which concerns on 2nd Embodiment.

以下、本発明を実施するための形態(以下、「実施形態」という)を、図面を参照して以下の順序で説明する。
A.第1実施形態:
B.第2実施形態:
C.変形例:
Hereinafter, modes for carrying out the present invention (hereinafter, referred to as “embodiments”) will be described in the following order with reference to the drawings.
A. First embodiment:
B. Second embodiment:
C. Modification:

A.第1実施形態:
図1は、本発明の一実施形態に係る画像形成装置1の全体構成を示す概略構成図である。図2は、一実施形態に係る画像形成装置1の全体構成を示すブロックダイアグラムである。画像形成装置1は、制御部10と、画像読取部100と、画像形成部20と、自動原稿送り装置(ADF)30と、記憶部40とを備えている。画像読取部100は、原稿から画像を読み取ってデジタルデータである画像データIDを生成する。
A. First embodiment:
FIG. 1 is a schematic configuration view showing an entire configuration of an image forming apparatus 1 according to an embodiment of the present invention. FIG. 2 is a block diagram showing the overall configuration of the image forming apparatus 1 according to an embodiment. The image forming apparatus 1 includes a control unit 10, an image reading unit 100, an image forming unit 20, an automatic document feeder (ADF) 30, and a storage unit 40. The image reading unit 100 reads an image from a document and generates an image data ID which is digital data.

制御部10は、RAMやROM等の主記憶手段、及びMPU(Micro Processing Unit)やCPU(Central Processing Unit)等の制御手段を備えている。また、制御部10は、各種I/O、USB(ユニバーサル・シリアル・バス)、バス、その他ハードウェア等のインターフェイスに関連するコントローラ機能を備え、画像形成装置1全体を制御する。   The control unit 10 includes a main storage unit such as a RAM and a ROM, and a control unit such as an MPU (Micro Processing Unit) and a CPU (Central Processing Unit). The control unit 10 also has a controller function related to interfaces such as various I / O, USB (Universal Serial Bus), bus, and other hardware, and controls the entire image forming apparatus 1.

画像形成部20は、画像データIDに基づいて印刷媒体に画像を形成して排出する。画像形成部20は、色変換処理部21と、ハーフトーン処理部22とを備える。色変換処理部21は、RGBデータである画像データをCMYKデータに色変換する。ハーフトーン処理部22は、CMYKデータにハーフトーン処理を実行してCMYKのハーフトーンデータを生成する。   The image forming unit 20 forms and discharges an image on a print medium based on the image data ID. The image forming unit 20 includes a color conversion processing unit 21 and a halftone processing unit 22. The color conversion processing unit 21 color converts image data, which is RGB data, into CMYK data. The halftone processing unit 22 performs halftone processing on the CMYK data to generate CMYK halftone data.

記憶部40は、非一時的な記録媒体であるハードディスクドライブやフラッシュメモリー等からなる記憶装置で、制御部10が実行する処理の制御プログラム(画像読取プログラムを含む。)やデータを記憶する。   The storage unit 40 is a storage device such as a hard disk drive or a flash memory, which is a non-temporary recording medium, and stores control programs (including an image reading program) and data of processing executed by the control unit 10.

画像読取部100は、光源ドライバ111と、光源112とを備えている。光源112は、原稿Pに光を照射する複数のLED(図示せず)を有する。光源ドライバ111は、主走査方向に配列されている複数のLEDを駆動するLEDドライバであり、光源112のオンオフ駆動制御を行う。これにより、光源112は、可変の駆動デューティのパルス幅変調(PWM)で原稿Pを照射することができる。   The image reading unit 100 includes a light source driver 111 and a light source 112. The light source 112 has a plurality of LEDs (not shown) for irradiating the document P with light. The light source driver 111 is an LED driver that drives a plurality of LEDs arranged in the main scanning direction, and performs on / off driving control of the light source 112. Thus, the light source 112 can irradiate the document P with pulse width modulation (PWM) of variable drive duty.

画像読取部100は、さらに、第1反射鏡113と、第1キャリッジ114と、第2反射鏡115と、第3反射鏡116と、第2キャリッジ117と、集光レンズ118と、イメージセンサ121とを備えている。第1反射鏡113は、原稿Pからの反射光Lを第2反射鏡115の方向に反射する。第2反射鏡115は、反射光Lを第3反射鏡116の方向に反射する。第3反射鏡116は、反射光Lを集光レンズ118の方向に反射する。集光レンズ118は、反射光Lをイメージセンサ121が有する受光素子122の受光面に結像する。   The image reading unit 100 further includes a first reflecting mirror 113, a first carriage 114, a second reflecting mirror 115, a third reflecting mirror 116, a second carriage 117, a condenser lens 118, and an image sensor 121. And have. The first reflecting mirror 113 reflects the reflected light L from the document P in the direction of the second reflecting mirror 115. The second reflecting mirror 115 reflects the reflected light L in the direction of the third reflecting mirror 116. The third reflecting mirror 116 reflects the reflected light L in the direction of the condensing lens 118. The condensing lens 118 focuses the reflected light L on the light receiving surface of the light receiving element 122 included in the image sensor 121.

イメージセンサ121は、R,G,Bの3種類のカラーフィルタ(図示せず)と、主走査方向に配列されている複数の受光素子122とを有する。複数の受光素子122は、それぞれの入射光の強弱に応じて光電変換された電荷を発生させ、その電荷を各画素に対応するCCD素子が形成する各ポテンシャルウェル(電荷の井戸)に蓄積する。各ポテンシャルウェルに蓄積された電荷は、図示しないシフトレジスタに一斉に転送される。シフトレジスタに転送された各電荷は、電荷−電圧変換増幅器により電圧信号であるアナログ電気信号に変換される。これにより、イメージセンサ121は、主走査方向の画素毎のアナログ電気信号を出力することができる。   The image sensor 121 has three types of color filters (not shown) of R, G, and B, and a plurality of light receiving elements 122 arranged in the main scanning direction. The plurality of light receiving elements 122 generate charges photoelectrically converted according to the intensity of each incident light, and accumulate the charges in each potential well (well of charges) formed by the CCD element corresponding to each pixel. The charges accumulated in each potential well are simultaneously transferred to a shift register not shown. Each charge transferred to the shift register is converted by the charge-to-voltage conversion amplifier into an analog electrical signal which is a voltage signal. Thus, the image sensor 121 can output an analog electrical signal for each pixel in the main scanning direction.

第1キャリッジ114は、光源112と第1反射鏡113とを搭載し、副走査方向に往復動する。第2キャリッジ117は、第2反射鏡115と第3反射鏡116とを搭載し、副走査方向に往復動する。第1キャリッジ114及び第2キャリッジ117は、制御部10によって制御される。これにより、光源112は原稿を副走査方向に走査することができるので、イメージセンサ121は、原稿上の2次元画像に応じてアナログ電気信号を出力することができる。   The first carriage 114 mounts the light source 112 and the first reflecting mirror 113, and reciprocates in the sub-scanning direction. The second carriage 117 mounts the second reflecting mirror 115 and the third reflecting mirror 116, and reciprocates in the sub scanning direction. The first carriage 114 and the second carriage 117 are controlled by the control unit 10. Thus, the light source 112 can scan the document in the sub-scanning direction, so the image sensor 121 can output an analog electrical signal according to the two-dimensional image on the document.

なお、自動原稿送り装置(ADF)30が使用される場合には、第1キャリッジ114及び第2キャリッジ117は、予め設定されている副走査位置に固定され、原稿Pの自動送りによって副走査方向の走査が行われる。この際の走査速度は、第1キャリッジ114及び第2キャリッジ117の往復動による走査の走査速度と機構上の理由によって相違することになる。   When the automatic document feeder (ADF) 30 is used, the first carriage 114 and the second carriage 117 are fixed at a preset sub-scanning position, and the document P is automatically fed to the sub-scanning direction. Scan is performed. The scanning speed at this time is different depending on the scanning speed of scanning due to the reciprocating motion of the first carriage 114 and the second carriage 117 and the mechanism.

画像読取部100は、さらに、信号増幅器123と、A/D変換部124と、AGC処理部130と、白基準板132(図1参照)と、画像処理部150とを備えている。信号増幅器123は、可変利得増幅器である。信号増幅器123は、AGC処理部130で設定され、記憶部40に格納されている利得でアナログ電気信号を増幅する。A/D変換部124は、増幅されたアナログ電気信号をA/D変換してデジタルデータである原画像データRIDを生成する。原画像データRIDは、最小値「0」と最大値「255」のレンジ幅を有するデータである。画像形成部20は、原画像データRIDに対して画像処理部150で画像処理を行った後の画像データIDに基づいて印刷媒体に画像を形成して排出する。   The image reading unit 100 further includes a signal amplifier 123, an A / D conversion unit 124, an AGC processing unit 130, a white reference plate 132 (see FIG. 1), and an image processing unit 150. The signal amplifier 123 is a variable gain amplifier. The signal amplifier 123 amplifies the analog electrical signal with the gain set by the AGC processing unit 130 and stored in the storage unit 40. The A / D converter 124 A / D converts the amplified analog electrical signal to generate original image data RID which is digital data. The original image data RID is data having a range width of the minimum value “0” and the maximum value “255”. The image forming unit 20 forms and discharges an image on a print medium based on the image data ID after the image processing unit 150 performs image processing on the original image data RID.

AGC処理部130は、本実施形態では、黒基準信号と白基準信号とを使用して複数の受光素子122のそれぞれに対して最適な利得とオフセット値とを設定する利得調整部である。黒基準信号は、光源112がオフの状態における受光素子122のアナログ電気信号である。白基準信号は、原稿Pの代わりに白基準板132を照射したときの受光素子122のアナログ電気信号である。AGC処理部130は、黒基準信号がA/D変換部124によってA/D変換されたときの原画像データRIDの値が最小値「0」となるようにオフセット値を設定する。AGC処理部130は、このオフセット値を使用して白基準信号がA/D変換部124によってA/D変換されたときの原画像データRIDの値が最大値「255」となるように利得を設定する。   In the present embodiment, the AGC processing unit 130 is a gain adjustment unit that sets optimum gains and offset values for each of the plurality of light receiving elements 122 using a black reference signal and a white reference signal. The black reference signal is an analog electrical signal of the light receiving element 122 when the light source 112 is off. The white reference signal is an analog electric signal of the light receiving element 122 when the white reference plate 132 is illuminated instead of the document P. The AGC processing unit 130 sets an offset value such that the value of the original image data RID when the black reference signal is A / D converted by the A / D conversion unit 124 becomes the minimum value “0”. The AGC processing unit 130 uses a gain such that the value of the original image data RID when the white reference signal is A / D converted by the A / D conversion unit 124 using this offset value becomes the maximum value “255”. Set

これにより、黒基準信号と白基準信号との間の反射光の増減に起因するアナログ電気信号の変動を原画像データRIDの最小値「0」から最大値「255」までの幅を有効に使用できることとなる。ただし、原画像データRIDには、イメージセンサ121の内部における複数のCCD素子間の個体差等に起因するノイズと、カラーフィルタ(図示せず)と色材の特性に起因するズレとが含まれることになる。なお、画像処理部150は、マスク処理部151及び孤立点処理部152を有しているが、これらの機能については後述する。   Thereby, the fluctuation of the analog electrical signal caused by the increase or decrease of the reflected light between the black reference signal and the white reference signal is effectively used from the minimum value "0" to the maximum value "255" of the original image data RID. It will be possible. However, the original image data RID includes noise due to individual differences among a plurality of CCD elements inside the image sensor 121 and deviation due to the characteristics of the color filter (not shown) and the color material. It will be. Although the image processing unit 150 includes the mask processing unit 151 and the isolated point processing unit 152, these functions will be described later.

図3は、一実施形態に係る画像データ生成処理の内容を示すフローチャートである。ステップS100では、画像形成装置1は、作動モードを除去色指定処理モードに設定するための操作入力をユーザーから受け付ける。除去色指定処理モードでは、画像形成装置1は、除去色を指定するための操作入力を受け付ける。この例では、赤色が選択されたものとする。   FIG. 3 is a flowchart showing the contents of image data generation processing according to an embodiment. In step S100, the image forming apparatus 1 receives from the user an operation input for setting the operation mode to the removal color designation processing mode. In the removal color designation processing mode, the image forming apparatus 1 receives an operation input for designating a removal color. In this example, it is assumed that red is selected.

ステップS200では、画像読取部100は、原稿をスキャンする。これにより、画像読取部100は、画素毎にRGBの各階調値を有する原画像データRIDを生成する(ステップS300)。原画像データRIDは、画像処理部150に入力される(図2参照)。   In step S200, the image reading unit 100 scans a document. Thus, the image reading unit 100 generates original image data RID having each gradation value of RGB for each pixel (step S300). The original image data RID is input to the image processing unit 150 (see FIG. 2).

図4は、一実施形態に係るマスク処理とマスク処理後の残存ドットを示す説明図である。図4(a)は、原画像データRIDによって表されている画像P1とマスク処理後の画像P2とを示している。画像P1は、原稿の地肌の色である赤色を示し、画像が表示されていない状態を示している。図4(b)は、マスク処理の内容を示している。   FIG. 4 is an explanatory view showing a mask process according to an embodiment and a remaining dot after the mask process. FIG. 4A shows the image P1 represented by the original image data RID and the image P2 after the mask processing. The image P1 indicates red, which is the color of the background of the document, and indicates a state in which the image is not displayed. FIG. 4B shows the contents of the mask process.

ステップS400では、画像処理部150のマスク処理部151は、色相に基づくマスク処理を実行する。マスク処理部151は、指定された除去色に応じて色相で区切ったマスクを生成する。マスクは、赤色から色相角Th0の閾値の範囲内(第1の色相範囲内とも呼ばれる。)の画素を選択するように構成されている(図4(b)参照)。   In step S400, the mask processing unit 151 of the image processing unit 150 executes mask processing based on hue. The mask processing unit 151 generates a mask divided by hue in accordance with the designated removal color. The mask is configured to select pixels within the range of red to the threshold of the hue angle Th0 (also referred to as within the first hue range) (see FIG. 4 (b)).

マスク処理部151は、原画像データRIDに対して画素単位でマスクをかけ、マスクで選択された画素を記憶するとともに、色除去して白画素に変換する。白画素は、R,G,Bの階調値のいずれもが255に変換された明度が最も高い白色の画素である。これにより、マスク処理部151は、画像P2を表す画像データを生成することができる。   The mask processing unit 151 masks the original image data RID in pixel units, stores the pixel selected by the mask, removes the color, and converts it into a white pixel. The white pixel is a white pixel having the highest lightness in which all of the gradation values of R, G, and B are converted into 255. Thereby, the mask processing unit 151 can generate image data representing the image P2.

マスク処理後の画像P2は、指定色(赤色)の除去後に散発的にドットが発生(残存)している。本願発明者は、このような散発的なドットが、特に低濃度部において読取時のノイズに起因して発生(残存)していることを見出した。このような散発的なドットは、特に指定色の除去後の白い印刷媒体上において容易に視認可能なので、画像品質の劣化につながっている。   In the image P2 after mask processing, dots are sporadically generated (remaining) after removal of the designated color (red). The inventor of the present application has found that such sporadic dots are generated (remaining) due to noise at the time of reading, particularly in the low density portion. Such sporadic dots are particularly visible on white print media after removal of specified colors, leading to image quality degradation.

ステップS500では、画像処理部150の孤立点処理部152は、隣接孤立点除去処理を実行する。隣接孤立点除去処理では、孤立点処理部152は、ステップS400で記憶した白画素に隣接する散発的なドットが形成される画素が他の白画素に変換された画素に囲まれていることを特定する。これにより、孤立点処理部152は、白画素に隣接する本画素の濃度が原稿P上の画像を表している濃度ではなく、読取時のノイズに起因する濃度であると判断して白画素に変換する。   In step S500, the isolated point processing unit 152 of the image processing unit 150 executes an adjacent isolated point removal process. In the adjacent isolated point removal process, the isolated point processing unit 152 determines that the pixel in which the sporadic dots adjacent to the white pixel stored in step S400 are formed is surrounded by the pixels converted to other white pixels. Identify. As a result, the isolated point processing unit 152 determines that the density of the main pixel adjacent to the white pixel is not the density representing the image on the document P but the density due to noise at the time of reading, Convert.

図5は、一実施形態に係る隣接孤立点除去処理(ステップS500)の内容を示すフローチャートである。図6は、一実施形態に係る隣接孤立点除去処理の内容を示す説明図である。図6(a)は、ステップS400で記憶した白画素を*印で示し、その主走査方向に隣接する画素1が着目画素として選択されている様子を示している。   FIG. 5 is a flowchart showing the contents of the adjacent isolated point removal process (step S500) according to one embodiment. FIG. 6 is an explanatory view showing the contents of the adjacent isolated point removal process according to the embodiment. FIG. 6A shows the white pixel stored in step S400 with an * mark, and shows that the pixel 1 adjacent in the main scanning direction is selected as the target pixel.

ステップS510では、孤立点処理部152は、非白色隣接画素が存在するか否かを判断する。非白色隣接画素とは、白画素に隣接する画素であって、白画素に未変換の画素である非白色画素を意味している。孤立点処理部152は、非白色隣接画素が存在しない場合には、処理をステップS600(図3参照)に進め、非白色隣接画素が存在する場合には、処理をステップS520に進める。   In step S510, the isolated point processing unit 152 determines whether there is a non-white adjacent pixel. The non-white adjacent pixel means a non-white pixel which is a pixel adjacent to a white pixel and which has not been converted to a white pixel. If the non-white adjacent pixel is not present, the isolated point processing unit 152 proceeds the process to step S600 (see FIG. 3), and if the non-white adjacent pixel is present, the process proceeds to step S520.

ステップS520では、孤立点処理部152は、着目画素の濃度が所定の閾値より小さいか否かを判断する。着目画素は、非白色隣接画素の中から白画素に対して予め設定されている方向(この例では主走査方向)に隣接する画素として一つずつ選択される。この例では、画素1(図6(a)参照)が着目画素として選択されたものとする。孤立点処理部152は、着目画素の濃度が所定の閾値(第1の閾値に対応する。)以上である場合には、処理をステップS600に進め、着目画素の濃度が所定の閾値未満である場合(すなわち第1の閾値よりも高い明度を有する場合)には、処理をステップS530に進める。   In step S520, the isolated point processing unit 152 determines whether the density of the pixel of interest is smaller than a predetermined threshold. The target pixel is selected one by one as a pixel adjacent in a direction (in this example, the main scanning direction) set in advance with respect to the white pixel among the non-white adjacent pixels. In this example, it is assumed that the pixel 1 (see FIG. 6A) is selected as the target pixel. If the density of the pixel of interest is greater than or equal to the predetermined threshold (corresponding to the first threshold), the isolated point processing unit 152 proceeds to step S600 and the density of the pixel of interest is less than the predetermined threshold If so (ie, if the lightness is higher than the first threshold), the process proceeds to step S530.

なお、濃度は、着目画素の色を減法混色で再現したと仮定した場合の色材の濃度を意味し、たとえばRGBの各階調値をHSV色空間に変換した場合の明度に対応する。「濃度が小さい」は、「明度が高い」に対応することになるので、明度に基づいて判断することができる。   The density means the density of the color material on the assumption that the color of the pixel of interest is reproduced by the subtractive color mixture, and corresponds to the lightness when each gradation value of RGB is converted to the HSV color space, for example. Since “low density” corresponds to “high lightness”, it can be determined based on lightness.

ステップS530では、孤立点処理部152は、着目画素1の周辺画素(図6(a)の画素A乃至G)がすべて白画素(白画素に変換された画素)であるか否かを判断する。すなわち、孤立点処理部152は、着目画素1が白画素に囲まれた散発的なドットが形成される画素であるか否かを判断する。孤立点処理部152は、全周辺画素が白画素である場合には、処理をステップS590に進め、周辺画素に少なくとも1つの非白色画素がある場合には、処理をステップS540に進める。   In step S530, the isolated point processing unit 152 determines whether all the peripheral pixels (pixels A to G in FIG. 6A) of the pixel of interest 1 are white pixels (pixels converted to white pixels). . That is, the isolated point processing unit 152 determines whether or not the pixel of interest 1 is a pixel in which sporadic dots surrounded by white pixels are formed. If all the peripheral pixels are white pixels, the isolated point processing unit 152 proceeds to step S590. If there is at least one non-white pixel in the peripheral pixels, the isolated point processing unit 152 proceeds to step S540.

図6(a)の例では、孤立点処理部152は、画素1(図6(a)参照)が白画素に囲まれた単独のドットが形成される画素であるものとする。これにより、孤立点処理部152は、着目画素1の濃度が原稿P上の画像を表している濃度ではなく、読取時のノイズに起因する濃度であると判断して白画素に変換する(ステップS590)。   In the example of FIG. 6A, it is assumed that the isolated point processing unit 152 is a pixel in which a single dot in which the pixel 1 (see FIG. 6A) is surrounded by white pixels is formed. As a result, the isolated point processing unit 152 determines that the density of the pixel of interest 1 is not the density representing the image on the document P but the density due to noise at the time of reading and converts it into white pixels (step S 590).

一方、図6(b)の例では、画素1の周辺画素の1つである画素2が非白色画素として存在するものとする。この場合、孤立点処理部152は、周辺画素に少なくとも1つの非白色画素があるので、処理をステップS540に進める。   On the other hand, in the example of FIG. 6B, it is assumed that the pixel 2 which is one of the peripheral pixels of the pixel 1 exists as a non-white pixel. In this case, the isolated point processing unit 152 causes the process to proceed to step S540 because there is at least one non-white pixel in the peripheral pixels.

ステップS540では、孤立点処理部152は、周辺画素に2つ以上の非白色画素が含まれているか否かを判断する。孤立点処理部152は、周辺画素に2つ以上の非白色画素が含まれている場合には、処理をステップS600に進め、周辺画素に2つ以上の非白色画素が含まれていない場合、すなわち単一の非白色画素が含まれている場合には、処理をステップS550に進める。   In step S540, the isolated point processing unit 152 determines whether or not the peripheral pixels include two or more non-white pixels. The isolated point processing unit 152 proceeds the process to step S600 when the peripheral pixels include two or more non-white pixels, and when the peripheral pixels do not include two or more non-white pixels. That is, if a single non-white pixel is included, the process proceeds to step S550.

図6(b)の例では、画素1の主走査方向に隣接する単一の画素2が非白色画素として存在するので、孤立点処理部152は、処理をステップS550に進める。一方、図6(d)の例では、画素1の周辺に画素2及び画素3が非白色画素として存在するので、孤立点処理部152は、画素1乃至画素3が画像を構成している可能性があると判断して、処理をステップS600に進める。   In the example of FIG. 6B, since the single pixel 2 adjacent in the main scanning direction of the pixel 1 exists as a non-white pixel, the isolated point processing unit 152 proceeds with the process to step S550. On the other hand, in the example of FIG. 6D, since the pixels 2 and 3 exist as non-white pixels around the pixel 1, the isolated point processing unit 152 can be configured such that the pixels 1 to 3 constitute an image. It is determined that there is a sex, and the process proceeds to step S600.

ステップS550では、孤立点処理部152は、着目画素変更処理を実行する。図6(b)の例では、孤立点処理部152は、着目画素(図6(b)の画素1、すなわち変更前の着目画素)に隣接する単一の非白色画素(図6(b)の画素2)を新たな着目画素(変更後の着目画素)として選択する。   In step S550, the isolated point processing unit 152 executes a pixel of interest change process. In the example of FIG. 6 (b), the isolated point processing unit 152 selects a single non-white pixel (FIG. 6 (b)) adjacent to the pixel of interest (pixel 1 of FIG. 6 (b), ie, the pixel of interest before changing). Pixel 2) is selected as a new target pixel (target pixel after change).

ステップS560では、孤立点処理部152は、新たに選択された着目画素(図6(b)の画素2)の濃度が所定の閾値より小さいか否かを判断する。孤立点処理部152は、着目画素2の濃度が所定の閾値以上である場合には、処理をステップS570に進め、着目画素2の濃度が所定の閾値未満である場合には、処理をステップS530に戻す。   In step S560, the isolated point processing unit 152 determines whether the density of the newly selected focused pixel (pixel 2 in FIG. 6B) is smaller than a predetermined threshold. If the density of the pixel of interest 2 is equal to or greater than the predetermined threshold, the isolated point processing unit 152 proceeds to step S570. If the density of the pixel of interest 2 is less than the predetermined threshold, the isolated point processor 152 proceeds to step S530. Back to.

ステップS570では、孤立点処理部152は、新たに選択された着目画素(図6(b)の画素2)を白画素に変換することなく、元の着目画素である画素1(図6(a)参照)を着目画素に戻す。これにより、孤立点処理部152は、着目画素である画素1が原稿P上の画像を表している濃度ではなく、読取時のノイズに起因する濃度であると判断して白画素に変換する(ステップS590)。   In step S570, the isolated point processing unit 152 does not convert the newly selected focused pixel (pixel 2 in FIG. 6B) into a white pixel, and thus the pixel 1 that is the original focused pixel (see FIG. )) Is returned to the target pixel. As a result, the isolated point processing unit 152 determines that the pixel 1 which is the pixel of interest is not the density representing the image on the document P but the density due to noise at the time of reading, and converts it into white pixels ( Step S590).

図6(b)の例では、着目画素2の濃度が所定の閾値未満であり、孤立点処理部152は、処理をステップS530に戻すものとする。なお、図6(b)の例では、着目画素2の周辺画素(図6(b)の画素A乃至G)がすべて白画素(白画素に変換された画素)であるものとする。   In the example of FIG. 6B, the density of the pixel of interest 2 is less than the predetermined threshold, and the isolated point processing unit 152 returns the process to step S530. In the example of FIG. 6B, all the peripheral pixels (pixels A to G in FIG. 6B) of the target pixel 2 are white pixels (pixels converted to white pixels).

ステップS530(2回目)では、孤立点処理部152は、着目画素2の周辺画素がすべて白画素であるか否かを判断する。図6(b)の例では、孤立点処理部152は、画素2(図6(b)参照)が白画素に囲まれた単独の非白色隣接画素(ドットが形成される画素)であり、ひいては画素1及び画素2の2つの画素が白画素に囲まれて孤立している画素グループ(ドットが形成される画素グループ)であることを特定することができる。   In step S530 (second time), the isolated point processing unit 152 determines whether all the peripheral pixels of the pixel of interest 2 are white pixels. In the example of FIG. 6B, the isolated point processing unit 152 is a single non-white adjacent pixel (pixel in which a dot is formed) surrounded by white pixels in the pixel 2 (see FIG. 6B). As a result, it can be specified that two pixels of the pixel 1 and the pixel 2 are isolated pixel groups (pixel groups in which dots are formed) surrounded by white pixels.

これにより、孤立点処理部152は、画素1及び画素2の2つの画素の濃度が原稿P上の画像を表している濃度ではなく、読取時のノイズに起因する濃度であると判断して白画素に変換する(ステップS590)。   Thus, the isolated point processing unit 152 determines that the density of the two pixels of the pixel 1 and the pixel 2 is not the density representing the image on the document P but the density resulting from the noise at the time of reading. Convert to pixels (step S590).

一方、図6(c)の例では、さらに、画素2の周辺画素の1つである画素3が非白色画素として存在するものとする。この場合、孤立点処理部152は、周辺画素に少なくとも1つの非白色画素があるので、処理をステップS540に進める。ステップS540乃至ステップS560では、孤立点処理部152は、画素3を新たな着目画素として処理をS530に戻すものとする。なお、図6(c)の例では、着目画素3の周辺画素(図6(c)の画素A乃至G)がすべて白画素であるものとする。   On the other hand, in the example of FIG. 6C, it is further assumed that the pixel 3 which is one of the peripheral pixels of the pixel 2 exists as a non-white pixel. In this case, the isolated point processing unit 152 causes the process to proceed to step S540 because there is at least one non-white pixel in the peripheral pixels. In steps S540 to S560, the isolated point processing unit 152 returns the process to S530 with the pixel 3 as a new target pixel. In the example of FIG. 6C, it is assumed that all the peripheral pixels (pixels A to G in FIG. 6C) of the pixel of interest 3 are white pixels.

ステップS530(3回目)では、孤立点処理部152は、着目画素(図6(c)の画素3)の周辺画素(図6(c)の画素A乃至G)がすべて白画素であるか否かを判断する。図6(b)の例では、孤立点処理部152は、画素3(図6(c)参照)が白画素に囲まれた単独のドットが形成される画素であり、ひいては画素1乃至画素3の3つのドットが形成される画素が白画素に囲まれて孤立している画素グループであることを特定することができる。   In step S530 (third time), the isolated point processing unit 152 determines whether all the peripheral pixels (pixels A to G in FIG. 6C) of the pixel of interest (pixel 3 in FIG. 6C) are white pixels. To judge. In the example of FIG. 6B, the isolated point processing unit 152 is a pixel in which a single dot in which the pixel 3 (see FIG. 6C) is surrounded by white pixels is formed, and thus the pixels 1 to 3 It can be specified that the pixel in which the three dots are formed is an isolated pixel group surrounded by white pixels.

これにより、孤立点処理部152は、画素1乃至画素3の3つの画素の濃度が原稿P上の画像を表している濃度ではなく、読取時のノイズに起因する濃度であると判断して白画素に変換する(ステップS590)。   Thus, the isolated point processing unit 152 determines that the density of the three pixels of the pixels 1 to 3 is not the density representing the image on the document P but the density due to the noise at the time of reading. Convert to pixels (step S590).

孤立点処理部152は、予め設定されている数(3つ)の画素で構成される画素グループを白画素に変換する一方、予め設定されている数を超える(4つ以上)の画素で構成される画素グループについては画像に起因する濃度である可能性があるとして白画素への変換を行わないで画素グループを生成する処理(ステップS530乃至S560)を終了するように構成されているものとする。なお、白画素への変換対象となる画素グループの画素の数は、画像の解像度や読取時のノイズレベル等に応じて適切に調整することができる。   The isolated point processing unit 152 converts a pixel group configured by a preset number (three) of pixels into white pixels, while configured by pixels (four or more) exceeding the preset number. It is configured to end the processing (steps S530 to S560) of generating a pixel group without performing conversion to a white pixel as there is a possibility that the density is attributed to the image for the pixel group being processed. Do. The number of pixels of the pixel group to be converted into white pixels can be appropriately adjusted in accordance with the resolution of the image, the noise level at the time of reading, and the like.

ステップS600では、色変換処理部21は、RGBデータである画像データをCMYKデータに色変換する。ステップS700では、ハーフトーン処理部22は、CMYKデータにハーフトーン処理を実行してCMYKのハーフトーンデータを生成する。これにより、画像形成装置1は、ハーフトーンデータに基づいて印刷媒体上に画像を形成することができる。   In step S600, the color conversion processing unit 21 color converts image data, which is RGB data, into CMYK data. In step S700, the halftone processing unit 22 performs halftone processing on the CMYK data to generate CMYK halftone data. Thereby, the image forming apparatus 1 can form an image on the print medium based on the halftone data.

このように、第1実施形態に係る画像形成装置1は、白画素に隣接する散発的な3つ以下の数のドットが形成される画素からなる線状の画素グループや単一の画素が白画素に囲まれていることを特定することができる。これにより、画像形成装置1は、画素グループ等の濃度が原稿P上の画像を表している濃度ではなく、読取時のノイズに起因する濃度であると判断して白画素に変換して画質を向上させることができる。   As described above, in the image forming apparatus 1 according to the first embodiment, a linear pixel group or a single pixel consisting of pixels in which a sporadic number of three or less dots adjacent to a white pixel is formed is white. It can be specified that it is surrounded by pixels. Thereby, the image forming apparatus 1 determines that the density of the pixel group or the like is not the density representing the image on the document P but the density caused by the noise at the time of reading, converts it into white pixels and converts the image quality. It can be improved.

なお、閾値としての色相角Th0は、大きくするとユーザーが除去することを望んでいる除去色だけでなく、誤って画像を除去する可能性が大きくなる一方、小さくすると除去色を十分に除去することができないというトレードオフの問題を考慮して設定される。   It should be noted that the hue angle Th0 as a threshold value is not only the removal color that the user wants to remove if it is large, but the possibility of erroneously removing the image is large, while the color is sufficiently removed. Is set in consideration of the trade-off problem of not being able to

B.第2実施形態:
図7は、第2実施形態に係る画像データ生成処理の内容を示すフローチャートである。第2実施形態に係る画像データ生成処理は、マスク処理(ステップS400)及び隣接孤立点除去処理(ステップS500)がマスク処理(ステップS400a)及び隣接孤立点除去処理(ステップS500a)にそれぞれ置き換えられている点で第1実施形態に係る画像データ生成処理と相違する。
B. Second embodiment:
FIG. 7 is a flowchart showing the contents of the image data generation process according to the second embodiment. In the image data generation process according to the second embodiment, the mask process (step S400) and the adjacent isolated point removal process (step S500) are respectively replaced with the mask process (step S400a) and the adjacent isolated point removal process (step S500a). This is different from the image data generation process according to the first embodiment in that it is present.

図8は、第2実施形態に係るマスク処理(ステップS400a)の内容を示す説明図である。ステップS410では、マスク処理部151は、第1のマスクを使用してマスク処理を実行する。第1のマスクは、赤色から色相角Th1の閾値の範囲内(第1の色相範囲内とも呼ばれる。)の画素を選択するように構成されている(図8(b)参照)。閾値としての色相角Th1は、第1実施形態に係るマスク処理で使用されるマスクの色相角Th0と同一でもよく、色相角Th0よりも小さくてもよい。   FIG. 8 is an explanatory view showing the contents of the mask process (step S400a) according to the second embodiment. In step S410, the mask processing unit 151 performs mask processing using the first mask. The first mask is configured to select pixels in the range from red to the threshold of the hue angle Th1 (also referred to as the first hue range) (see FIG. 8B). The hue angle Th1 as the threshold may be the same as the hue angle Th0 of the mask used in the mask processing according to the first embodiment, or may be smaller than the hue angle Th0.

ステップS420では、マスク処理部151は、原画像データRIDに対して画素単位でマスクをかけ、マスクで選択された画素を記憶するとともに、色除去して白画素に変換する。この点は、第1実施形態に係るマスク処理と共通する。   In step S420, the mask processing unit 151 masks the original image data RID in pixel units, stores the pixel selected by the mask, removes the color, and converts it into a white pixel. This point is common to the mask processing according to the first embodiment.

ステップS430では、マスク処理部151は、第2のマスクを使用してマスク処理を実行する。第2のマスクは、色相角Th1よりも大きな色相角Th2の閾値を有している(図8(b)参照)。第2のマスクは、赤色から色相角Th2の閾値の範囲内(第2の色相範囲内とも呼ばれる。)、すなわち第1の色相範囲よりも広く第1の色相範囲を含む範囲の画素を選択するように構成されている(図8(b)参照)。   In step S430, the mask processing unit 151 performs mask processing using the second mask. The second mask has a threshold of the hue angle Th2 larger than the hue angle Th1 (see FIG. 8B). The second mask selects pixels in a range from red to a threshold value of the hue angle Th2 (also referred to as a second hue range), that is, a range including a first hue range wider than the first hue range. It is configured as shown in FIG. 8 (b).

ステップS440では、マスク処理部151は、第2のマスクで選択された非白色画素が第1のマスクで選択された白画素に隣接しているか否かを判断する。マスク処理部151は、第2のマスクで選択された非白色画素が第1のマスクで選択された白画素に隣接していない場合には、処理をステップS600に進め、第2のマスクで選択された非白色画素が第1のマスクで選択された白画素に隣接している場合には、処理をステップS450に進める。   In step S440, the mask processing unit 151 determines whether the non-white pixel selected by the second mask is adjacent to the white pixel selected by the first mask. If the non-white pixels selected in the second mask are not adjacent to the white pixels selected in the first mask, the mask processing unit 151 proceeds to step S600 to select the second mask. If the determined non-white pixel is adjacent to the white pixel selected by the first mask, the process proceeds to step S450.

ステップS450では、マスク処理部151は、第1のマスクで選択された白画素に隣接するとともに、第2のマスクで選択された非白色画素を白画素に変換する。本方法は、白画素に変換された領域には画像が形成されておらず、画像が形成されていない領域を構成する画素に隣接する画素には、画像が形成されていない可能性が高いことに着目したものである。   In step S450, the mask processing unit 151 is adjacent to the white pixel selected by the first mask, and converts the non-white pixel selected by the second mask into a white pixel. In this method, there is a high possibility that the image is not formed in the area converted into the white pixel and the image adjacent to the pixel forming the area in which the image is not formed is formed. Focusing on

これにより、マスク処理部151は、比較的に小さな閾値(色相角Th1)を有する第1のマスクを使用してユーザーが除去することを望んでいる除去色を除去し、比較的に大きな閾値(色相角Th2)を有する第2のマスクを使用して画素の色と白画素との位置関係とに基づいて判断することによって上述のトレードオフの問題を解決している。   Thereby, the mask processing unit 151 removes the removal color that the user wants to remove using the first mask having the relatively small threshold (the hue angle Th1), and the relatively large threshold (the hue angle Th1). The above-mentioned trade-off problem is solved by making a determination based on the color of the pixel and the positional relationship between the white pixel and the second mask using the hue angle Th2).

図9は、第2実施形態に係る隣接孤立点除去処理(ステップS500a)の内容を示すフローチャートである。図10は、第2実施形態に係る隣接孤立点除去処理の内容を示す説明図である。第2実施形態に係る隣接孤立点除去処理は、ステップS580及びステップS585の処理が追加されている点で第1実施形態に係る隣接孤立点除去処理(ステップS500)と相違する(図5及び図10(e)参照)。   FIG. 9 is a flowchart showing the contents of the adjacent isolated point removal process (step S500a) according to the second embodiment. FIG. 10 is an explanatory view showing the contents of the adjacent isolated point removal process according to the second embodiment. The adjacent isolated point removal process according to the second embodiment is different from the adjacent isolated point removal process (step S500) according to the first embodiment (FIG. 5 and FIG. 5) in that the processes of step S580 and step S585 are added. 10 (e)).

第2実施形態に係る隣接孤立点除去処理(ステップS500a)は、他の処理(図10(a)乃至(d)参照)については第1実施形態と同一の処理を実行することができる。図10(e)のDP1の例では、着目画素2の周辺画素に濃度の高い3つの画素が含まれているものとする。   The adjacent isolated point removal process (step S500a) according to the second embodiment can execute the same process as that of the first embodiment for the other processes (see FIGS. 10A to 10D). In the example of DP1 in FIG. 10E, it is assumed that three pixels with high density are included in the peripheral pixels of the pixel of interest 2.

ステップS580は、濃度が閾値以下の着目画素の周辺画素に2つ以上の非白色画素が含まれている場合に進められる処理である。ステップS580では、孤立点処理部152は、2つ以上の非白色画素の濃度が閾値(第2の閾値に対応する。)以上であるか否かを判断する。孤立点処理部152は、2つ以上の非白色画素の濃度がいずれも閾値以上である場合(すなわち第2の閾値よりも低い明度を有する場合)には、処理をステップS585に進め、少なくとも1つの非白色画素の濃度が閾値未満である場合には、処理をステップS600に進める。図10(e)のDP1の例では、処理がステップS585に進められる。   Step S 580 is processing to be performed when two or more non-white pixels are included in the peripheral pixels of the pixel of interest whose density is equal to or less than the threshold. In step S580, the isolated point processing unit 152 determines whether the density of two or more non-white pixels is equal to or greater than a threshold (corresponding to a second threshold). If the densities of the two or more non-white pixels are all equal to or greater than the threshold (ie, if the lightness is lower than the second threshold), the isolated point processing unit 152 proceeds to step S585 to perform at least one. If the density of one non-white pixel is less than the threshold, the process proceeds to step S600. In the example of DP1 of FIG. 10E, the process proceeds to step S585.

ステップS585では、孤立点処理部152は、3つの非白色画素3を除く、着目画素2の他の周辺画素がすべて白画素であるか否かを判断する。孤立点処理部152は、他の周辺画素がすべて白画素である場合には、処理をステップS590に進め、他の周辺画素に非白色画素が含まれている場合には、処理をステップS600に進める。   In step S585, the isolated point processing unit 152 determines whether all the other peripheral pixels of the pixel of interest 2 except for the three non-white pixels 3 are white pixels. If all the other peripheral pixels are white pixels, the isolated point processing unit 152 proceeds to step S590. If the other peripheral pixels include non-white pixels, the process proceeds to step S600. Advance.

ステップS580及びステップS585では、孤立点処理部152は、画像の輪郭を検出することを想定している。図10(e)のDP1の例では、画像は、3つの画素3と黒丸を含む画素によって構成されている。3つの画素3は、画像の輪郭を構成している。これにより、孤立点処理部152は、3つの画素3の色を維持しつつ画素1及び画素2の非白色画素を白画素とすることによって、3つの画素3によって構成される輪郭を明確化することができる。   In steps S580 and S585, it is assumed that the isolated point processing unit 152 detects the contour of the image. In the example of DP1 of FIG. 10 (e), the image is composed of pixels including three pixels 3 and black circles. The three pixels 3 constitute the contour of the image. Thereby, the isolated point processing unit 152 makes the non-white pixels of the pixel 1 and the pixel 2 as white pixels while maintaining the color of the three pixels 3, thereby clarifying the outline formed by the three pixels 3 be able to.

一方、図10(e)のDP2の例では、着目画素2の周辺画素に濃度の低い少なくとも1つの画素を含む3つの画素3が含まれているものとする。ステップS580では、孤立点処理部152は、画素3は、画素1及び画素2とともに画像構成している可能性があると判断し、処理をステップS600に進める。   On the other hand, in the example of DP2 in FIG. 10E, it is assumed that three pixels 3 including at least one pixel with low density are included in the peripheral pixels of the pixel of interest 2. In step S580, the isolated point processing unit 152 determines that the pixel 3 may have an image configuration with the pixel 1 and the pixel 2, and advances the process to step S600.

本処理は、第2実施形態に係るマスク処理(ステップS400a)において孤立ドットが十分に除去されていることを想定し、画像の輪郭を検出して輪郭の明確化を図ることを想定している。本願発明者は、第2実施形態に係るマスク処理(ステップS400a)と隣接孤立点除去処理(ステップS500a)とが相乗的に効果を奏することを見出したからである。   This processing assumes that the isolated dots are sufficiently removed in the mask processing (step S400a) according to the second embodiment, and it is assumed that the contour of the image is detected to clarify the contour. . This is because the inventor of the present application has found that the mask processing (step S400a) according to the second embodiment and the adjacent isolated point removal processing (step S500a) have a synergistic effect.

このように、第2実施形態に係る画像形成装置1は、白画素に隣接する散発的なドットやドットグループが形成される画素や画素グループを白画素に変換してノイズの少ない鮮やかな読取画像を実現するとともに、画像の輪郭を明確化して画質を向上させることができる。   As described above, the image forming apparatus 1 according to the second embodiment converts a pixel or pixel group adjacent to a white pixel in which a sporadic dot or dot group is formed into a white pixel to obtain a vivid read image with little noise. While the image outline can be clarified to improve the image quality.

C.変形例:本発明は、上記実施形態だけでなく、以下のような変形例でも実施することができる。 C. Modifications: The present invention can be implemented not only in the above embodiment but also in the following modifications.

変形例1:上記実施形態は、除去色は、色相で指定されているが、たとえば彩度のような色を定量的に表す量で指定するようにしてもよい。   Variation 1: In the above embodiment, the removal color is specified by hue, but may be specified by an amount that quantitatively represents a color such as saturation, for example.

変形例2:上記実施形態では、本発明は、画像形成装置に適用されているが、本発明は、たとえば画像読取装置やスマートフォン、カメラといった画像読取部を備える様々な電子機器に適用することができる。   Modified Example 2 In the above embodiment, the present invention is applied to an image forming apparatus, but the present invention may be applied to various electronic devices including an image reading unit such as an image reading device, a smartphone, or a camera. it can.

1 画像形成装置
10 制御部
20 画像形成部
21 色変換処理部
22 ハーフトーン処理部
30 自動原稿送り装置(ADF)
40 記憶部
100 画像読取部
111 光源ドライバ
112 光源
113 第1反射鏡
114 第1キャリッジ
115 第2反射鏡
116 第3反射鏡
117 第2キャリッジ
118 集光レンズ
121 イメージセンサ
122 受光素子
123 信号増幅器
124 A/D変換部
130 AGC処理部
132 白基準板
150 画像処理部
151 マスク処理部
152 孤立点処理部
L 反射光
Reference Signs List 1 image forming apparatus 10 control unit 20 image forming unit 21 color conversion processing unit 22 halftone processing unit 30 automatic document feeder (ADF)
40 storage unit 100 image reading unit 111 light source driver 112 light source 113 first reflecting mirror 114 first carriage 115 second reflecting mirror 116 third reflecting mirror 117 second carriage 118 condensing lens 121 image sensor 122 light receiving element 123 signal amplifier 124 A / D converter 130 AGC processor 132 white reference plate 150 image processor 151 mask processor 152 isolated point processor L reflected light

Claims (9)

予め指定された色である除去色を除去する画像読取装置であって、
画像を読み取ってRの階調値と、Gの階調値と、Bの階調値とを含むRGB画像データを生成する画像読取部と、
前記除去色を有する画素を明度が最も高い白色の画素である白画素に変換するマスク処理部と、
前記白画素に未変換の画素である非白色画素であって予め設定されている第1の閾値よりも高い明度を有し、前記白画素に隣接する非白色隣接画素を着目画素とし、前記着目画素の周辺の画素である周辺画素が全て前記白画素である場合には、前記着目画素を白画素に変換する孤立点処理部と、
を備える画像読取装置。
An image reading apparatus for removing a removal color which is a color designated in advance, which is
An image reading unit which reads an image and generates RGB image data including a gradation value of R, a gradation value of G, and a gradation value of B;
A mask processing unit configured to convert the pixel having the removed color into a white pixel which is a white pixel having the highest lightness;
A non-white pixel which is a non-white pixel which has not been converted to the white pixel and which has a lightness higher than a preset first threshold value and which is adjacent to the white pixel is a target pixel An isolated point processing unit configured to convert the target pixel into a white pixel when all the peripheral pixels that are peripheral pixels of the pixel are the white pixel;
An image reading apparatus comprising:
請求項1に記載の画像読取装置であって、
前記孤立点処理部は、前記周辺画素に単一の前記非白色画素が存在する場合には、前記単一の非白色画素を着目画素に変更し、前記変更後の着目画素の明度が前記第1の閾値よりも高いときには、前記変更前の着目画素と前記変更後の着目画素とを含む画素グループを生成し、前記変更後の着目画素の周辺画素が全て前記白画素であるときには、前記画素グループを白画素に変換する画像読取装置。
The image reading apparatus according to claim 1,
When the single non-white pixel exists in the peripheral pixels, the isolated point processing unit changes the single non-white pixel to a target pixel, and the lightness of the target pixel after the change is the second light When it is higher than the threshold of 1, a pixel group including the focused pixel before the change and the focused pixel after the change is generated, and when all the peripheral pixels of the focused pixel after the change are the white pixels, the pixel An image reader that converts a group into white pixels.
請求項2に記載の画像読取装置であって、
前記孤立点処理部は、前記変更後の着目画素の周辺画素に単一の前記非白色画素が存在する場合には、前記単一の非白色画素を着目画素に変更し、前記変更後の着目画素の明度が前記第1の閾値よりも高いときには、前記変更後の着目画素を前記画素グループに追加し、前記画素グループに含まれる画素の数が予め設定されている数を超えた場合には、前記画素グループを生成する処理を終了する画像読取装置。
The image reading apparatus according to claim 2,
The isolated point processing unit changes the single non-white pixel to a target pixel when a single non-white pixel is present in the peripheral pixels of the target pixel after the change, and the target after the change When the lightness of the pixel is higher than the first threshold value, the changed target pixel is added to the pixel group, and the number of pixels included in the pixel group exceeds a preset number. An image reading apparatus that ends the process of generating the pixel group.
請求項2又は3に記載の画像読取装置であって、
前記孤立点処理部は、前記周辺画素に複数の前記非白色画素が存在する場合において、前記複数の非白色画素が予め設定されている第2の閾値よりも低い明度を有し、前記周辺画素のうち前記複数の非白色画素を除く全ての画素が前記白画素であるときには、前記複数の非白色画素の色を維持しつつ前記着目画素を白画素に変換する画像読取装置。
The image reading apparatus according to claim 2 or 3, wherein
When the plurality of non-white pixels exist in the peripheral pixel, the isolated point processing unit has a lightness lower than a second threshold set in advance in the plurality of non-white pixels, and the peripheral pixel An image reading device for converting the focused pixel into a white pixel while maintaining the color of the plurality of non-white pixels when all the pixels except the plurality of non-white pixels are the white pixels;
請求項1乃至4のいずれか1項に記載の画像読取装置であって、
前記マスク処理部は、前記除去色を有する画素として、前記除去色に対して予め設定された第1の色相範囲内の色を有する画素を選択する画像読取装置。
The image reading apparatus according to any one of claims 1 to 4, wherein
The image processing apparatus according to claim 1, wherein the mask processing unit selects a pixel having a color within a first hue range preset for the removed color as the pixel having the removed color.
請求項1乃至4のいずれか1項に記載の画像読取装置であって、
前記マスク処理部は、前記除去色に対して予め設定された第1の色相範囲内の色を有する画素を前記除去色を有する画素として選択し、前記第1の色相範囲内の色を有する画素として選択された画素に隣接する画素であって、前記第1の色相範囲を含み前記第1の色相範囲よりも広い第2の色相範囲内の画素を、さらに前記除去色を有する画素として選択する画像読取装置。
The image reading apparatus according to any one of claims 1 to 4, wherein
The mask processing unit selects a pixel having a color within a first hue range preset for the removal color as a pixel having the removal color, and a pixel having a color within the first hue range A pixel adjacent to the selected pixel as a pixel within the second hue range including the first hue range and wider than the first hue range is further selected as a pixel having the removal color Image reader.
請求項6に記載の画像読取装置であって、
前記孤立点処理部は、前記周辺画素に複数の前記非白色画素が存在する場合において、前記複数の非白色画素が予め設定されている第2の閾値よりも低い明度を有し、前記周辺画素のうち前記複数の非白色画素を除く全ての画素が前記白画素であるときには、さらに前記非白色隣接画素を白画素に変換する画像読取装置。
The image reading apparatus according to claim 6, wherein
When the plurality of non-white pixels exist in the peripheral pixel, the isolated point processing unit has a lightness lower than a second threshold set in advance in the plurality of non-white pixels, and the peripheral pixel The image reading apparatus further converts the non-white adjacent pixel into a white pixel when all the pixels except the plurality of non-white pixels are the white pixels.
予め指定された色である除去色を除去する画像読取方法であって、
画像を読み取ってRの階調値と、Gの階調値と、Bの階調値とを含むRGB画像データを生成する画像読取工程と、
前記除去色を有する画素を明度が最も高い白色の画素である白画素に変換するマスク処理工程と、
前記白画素に未変換の画素である非白色画素であって予め設定されている第1の閾値よりも高い明度を有し、前記白画素に隣接する非白色隣接画素を着目画素とし、前記着目画素の周辺の画素である周辺画素が全て前記白画素である場合には、前記着目画素を白画素に変換する孤立点処理工程と、
を備える画像読取方法。
An image reading method for removing a removal color which is a color designated in advance, which is
An image reading step of reading an image and generating RGB image data including a tone value of R, a tone value of G, and a tone value of B;
A mask processing step of converting the pixel having the removed color into a white pixel which is a white pixel having the highest lightness;
A non-white pixel which is a non-white pixel which has not been converted to the white pixel and which has a lightness higher than a preset first threshold value and which is adjacent to the white pixel is a target pixel An isolated point processing step of converting the focused pixel into a white pixel when all the peripheral pixels that are peripheral pixels of the pixel are the white pixel;
An image reading method comprising:
予め指定された色である除去色を除去する画像読取装置を制御するための画像読取プログラムであって、
画像を読み取ってRの階調値と、Gの階調値と、Bの階調値とを含むRGB画像データを生成する画像読取部、
前記除去色を有する画素を明度が最も高い白色の画素である白画素に変換するマスク処理部、及び
前記白画素に未変換の画素である非白色画素であって予め設定されている第1の閾値よりも高い明度を有し、前記白画素に隣接する非白色隣接画素を着目画素とし、前記着目画素の周辺の画素である周辺画素が全て前記白画素である場合には、前記着目画素を白画素に変換する孤立点処理部として前記画像読取装置を機能させる画像読取プログラム。
An image reading program for controlling an image reading apparatus for removing a removal color which is a color designated in advance,
An image reading unit which reads an image and generates RGB image data including a gradation value of R, a gradation value of G, and a gradation value of B;
A mask processing unit that converts a pixel having the removed color into a white pixel that is a white pixel having the highest lightness, and a first non-white pixel that is a pixel that is not converted to the white pixel. When the non-white adjacent pixel adjacent to the white pixel has a lightness higher than the threshold value as the pixel of interest, and all peripheral pixels around the pixel of interest are the white pixels, the pixel of interest is selected. An image reading program that causes the image reading apparatus to function as an isolated point processing unit that converts white pixels.
JP2017200684A 2017-10-16 2017-10-16 Image reading device, image reading method, and image reading program Pending JP2019075702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017200684A JP2019075702A (en) 2017-10-16 2017-10-16 Image reading device, image reading method, and image reading program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017200684A JP2019075702A (en) 2017-10-16 2017-10-16 Image reading device, image reading method, and image reading program

Publications (1)

Publication Number Publication Date
JP2019075702A true JP2019075702A (en) 2019-05-16

Family

ID=66544731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017200684A Pending JP2019075702A (en) 2017-10-16 2017-10-16 Image reading device, image reading method, and image reading program

Country Status (1)

Country Link
JP (1) JP2019075702A (en)

Similar Documents

Publication Publication Date Title
US6393148B1 (en) Contrast enhancement of an image using luminance and RGB statistical metrics
JP2008103987A (en) Image processor
JP4280404B2 (en) Image processing apparatus and method
EP2919452B1 (en) Apparatus, image processing apparatus, and method
US20100277777A1 (en) Image processing apparatus and image processing method
US7616357B2 (en) Image processing apparatus, method for controlling image processing apparatus
JPH08172532A (en) Image reader and read method
JP4238881B2 (en) Image correction apparatus, image correction method, image correction program, image reading apparatus, image reading method, and printing apparatus
JP2007336555A (en) Image processing device, image forming device, and image processing method
US10652431B2 (en) Image forming apparatus performing specified-color removal process, control method therefor, and storage medium storing control program therefor
JP2019075702A (en) Image reading device, image reading method, and image reading program
JP4222385B2 (en) Backlight image determination apparatus, backlight image determination method, backlight image determination program, image reading apparatus, image reading method, and printing apparatus
EP2979439A1 (en) Scanner
JP2006303710A (en) Reading apparatus and control method of reading apparatus
JP2018125604A (en) Image forming apparatus, image forming method and image forming program
JP4179342B2 (en) Image determination apparatus, image determination method, image determination program, image correction apparatus, image correction method, image reading apparatus, image reading method, and printing apparatus
JP4254813B2 (en) Image correction apparatus, image correction method, image correction program, image reading apparatus, image reading method, and printing apparatus
JPH0630272A (en) Device and method for processing image
JP4176656B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium recording the program
JP6561928B2 (en) Image processing apparatus, image reading apparatus, image processing method, and image processing program
JP2017123544A (en) Image reading apparatus and control method
JP2009065559A (en) Image processing apparatus, image processing method, and storage medium with image processing program stored thereon
US9986130B2 (en) Image reading apparatus that ensures high SN ratio by sufficient use of performance of image sensor, image reading method, and recording medium therefor
JP2022077274A (en) Scanner, production method image data and control program
JP2019176336A (en) Image processing device, image transmission device, image processing method, and image processing program