JP6746740B2 - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP6746740B2
JP6746740B2 JP2019038533A JP2019038533A JP6746740B2 JP 6746740 B2 JP6746740 B2 JP 6746740B2 JP 2019038533 A JP2019038533 A JP 2019038533A JP 2019038533 A JP2019038533 A JP 2019038533A JP 6746740 B2 JP6746740 B2 JP 6746740B2
Authority
JP
Japan
Prior art keywords
edge
image processing
thickening
pixel
data
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
JP2019038533A
Other languages
Japanese (ja)
Other versions
JP2019145116A (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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2019038533A priority Critical patent/JP6746740B2/en
Publication of JP2019145116A publication Critical patent/JP2019145116A/en
Application granted granted Critical
Publication of JP6746740B2 publication Critical patent/JP6746740B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color, Gradation (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)

Description

本発明は、エッジ部を変形させる画像処理装置、画像処理方法及びプログラムに関する。 The present invention relates to an image processing device, an image processing method, and a program that deform an edge portion.

画像データに含まれるオブジェクトのエッジ部に対してエッジ部用の画像処理を行うことで、印刷されるオブジェクトの画質を向上させる技術がある。特許文献1は、画像データに含まれるオブジェクトのエッジ部を、画像データを解析することで特定し、その特定されたエッジ部に対して、オブジェクトのエッジ部を拡張(変形)する処理を行う技術を開示する。その特許文献1は、さらに、その拡張されたオブジェクトを含む画像データを再度解析することで、その拡張されたオブジェクトのエッジ部を再特定し、その再特定されたエッジ部に対して、エッジ部用のスクリーン処理を行う技術を開示する。 There is a technique for improving the image quality of a printed object by performing image processing for the edge part of the object included in the image data. Japanese Patent Application Laid-Open No. 2004-163242 discloses a technique of identifying an edge portion of an object included in image data by analyzing the image data, and performing a process of expanding (deforming) the edge portion of the object with respect to the identified edge portion. Is disclosed. The patent document 1 further re-analyzes image data including the expanded object to re-specify the edge part of the expanded object, and to re-specify the edge part with respect to the re-specified edge part. Disclosed is a technique for performing a screen process for a computer.

米国特許出願公開第2010/0128314号明細書U.S. Patent Application Publication No. 2010/0128314

しかしながら、特許文献1に開示される技術では、変形されるべきオブジェクトのエッジ部を特定するために画像データが解析され、そして変形された後のオブジェクトのエッジ部を特定するために画像データが再度解析される。このように、画像データを再解析することは計算コストの増大を招く。 However, in the technique disclosed in Patent Document 1, the image data is analyzed in order to specify the edge part of the object to be deformed, and the image data is re-defined in order to specify the edge part of the object after the deformation. Parsed. Thus, re-analyzing the image data causes an increase in calculation cost.

本発明にかかる画像処理装置は、画像データに含まれるオブジェクトの幅を太くする画像処理装置であって、画像データからオブジェクトの内側にある内エッジの画素と、前記オブジェクトの外側にある外エッジの画素とを特定する特定手段と、前記特定手段によって特定された前記オブジェクトの前記外エッジの画素に対して前記オブジェクトの前記内エッジの画素の値を上書きすることで、前記オブジェクトの幅を太くする太らせ処理手段と、前記太らせ処理手段により変更された後のオブジェクトについて、前記特定手段によって特定された外エッジの画素に対して、エッジ用の所定の画像処理を行う画像処理手段とを有することを特徴とする。
The image processing apparatus according to the present invention is an image processing apparatus for thickening the width of the object included in the image data from the image data and the pixel in the edge on the inside of the object, the outer edge on the outside of the object specifying means for specifying a pixel, by overwriting the value of the pixels in said edge of said object with respect to a pixel of said outer edge of said object specified by said specifying means, thickening the width of the object a thickening processing means, for the object after the width is changed by the thickening processing unit, for pixels outside the edge specified by said specifying means, image processing means for performing predetermined image processing for edge It is characterized by having.

本発明によれば、画像データを再解析せずに、変形されたオブジェクトのエッジ部に所定の画像処理を行うことができる。 According to the present invention, it is possible to perform predetermined image processing on the edge portion of a deformed object without reanalyzing the image data.

第1実施形態の説明で用いる画像処理装置の構成を示す図である。It is a figure which shows the structure of the image processing apparatus used in description of 1st Embodiment. 第1の実施形態の説明で用いる画像処理部の構成を示す図である。It is a figure which shows the structure of the image processing part used by description of 1st Embodiment. 第1の実施形態の説明で用いる太らせ処理前と後の画像データの一例を示す図である。FIG. 6 is a diagram showing an example of image data before and after thickening processing used in the description of the first embodiment. 第1、3、4の実施形態の説明で用いるフィルタ処理後のデータ、およびエッジデータの一例を示す図である。It is a figure which shows an example of the data after a filter process used in description of 1st, 3rd, 4th embodiment, and edge data. 第1の実施形態の説明で用いるエッジデータ生成部の処理を示すフローチャートである。6 is a flowchart showing a process of an edge data generation unit used in the description of the first embodiment. 第1の実施形態の説明で用いるフィルタ処理を説明する図である。It is a figure explaining the filter process used in description of 1st Embodiment. 第1の実施形態の説明で用いる閾値判定の処理を示すフローチャートである。6 is a flowchart showing a threshold determination process used in the description of the first embodiment. 第1の実施形態の説明で用いる太らせ処理後のエッジを判定するパターンを示す図である。FIG. 9 is a diagram showing a pattern for determining an edge after a thickening process used in the description of the first embodiment. 第1の実施形態の説明で用いる太らせ処理をキャンセルすべきケースを示す図である。It is a figure which shows the case which should cancel the thickening process used in description of 1st Embodiment. 第1の実施形態の説明で用いるパターンマッチングを説明するための図である。It is a figure for demonstrating the pattern matching used in description of 1st Embodiment. 第1の実施形態の説明で用いる太らせ処理のフローチャートを示す図である。It is a figure which shows the flowchart of the thickening process used in description of 1st Embodiment. 第2の実施形態の説明で用いる画像処理部の構成を示す図である。It is a figure which shows the structure of the image processing part used by description of 2nd Embodiment. 第3の実施形態の説明で用いる太らせ処理後のエッジ位置を参照する方法を示す図である。It is a figure which shows the method of referring to the edge position after the thickening process used in description of 3rd Embodiment. 第3の実施形態の説明で用いるエッジデータ生成部の処理を示すフローチャートである。9 is a flowchart showing processing of an edge data generation unit used in the description of the third embodiment. 第3の実施形態の説明で用いる太らせ処理後のエッジを判定するパターンを示す図である。It is a figure which shows the pattern which determines the edge after the thickening process used by description of 3rd Embodiment. 第4の実施形態の説明で用いる太らせ処理後のエッジ位置を参照する方法を示す図である。It is a figure which shows the method of referring to the edge position after the thickening process used in description of 4th Embodiment. 第4の実施形態の説明で用いるエッジデータ生成部の処理を示すフローチャートである。It is a flowchart which shows the process of the edge data generation part used by description of 4th Embodiment.

以下、本発明を実施するための形態について図面を用いて説明する。以下の実施形態において示す構成は一例にすぎず、本発明は図示された構成に限定されるものではない。 Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings. The configurations shown in the following embodiments are merely examples, and the present invention is not limited to the illustrated configurations.

<第1の実施形態>
第1の実施形態では、画像データにおけるオブジェクトを変形させる一例として、上・下・左・右の4方向にエッジ部を1画素だけ拡張させることで太らせる処理を説明する。そして、太らせた後に、太らせた後のオブジェクトのエッジ部と太らせた後のオブジェクト内部とで画像処理の手法を切り替える画像処理装置について説明する。
<First Embodiment>
In the first embodiment, as an example of deforming an object in image data, a process of expanding an edge portion by one pixel in four directions of up/down/left/right will be described. Then, an image processing apparatus that switches the image processing method between the edge portion of the thickened object and the inside of the thickened object will be described.

図1に本実施形態における画像処理装置を含む印刷装置の構成を示す。本実施形態における印刷装置は、コントローラ100と操作部106とプリント部107とを有する。印刷装置はネットワーク108と接続される。 FIG. 1 shows the configuration of a printing apparatus including the image processing apparatus according to this embodiment. The printing apparatus according to this embodiment includes a controller 100, an operation unit 106, and a printing unit 107. The printing device is connected to the network 108.

コントローラ100は、ネットワーク108からPDLデータを受信する。PDLとはページ記述言語(Page Description Language)の略であり、ページにおける描画を表現するために一般的に用いられているコマンド体系のことである。またコントローラ100は、操作部106を介してユーザが設定した「オブジェクトを太らせる幅」の設定情報を取得する。そして、コントローラ100は、PDLデータをビットマップ形式の画像データに変換した後に「オブジェクトを太らせる幅」の設定情報に基づいた画像処理を行う。詳細については後述する。そしてコントローラ100は、その画像処理が行われたビットマップ形式の画像データをプリント部107に出力する。 The controller 100 receives PDL data from the network 108. PDL is an abbreviation for Page Description Language, which is a command system generally used for expressing drawing on a page. Further, the controller 100 acquires the setting information of the “width for thickening the object” set by the user via the operation unit 106. Then, the controller 100 performs the image processing based on the setting information of the “width of thickening the object” after converting the PDL data into the image data in the bitmap format. Details will be described later. Then, the controller 100 outputs the image data in the bitmap format subjected to the image processing to the print unit 107.

操作部106は、本実施形態においては例えば液晶タッチパネルとすることができる。操作部106は、ユーザからの各操作を受け付ける。例えば操作部106は、ユーザからの各操作に従って「オブジェクトを太らせる幅」の設定情報をコントローラ100に送信する。 The operation unit 106 may be, for example, a liquid crystal touch panel in this embodiment. The operation unit 106 receives each operation from the user. For example, the operation unit 106 transmits to the controller 100 the setting information of “width to thicken object” according to each operation from the user.

プリント部107は、コントローラ100から取得したビットマップ形式の画像データに基づき、インクやトナーなどの色材を用いて画像を紙媒体上に印刷する。 The printing unit 107 prints an image on a paper medium using a color material such as ink or toner based on the image data in the bitmap format acquired from the controller 100.

[コントローラ100の説明]
コントローラ100の構成について説明する。コントローラ100は不図示のCPU、ROM、RAMを有している。このCPUがROMに記録されているプログラムをRAMに展開し、実行することで、PDLデータ受信部101、PDL処理部102、及び画像処理制御部105が実現される。また、本実施形態ではレンダリング処理部103と画像処理部104とは半導体集積回路として実装されているものとする。もちろん、レンダリング処理部103と画像処理部104とはCPUが実行するプログラムとして実装されても構わない。
[Description of Controller 100]
The configuration of the controller 100 will be described. The controller 100 has a CPU, ROM, and RAM (not shown). The CPU expands the program recorded in the ROM into the RAM and executes the program to implement the PDL data receiving unit 101, the PDL processing unit 102, and the image processing control unit 105. Further, in the present embodiment, the rendering processing unit 103 and the image processing unit 104 are assumed to be mounted as a semiconductor integrated circuit. Of course, the rendering processing unit 103 and the image processing unit 104 may be implemented as programs executed by the CPU.

PDLデータ受信部101は、ネットワーク108からPDLのデータを受信し、PDL処理部102に出力する。 The PDL data receiving unit 101 receives PDL data from the network 108 and outputs it to the PDL processing unit 102.

PDL処理部102は、PDLデータ受信部101で受信したPDLのデータで表現された描画命令を解釈して、レンダリング処理部103に描画指示を出力する。 The PDL processing unit 102 interprets the drawing command expressed by the PDL data received by the PDL data receiving unit 101 and outputs the drawing instruction to the rendering processing unit 103.

レンダリング処理部103は、PDL処理部102から出力された描画指示に基づいてビットマップ形式の画像データを生成し、その生成された画像データを画像処理部104に出力する。この画像データは、プリント部107が扱う色材(即ちプロセスカラー)である例えばシアン、マゼンタ、イエロー、ブラックについての4色分の濃度情報を持っている。そして、画像データの各画素について0〜255の8ビット階調の濃度情報をそれぞれ有するものとする。 The rendering processing unit 103 generates image data in bitmap format based on the drawing instruction output from the PDL processing unit 102, and outputs the generated image data to the image processing unit 104. The image data has density information for four colors of color materials (that is, process colors) handled by the print unit 107, for example, cyan, magenta, yellow, and black. Then, each pixel of the image data has density information of 8-bit gradation of 0 to 255, respectively.

画像処理制御部105は、操作部106から「オブジェクトを太らせる幅」の設定情報を取得する。画像処理制御部105は、この設定情報に基づいて、後述する画像処理部104の有する各部が「オブジェクトを太らせる前のエッジ部の位置」と「オブジェクトを太らせた後のエッジ部の位置」を判定する方法を画像処理部104に指示する。具体的には、後述するエッジデータのうち、どの値が「オブジェクトを太らせる前のエッジ部の位置」と「オブジェクトを太らせた後のエッジ部の位置」とそれぞれを示しているかを、画像処理部104に指示する。詳細は後述する。 The image processing control unit 105 acquires the setting information of “width of thickening object” from the operation unit 106. Based on this setting information, the image processing control unit 105 causes each unit of the image processing unit 104, which will be described later, to have a “position of the edge portion before thickening the object” and a “position of the edge portion after thickening the object”. The image processing unit 104 is instructed how to determine. Specifically, in the edge data described later, which value indicates the “position of the edge portion before thickening the object” and “the position of the edge portion after thickening the object” Instruct the processing unit 104. Details will be described later.

画像処理部104は、レンダリング処理部103から取得した画像データ、および、画像処理制御部105によって設定された指示に基づいて、各処理を実行する。この処理の詳細については、[画像処理部104の説明]において後述する。そして、画像処理部104は、各処理が実行されたビットマップ形式の画像データをプリント部107に出力する。 The image processing unit 104 executes each process based on the image data acquired from the rendering processing unit 103 and the instruction set by the image processing control unit 105. Details of this processing will be described later in [Description of Image Processing Unit 104]. Then, the image processing unit 104 outputs the bitmap-format image data on which the respective processes have been executed to the printing unit 107.

[画像処理部104の説明]
次に、画像処理部104の各処理の詳細について説明する。図2は、画像処理部104の構成を示す図である。画像処理部104は、メモリバッファ201、エッジデータ生成部202、太らせ処理部203、下色除去処理部204、色材載量制限処理部205、及びスクリーン処理部206を有する。メモリバッファ201はレンダリング処理部103から取得したビットマップ形式の画像データを順次蓄積する。そして、所定のバンド幅の画像データが貯まるとそのバンド幅の画像データをエッジデータ生成部202および太らせ処理部203に出力していく。
[Description of Image Processing Unit 104]
Next, details of each processing of the image processing unit 104 will be described. FIG. 2 is a diagram showing the configuration of the image processing unit 104. The image processing unit 104 includes a memory buffer 201, an edge data generation unit 202, a thickening processing unit 203, an undercolor removal processing unit 204, a color material application amount restriction processing unit 205, and a screen processing unit 206. The memory buffer 201 sequentially stores the image data in the bitmap format acquired from the rendering processing unit 103. Then, when the image data having a predetermined bandwidth is accumulated, the image data having the bandwidth is output to the edge data generation unit 202 and the thickening processing unit 203.

エッジデータ生成部202はメモリバッファ201から取得した画像データの「オブジェクトを太らせる前のエッジ部の位置」と「オブジェクトを太らせた後のエッジ部の位置」とを決定し、その情報を含むエッジデータを生成する。このエッジデータを生成するためのエッジデータ生成部202の処理の詳細については[エッジデータ生成部202の説明]で後述する。エッジデータ生成部202は生成したエッジデータを太らせ処理部203、下色除去処理部204、色材載量制限処理部205、及びスクリーン処理部206に出力する。 The edge data generation unit 202 determines “the position of the edge portion before thickening the object” and “the position of the edge portion after thickening the object” of the image data acquired from the memory buffer 201, and includes the information. Generate edge data. Details of the processing of the edge data generation unit 202 for generating this edge data will be described later in [Description of Edge Data Generation Unit 202]. The edge data generation unit 202 outputs the generated edge data to the thickening processing unit 203, the undercolor removal processing unit 204, the color material mounting amount restriction processing unit 205, and the screen processing unit 206.

このエッジデータは画像データと同じサイズのビットマップ形式をしており、画素ごとに2ビットの情報を持つ。下位から1ビット目は「オブジェクトを太らせる前のエッジ部の位置」についての情報である。下位から1ビット目の値が0ならばその画素は太らせる前のエッジ部ではなく、値が1ならばその画素は太らせる前のエッジ部であることを示す。また、下位から2ビット目は「オブジェクトを太らせた後のエッジ部の位置」についての情報である。下位から2ビット目の値が0ならばその画素は太らせた後のエッジ部ではなく、値が1ならばその画素は太らせた後のエッジ部であることを示す。もちろん、これらのビットの割り当ては一例に過ぎず、「オブジェクトを太らせる前のエッジ部の位置」と「オブジェクトを太らせた後のエッジ部の位置」とを示す情報が含まれていればどのような形態であってもよい。 The edge data is in the same bitmap format as the image data, and has 2-bit information for each pixel. The first bit from the lower order is information about "the position of the edge portion before thickening the object". If the value of the first bit from the lower order is 0, the pixel is not the edge portion before thickening, and if the value is 1, it indicates that the pixel is the edge portion before thickening. Also, the second least significant bit is information about "the position of the edge portion after the object is thickened". If the value of the second least significant bit is 0, the pixel is not the edge portion after thickening, and if the value is 1, the pixel is the edge portion after thickening. Of course, the allocation of these bits is only an example, and if the information indicating "the position of the edge part before thickening the object" and "the position of the edge part after thickening the object" is included, It may be in such a form.

次にエッジデータについて図3と図4を用いて説明する。図3は画像データからオブジェクトの一部を抽出した図である。図3(a)は太らせ処理前の画像データであり、図3(b)は太らせ処理後の画像データである。図4はエッジデータとエッジデータを生成する元となるフィルタ処理後のデータとを示す図である。図3(b)の太らせ処理後の画像データや図4のフィルタデータの詳細について後述する。ここでは、エッジデータを説明する。 Next, the edge data will be described with reference to FIGS. 3 and 4. FIG. 3 is a diagram in which a part of the object is extracted from the image data. FIG. 3A shows the image data before the thickening process, and FIG. 3B shows the image data after the thickening process. FIG. 4 is a diagram showing the edge data and the data after the filter processing which is a source of generating the edge data. Details of the image data after the thickening process of FIG. 3B and the filter data of FIG. 4 will be described later. Here, the edge data will be described.

図3(a)に示す画像データから生成したエッジデータを図4(b)に示す。図3(a)において、ハッチングが施されている画素はオブジェクトが描画されている画素を示す。図4(b)のエッジデータは実際には画素ごとに2ビットの情報を持つが、説明のため便宜上図面では10進数の数値で表している。つまり、図4(b)のエッジデータのうち、「1」の数値が付されている画素は「オブジェクトを太らせる前のエッジ部の位置」の画素であり、「2」の数値が付されている画素は「オブジェクトを太らせた後のエッジ部の位置」の画素である。なお、図4(b)のようなエッジデータを生成する処理の詳細については後述する。 Edge data generated from the image data shown in FIG. 3A is shown in FIG. In FIG. 3A, hatched pixels are pixels on which the object is drawn. The edge data of FIG. 4B actually has 2-bit information for each pixel, but for the sake of convenience of description, it is represented by a decimal number in the drawing. That is, in the edge data of FIG. 4B, the pixel to which the numerical value of “1” is attached is the pixel of “the position of the edge portion before thickening the object” and the numerical value of “2” is attached. The pixels that are present are the pixels at the “position of the edge portion after the object is thickened”. Details of the processing for generating edge data as shown in FIG. 4B will be described later.

太らせ処理部203は、エッジデータ生成部202から取得したエッジデータと画像処理制御部105の指示とを基に、「オブジェクトを太らせる前のエッジ部の位置」と「オブジェクトを太らせた後のエッジ部の位置」とを判定する。第1の実施形態における画像処理制御部105の指示では、エッジデータに含まれる各画素の下位から1ビット目は「オブジェクトを太らせる前のエッジ部の位置」についての情報を表すことを指示する。また、下位から2ビット目は「オブジェクトを太らせた後のエッジ部の位置」についての情報を表すことを指示する。太らせ処理部203はメモリバッファ201から取得した画像データにおけるオブジェクトを太らせる処理を行い、下色除去処理部204に太らせた後のオブジェクトを含む画像データを出力する。太らせ処理部203の処理の詳細については[太らせ処理部203の説明]で後述する。 Based on the edge data acquired from the edge data generation unit 202 and the instruction from the image processing control unit 105, the thickening processing unit 203 determines “the position of the edge portion before thickening the object” and “after thickening the object. Position of the edge portion of “. In the instruction of the image processing control unit 105 according to the first embodiment, it is instructed that the first bit from the lower order of each pixel included in the edge data represents information about “the position of the edge portion before thickening the object”. .. Further, the second bit from the lower order indicates that the information about “the position of the edge portion after the object is thickened” is represented. The thickening processing unit 203 performs a process of thickening an object in the image data acquired from the memory buffer 201, and outputs image data including the thickened object to the undercolor removal processing unit 204. Details of the processing of the thickening processing unit 203 will be described later in [Description of the thickening processing unit 203].

下色除去処理部204は、エッジデータ生成部202から取得したエッジデータと画像処理制御部105の指示とを基に、「オブジェクトを太らせた後のエッジ部の位置」を判定する。そして、太らせ処理部203から取得した画像データのエッジ部に対して下色除去処理を行う。下色とは画像データにおける各画素のシアン・マゼンタ・イエローの濃度の最小値のことである。この下色は同じ濃度のブラックの色材に置き換えることができる。下色をブラックの色材に置き換えることによってエッジ部の色材量を減らし、滲み・飛び散り・色ズレなどの画像品位の劣化を抑制する。 The undercolor removal processing unit 204 determines “the position of the edge portion after thickening the object” based on the edge data acquired from the edge data generation unit 202 and the instruction of the image processing control unit 105. Then, the undercolor removal processing is performed on the edge portion of the image data acquired from the thickening processing unit 203. The undercolor is the minimum density of cyan, magenta, and yellow of each pixel in the image data. This undercolor can be replaced with a black colorant of the same density. By replacing the under color with a black color material, the amount of color material at the edges is reduced, and deterioration of image quality such as bleeding, splattering, and color misregistration is suppressed.

色材載量制限処理部205は、エッジデータ生成部202から取得したエッジデータと画像処理制御部105の指示とを基に、「オブジェクトを太らせた後のエッジ部の位置」を判定する。そして、下色除去処理部204から取得した画像データのエッジ部とそれ以外とで異なる色材載量制限処理を行う。色材載量制限とは、単位面積あたりの色材の濃度の合計(これを色材載量と呼ぶ)を制限することである。これは紙媒体上に単位面積あたり大量の色材を載せると転写・定着不良など画像品位の不良が発生するためである。この色材載量制限はオブジェクトのエッジ部に対してはより低い値で色材載量を制限することが好ましい。これは、エッジ部では転写・定着不良だけでなく滲みや飛び散りなどの画像不良が発生しやすいためである。よって、色材載量制限処理部205は、エッジ部とそれ以外とで色材載量の制限値を切り替える。色材載量の制限値を超える画素に対しては色材載量制限値になるまで各色材の濃度を一律の割合で落とす処理を行う。 The color material mounting amount restriction processing unit 205 determines “the position of the edge portion after thickening the object” based on the edge data acquired from the edge data generation unit 202 and the instruction of the image processing control unit 105. Then, different color material application amount limiting processing is performed for the edge portion of the image data acquired from the undercolor removal processing unit 204 and other portions. The color material application amount limitation is to limit the total density of the color material per unit area (this is called a color material application amount). This is because when a large amount of coloring material is placed on a paper medium per unit area, poor image quality such as poor transfer/fixing occurs. It is preferable that the color material application amount is limited to a lower value for the edge portion of the object. This is because not only transfer and fixing defects but also image defects such as bleeding and scattering are likely to occur at the edge portion. Therefore, the color material application amount limiting processing unit 205 switches the limit value of the color material application amount between the edge portion and the other portions. For pixels that exceed the color material application amount limit value, processing is performed to uniformly reduce the density of each color material until the color material application amount limit value is reached.

スクリーン処理部206は、エッジデータ生成部202から取得したエッジデータと画像処理制御部105の指示とを基に、「オブジェクトを太らせた後のエッジ部の位置」を判定する。そして、色材載量制限処理部205から取得した画像データに対して、スクリーンの処理を行う。このとき、エッジ部には高線数のスクリーンの処理を、それ以外には低線数のスクリーンの処理を行う。これは、低線数のスクリーンはエッジ部に対しては粒状感が出やすく不向きであるが、階調が滑らかでオブジェクトの内部には好ましく、一方、高線数のスクリーンは階調が滑らかではないが、粒状感が出にくくオブジェクトのエッジ部に好ましいためである。 The screen processing unit 206 determines the “position of the edge portion after thickening the object” based on the edge data acquired from the edge data generating unit 202 and the instruction of the image processing control unit 105. Then, a screen process is performed on the image data acquired from the color material amount limitation processing unit 205. At this time, the high-frequency screen is processed on the edge portion, and the low-frequency screen is processed otherwise. This is because a screen with a low screen frequency is not suitable for the edges because it tends to have graininess, but the gradation is smooth and is preferable inside the object.On the other hand, a screen with a high screen frequency has a smooth gradation. This is because there is no graininess and it is preferable for the edge portion of the object.

[エッジデータ生成部202の説明]
エッジデータ生成部202の処理を図5のフローチャートに示す。ステップS501においてエッジデータ生成部202は、画像データの色材の版ごとに、画像データ全体にラプラシアンフィルタをかける。このラプラシアンフィルタは図6(a)に示すような3×3のマトリックスのフィルタである。エッジデータ生成部202は注目画素とその隣接画素の値を参照して図6(a)のラプラシアンフィルタの畳み込み計算を行う。そして、エッジデータ生成部202は、畳み込み計算を行った計算結果をさらに16で割り128のオフセットを加算することで、最小値が0、中心値が128、最大値が255に正規化された値が算出される。ラプラシアンフィルタの効果を説明する。図3(a)の画像データに対して点線301のある色材の濃度分布の断面図を図6(b)に示す。そして、これに対してラプラシアンフィルタをかけて正規化を行うと、図6(c)のような分布となる。図6(c)では、オブジェクトのエッジの内側が中心値128より大きく、エッジの外側が中心値128より小さくなっている。この中心値128より大きいか小さいかで、オブジェクトのエッジ位置だけでなくオブジェクトの内側と外側に関する情報も判別することができる。これがラプラシアンフィルタの効果である。ここで、オブジェクトの内側にあるエッジ部のことを内エッジと称し、オブジェクトの外側にあるエッジ部のことを外エッジと称する。
[Description of Edge Data Generation Unit 202]
The processing of the edge data generation unit 202 is shown in the flowchart of FIG. In step S501, the edge data generation unit 202 applies a Laplacian filter to the entire image data for each color material plate of the image data. This Laplacian filter is a 3×3 matrix filter as shown in FIG. The edge data generation unit 202 performs the convolution calculation of the Laplacian filter of FIG. 6A by referring to the values of the pixel of interest and its adjacent pixels. Then, the edge data generation unit 202 further divides the calculation result of the convolution calculation by 16 and adds an offset of 128 to obtain a value in which the minimum value is 0, the center value is 128, and the maximum value is normalized to 255. Is calculated. The effect of the Laplacian filter will be described. FIG. 6B shows a cross-sectional view of the density distribution of the color material having the dotted line 301 with respect to the image data of FIG. When a Laplacian filter is applied to this and normalization is performed, a distribution as shown in FIG. 6C is obtained. In FIG. 6C, the inside of the edge of the object is larger than the central value 128 and the outside of the edge is smaller than the central value 128. Information about the inside and outside of the object as well as the edge position of the object can be determined based on whether the central value is larger or smaller than 128. This is the effect of the Laplacian filter. Here, the edge portion inside the object is called an inner edge, and the edge portion outside the object is called an outer edge.

ステップS502においてエッジデータ生成部202は、各画素に対して、ステップS501で得られたラプラシアンフィルタを適用して得られた値を基に、各画素が内エッジか、外エッジか、あるいは非エッジかを決定する。具体的には、エッジデータ生成部202は、各画素に対して、ステップS501で得られた値を基に閾値判定を行う。この処理の目的は、ある一定以上の強度のエッジのみ拾うこと、さらに2つのオブジェクトが互いに隣接するエッジは除外することである。2つのオブジェクトが互いに隣接する領域では、ラプラシアンフィルタの結果が正となる版と負となる版が混在することになる。そのような箇所で双方のオブジェクトを太らせると、版が重なりあって別の擬似的なオブジェクトが発生してしまう。このステップS502の処理によりそのような領域を除外できる。 In step S502, the edge data generation unit 202 determines whether each pixel is an inner edge, an outer edge, or a non-edge based on the value obtained by applying the Laplacian filter obtained in step S501 to each pixel. Decide Specifically, the edge data generation unit 202 makes a threshold determination for each pixel based on the value obtained in step S501. The purpose of this process is to pick up only edges with a certain strength or more, and to exclude edges where two objects are adjacent to each other. In a region in which two objects are adjacent to each other, a plate having a positive Laplacian filter result and a plate having a negative Laplacian filter result are mixed. If you thicken both objects in such a place, the plates will overlap and another pseudo object will occur. Such processing can be excluded by the processing in step S502.

図7は、ステップS502における閾値判定の処理のフローチャートを示す図である。ステップS701においてエッジデータ生成部202は、注目画素について閾値TH1を越える版が存在するかを判定する。閾値TH1を越える版が存在する場合は、ステップS702においてさらに閾値TH2を下回る版が存在するかを判定する。閾値TH2を下回る版が存在しない場合は、ステップS703においてエッジデータ生成部202は、注目画素はオブジェクトの内側のエッジである内エッジであると判定する。一方、ステップS702で閾値TH2を下回る版が存在する場合は、オブジェクトの内部である版とオブジェクトの外部である版が混在することを意味している。このような画素はエッジ用の画像処理は不要である。よって、ステップS704においてエッジデータ生成部202は、注目画素は非エッジであると判定する。また、ステップS701で閾値TH1を越える版が存在しない場合は、ステップS705において、さらに閾値TH2を下回る版が存在するかを判定する。閾値TH2を下回る版が存在する場合は、ステップS706においてエッジデータ生成部202は、注目画素はオブジェクトの外側のエッジである外エッジと判定する。一方、ステップS705で閾値TH2を下回る版が存在しない場合は、エッジデータ生成部202は、注目画素は非エッジと判定する。 FIG. 7 is a diagram showing a flowchart of the threshold value determination processing in step S502. In step S701, the edge data generation unit 202 determines whether there is a version of the pixel of interest that exceeds the threshold TH1. If there is a version that exceeds the threshold TH1, it is determined in step S702 whether there is a version that is below the threshold TH2. If there is no version below the threshold TH2, the edge data generation unit 202 determines in step S703 that the pixel of interest is the inner edge that is the inner edge of the object. On the other hand, if there is a version below the threshold TH2 in step S702, it means that the version inside the object and the version outside the object coexist. Such pixels do not require image processing for edges. Therefore, in step S704, the edge data generation unit 202 determines that the pixel of interest is a non-edge. If there is no version exceeding the threshold TH1 in step S701, it is determined in step S705 whether there is a version below the threshold TH2. If there is a version below the threshold TH2, the edge data generation unit 202 determines in step S706 that the pixel of interest is an outer edge that is an outer edge of the object. On the other hand, if there is no version below the threshold TH2 in step S705, the edge data generation unit 202 determines that the pixel of interest is a non-edge.

このようにして決定した「内エッジ」「外エッジ」「非エッジ」を、画像データと同じ画素数分のビットマップ形式に記録したデータを生成する。このデータを「フィルタデータ」と呼ぶことにする。実際の記録方法はフィルタデータの画素ごとに内エッジを1、外エッジを2、非エッジを0として記録すれば良い。図4(a)は、図3(a)の画像データから生成したフィルタデータを示す。ここでは説明をわかりやすくするため、塗り401で示すセルは内エッジの画素を示し、塗り402で示すセルは外エッジの画素を示す。 Data in which the "inner edge", "outer edge", and "non-edge" determined in this way are recorded in a bitmap format for the same number of pixels as the image data is generated. This data will be called "filter data". The actual recording method may be performed by setting the inner edge to 1, the outer edge to 2, and the non-edge to 0 for each pixel of the filter data. FIG. 4A shows filter data generated from the image data of FIG. Here, for the sake of easy understanding of the explanation, the cells indicated by the fill 401 indicate pixels at the inner edge, and the cells indicated by the fill 402 indicate pixels at the outer edge.

次に、図5のフローチャートに戻り説明を続ける。ステップS503においてエッジデータ生成部202はフィルタデータに「内エッジ」と記録された画素が「オブジェクトを太らせる前のエッジの位置」であると決定する。そして、エッジデータ生成部202はエッジデータのその画素の値の下位から1ビット目に1を立てることで「オブジェクトを太らせる前のエッジ部の位置」をエッジデータに記録する。 Next, returning to the flowchart of FIG. 5, the description will be continued. In step S503, the edge data generation unit 202 determines that the pixel for which “inner edge” is recorded in the filter data is “the position of the edge before thickening the object”. Then, the edge data generation unit 202 records "the position of the edge portion before thickening the object" in the edge data by setting 1 at the first bit from the lower value of the pixel of the edge data.

ステップS504においてエッジデータ生成部202は、フィルタデータに記録された「内エッジ」「外エッジ」「非エッジ」の配置パターンにより、「オブジェクトを太らせた後のエッジ部の位置」を判定する。判定方法としては、フィルタデータに対して図8に示す全てのパターンのパターンマッチングを行う。図8において太い枠で囲まれたセルは注目画素であり、また、「内」「外」「非」と記載しているセルはそれぞれ順番に内エッジ、外エッジ、非エッジとマッチする画素を示す。また、斜線で塗られたセルは、パターンがマッチした場合に「オブジェクトを太らせる後のエッジ部の位置」を示す画素を示す。また、それぞれのパターンについて、基本パターンを90度、180度、270度回転させたパターンもパターンとして使用する。これは、第1の実施形態において太らせる方向は上・下・右・左であり方向に依存性がないためである。このパターンマッチングを図4(a)のフィルタデータに適用して生成したエッジデータが、前述のように図4(b)で示すエッジデータとなる。前述のように、内エッジの画素に対して、「オブジェクトを太らす前のエッジ部の位置」を示す「1」の値が付されている。また、図8に示すパターンマッチングの結果、パターン3に一致する各画素(つまり外エッジの画素)に対して、「オブジェクトを太らせた後のエッジ部の位置」を示す「2」の値が付されている。また、その他の画素には非エッジを示す「0」の値が付されている。 In step S504, the edge data generation unit 202 determines the “position of the edge portion after thickening the object” based on the arrangement pattern of “inner edge”, “outer edge”, and “non-edge” recorded in the filter data. As a determination method, pattern matching of all patterns shown in FIG. 8 is performed on the filter data. In FIG. 8, the cell surrounded by a thick frame is the pixel of interest, and the cells described as “inside”, “outside”, and “non” are the pixels that match the inner edge, the outer edge, and the non-edge in order, respectively. Show. Also, the shaded cells indicate pixels that indicate "the position of the edge portion after thickening the object" when the patterns match. Further, for each pattern, a pattern obtained by rotating the basic pattern by 90 degrees, 180 degrees, or 270 degrees is also used as a pattern. This is because the thickening directions in the first embodiment are up, down, right, and left, and there is no direction dependency. The edge data generated by applying this pattern matching to the filter data of FIG. 4A becomes the edge data shown in FIG. 4B as described above. As described above, the value of “1” indicating “the position of the edge portion before the object is thickened” is attached to the pixel at the inner edge. Further, as a result of the pattern matching shown in FIG. 8, for each pixel (that is, the pixel at the outer edge) matching the pattern 3, the value of “2” indicating “the position of the edge portion after the object is thickened” is It is attached. A value of "0" indicating a non-edge is attached to the other pixels.

次に、図8のパターンを用いる理由について詳細に説明する。「オブジェクトを太らせた後のエッジ部の位置」は、基本的には、内エッジに上・下・左・右の方向に隣接する外エッジとなる。よって、パターン3がそのような配置を検出するパターンである。しかしながら、全ての外エッジが「オブジェクトを太らせた後のエッジ部の位置」になる訳ではない。それは、図9(a)や図9(d)に示すような、2つのオブジェクトが2画素以内の距離で描画されているようなオブジェクト同士が近接する場合のケースである。図9(a)や図9(d)は、画像データを示しており、ハッチングが施された画素がオブジェクトの画素を示している。図9(a)および図9(d)に対して生成したフィルタデータを、それぞれ図9(b)および図9(e)に示す。この外エッジを「オブジェクトを太らせた後のエッジ部の位置」とすると、オブジェクトを太らせた後に2つのオブジェクトが結合されてしまう。そのため、2つの内エッジが外エッジを挟んで3画素以内に存在するようなケースでは、オブジェクトが太らないように、外エッジではなく内エッジを「オブジェクトを太らせた後のエッジ部の位置」とする。図8のパターン4とパターン5がそのような配置を検出するパターンである。図9(a)および図9(d)から生成したエッジデータをそれぞれ図9(c)と図9(f)に示す。前述のように、内エッジの画素には、「オブジェクトを太らせる前のエッジ部の位置」を示す下位から1ビット目が「1」となっている。そしてさらに内エッジの画素には「オブジェクトを太らせた後のエッジ部の位置」を示す下位から2ビット目が「1」となっている。従って、図9(c)および図9(f)のエッジデータでは、内エッジの画素に10進表記で3の値が付されている。なお、隣接する方向以外の外エッジは、図8のパターン3と一致することにより、「オブジェクトを太らせた後のエッジ部の位置」を示す下位から2ビット目が「1」(すなわち、10進表記で2)が付されている。 Next, the reason for using the pattern of FIG. 8 will be described in detail. The "position of the edge portion after thickening the object" is basically the outer edge adjacent to the inner edge in the upper, lower, left, and right directions. Therefore, the pattern 3 is a pattern for detecting such an arrangement. However, not all outer edges are “positions of the edge portion after the object is thickened”. That is a case in which two objects are drawn close to each other, as shown in FIGS. 9A and 9D, in which two objects are drawn within a distance of 2 pixels. 9A and 9D show image data, and the hatched pixels indicate the pixels of the object. The filter data generated for FIGS. 9A and 9D are shown in FIGS. 9B and 9E, respectively. When this outer edge is defined as “the position of the edge portion after the object is thickened”, the two objects are combined after the object is thickened. Therefore, in the case where two inner edges exist within 3 pixels across the outer edge, the inner edge is “not the outer edge” and “the position of the edge portion after the object is thickened” so that the object is not thickened. And Patterns 4 and 5 in FIG. 8 are patterns for detecting such an arrangement. Edge data generated from FIGS. 9A and 9D are shown in FIGS. 9C and 9F, respectively. As described above, in the pixel at the inner edge, the first bit from the lower order indicating “the position of the edge portion before thickening the object” is “1”. Further, in the pixel at the inner edge, the second bit from the lower order indicating "the position of the edge portion after thickening the object" is "1". Therefore, in the edge data shown in FIGS. 9C and 9F, the pixel at the inner edge is given a value of 3 in decimal notation. It should be noted that the outer edges other than in the adjacent direction coincide with the pattern 3 in FIG. 8, so that the second least significant bit indicating “the position of the edge portion after thickening the object” is “1” (that is, 10). 2) is attached in the hexadecimal notation.

また、図8のパターン3では、内エッジに隣接する外エッジの隣は非エッジとなっているが、外エッジでも構わない。そのさらに隣が内エッジのケース(パターン4とパターン5)でなければ良い。例えば、図10(a)に斜めの線や曲線の図形を表す画像データを示す。図10(a)の画像データに対応するフィルタデータは図10(b)のようになる。前述のように、第1の実施形態において太らせる方向は上・下・右・左であり方向に依存性がないので、パターン3だけでもこのような斜めの線や曲線を太らすことが可能ではある。しかしながら、後述する第3の実施形態で説明するように、ある方向のみに太らす方向を限定する形態では、図10(b)のようなフィルタデータではパターン3だけだと右・左方向に太ることはできない。そこで図8のパターン1とパターン2を用意することで、図10(b)斜めの線を横方向に太らすことができる。パターン1とパターン2がそのような配置を検出するパターンである。 Further, in pattern 3 of FIG. 8, the outer edge adjacent to the inner edge is a non-edge, but it may be the outer edge. It is only necessary that the case next to that is an inner edge case (pattern 4 and pattern 5). For example, FIG. 10A shows image data representing an oblique line or curved figure. The filter data corresponding to the image data of FIG. 10A is as shown in FIG. As described above, in the first embodiment, the thickening directions are up, down, right, and left, and there is no dependence on the direction. Therefore, only the pattern 3 can thicken such diagonal lines and curves. Is. However, as will be described in the third embodiment described later, in a mode in which the direction of thickening is limited to a certain direction, the filter data as shown in FIG. It is not possible. Therefore, by preparing the pattern 1 and the pattern 2 of FIG. 8, the diagonal line in FIG. 10B can be thickened in the horizontal direction. Pattern 1 and pattern 2 are patterns for detecting such an arrangement.

上記のような理由のもと、図8のパターン1〜3は外エッジが「オブジェクトを太らせた後のエッジ部の位置」となるパターンを検出するものである。また、パターン4〜5は内エッジが「オブジェクトを太らせた後のエッジ部の位置」となるパターンを検出するものである。 Based on the above reason, the patterns 1 to 3 in FIG. 8 detect a pattern in which the outer edge is “the position of the edge portion after the object is thickened”. Further, patterns 4 to 5 are patterns in which the inner edge is “the position of the edge portion after the object is thickened”.

このように、エッジデータ生成部202の処理により、太らせ処理の前に、太らせた後のエッジ位置を特定することが可能となる。 In this way, the processing of the edge data generation unit 202 makes it possible to specify the edge position after the thickening before the thickening processing.

[太らせ処理部203の説明]
太らせ処理部203の処理について説明する。太らせ処理部203は、「オブジェクトを太らせた後のエッジ部の位置」の画素に「太らせる前のエッジ部の位置」の画素値を上書きすることでオブジェクトを太らせる処理を実現する。
[Explanation of fattening processing unit 203]
The processing of the thickening processing unit 203 will be described. The thickening processing unit 203 realizes a process of thickening the object by overwriting the pixel value of “the position of the edge portion before thickening” on the pixel of “the position of the edge portion after thickening the object”.

図11は太らせ処理部203の処理のフローチャートを示す図である。ステップS1101において太らせ処理部203は画像データの注目画素について、対応するエッジデータの画素の2ビット目に1が立っているかどうかを判定する。2ビット目に1が立っていない場合は「オブジェクトを太らせた後のエッジ部の位置」ではないため、処理を終えて次の画素の処理へと進む。2ビット目に1が立っている場合は、ステップS1102において、さらに1ビット目に1が立っているかどうかを判定する。1ビット目に1が立っている場合、太らせ処理前後でエッジの位置が変わらないことを示すため、処理を終えて次の画素の処理へと進む。1ビット目に1が立っていない場合、ステップS1103において、上・下・左・右の方向に隣接する画素のうち、1ビット目に1が立っている画素を検出する。1ビット目に1が立っている隣接画素が見つかった場合は、ステップS1104において画像データにおけるその画素の値を注目画素の値に上書きする。 FIG. 11 is a diagram showing a flowchart of processing of the thickening processing unit 203. In step S1101, for the target pixel of the image data, the thickening processing unit 203 determines whether 1 is set at the second bit of the pixel of the corresponding edge data. If 1 is not set at the second bit, it is not "the position of the edge portion after the object is thickened", and the process is terminated and the process proceeds to the next pixel. If 1 is set in the second bit, it is further determined in step S1102 whether 1 is set in the first bit. When 1 is set at the 1st bit, it indicates that the edge position does not change before and after the thickening process, and thus the process is terminated and the process proceeds to the next pixel. If 1 is not set in the 1st bit, in step S1103, among the pixels adjacent in the up/down/left/right direction, the pixel in which 1 is set in the 1st bit is detected. If an adjacent pixel in which 1 is set at the 1st bit is found, the value of that pixel in the image data is overwritten on the value of the pixel of interest in step S1104.

以上の処理を画像データとエッジデータの全体に行うことで、画像データのオブジェクトを上・下・左・右方向に1画素だけ太らせることができる。一例として、図3(a)の画像データと図4(b)のエッジデータを基に、オブジェクトを太らせた後の画像データを図3(b)に示す。 By performing the above processing on the entire image data and edge data, the object of the image data can be thickened by one pixel in the upward, downward, left, and right directions. As an example, FIG. 3B shows image data after thickening an object based on the image data of FIG. 3A and the edge data of FIG. 4B.

以上により、第1の実施形態によれば、画像データのオブジェクトを太らせる前に、「オブジェクトを太らせた後のエッジ部の位置」を決定している。これにより、オブジェクトを太らせた後に、もう一度エッジ部の位置を判定することなくオブジェクトのエッジ部とオブジェクトの内部とで画像処理の手法を切り替えることが可能となる。 As described above, according to the first embodiment, “the position of the edge portion after thickening the object” is determined before thickening the object of the image data. As a result, after thickening the object, it is possible to switch the image processing method between the edge portion of the object and the inside of the object without determining the position of the edge portion again.

なお、上記の第1の実施形態では、画像データにおけるオブジェクトの変形処理の一例として幅を太らせる例について記載したが、変形処理としてオブジェクトの幅を細らせる処理でも構わない。具体的には、図8のパターンマッチングに用いるパターンを、オブジェクトの幅を細らせる処理に対応するパターンを用いればよい。例えば、図8のパターン3の基本パターンのような場合には、内エッジのさらに左側に非エッジの画素を含むパターンを用意し、変形後のエッジの位置を、その内エッジの左側の非エッジの画素とすればよい。その場合、内エッジの画素の画素値をその右隣の非エッジの画素(オブジェクト外の画素)の画素値で上書きすることで細らせる処理が行なわれてもよい。オブジェクトの幅を細らせる処理の場合にも、画像処理制御部105は操作部106から取得する「オブジェクトの変形後のエッジ部の変形幅」の設定情報に基づいて上述したような処理を行なうことができる。 In the above-described first embodiment, an example in which the width of the object in the image data is widened is described as an example of the modification processing of the object, but the modification processing may be processing of narrowing the width of the object. Specifically, the pattern used for the pattern matching in FIG. 8 may be a pattern corresponding to the process of reducing the width of the object. For example, in the case of the basic pattern of pattern 3 in FIG. 8, a pattern including non-edge pixels on the left side of the inner edge is prepared, and the position of the deformed edge is set to the non-edge on the left side of the inner edge. Pixels. In this case, the pixel value of the pixel at the inner edge may be overwritten with the pixel value of the non-edge pixel (pixel outside the object) on the right side of the pixel value to perform the thinning process. Also in the case of the process of reducing the width of the object, the image processing control unit 105 performs the above-described process based on the setting information of the “deformed width of the edge portion after the deformation of the object” acquired from the operation unit 106. be able to.

<第2の実施形態>
第1の実施形態では、画像データのオブジェクトを太らせた後に、予め生成しておいた「太らせ後のエッジ部の位置」の情報に基づいて各種の画像処理を行う例を説明した。
<Second Embodiment>
In the first embodiment, an example has been described in which after the object of the image data is thickened, various kinds of image processing are performed based on the information of the “position of the edge portion after thickening” that is generated in advance.

第2の実施形態では、オブジェクトを太らせる前の各種の画像処理では「太らせる前のエッジ部の位置」の情報に基づいて各種の画像処理を行う。そして、太らせた後の各種の画像処理では「太らせた後のエッジ部の位置」の情報に基づいて各種の画像処理を行うような、画像処理装置について説明する。 In the second embodiment, in various image processes before thickening an object, various image processes are performed based on the information of “the position of the edge portion before thickening”. An image processing apparatus that performs various types of image processing based on the information of “position of edge portion after thickening” in various types of image processing after thickening will be described.

図12に第2の実施形態における画像処理部104の構成を示す。第1の実施形態と異なる点は3つある。1つ目は、下色除去処理部1203が太らせ処理部1204よりも前段にあること。2つ目は、エッジデータ生成部1202が生成する「オブジェクトを太らせる前のエッジ部の位置」の情報は、下色除去処理部1203と太らせ処理部1204に出力すること。3つ目は、エッジデータ生成部1202が生成する「オブジェクトを太らせた後のエッジ部の位置」の情報は、太らせ処理部1204、色材載量制限処理部1205とスクリーン処理部1206に出力することである。 FIG. 12 shows the configuration of the image processing unit 104 according to the second embodiment. There are three differences from the first embodiment. First, the undercolor removal processing unit 1203 is in a stage before the thickening processing unit 1204. Secondly, the information on the “position of the edge portion before thickening the object” generated by the edge data generating unit 1202 is output to the undercolor removal processing unit 1203 and the thickening processing unit 1204. Thirdly, the information on the “position of the edge portion after thickening the object” generated by the edge data generating unit 1202 is stored in the thickening processing unit 1204, the color material application amount limiting processing unit 1205, and the screen processing unit 1206. It is to output.

エッジデータ生成部1202はメモリバッファ1201から取得した画像データについて、「オブジェクトを太らせる前のエッジ部の位置」と「オブジェクトを太らせた後のエッジ部の位置」とを決定する。ただし、その情報を別々含むエッジデータを合計2つ生成する。すなわち、第2の実施形態においては、エッジデータ生成部1202は「オブジェクトを太らせる前のエッジ部の位置」の情報を1ビットのビットマップ形式で保持するエッジデータを生成する。また、エッジデータ生成部1202は「オブジェクトを太らせた後のエッジ部の位置」の情報を1ビットのビットマップ形式で保持するエッジデータを生成する。 The edge data generation unit 1202 determines “the position of the edge portion before thickening the object” and “the position of the edge portion after thickening the object” for the image data acquired from the memory buffer 1201. However, a total of two pieces of edge data including that information are generated. That is, in the second embodiment, the edge data generation unit 1202 generates edge data that holds information of “the position of the edge portion before thickening the object” in a 1-bit bitmap format. Further, the edge data generation unit 1202 generates edge data that holds the information of “the position of the edge portion after thickening the object” in a 1-bit bitmap format.

下色除去処理部1203は、エッジデータ生成部1202から「オブジェクトを太らせる前のエッジの位置」の情報を持つエッジデータを取得し、メモリバッファ1201から取得した画像データのエッジ部に対して下色除去処理を行う。なお、下地除去処理が行なわれたエッジ部の画素値は、その後の太らせ処理部1204において、太らせた後の画素の画素値として用いられる。従って、太らせた後のエッジ位置の下色除去を行なうことと同様の効果が得られる。 The undercolor removal processing unit 1203 acquires edge data having the information of “the position of the edge before thickening the object” from the edge data generation unit 1202, and outputs the edge data to the edge part of the image data acquired from the memory buffer 1201. Color removal processing is performed. The pixel value of the edge portion subjected to the background removal processing is used as the pixel value of the pixel after being thickened in the thickening processing unit 1204 thereafter. Therefore, the same effect as the removal of the undercolor of the edge position after thickening can be obtained.

太らせ処理部1204はエッジデータ生成部から「オブジェクトを太らせる前のエッジ部の位置」の情報を持つエッジデータと「オブジェクトを太らせた後のエッジ部の位置」の情報を持つエッジデータとを取得する。そして、これらのエッジデータに基づいて下色除去処理部1203から取得した画像データのオブジェクトを太らせる処理を行う。太らせ処理の方法は実施形態1と同じである。 The thickening processing unit 1204 outputs edge data having information of “the position of the edge portion before thickening the object” and edge data having information of “the position of the edge portion after thickening the object” from the edge data generating unit. To get. Then, a process of thickening the object of the image data acquired from the undercolor removal processing unit 1203 is performed based on these edge data. The thickening method is the same as in the first embodiment.

色材載量制限処理部1205とスクリーン処理部1206とは、エッジデータ生成部1202から「オブジェクトを太らせた後のエッジ部の位置」の情報を持つエッジデータを取得する。そして色材載量制限処理部1205は、太らせ処理部1204から取得した画像データに対して画像処理を行い、スクリーン処理部1206は色材載量制限処理部1205から取得した画像データに対して画像処理を行なう。 The color material amount limitation processing unit 1205 and the screen processing unit 1206 acquire edge data having information of “the position of the edge portion after thickening the object” from the edge data generation unit 1202. Then, the color material application amount restriction processing unit 1205 performs image processing on the image data acquired from the thickening processing unit 1204, and the screen processing unit 1206 processes the image data acquired from the color material application amount restriction processing unit 1205. Perform image processing.

以上により、第2の実施形態によれば、オブジェクトを太らせる前の画像処理では「オブジェクトを太らせる前のエッジ部の位置」の情報を基に処理を行い、太らせた後の画像処理では「オブジェクトを太らせた後のエッジ部の位置」の情報を基に処理を行う。これにより、画像データのオブジェクトを太らせる前と太らせた後のどちらにおいても、エッジと内部で画像処理の手法を切り替えることが可能となる。 As described above, according to the second embodiment, in the image processing before thickening the object, the processing is performed based on the information of “the position of the edge portion before thickening the object”, and in the image processing after thickening the image processing. The processing is performed based on the information of "the position of the edge portion after the object is thickened". As a result, it is possible to switch the image processing method between the edge and the inside both before and after thickening the object of the image data.

<第3の実施形態>
第1の実施形態では、画像データにおけるオブジェクトを上・下・左・右の4方向に1画素だけ太らせる例を説明した。これにより、オブジェクトの幅は合計で2画素だけ太ることになる。オブジェクトの幅を合計で1画素だけ太らせるには、オブジェクトをある方向、例えば右・下の2方向にだけ1画素太らせることで対応が可能である。第3の実施形態では、「オブジェクトを太らせる幅」の設定として「0画素」「1画素」「2画素」の3種類の設定を操作部がユーザから取得し、その指示通りにオブジェクトの幅を太らせる。そしてその後に適切な画像処理をかけることを可能とする画像処理装置の実施形態について説明する。なお、太らせる幅が「0画素」の場合、太らせる処理を行なわないことを示す。「1画素」の場合には、例えば右・下の2方向にだけ1画素太らせることを示す。「2画素」の場合には、第1の実施形態で説明したように上・下・左・右の4方向に1画素だけ太らせることを示す。
<Third Embodiment>
In the first embodiment, the example in which the object in the image data is thickened by one pixel in the four directions of up/down/left/right has been described. As a result, the width of the object is increased by 2 pixels in total. To increase the width of the object by one pixel in total, it is possible to increase the width of the object by one pixel only in a certain direction, for example, two directions of right and bottom. In the third embodiment, the operation unit acquires from the user three types of settings of “0 pixel”, “1 pixel”, and “2 pixel” as the setting of “width of thickening object”, and the width of the object is instructed according to the instruction. To get fat. Then, an embodiment of an image processing apparatus capable of performing appropriate image processing after that will be described. If the width to be thickened is “0 pixel”, it means that the thickening process is not performed. In the case of "1 pixel", for example, it means that the pixel is thickened only in the two directions of right and bottom. In the case of "two pixels", it means that the pixel is thickened by one pixel in the four directions of up/down/left/right as described in the first embodiment.

第3の実施形態における画像処理装置100および画像処理部104の構成は第1の実施形態と同じである。第1の実施形態と処理内容が異なる箇所について説明する。 The configurations of the image processing apparatus 100 and the image processing unit 104 in the third embodiment are the same as those in the first embodiment. Portions having different processing contents from those of the first embodiment will be described.

操作部106は「オブジェクトを太らせる幅」の設定として「0画素」「1画素」「2画素」の3種類の設定をユーザから取得し、画像処理制御部105に通知する。 The operation unit 106 acquires three types of settings of “0 pixel”, “1 pixel”, and “2 pixel” as the setting of “width to thicken object” from the user and notifies the image processing control unit 105.

画像処理制御部105は、この設定情報に基づいて、画像処理部104の有する各部が「オブジェクトを太らせる前のエッジ部の位置」と「オブジェクトを太らせた後のエッジ部の位置」を判定する方法を画像処理部104に指示する。オブジェクトを太らせる幅に応じて、「オブジェクトを太らせた後のエッジ部の位置」は異なるものとなるので、どの位置を「オブジェクトを太らせた後のエッジ部の位置」と決定するかの元となる指示を送る。 The image processing control unit 105 determines, based on this setting information, that each unit of the image processing unit 104 determines “the position of the edge portion before thickening the object” and “the position of the edge portion after thickening the object”. The image processing unit 104 is instructed how to do this. Since the "position of the edge part after thickening the object" varies depending on the width of thickening the object, which position is to be determined as "the position of the edge part after thickening the object"? Send the original instructions.

エッジデータ生成部202はメモリバッファ201から取得した画像データにおける、オブジェクトを太らせる前の、右または下方向を向いているエッジと左または上方向を向いているエッジとの位置とを決定する。またエッジデータ生成部202は、オブジェクトを太らせた後の、右または下方向を向いているエッジと左または上方向を向いているエッジとの位置を決定する。そして、その情報を含むエッジデータを生成する。このエッジデータを生成するためのエッジデータ生成部202の処理の詳細については[第3の実施形態におけるエッジデータ生成部202の説明]で後述する。エッジデータ生成部202は生成したエッジデータを太らせ処理部203、下色除去処理部204、色材載量制限処理部205、スクリーン処理部206に出力する。 The edge data generation unit 202 determines the position of the edge facing the right or down direction and the edge facing the left or up direction in the image data acquired from the memory buffer 201 before thickening the object. Further, the edge data generation unit 202 determines the positions of the right or downward facing edge and the left or upward facing edge after thickening the object. Then, the edge data including the information is generated. Details of the processing of the edge data generation unit 202 for generating this edge data will be described later in [Description of the edge data generation unit 202 in the third embodiment]. The edge data generation unit 202 outputs the generated edge data to the thickening processing unit 203, the undercolor removal processing unit 204, the color material amount limitation processing unit 205, and the screen processing unit 206.

第3の実施形態におけるエッジデータは画像データと同じサイズのビットマップ形式をしており、画素ごとに4ビットの情報を持つ。下位から1ビット目は「オブジェクトを太らせる前の、右または下方向を向いているエッジ部の位置」についての情報であり、値が0ならばその画素はエッジ部ではないことを示し、値が1ならばその画素はエッジ部であることを示す。また、下位から2ビット目は「オブジェクトを太らせる前の、左または上方向を向いているエッジ部の位置」についての情報であり、値が0ならばその画素はエッジ部ではないことを示し、値が1ならばその画素はエッジ部であることを示す。また、下位から3ビット目は「オブジェクトを1画素太らせた後の、右または下方向を向いているエッジ部の位置」についての情報であり、値が0ならばその画素はエッジ部ではないことを示し、値が1ならばその画素はエッジ部であることを示す。また、下位から4ビット目は「オブジェクトを1画素太らせた後の、左または上方向を向いているエッジ部の位置」についての情報であり、値が0ならばその画素はエッジ部ではないことを示し、値が1ならばその画素はエッジ部であることを示す。第3の実施形態におけるエッジデータの一例として、図3(a)に示す画像データから生成したエッジデータを図4(c)に示す。図4(c)のエッジデータは画素ごとに4ビットの情報を持つが、説明のため、便宜上各画素の値を、10進数の数値で表している。 The edge data in the third embodiment is a bitmap format having the same size as the image data, and has 4-bit information for each pixel. The first bit from the lower order is information about "the position of the edge portion facing right or downward before thickening the object", and if the value is 0, it indicates that the pixel is not the edge portion. Is 1, it indicates that the pixel is an edge portion. The second least significant bit is information about "the position of the edge portion facing left or upward before thickening the object", and a value of 0 indicates that the pixel is not the edge portion. A value of 1 indicates that the pixel is an edge portion. Also, the third bit from the lower order is information about "the position of the edge portion facing rightward or downward after the object is thickened by one pixel", and if the value is 0, the pixel is not the edge portion. If the value is 1, it indicates that the pixel is an edge portion. Further, the 4th bit from the lower order is information about "the position of the edge portion facing left or upward after the object is thickened by one pixel", and if the value is 0, the pixel is not the edge portion. If the value is 1, it indicates that the pixel is an edge portion. FIG. 4C shows edge data generated from the image data shown in FIG. 3A as an example of the edge data in the third embodiment. The edge data in FIG. 4C has 4-bit information for each pixel, but for convenience of explanation, the value of each pixel is represented by a decimal number.

次に、太らせ処理部203、下色除去処理部204、色材載量制限処理部205、スクリーン処理部206について説明する。これらの処理方法は第1の実施形態と同様であるが、「オブジェクトを太らせた後のエッジ部の位置」を判定する方法が第1の実施形態と異なる。第1の実施形態では「オブジェクトを太らせた後のエッジ部の位置」そのものがエッジデータ生成部202の出力するエッジデータに含まれていた。しかし、第3の実施形態では、ユーザが操作部で設定した「オブジェクトを太らせる幅」の設定に応じて、「オブジェクトを太らせた後のエッジ部の位置」を示すエッジデータのビットが異なる。 Next, the thickening processing unit 203, the undercolor removal processing unit 204, the color material application amount restriction processing unit 205, and the screen processing unit 206 will be described. These processing methods are the same as those in the first embodiment, but the method of determining "the position of the edge portion after thickening the object" is different from that in the first embodiment. In the first embodiment, the “position of the edge portion after thickening the object” itself is included in the edge data output by the edge data generation unit 202. However, in the third embodiment, the bit of the edge data indicating “the position of the edge portion after thickening the object” differs depending on the setting of the “width to thicken the object” set by the user on the operation unit. ..

「オブジェクトを太らせる幅」の設定が「0画素」のときはエッジデータの1ビット目または2ビット目が「1」の画素が「オブジェクトを太らせた後のエッジ部の位置」を示す。 When the "width of thickening the object" is set to "0 pixel", the pixel of which the first bit or the second bit of the edge data is "1" indicates the "position of the edge portion after thickening the object".

また、「オブジェクトを太らせる幅」の設定が「1画素」のときはエッジデータの2ビット目のみまたは3ビット目のみが「1」の画素が「オブジェクトを太らせた後のエッジ部の位置」を示す。なお、2ビット目のみまたは3ビット目のみが「1」の画素としている理由を図4(c)を用いて説明する。図4(c)において2ビット目のみが「1」の画素は、10進表記で「2」で示される画素である。3ビット目のみが「1」の画素は、10進表記で「4」で示される画素である。ここで、図4(c)の内エッジの左下の画素は、オブジェクトを太らせる前の「下方向」を向いており、かつ「左方向」を向いている画素である。従って、1ビット目と2ビット目が「1」であるので10進表記で「3」と示されている。この画素は、実際の1画素幅だけ太らせた場合には下方向に太らせられることになるので太らせた後のエッジ部の位置の画素とはならない。よって、また、「オブジェクトを太らせる幅」の設定が「1画素」のときはエッジデータの2ビット目のみまたは3ビット目のみが「1」の画素が「オブジェクトを太らせた後のエッジ部の位置」を示すものとしている。 When the "width of thickening the object" is set to "1 pixel", the pixel of which only the second bit or the third bit of the edge data is "1" is the "position of the edge portion after thickening the object". Is shown. The reason why only the second bit or only the third bit is a pixel of “1” will be described with reference to FIG. Pixels in which only the second bit is “1” in FIG. 4C are pixels indicated by “2” in decimal notation. A pixel in which only the third bit is "1" is a pixel indicated by "4" in decimal notation. Here, the lower left pixel of the inner edge in FIG. 4C is a pixel that is oriented in the “downward direction” before the object is thickened and is also oriented in the “leftward direction”. Therefore, since the first bit and the second bit are "1", they are shown as "3" in decimal notation. This pixel does not become a pixel at the position of the edge portion after thickening because it is thickened downward when it is thickened by an actual one-pixel width. Therefore, when the "width for thickening the object" is set to "1 pixel", the pixel whose second bit or only the third bit of the edge data is "1" is the "edge portion after thickening the object". The position of ".

また、「オブジェクトを太らせる幅」の設定が「2画素」のときはエッジデータの3ビット目または4ビット目が「1」の画素が「オブジェクトを太らせた後のエッジの位置」を示す。以上説明したような判定の仕方を図13に示す。画像処理制御部105は、この判定の仕方を太らせ処理部203、下色除去処理部204、色材載量制限処理部205、スクリーン処理部206に指示する。 When the "width of thickening the object" is set to "2 pixels", the pixel whose third bit or fourth bit of the edge data is "1" indicates the "edge position after thickening the object". .. FIG. 13 shows the determination method as described above. The image processing control unit 105 instructs the thickening processing unit 203, the undercolor removal processing unit 204, the color material application amount restriction processing unit 205, and the screen processing unit 206 how to make this determination.

<第3の実施形態におけるエッジデータ生成部202の詳細>
エッジデータ生成部202の処理の図14のフローチャートに示す。まず、ステップS1401においてエッジデータ生成部202は画像データの色材の版ごとに、画像データ全体にラプラシアンフィルタをかける。これは実施形態1におけるS501と同じ処理である。
<Details of Edge Data Generation Unit 202 in Third Embodiment>
The process of the edge data generation unit 202 is shown in the flowchart of FIG. First, in step S1401, the edge data generation unit 202 applies a Laplacian filter to the entire image data for each color material plate of the image data. This is the same processing as S501 in the first embodiment.

次に、ステップS1402においてエッジデータ生成部202は、各画素に対して、ラプラシアンフィルタの計算値を基に閾値判定を行い、フィルタデータを生成する。これは実施形態1におけるS502と同じ処理である。 Next, in step S1402, the edge data generation unit 202 performs threshold value determination on each pixel based on the calculated value of the Laplacian filter, and generates filter data. This is the same processing as S502 in the first embodiment.

次に、ステップS1403においてエッジデータ生成部202はフィルタデータに記録されている内エッジ・外エッジ・非エッジの配置パターンに基づき、「オブジェクトを太らせる前の、右または下方向を向いているエッジ部の位置」を判定する。そしてその位置を、エッジデータに記録する。このとき、エッジデータの対応する画素の画素値の下位から1ビット目に1を立てる。この判定方法は、エッジデータにおける内エッジを注目画素として、右または下に隣接する画素に外エッジが存在するかどうかを判定すれば良い。 Next, in step S1403, the edge data generation unit 202 determines, based on the arrangement pattern of the inner edge/outer edge/non-edge recorded in the filter data, “the edge facing the right or downward before the object is thickened”. Position of the section" is determined. Then, the position is recorded in the edge data. At this time, 1 is set to the first bit from the lower order of the pixel value of the corresponding pixel of the edge data. This determination method may be performed by determining whether the inner edge in the edge data is the pixel of interest and the outer edge exists in the pixel adjacent to the right or below.

次に、ステップS1404においてエッジデータ生成部202はフィルタデータに記録されている内エッジ・外エッジ・非エッジの配置パターンに基づき、「オブジェクトを太らせる前の、左または上方向を向いているエッジ部の位置」を判定する。そしてその位置をエッジデータに記録する。このとき、エッジデータの対応する画素の画素値の下位から2ビット目に1を立てる。この判定方法は、エッジデータにおける内エッジを注目画素として、左または上に隣接する画素に外エッジが存在するかどうかを判定すれば良い。 Next, in step S1404, the edge data generation unit 202 determines, based on the inner edge/outer edge/non-edge arrangement pattern recorded in the filter data, “an edge facing leftward or upward before the object is thickened”. Position of the section" is determined. Then, the position is recorded in the edge data. At this time, 1 is set to the second lowest bit of the pixel value of the corresponding pixel of the edge data. This determination method may be performed by determining whether the inner edge in the edge data is the pixel of interest and the outer edge exists in the pixel adjacent to the left or above.

次に、ステップS1405においてエッジデータ生成部202はフィルタデータに記録されている内エッジ・外エッジ・非エッジの配置パターンに基づき、「オブジェクトを太らせた後の、右または下方向を向いているエッジ部の位置」を判定する。そしてその位置をエッジデータに記録する。この判定では、フィルタデータに対して図15(a)に示すパターンのパターンマッチングを行う。図15(a)に示すパターンは、図8のパターンのうち0度と90度回転のものに対応する。パターンがマッチしたとき、斜線で塗られているセルの画素に対応するエッジデータの画素の画素値の下位から3ビット目に1を立てる。 Next, in step S1405, the edge data generation unit 202, based on the arrangement pattern of the inner edge, the outer edge, and the non-edge recorded in the filter data, “turns to the right or downward after thickening the object. The position of the edge portion" is determined. Then, the position is recorded in the edge data. In this determination, pattern matching of the pattern shown in FIG. 15A is performed on the filter data. The pattern shown in FIG. 15A corresponds to the pattern of FIG. 8 rotated by 0° and 90°. When the patterns match, 1 is set to the third least significant bit of the pixel value of the pixel of the edge data corresponding to the pixel of the shaded cell.

次に、ステップS1406においてエッジデータ生成部202はフィルタデータに記録されている内エッジ・外エッジ・非エッジの配置パターンに基づき、「オブジェクトを太らせた後の、左または上方向を向いているエッジ部の位置」を判定する。そしてその位置をエッジデータに記録する。この判定では、フィルタデータに対して図15(b)に示すパターンのパターンマッチングを行う。図15(b)に示すパターンは、図8のパターンの180度回転、270度回転したものに対応する。パターンがマッチしたとき、斜線で塗られているセルの画素に対応するエッジデータの画素の画素値の下位から4ビット目に1を立てる。 Next, in step S1406, the edge data generation unit 202, based on the arrangement pattern of the inner edge/outer edge/non-edge recorded in the filter data, “turns left or upward after the object is thickened”. The position of the edge portion" is determined. Then, the position is recorded in the edge data. In this determination, pattern matching of the pattern shown in FIG. 15B is performed on the filter data. The pattern shown in FIG. 15B corresponds to the pattern of FIG. 8 rotated by 180 degrees and rotated by 270 degrees. When the patterns match, 1 is set at the 4th bit from the lower order of the pixel value of the pixel of the edge data corresponding to the pixel of the shaded cell.

最後に、ステップS1407においてエッジデータ生成部202は、生成したエッジデータを太らせ処理部203に出力する。 Finally, in step S1407, the edge data generation unit 202 outputs the generated edge data to the thickening processing unit 203.

以上により、第3の実施形態によれば、オブジェクトを太らせる幅として「0画素」「1画素」「2画素」の3種類の設定を操作部がユーザから取得する。そして、その指示通りにオブジェクトの幅を太らせた後、オブジェクトのエッジ部とオブジェクトの内部とでそれぞれ適切な画像処理を行うことが可能となる。 As described above, according to the third embodiment, the operation unit acquires from the user three types of settings of “0 pixel”, “1 pixel”, and “2 pixel” as the width for thickening the object. Then, after thickening the width of the object according to the instruction, it is possible to perform appropriate image processing on the edge portion of the object and on the inside of the object.

なお、第3の実施形態では、オブジェクトの太らせ幅として「1画素」を指示した場合、右及び下方向に太らせる例を説明した。しかしながら、太らせる方向はこれに限られるものではなく、例えば左及び上方向を太らせても良い。 In addition, in the third embodiment, when "1 pixel" is designated as the thickening width of the object, an example of thickening in the right and downward directions has been described. However, the thickening direction is not limited to this, and for example, the left and upper directions may be thickened.

<第4の実施形態>
第1の実施形態では、画像データにおけるオブジェクトを上・下・左・右の4方向に1画素だけ太らせる例を説明した。これにより、「オブジェクトの幅」は合計で2画素だけ太ることになる。しかしながら、レンダリング処理部103やプリント処理部107の解像度がより高い場合は、解像度に応じた効果を出すためにエッジ部の幅が2画素であり、オブジェクトを太らせる幅が合計で4画素まで可能であることが望ましい。第4の実施形態では、エッジ部の幅を2画素とし、「オブジェクトを太らせる幅」の設定として合計で「0画素」「2画素」「4画素」の3段階での設定を操作部がユーザから取得する。そして、その指示通りにオブジェクトの幅を複数画素分太らせた後、適切な画像処理をかけることを可能とする、画像処理装置の実施形態について説明する。
<Fourth Embodiment>
In the first embodiment, the example in which the object in the image data is thickened by one pixel in the four directions of up/down/left/right has been described. As a result, the “width of the object” is thickened by 2 pixels in total. However, when the resolution of the rendering processing unit 103 or the print processing unit 107 is higher, the width of the edge portion is 2 pixels in order to obtain the effect according to the resolution, and the width for thickening the object can be up to 4 pixels in total. Is desirable. In the fourth embodiment, the width of the edge portion is set to 2 pixels, and the operation unit performs three-stage setting of “0 pixel”, “2 pixel”, and “4 pixel” in total as the setting of “width for thickening object”. Get from user. Then, an embodiment of an image processing apparatus that enables appropriate image processing after thickening the width of an object by a plurality of pixels as instructed will be described.

第4の実施形態における画像処理装置100および画像処理部104の構成は第1の実施形態と同じである。第1の実施形態と処理内容が異なる箇所について説明する。 The configurations of the image processing apparatus 100 and the image processing unit 104 in the fourth embodiment are the same as those in the first embodiment. Portions having different processing contents from those of the first embodiment will be described.

操作部106は「オブジェクトを太らせる幅」の設定として「0画素」「2画素」「4画素」の3種類の設定をユーザから取得し、画像処理制御部105に通知する。 The operation unit 106 acquires from the user three types of settings of “0 pixel”, “2 pixel”, and “4 pixel” as the setting of “width to thicken object”, and notifies the image processing control unit 105 of the setting.

画像処理制御部105は、この設定情報に基づいて、画像処理部104の有する各部が「オブジェクトを太らせる前のエッジ部の位置」と「オブジェクトを太らせた後のエッジ部の位置」を判定する方法を画像処理部104に指示する。エッジデータ生成部202はメモリバッファ201から取得した画像データについて各位置を決定する。すなわち、「オブジェクトを太らせる前のエッジ部の位置」と「オブジェクトの幅を2画素太らせた後のエッジ部の位置」と「オブジェクトの幅を4画素太らせた後のエッジ部の位置」を決定する。そして、その情報を含むエッジデータを生成する。このエッジデータを生成するためのエッジデータ生成部202の処理の詳細については[第4の実施形態におけるエッジデータ生成部202の説明]で後述する。エッジデータ生成部202は生成したエッジデータを太らせ処理部203、下色除去処理部204、色材載量制限処理部205、スクリーン処理部206に出力する。 The image processing control unit 105 determines, based on this setting information, that each unit of the image processing unit 104 determines “the position of the edge portion before thickening the object” and “the position of the edge portion after thickening the object”. The image processing unit 104 is instructed how to do this. The edge data generation unit 202 determines each position for the image data acquired from the memory buffer 201. That is, "the position of the edge portion before thickening the object", "the position of the edge portion after thickening the width of the object by 2 pixels", and "the position of the edge portion after thickening the width of the object by 4 pixels". To decide. Then, the edge data including the information is generated. Details of the processing of the edge data generation unit 202 for generating this edge data will be described later in [Description of the edge data generation unit 202 in the fourth embodiment]. The edge data generation unit 202 outputs the generated edge data to the thickening processing unit 203, the undercolor removal processing unit 204, the color material amount limitation processing unit 205, and the screen processing unit 206.

第4の実施形態のエッジデータは画像データと同じサイズのビットマップ形式をしており、画素ごとに3ビットの情報を持つ。下位から1ビット目は「オブジェクトを太らせる前のエッジ部の位置」についての情報であり、値が0ならばその画素はエッジ部ではないことを示し、値が1ならばその画素はエッジ部であることを示す。また、下位から2ビット目は「オブジェクトの幅を2画素だけ太らせた後のエッジ部の位置」についての情報であり、値が0ならばその画素はエッジ部ではないことを示し、値が1ならばその画素はエッジ部であることを示す。また、下位から3ビット目は「オブジェクトの幅を4画素だけ太らせた後のエッジ部の位置」についての情報であり、値が0ならばその画素はエッジ部ではないことを示し、値が1ならばその画素はエッジ部であることを示す。第4の実施形態におけるエッジデータの一例として、図3(a)に示す画像データから生成したエッジデータを図4(d)に示す。図4(d)のエッジデータは画素ごとに3ビットの情報を持つが、説明のため、便宜上各画素の値を、10進数の数値で表している。図4(d)では、エッジ部の幅が2画素であるので内エッジのさらに内側の画素もオブジェクトを太らせる前のエッジ部の位置となっている。第4の実施形態におけるエッジデータ生成部202の処理の詳細については後述する。 The edge data of the fourth embodiment has a bitmap format of the same size as the image data, and has 3 bits of information for each pixel. The first bit from the lower order is information about "the position of the edge portion before thickening the object". If the value is 0, the pixel is not the edge portion, and if the value is 1, the pixel is the edge portion. Is shown. In addition, the second bit from the lower order is information about “the position of the edge portion after the width of the object is thickened by two pixels”, and if the value is 0, it indicates that the pixel is not the edge portion, and the value is A value of 1 indicates that the pixel is an edge portion. In addition, the 3rd bit from the lower order is the information about “the position of the edge part after the width of the object is thickened by 4 pixels”, and if the value is 0, it indicates that the pixel is not the edge part, and the value is A value of 1 indicates that the pixel is an edge portion. As an example of the edge data in the fourth embodiment, edge data generated from the image data shown in FIG. 3A is shown in FIG. The edge data in FIG. 4D has 3-bit information for each pixel, but for convenience of explanation, the value of each pixel is represented by a decimal number. In FIG. 4D, since the width of the edge portion is 2 pixels, the pixel inside the inner edge is also at the position of the edge portion before the object is thickened. Details of the processing of the edge data generation unit 202 in the fourth embodiment will be described later.

次に、下色除去処理部204、色材載量制限処理部205、スクリーン処理部206について説明する。これらの処理方法は第1の実施形態と同様であるが、「オブジェクトを太らせた後のエッジ部の位置」を判定する方法が第1の実施形態と異なる。第4の実施形態では、ユーザが操作部で設定した「オブジェクトを太らせる幅」の設定に応じて、「オブジェクトを太らせた後のエッジ部の位置」が示すエッジデータのビットが異なる。「オブジェクトを太らせる幅」の設定が「0画素」のときはエッジデータの1ビット目が「オブジェクトを太らせた後のエッジ部の位置」を示す。また、「オブジェクトを太らせる幅」の設定が「2画素」のときはエッジデータの2ビット目が「オブジェクトを太らせた後のエッジ部の位置」を示す。また、「オブジェクトを太らせる幅」の設定が「4画素」のときはエッジデータの3ビット目が「オブジェクトを太らせた後のエッジ部の位置」を示す。この判定の仕方を図16に示す。画像処理制御部105は、この判定の仕方を太らせ処理部203、下色除去処理部204、色材載量制限処理部205、スクリーン処理部206に指示する。 Next, the undercolor removal processing unit 204, the color material application amount restriction processing unit 205, and the screen processing unit 206 will be described. These processing methods are the same as those in the first embodiment, but the method of determining "the position of the edge portion after thickening the object" is different from that in the first embodiment. In the fourth embodiment, the bit of the edge data indicated by "the position of the edge portion after the object is thickened" differs depending on the setting of the "width to thicken the object" set by the user on the operation unit. When the "width of thickening the object" is set to "0 pixel", the first bit of the edge data indicates "the position of the edge portion after thickening the object". When the “width of thickening the object” is set to “2 pixels”, the second bit of the edge data indicates “the position of the edge portion after thickening the object”. When the "width of thickening the object" is set to "4 pixels", the third bit of the edge data indicates "the position of the edge portion after thickening the object". FIG. 16 shows how to make this determination. The image processing control unit 105 instructs the thickening processing unit 203, the undercolor removal processing unit 204, the color material application amount restriction processing unit 205, and the screen processing unit 206 how to make this determination.

次に、太らせ処理部203の処理について説明する。太らせ処理部203も図16に従って「オブジェクトを太らせた後のエッジの位置」を判定する。そして、オブジェクトを太らせる処理として、まずエッジデータから「オブジェクトを太らせた後のエッジの位置」である画素を検出する。そして、その画素を注目画素として、そこから上下左右方向に2画素以内に「オブジェクトを太らせる前のエッジの位置」を示す画素を検出する。そのような画素が見つかれば、その画素の画像データにおける画素値を、画像データにおける注目画素に上書きする。 Next, the processing of the thickening processing unit 203 will be described. The thickening processing unit 203 also determines “the position of the edge after thickening the object” according to FIG. 16. Then, as the processing for thickening the object, first, a pixel which is “the position of the edge after thickening the object” is detected from the edge data. Then, using that pixel as a pixel of interest, a pixel indicating "the position of the edge before thickening the object" is detected within 2 pixels in the vertical and horizontal directions from that pixel. If such a pixel is found, the pixel value in the image data of that pixel is overwritten on the pixel of interest in the image data.

<第4の実施形態におけるエッジデータ生成部202の詳細>
エッジデータ生成部202の処理の図17のフローチャートに示す。なお、第4の実施形態では説明を簡単にするため、第1の実施形態の際に考慮した、図9に示すような「太らせると結合されてしまうオブジェクト」については考慮しないこととする。
<Details of Edge Data Generation Unit 202 in Fourth Embodiment>
The flowchart of FIG. 17 showing the processing of the edge data generation unit 202 is shown. In order to simplify the description in the fourth embodiment, the “objects that will be combined when fattened” as shown in FIG. 9 considered in the first embodiment will not be considered.

まず、ステップS1701においてエッジデータ生成部202は画像データの色材の版ごとに、画像データ全体にラプラシアンフィルタをかける。これは実施形態1におけるS501と同じ処理である。次に、ステップS1702においてエッジデータ生成部202は、各画素に対して、ラプラシアンフィルタの計算値を基に閾値判定を行い、フィルタデータを生成する。これは実施形態1におけるS502と同じ処理である。 First, in step S1701, the edge data generation unit 202 applies a Laplacian filter to the entire image data for each color material plate of the image data. This is the same processing as S501 in the first embodiment. Next, in step S1702, the edge data generation unit 202 performs threshold value determination on each pixel based on the calculated value of the Laplacian filter, and generates filter data. This is the same processing as S502 in the first embodiment.

次に、ステップS1703においてエッジデータ生成部202は、フィルタデータにおいて、内エッジと、内エッジに上下左右に隣接する非エッジとを「オブジェクトを太らせる前のエッジの位置」と判定し、エッジデータに記録する。このとき、エッジデータの対応する画素の画素値の下位から1ビット目に1を立てる。 Next, in step S1703, the edge data generation unit 202 determines, in the filter data, the inner edge and the non-edges vertically and horizontally adjacent to the inner edge as “the position of the edge before thickening the object”, and determines the edge data. To record. At this time, 1 is set to the first bit from the lower order of the pixel value of the corresponding pixel of the edge data.

次に、ステップS1704においてエッジデータ生成部202は、フィルタデータにおいて、内エッジおよび外エッジに対して、「オブジェクトの幅を2画素だけ太らせた後のエッジ部の位置」と判定し、エッジデータに記録する。すなわち、オブジェクトの幅を合計で2画素太らせた後のエッジ部の位置と判定する。このとき、エッジデータの対応する画素の画素値の下位から2ビット目に1を立てる。 Next, in step S1704, the edge data generation unit 202 determines that the inner edge and the outer edge in the filter data are “the position of the edge portion after the width of the object is thickened by 2 pixels”, and the edge data To record. That is, it is determined to be the position of the edge portion after the width of the object is thickened by 2 pixels in total. At this time, 1 is set to the second lowest bit of the pixel value of the corresponding pixel of the edge data.

次に、ステップS1705においてエッジデータ生成部202は、フィルタデータにおいて、外エッジと、外エッジに上下左右に隣接する非エッジとに対して、「オブジェクトの幅を4画素だけ太らせた後のエッジの位置」と判定し、エッジデータに記録する。すなわち、オブジェクトの幅を合計で4画素太らせた後のエッジ部の位置と判定する。このとき、エッジデータの対応する画素の画素値の下位から3ビット目に1を立てる。 Next, in step S1705, the edge data generation unit 202 determines, in the filter data, for the outer edge and the non-edges vertically and horizontally adjacent to the outer edge, “the edge after thickening the width of the object by 4 pixels. Position, and record it in the edge data. That is, it is determined to be the position of the edge portion after the width of the object is thickened by 4 pixels in total. At this time, 1 is set to the third least significant bit of the pixel value of the corresponding pixel of the edge data.

最後に、ステップS1707においてエッジデータ生成部202はエッジデータを太らせ処理部203に出力する。 Finally, in step S1707, the edge data generation unit 202 outputs the edge data to the thickening processing unit 203.

以上により、第4の実施形態によれば、エッジの幅を2画素とし、太らせるオブジェクトの幅を「0画素」「2画素」「4画素」の3段階でオブジェクトの幅を太らせた後、適切な画像処理をかけることが可能となる。 As described above, according to the fourth embodiment, the width of the edge is set to 2 pixels, and the width of the object to be thickened is thickened in three stages of “0 pixel”, “2 pixels”, and “4 pixels”. It is possible to apply appropriate image processing.

(その他の実施形態)
本発明の目的は、以下の処理を実行することによっても達成される。即ち、前記実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出す処理である。
(Other embodiments)
The object of the present invention is also achieved by performing the following processing. That is, a storage medium recording a program code of software that realizes the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus stores the storage medium in the storage medium. Is a process for reading.

この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。 In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention.

Claims (13)

画像データに含まれるオブジェクトの幅を太くする画像処理装置であって、
画像データからオブジェクトの内側にある内エッジの画素と、前記オブジェクトの外側にある外エッジの画素とを特定する特定手段と、
前記特定手段によって特定された前記オブジェクトの前記外エッジの画素に対して前記オブジェクトの前記内エッジの画素の値を上書きすることで、前記オブジェクトの幅を太くする太らせ処理手段と、
前記太らせ処理手段により変更された後のオブジェクトについて、前記特定手段によって特定された外エッジの画素に対して、エッジ用の所定の画像処理を行う画像処理手段と
を有することを特徴とする画像処理装置。
An image processing apparatus for thickening the width of the object included in the image data,
Specifying means for specifying pixels on the inner edge inside the object from the image data and pixels on the outer edge outside the object;
By overwriting the value of the pixels in said edge of said object with respect to a pixel of said outer edge of said object specified by said specifying means, and thickening processing means for thickening the width of the object,
The object after the width is changed by the thickening processing means, and characterized in that it has a pixel of the outer edge specified by said specifying means, and an image processing means for performing predetermined image processing for edge Image processing device.
前記所定の画像処理は下色を所定の色材のデータに置き換える下色除去処理であることを特徴とする請求項1に記載の画像処理装置。 The image processing apparatus according to claim 1, wherein the predetermined image processing is undercolor removal processing for replacing the undercolor with data of a predetermined color material . 前記所定の画像処理は、単位面積あたりの色材の濃度の合計を制限する色材載量制限処理であることを特徴とする請求項1または2に記載の画像処理装置。 The image processing apparatus according to claim 1 or 2, wherein the predetermined image processing is a color material mounting amount restriction processing for restricting a total density of the color material per unit area . 前記所定の画像処理は、前記画像データに対して行われるスクリーン処理であることを特徴とする請求項1乃至3の何れか1項に記載の画像処理装置。 Wherein the predetermined image processing, the image processing apparatus according to any one of claims 1 to 3, characterized in that a screen process performed on the image data. 前記画像処理手段は、前記外エッジの画素に対しては、第一の線数のスクリーン処理を行い、前記オブジェクトの前記外エッジ以外の画素に対しては、前記第一の線数よりも小さい第二の線数のスクリーン処理を行うことを特徴とする請求項4に記載の画像処理装置。The image processing means performs a screen processing of a first line number on the pixels of the outer edge, and a pixel number of the object other than the outer edge of the object is smaller than the first line number. The image processing apparatus according to claim 4, wherein the screen processing of the second number of lines is performed. 前記特定手段は、前記画像データにラプラシアンフィルタを適用して得られた値に基づき、前記オブジェクトの画素が内エッジであるか、外エッジであるかを特定することを特徴とする請求項1乃至5の何れか1項に記載の画像処理装置。 The said specifying means specifies whether the pixel of the said object is an inner edge or an outer edge based on the value obtained by applying a Laplacian filter to the said image data. The image processing apparatus according to any one of 5 above. 画像データに含まれるオブジェクトの幅を太くする画像処理方法であって、
画像データからオブジェクトの内側にある内エッジの画素と、前記オブジェクトの外側にある外エッジの画素とを特定する特定工程と、
前記特定工程によって特定された前記オブジェクトの前記外エッジの画素に対して前記オブジェクトの前記内エッジの画素の値を上書きすることで、前記オブジェクトの幅を太くする太らせ処理工程と、
前記太らせ処理工程により変更された後のオブジェクトについて、前記特定工程によって特定された外エッジの画素に対して、エッジ用の所定の画像処理を行う画像処理工程と
を有することを特徴とする画像処理方法。
An image processing method of thickening the width of the object included in the image data,
A specifying step of specifying pixels on the inner edge inside the object from the image data and pixels on the outer edge outside the object;
By overwriting the value of the pixels in said edge of said object with respect to a pixel of said outer edge of said object specified by said specifying step, a processing step thickening thickening the width of the object,
The object after the width is changed by the thickening processing step, and characterized in that it has a pixel of the outer edge that is specified by the specifying step, and an image processing step of performing predetermined image processing for edge Image processing method.
前記所定の画像処理は、下色を所定の色材のデータに置き換える下色除去処理であることを特徴とする請求項7に記載の画像処理方法。The image processing method according to claim 7, wherein the predetermined image processing is undercolor removal processing for replacing the undercolor with data of a predetermined color material. 前記所定の画像処理は、単位面積あたりの色材の濃度の合計を制限する色材載量制限処理であることを特徴とする請求項7または8に記載の画像処理方法。9. The image processing method according to claim 7, wherein the predetermined image processing is a color material mounting amount restriction processing for restricting a total density of color materials per unit area. 前記所定の画像処理は、前記画像データに対して行われるスクリーン処理であることを特徴とする請求項7乃至9の何れか1項に記載の画像処理方法。 The image processing method according to claim 7, wherein the predetermined image processing is screen processing performed on the image data. 前記画像処理工程において、前記外エッジの画素に対しては、第一の線数のスクリーン処理を行い、前記オブジェクトの前記外エッジ以外の画素に対しては、前記第一の線数よりも小さい第二の線数のスクリーン処理を行うことを特徴とする請求項10に記載の画像処理方法。In the image processing step, a screen processing of a first line number is performed on the pixels of the outer edge, and a pixel number other than the outer edge of the object is smaller than the first line number. The image processing method according to claim 10, further comprising performing screen processing with a second line number. 前記特定工程において、前記画像データにラプラシアンフィルタを適用して得られた値に基づき、前記オブジェクトの画素が内エッジであるか、外エッジであるかを特定することを特徴とする請求項7乃至11の何れか1項に記載の画像処理方法。 8. In the specifying step, it is specified whether the pixel of the object is an inner edge or an outer edge based on a value obtained by applying a Laplacian filter to the image data. 11. The image processing method according to any one of 11. コンピュータを、請求項1乃至のいずれか一項に記載の画像処理装置として機能させるためのプログラム。 Program for causing a computer to function as the image processing apparatus according to any one of claims 1 to 6.
JP2019038533A 2019-03-04 2019-03-04 Image processing apparatus, image processing method, and program Active JP6746740B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019038533A JP6746740B2 (en) 2019-03-04 2019-03-04 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019038533A JP6746740B2 (en) 2019-03-04 2019-03-04 Image processing apparatus, image processing method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014159745A Division JP6525526B2 (en) 2014-08-05 2014-08-05 IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2019145116A JP2019145116A (en) 2019-08-29
JP6746740B2 true JP6746740B2 (en) 2020-08-26

Family

ID=67772831

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019038533A Active JP6746740B2 (en) 2019-03-04 2019-03-04 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP6746740B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4050639B2 (en) * 2003-03-13 2008-02-20 株式会社リコー Image processing apparatus, image processing method, and program executed by computer
JP2010278714A (en) * 2009-05-28 2010-12-09 Seiko Epson Corp Image processor, printing system, image processing method, and computer program
JP2012121265A (en) * 2010-12-09 2012-06-28 Canon Inc Image forming apparatus and control method thereof
JP5863001B2 (en) * 2011-07-26 2016-02-16 富士ゼロックス株式会社 Image processing apparatus, image forming apparatus, and program
JP5609903B2 (en) * 2012-02-21 2014-10-22 コニカミノルタ株式会社 Image processing apparatus and image processing method
JP6049437B2 (en) * 2012-12-14 2016-12-21 キヤノン株式会社 Image processing apparatus, image processing method, and computer program

Also Published As

Publication number Publication date
JP2019145116A (en) 2019-08-29

Similar Documents

Publication Publication Date Title
JP4498233B2 (en) Image processing apparatus and image processing method
US8488199B2 (en) Image output inspection system, image inspection apparatus, and computer program product
US9519443B2 (en) Print data flattening processing of spot color components with any hidden spot color portion removed
JP2008005317A (en) Image processor and image processing method, and computer program and recording medium
JP6769045B2 (en) Image processing equipment and computer programs
JP2005352699A (en) Information processor, control method therefor and information processing method
US20160291905A1 (en) Mask based toner reduction
JP5212294B2 (en) Image processing apparatus and image processing method
JP6525526B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM
US8570340B2 (en) Systems and methods for data compression
JP2017024321A (en) Image processor, image formation device, and image processing time prediction method and program
JP4153568B2 (en) How to determine the colorant to be used for printing gray areas
JP6746740B2 (en) Image processing apparatus, image processing method, and program
US20200193113A1 (en) Image output device, image output method, and output image data production method
JP6120824B2 (en) Image processing apparatus, image processing method, and program
EP1241868B1 (en) Image processing apparatus
JPH09282471A (en) Image processor, image forming device and its method
US8824011B2 (en) Method for processing rasterized image data
US20140253975A1 (en) Method and system for enabling halftoning of a color image based on its color separation content
JP4131205B2 (en) Image processing apparatus and image processing program causing computer to execute image processing
US7652807B2 (en) Image generating apparatus, image generating method and computer readable medium
JP6489763B2 (en) Image processing apparatus, image processing method, and program
EP1447768B1 (en) Printing control apparatus, method and printer driver
JP2018033043A (en) Image formation device, control method, and program
JP3728009B2 (en) Image processing apparatus and method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190403

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190403

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200225

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20200403

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200622

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200805

R151 Written notification of patent or utility model registration

Ref document number: 6746740

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151