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

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

Info

Publication number
JP2016100785A
JP2016100785A JP2014237000A JP2014237000A JP2016100785A JP 2016100785 A JP2016100785 A JP 2016100785A JP 2014237000 A JP2014237000 A JP 2014237000A JP 2014237000 A JP2014237000 A JP 2014237000A JP 2016100785 A JP2016100785 A JP 2016100785A
Authority
JP
Japan
Prior art keywords
filter
image
image processing
processing
rendering
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
JP2014237000A
Other languages
Japanese (ja)
Inventor
隆之 堤
Takayuki Tsutsumi
隆之 堤
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 JP2014237000A priority Critical patent/JP2016100785A/en
Publication of JP2016100785A publication Critical patent/JP2016100785A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To reduce image processing without causing image degradation in image processing including filter processing.SOLUTION: An image processing apparatus for performing image processing of image data includes: detection means for detecting a white line in PDL data; rendering processing means for rendering the PDL data; filter processing means for performing filter processing using a filter for referring to a plurality of pixels and converting a pixel value for each pixel represented by image data obtained with the rendering processing means; and a step of rendering by skipping part of the white line contained in the PDL data in accordance with a filter size used for the filter processing means.SELECTED DRAWING: Figure 1

Description

本発明は、画像データに対してフィルタ処理を用いて画像処理を行う画像処理装置及び方法に関する。   The present invention relates to an image processing apparatus and method for performing image processing on image data using filter processing.

一般に、記録媒体上に画像を印刷するプリンタにおいては、入力された画像データに対して所望の画像処理を施すことにより、画像データをプリンタが出力可能な印刷データに変換する。画像処理を高速化するため、画像データに印刷する必要のない白領域が含まれている場合、画像データにおける白領域に対する処理をスキップする方法が開示されている。このような技術は、白スキップ処理とも呼ばれる。特許文献1には、スキャナにより画像を読み込んだ後、読み込んだ画像データの白ライン判定し、その白ラインを削除した画像データに変換して画像処理を行う方法を開示している。   In general, a printer that prints an image on a recording medium converts the image data into print data that can be output by the printer by performing desired image processing on the input image data. In order to speed up image processing, a method is disclosed in which processing for a white region in image data is skipped when the image data includes a white region that does not need to be printed. Such a technique is also called white skip processing. Japanese Patent Application Laid-Open No. 2004-151858 discloses a method of performing image processing by reading an image with a scanner, determining a white line of the read image data, and converting the white line into deleted image data.

特開2011−199326号公報JP 2011-199326 A

しかしながら特許文献1に開示された方法によれば、画像処理にフィルタ処理が含まれる場合、白ラインを削除した境界において2つの画像領域の色が混ざってしまい、画質劣化を起こしてしまう場合があった。   However, according to the method disclosed in Patent Document 1, when the image processing includes filter processing, the colors of the two image regions may be mixed at the boundary where the white line is deleted, resulting in image quality degradation. It was.

そこで本発明は、フィルタ処理が含まれる画像処理において、画像劣化を発生することなく画像処理を削減することを目的とする。   Accordingly, an object of the present invention is to reduce image processing without causing image deterioration in image processing including filter processing.

上記課題を解決するため本発明は、像データに対して画像処理する画像処理装置であって、PDLデータにおける白ラインを検出する検出手段と、前記PDLデータをレンダリングするレンダリング処理手段と、前記レンダリング処理手段によって得られる画像データが表す各画素に対して、複数の画素を参照して画素値を変換するためのフィルタを用いたフィルタ処理を実行するフィルタ処理手段と、前記フィルタ処理手段に用いられるフィルタのサイズに応じてPDLデータに含まれる白ラインの一部をスキップしてレンダリングすることを特徴とする。   In order to solve the above-described problems, the present invention provides an image processing apparatus that performs image processing on image data, a detection unit that detects a white line in PDL data, a rendering processing unit that renders the PDL data, and the rendering A filter processing unit that executes a filter process using a filter for converting a pixel value with reference to a plurality of pixels for each pixel represented by image data obtained by the processing unit, and the filter processing unit Rendering is performed by skipping a part of the white line included in the PDL data according to the size of the filter.

本発明によれば、フィルタ処理を含む画像処理において、画像劣化を発生することなく画像処理を削減することができる。   According to the present invention, in image processing including filter processing, image processing can be reduced without causing image degradation.

第1実施形態に係る画像処理装置を示すブロック図1 is a block diagram showing an image processing apparatus according to a first embodiment. RIP処理部102のブロック図Block diagram of the RIP processing unit 102 スキップ処理されなかった場合の画像データの模式図Schematic diagram of image data when skip processing is not performed RIP処理部102の処理を説明する図The figure explaining the process of the RIP process part 102 一般的なスキップ処理後の画像データの模式図Schematic diagram of image data after general skip processing 最小白ライン数2に応じて、スキップ処理された画像データの模式図Schematic diagram of image data skipped according to the minimum number of white lines 2 最小白ライン数4に応じて、スキップ処理された画像データの模式図Schematic diagram of image data skipped according to minimum number of white lines 4 第2実施形態に係る画像処理装置を説明する図The figure explaining the image processing apparatus which concerns on 2nd Embodiment. 第3実施形態に係る画像処理装置の全体構成を示すブロック図The block diagram which shows the whole structure of the image processing apparatus which concerns on 3rd Embodiment. スキャナ画像処理部902のブロック図Block diagram of the scanner image processing unit 902 第1実施形態に係る画像処理装置の動作を説明するフローチャートThe flowchart explaining operation | movement of the image processing apparatus which concerns on 1st Embodiment. スキップ情報の1例を示す図The figure which shows an example of skip information 第2実施形態に係る画像処理装置を示すブロック図The block diagram which shows the image processing apparatus which concerns on 2nd Embodiment. 第4実施形態に係る画像処理装置を示すブロック図The block diagram which shows the image processing apparatus which concerns on 4th Embodiment フィルタの1例を示す図The figure which shows an example of a filter

以下、添付図面を参照し、本発明の好適な実施形態について説明する。なお、以下の実施例において示す構成は1例にすぎず、本発明は図示された構成に限定されるものではない。   Preferred embodiments of the present invention will be described below with reference to the accompanying drawings. In addition, the structure shown in the following Examples is only an example, and this invention is not limited to the structure shown in figure.

<第1実施形態>
(全体構成)
図1は、本発明の第1実施形態に適用可能な画像処理装置の全体構成を示すブロック図である。本実施形態において画像処理装置は、PDL処理部101、RIP処理部102、CPU103、画像処理部104、印刷部105を有する。
<First Embodiment>
(overall structure)
FIG. 1 is a block diagram showing the overall configuration of an image processing apparatus applicable to the first embodiment of the present invention. In this embodiment, the image processing apparatus includes a PDL processing unit 101, a RIP processing unit 102, a CPU 103, an image processing unit 104, and a printing unit 105.

PDL処理部101は、図示しないPC等からの印刷ジョブに含まれているページ記述言語(PDL:Page Description Language)によって記述されたデータ(以降、PDLデータ)を解析する。PDLデータとは、1ページ分の画像形成命令を含む。PDL処理部101は、PDLデータの画像形成命令を解釈し、描画するオブジェクトを示すディスプレイリスト(DL)等の中間データを生成する。生成された中間データは、メモリ(不図示)に一時的に保存する。   The PDL processing unit 101 analyzes data (hereinafter referred to as PDL data) described in a page description language (PDL) included in a print job from a PC or the like (not shown). The PDL data includes an image forming command for one page. The PDL processing unit 101 interprets an image formation command of PDL data and generates intermediate data such as a display list (DL) indicating an object to be drawn. The generated intermediate data is temporarily stored in a memory (not shown).

RIP処理部102は、PDL処理部101による解析の結果得られる中間データからラスタ形式の画像データ(以降、ラスタ画像データまたは画像データと呼ぶ)を生成する。RIP処理部102は、スキップ抑制レジスタ110を有し、スキップ抑制レジスタ110には最小白ライン数が格納されている。RIP102は、最小白ライン数に従って、中間データからラインごとにラスタ画像データを生成する際に、一部の白ラインをスキップ処理する。スキップ処理とは、特定の条件を満たすライン(ここでは白ライン)のレンダリング処理をスキップすることを意味する。つまり、RIP処理部102から出力されるラスタ画像データにおいては、一部のラインが省略されている。本来1ページ分の画像データを構成するライン数がLであり、ライン数Mの白ラインをスキップ処理すると、ラスタ画像データのライン数は、L−Mになる。また、RIP処理部102は、スキップ処理されたライン位置を示すスキップ情報を生成する。なお、ラインとは1ページ分の画像において主走査方向(横方向)の1列を意味する。例えば、画像データが256画素×512画素から構成される場合、1ラインは1×256画素である。RIP処理部102における処理の詳細は後述する。   The RIP processing unit 102 generates raster format image data (hereinafter referred to as raster image data or image data) from the intermediate data obtained as a result of analysis by the PDL processing unit 101. The RIP processing unit 102 includes a skip suppression register 110, and the skip suppression register 110 stores the minimum number of white lines. The RIP 102 skips some white lines when generating raster image data for each line from the intermediate data according to the minimum number of white lines. The skip processing means that the rendering processing of a line that satisfies a specific condition (here, a white line) is skipped. That is, some lines are omitted from the raster image data output from the RIP processing unit 102. Originally, the number of lines constituting the image data for one page is L, and if white processing of the number of lines M is skipped, the number of lines of raster image data becomes LM. In addition, the RIP processing unit 102 generates skip information indicating the skipped line position. Note that a line means one row in the main scanning direction (horizontal direction) in an image for one page. For example, when the image data is composed of 256 pixels × 512 pixels, one line is 1 × 256 pixels. Details of processing in the RIP processing unit 102 will be described later.

CPU103は、画像処理部104における処理に必要なパラメータを設定する。また、後述する画像処理104に用いるフィルタのサイズに応じて最小白ライン数を生成し、スキップ抑制レジスタ110に格納する。上記最小白ライン数及びCPU103の詳細は後述する。   The CPU 103 sets parameters necessary for processing in the image processing unit 104. Further, the minimum number of white lines is generated according to the size of the filter used for image processing 104 described later, and stored in the skip suppression register 110. Details of the minimum number of white lines and the CPU 103 will be described later.

画像処理部104は、上記RIP処理部102で生成された画像データを入力し、フィルタ処理や変倍処理や色変換処理、ハーフトーン処理などの各種の画像処理を行う。特に本実施形態では、画像処理部104は第1フィルタ処理部106と第2フィルタ処理部107を有する。フィルタ処理とは、画像データが表す各画素に対して、注目画素の画素値と注目画素の周辺画素の画素値とに基づいて、注目画素の画素値を変換する処理である。複数の画素を参照して画素値を変換するためにフィルタを用いる。第1フィルタ処理部106は、図15(a)に示すような3×3のフィルタサイズのフィルタを用いてフィルタ処理をする。第2フィルタ処理部107は、図15(b)に示すような5×5のフィルタサイズを用いてフィルタ処理をする。フィルタ処理とは、注目画素の画素値を、注目画素および近傍画素それぞれに対応するフィルタ係数の積和演算により算出する処理である。従って、フィルタ処理後の注目画素の画素値は、フィルタサイズによって決まる近傍画素の画素値が参照された値が与えられる。   The image processing unit 104 receives the image data generated by the RIP processing unit 102 and performs various types of image processing such as filter processing, scaling processing, color conversion processing, and halftone processing. In particular, in the present embodiment, the image processing unit 104 includes a first filter processing unit 106 and a second filter processing unit 107. The filter processing is processing for converting the pixel value of the target pixel for each pixel represented by the image data based on the pixel value of the target pixel and the pixel values of the peripheral pixels of the target pixel. A filter is used to convert a pixel value with reference to a plurality of pixels. The first filter processing unit 106 performs filter processing using a filter having a 3 × 3 filter size as shown in FIG. The second filter processing unit 107 performs filter processing using a 5 × 5 filter size as shown in FIG. The filter process is a process of calculating the pixel value of the target pixel by a product-sum operation of filter coefficients corresponding to the target pixel and neighboring pixels. Accordingly, the pixel value of the target pixel after the filter processing is given a value that refers to the pixel value of the neighboring pixel determined by the filter size.

印刷部105は、CPU103から出力されたスキップ情報に基づいて、画像処理部104によって各種画像処理を実行された画像データに対して、スキップ処理された白ラインを復元する。そして、白ライン復元後の1ページ分の画像データを記録媒体上に印刷する。   Based on the skip information output from the CPU 103, the printing unit 105 restores the skipped white line for the image data that has been subjected to various types of image processing by the image processing unit 104. Then, the image data for one page after the white line restoration is printed on the recording medium.

(RIP処理部102の詳細な説明)
次にRIP処理部102の詳細について説明する。図2は、RIP処理部102の詳細な構成を示すブロック図である。オブジェクト分割部201は、PDL処理部101により生成される中間データ(PDL解析結果)を入力する。中間データは、複数のオブジェクト情報(色、座標等)を示す。オブジェクト分割部201は、画像のライン毎に複数のオブジェクト情報を分割し、出力する。
(Detailed description of the RIP processing unit 102)
Next, details of the RIP processing unit 102 will be described. FIG. 2 is a block diagram illustrating a detailed configuration of the RIP processing unit 102. The object dividing unit 201 inputs intermediate data (PDL analysis result) generated by the PDL processing unit 101. The intermediate data indicates a plurality of pieces of object information (color, coordinates, etc.). The object dividing unit 201 divides a plurality of object information for each line of the image and outputs the divided object information.

白ライン判定部202は、オブジェクト分割部201により生成されたオブジェクト情報に基づいて、判定対象とする1ライン(以後、注目ラインと呼ぶ)のオブジェクトが白ラインか否かを判定する。具体的な判定方法としては、注目ラインのオブジェクトにエッジが存在せず、且つ色が白の場合に、注目ラインは白ラインであると判定する。なお、判定方法の変形例として、他の公知技術を用いて判定しても良い。   Based on the object information generated by the object dividing unit 201, the white line determination unit 202 determines whether one line (hereinafter referred to as a target line) as a determination target is a white line. As a specific determination method, when there is no edge in the object of the target line and the color is white, it is determined that the target line is a white line. In addition, as a modified example of the determination method, the determination may be performed using another known technique.

白ラインカウンタ203は、上記白ライン判定部202において、注目ラインが白ラインと判定された場合にインクリメントされる。即ち、白ラインの連続数がカウントされる。一方、上記白ライン判定部202において、注目ラインが白ラインではないと判定された場合は、0に初期化する。   The white line counter 203 is incremented when the white line determination unit 202 determines that the target line is a white line. That is, the number of consecutive white lines is counted. On the other hand, if the white line determination unit 202 determines that the target line is not a white line, it is initialized to zero.

スキップ抑制レジスタ206は、CPU103により算出された最小白ライン数が格納されている。最小白ライン数とは、上記RIP処理部でスキップ処理する際、最低限残す必要のある白ライン数を示したものである。上記最小白ライン数は後述する比較部204及びスキップ処理部205で使用される。   The skip suppression register 206 stores the minimum number of white lines calculated by the CPU 103. The minimum number of white lines indicates the number of white lines that must be kept at a minimum when the RIP processing unit performs skip processing. The minimum number of white lines is used by the comparison unit 204 and the skip processing unit 205 described later.

比較部204は、白ラインカウンタ203の値と最小白ライン数とを比較する。比較した結果、最小白ライン数よりも白ラインカウンタ203の値が大きい場合、比較部204は、白ラインの連続数が最低限残す必要のあるライン数を超えたことを示すTRUEを出力する。一方、最小白ラインが色ラインカウンタ203の値以下の場合、比較部204は、白ラインの連続数が最低限残す必要のあるライン数を超えていない、または白ラインではないことを示すFALSEを出力する。   The comparison unit 204 compares the value of the white line counter 203 with the minimum number of white lines. As a result of the comparison, when the value of the white line counter 203 is larger than the minimum number of white lines, the comparison unit 204 outputs TRUE indicating that the number of continuous white lines exceeds the minimum number of lines that need to be left. On the other hand, when the minimum white line is equal to or smaller than the value of the color line counter 203, the comparison unit 204 outputs FALSE indicating that the number of continuous white lines does not exceed the minimum number of lines that need to be left or is not a white line. Output.

レンダリング処理部205は、オブジェクト分割部201で生成された注目ラインのオブジェクト情報を入力する。そして、上記比較部204での比較結果に応じて、ラインごとにスキップ処理または画像データ生成処理の何れかを実行する。比較部204からTRUEが出力されている(つまり注目ラインが白ラインかつ最小白ライン数より大きい)場合、レンダリング処理部205は注目ラインの画像データを生成せず、スキップする。比較部205からFALSEが出力されている(つまり注目ラインが白ラインでないか、または白ラインかつ最小白ライン数以下)場合、レンダリング処理部205は注目ラインの画像データを生成し、メモリ(不図示)に格納する。   The rendering processing unit 205 inputs the object information of the target line generated by the object dividing unit 201. Then, either the skip process or the image data generation process is executed for each line according to the comparison result in the comparison unit 204. When TRUE is output from the comparison unit 204 (that is, the target line is a white line and greater than the minimum number of white lines), the rendering processing unit 205 skips without generating image data of the target line. If FALSE is output from the comparison unit 205 (that is, the target line is not a white line, or a white line and the number of white lines is equal to or less than the minimum number of white lines), the rendering processing unit 205 generates image data of the target line and stores it in a memory (not shown). ).

またレンダリング処理部205は、注目ラインに対して、スキップしたかどうかを示すスキップ情報を生成する。レンダリング処理部205は注目ラインの画像データ生成をスキップした場合(比較部204の出力がTRUE)は、スキップ情報を1とする。スキップせずに画像データを生成した場合(比較部204の出力がFALSE)は、スキップ情報を0とする。つまりスキップ情報は、1ページ分の画像データのライン数Hに相当する分、0または1の何れかの情報を示している。なお、スキップ情報は図示しないメモリに格納される。   In addition, the rendering processing unit 205 generates skip information indicating whether or not the target line is skipped. When the rendering processing unit 205 skips generation of the image data of the target line (the output of the comparison unit 204 is TRUE), the skip information is set to 1. When the image data is generated without skipping (the output of the comparison unit 204 is FALSE), the skip information is set to 0. That is, the skip information indicates information of 0 or 1 corresponding to the number of lines H of image data for one page. Note that the skip information is stored in a memory (not shown).

(フィルタサイズに応じた最小白ライン情報の生成方法について)
次に、CPU103が生成する最小白ライン情報について説明する。前述の通りスキップ処理とは、レンダリング部205が画像データを生成する際に、白ラインをスキップ(省略)する手法である。図3に示す画像のPDLデータが入力されたとする。従来、図5に示すように、図3に示す画像において白ラインとして検出された全てのラインをスキップ(省略)してレンダリング処理する方法があった。図5のレンダリング結果からわかる通り、白領域A〜Cがスキップされ、オブジェクト領域Aにおけるオブジェクトとオブジェクト領域Bにおけるオブジェクトが隣接している。図5に示す画像データに対してフィルタ処理すると、白スキップ領域で隔てられた2つのオブジェクト領域をまたいでフィルタ処理を施すことになる。そのためオブジェクト領域Aの三角オブジェクトとオブジェクト領域Bの四角オブジェクトとの画素値が混ざることにより、画質劣化を引き起こしてしまう。
(About the generation method of the minimum white line information according to the filter size)
Next, the minimum white line information generated by the CPU 103 will be described. As described above, the skip process is a technique of skipping (omitting) a white line when the rendering unit 205 generates image data. Assume that the PDL data of the image shown in FIG. 3 is input. Conventionally, as shown in FIG. 5, there is a method of performing rendering processing by skipping (omitting) all the lines detected as white lines in the image shown in FIG. As can be seen from the rendering result of FIG. 5, the white areas A to C are skipped, and the object in the object area A and the object in the object area B are adjacent to each other. When the image data shown in FIG. 5 is filtered, the filtering process is performed across two object areas separated by the white skip area. For this reason, the pixel values of the triangular object in the object area A and the square object in the object area B are mixed to cause image quality degradation.

そこで本実施形態では、RIP処理部102においてフィルタ処理に応じてスキップ処理を施す。CPU103はフィルタサイズに応じて最小白ライン数を算出し、RIP102は最小白ライン数を超える白ラインのみスキップ処理をする。ただし、最小白ライン数は、画像処理部104における最大フィルタサイズから算出されることが重要である。その理由を以下に示す。1例として画像処理部104に含まれるフィルタ処理のうち、最大フィルタサイズは5(5×5フィルタ)であるとする。図6は、最小白ライン数2に応じて、スキップ処理された場合の画像データに対するフィルタ処理を模式的に示す図である。図15(a)に示すような3×3のフィルタサイズによるフィルタ処理をする場合には、白ライン数が3以上あれば、オブジェクト領域間で異なるオブジェクトの画素値が混ざり合うことはない。しかしながら図6に示すように、オブジェクト領域Aとオブジェクト領域Bの間に白領域が2ライン存在していても、5×5のフィルタはオブジェクトをまたいでしまう。   Therefore, in the present embodiment, the RIP processing unit 102 performs skip processing according to the filter processing. The CPU 103 calculates the minimum number of white lines according to the filter size, and the RIP 102 skips only white lines that exceed the minimum number of white lines. However, it is important that the minimum number of white lines is calculated from the maximum filter size in the image processing unit 104. The reason is as follows. As an example, it is assumed that the maximum filter size among the filter processes included in the image processing unit 104 is 5 (5 × 5 filters). FIG. 6 is a diagram schematically illustrating filter processing for image data when skip processing is performed in accordance with the minimum number of white lines 2. In the case of performing a filtering process with a 3 × 3 filter size as shown in FIG. 15A, if the number of white lines is three or more, pixel values of different objects between object areas are not mixed. However, as shown in FIG. 6, even if two white areas exist between the object area A and the object area B, the 5 × 5 filter straddles the object.

図7は、フィルタサイズ5に対応する最小白ライン数4(5−1)に応じてスキップ処理された画像データに対するフィルタ処理を模式的に示す図である。最小白ライン数が4なので、白領域Bの白ラインは4ライン残して、スキップ処理されている。この場合、図7に示すようにオブジェクト領域の境界に位置する画素にフィルタ処理をしても、三角オブジェクトと四角オブジェクトの画素値が混ざることはない。   FIG. 7 is a diagram schematically illustrating filter processing on image data skipped according to the minimum number of white lines 4 (5-1) corresponding to the filter size 5. Since the minimum number of white lines is 4, four white lines in the white area B are left and skip processing is performed. In this case, as shown in FIG. 7, even if the pixel processing is performed on the pixel located at the boundary of the object region, the pixel values of the triangular object and the square object are not mixed.

このように、画像処理部104に含まれるフィルタ処理が複数ある場合、最大フィルタサイズを用いて最小白ライン数を算出する。これにより、白ラインによって隔てられたオブジェクト領域の境界において、白ラインをスキップした結果異なるオブジェクトの画素値が混ざり合ってしまうのを防ぐ。   Thus, when there are a plurality of filter processes included in the image processing unit 104, the minimum number of white lines is calculated using the maximum filter size. This prevents pixel values of different objects from being mixed as a result of skipping the white line at the boundary of the object area separated by the white line.

(全体動作)
次に図11に示すフローチャートを用いて、第1実施形態に係る画像処理装置の動作を説明する。
(Overall operation)
Next, the operation of the image processing apparatus according to the first embodiment will be described using the flowchart shown in FIG.

まずステップS1101においてCPU103は、画像処理部104に含まれるフィルタ処理に用いるフィルタサイズを取得し、最大フィルタサイズを特定する。本実施形態における画像処理部104では、5×5フィルタ処理部107に対応する最大フィルタサイズ5を取得する。   First, in step S1101, the CPU 103 acquires the filter size used for the filter processing included in the image processing unit 104, and specifies the maximum filter size. In the image processing unit 104 in the present embodiment, the maximum filter size 5 corresponding to the 5 × 5 filter processing unit 107 is acquired.

次にステップS1102においてCPU103は、式(1)に従って最小白ライン数を算出する。例えば、最大フィルタサイズが5である場合、最小白ライン数は4(5−1)となる。
MIN_LINE = F_SIZE − 1 ・・・(1)
MIN_LINE:最小白ライン数
F_SIZE : 最大フィルタサイズ
次にステップS1103においてCPU103は、RIP処理部102におけるスキップ抑制レジスタ110に最小白ライン数4を設定する。以上がCPU103による初期設定の説明である。
In step S1102, the CPU 103 calculates the minimum number of white lines according to the equation (1). For example, when the maximum filter size is 5, the minimum number of white lines is 4 (5-1).
MIN_LINE = F_SIZE-1 (1)
MIN_LINE: Minimum number of white lines F_SIZE: Maximum filter size Next, in step S1103, the CPU 103 sets the minimum number of white lines to 4 in the skip suppression register 110 in the RIP processing unit. The above is the description of the initial setting by the CPU 103.

次に、PDL処理部101からRIP処理部102までの動作を説明する。S1104においてPDL処理部101は、図示しないPC等からの印刷ジョブに含まれているPDLデータを解析し中間データを生成する。ステップS1105においてRIP処理部102は、中間データに基づいてラインごとにラスタ形式の画像データを生成する。注目ラインが白ラインかつ白ラインの連続数が最小白ライン数より大きいときには、注目ラインの画像データの生成はスキップする。それ以外、注目ラインが白ラインではない、または白ラインかつ白ラインの連続数が最小白ライン数以下の場合は、注目ラインの画像データを生成する。   Next, operations from the PDL processing unit 101 to the RIP processing unit 102 will be described. In step S1104, the PDL processing unit 101 analyzes PDL data included in a print job from a PC (not shown) and generates intermediate data. In step S1105, the RIP processing unit 102 generates raster format image data for each line based on the intermediate data. When the line of interest is a white line and the number of consecutive white lines is greater than the minimum number of white lines, the generation of the image data of the line of interest is skipped. Otherwise, if the target line is not a white line, or if the number of white lines and the number of consecutive white lines is equal to or less than the minimum number of white lines, image data of the target line is generated.

またステップS1106においてRIP処理部102は、スキップ処理に応じてスキップ情報を生成する。スキップ情報はライン毎の1ビットの2値で表される。図12に示すスキップ情報の場合、上から3ラインと下から2ラインは0なので、スキップ処理されていないラインを示す。それ以外の3ラインは1なので、スキップ処理されているラインを示す。以上がPDL処理部101からRIP処理部102までの動作の説明である。   In step S1106, the RIP processing unit 102 generates skip information according to the skip processing. The skip information is represented by a binary value of 1 bit for each line. In the case of the skip information shown in FIG. 12, since the 3 lines from the top and the 2 lines from the bottom are 0, this indicates a line that has not been skipped. Since the other three lines are 1, this indicates a line that has been skipped. The above is the description of the operation from the PDL processing unit 101 to the RIP processing unit 102.

ここで本実施形態によるレンダリング処理の経過について、図3及び図4を用いて説明する。PDL処理部101から入力されるオブジェクト情報は、図3に示す18ラインの白地のオブジェクトと三角オブジェクト(斜線部分)及び四角オブジェクト(縦線部分)により構成されるものとする。また、最小白ライン数は2とする。   Here, the progress of the rendering process according to the present embodiment will be described with reference to FIGS. The object information input from the PDL processing unit 101 is assumed to be composed of the 18-line white background object, the triangular object (shaded portion), and the square object (vertical line portion) shown in FIG. The minimum number of white lines is 2.

この条件下においてスキップ処理されなかった場合、レンダリング後のラスタ画像データは、そのまま図3のようになる。白ラインからなる白領域A〜Cと三角オブジェクトが存在するオブジェクト領域A、及び四角オブジェクトが存在するオブジェクト領域Bで構成され、18ラインの画像データとなる。   When skip processing is not performed under this condition, the raster image data after rendering is as shown in FIG. It is composed of white areas A to C made up of white lines, an object area A in which a triangular object exists, and an object area B in which a square object exists, and becomes 18-line image data.

次に、図4(a)〜(f)を用いて、同条件下にて、本実施形態におけるRIP処理部102が処理した結果について説明する。まず、RIP処理部102は、図3に示す白領域A(ライン番号0)を処理する。連続する白ライン数は1なので、白ラインカウンタ203は1を示す。この場合、白ラインカウンタ203は最小白ライン数2以下なので、ライン番号0のラインはスキップ処理されない。即ち、RIP処理部102はそのままライン番号0の画像データを生成する。また、該当ラインがスキップ処理されていないことを示すために、スキップ情報に0が1ライン分追加される。これにより図4(a)に示す画像データがメモリに格納される。   Next, the results of processing performed by the RIP processing unit 102 in the present embodiment under the same conditions will be described with reference to FIGS. First, the RIP processing unit 102 processes the white area A (line number 0) shown in FIG. Since the number of continuous white lines is 1, the white line counter 203 indicates 1. In this case, since the white line counter 203 has a minimum number of white lines of 2 or less, the line number 0 is not skipped. That is, the RIP processing unit 102 generates image data with line number 0 as it is. Also, 0 is added to the skip information for one line to indicate that the corresponding line has not been skipped. As a result, the image data shown in FIG. 4A is stored in the memory.

次に、図3に示すオブジェクト領域A(ライン番号1〜5)を処理する。オブジェクト領域Aに白ラインは存在しないので、白ラインカウンタ203は0を示す。この場合、白ラインカウンタ203は最小白ライン数2以下なのでスキップ処理されない。即ち、RIP処理部102はライン番号1〜5の画像データを生成する。また、該当ラインがスキップ処理されていないことを示すために、スキップ情報に0が5ライン分追加される。その結果、図4(b)に示す画像データがメモリに格納され、スキップ情報が更新される。   Next, the object area A (line numbers 1 to 5) shown in FIG. 3 is processed. Since no white line exists in the object area A, the white line counter 203 indicates 0. In this case, the white line counter 203 is not skipped because the minimum number of white lines is 2 or less. That is, the RIP processing unit 102 generates image data with line numbers 1 to 5. Further, in order to indicate that the corresponding line is not skipped, 0 is added to the skip information for five lines. As a result, the image data shown in FIG. 4B is stored in the memory, and the skip information is updated.

次に、図3に示す白領域B(ライン番号6〜10)を処理する。まず、ライン番号6、7の処理について説明する。ライン番号6、7を処理する際はそれぞれ、連続する白ラインは1、2なので、白ラインカウンタ203はライン番号6を処理するときには1、ライン番号7を処理するときには2を示す。この場合、白ラインカウンタ203は最小白ライン数2以下なので、ライン番号6、7はいずれもスキップ処理せず、RIP処理部192はライン番号6、7の画像データを生成する。また、ライン番号6、7がスキップ処理されていないことを示すために、スキップ情報に0が2ライン分追加される。ライン番号8〜10の処理について説明する。連続する白ライン数は、ライン番号7から継続すると3〜5なので、白ラインカウンタ203は、ライン番号8を処理するときには3、ライン番号9を処理するときには4、ライン番号10を処理するときには5を示す。この場合、白ラインカウンタ203は最小白ライン数2よりも大きいため、ライン番号8〜10を注目ラインとするとスキップ処理される。即ち、RIP処理部102は、ライン番号8、9、10の画像データを生成しない。また、ライン番号8、9、10のラインがスキップ処理されていることを示すために、スキップ情報に1が3ライン分追加される。その結果、図4(c)に示す画像データがメモリに格納され、スキップ情報が更新される。   Next, the white area B (line numbers 6 to 10) shown in FIG. 3 is processed. First, the processing of line numbers 6 and 7 will be described. When the line numbers 6 and 7 are processed, the continuous white lines are 1 and 2, respectively. Therefore, the white line counter 203 indicates 1 when the line number 6 is processed and 2 when the line number 7 is processed. In this case, since the white line counter 203 is equal to or smaller than the minimum number of white lines 2, neither the line numbers 6 and 7 are skipped, and the RIP processing unit 192 generates image data of the line numbers 6 and 7. Further, in order to indicate that the line numbers 6 and 7 are not skipped, 0 is added to the skip information for two lines. Processing for line numbers 8 to 10 will be described. Since the number of continuous white lines is 3 to 5 when continuing from line number 7, white line counter 203 is 3 when processing line number 8, 4 when processing line number 9, and 5 when processing line number 10. Indicates. In this case, since the white line counter 203 is larger than the minimum number of white lines 2, skip processing is performed when line numbers 8 to 10 are the target lines. That is, the RIP processing unit 102 does not generate image data of line numbers 8, 9, and 10. Also, 1 is added to the skip information for three lines to indicate that the lines with the line numbers 8, 9, and 10 are skipped. As a result, the image data shown in FIG. 4C is stored in the memory, and the skip information is updated.

次に、図3に示すオブジェクト領域B(ライン番号11〜13)を処理する。オブジェクト領域Bには白ラインは存在しないので、白ラインカウンタ203は0を示す。この場合、白ラインカウンタ203は最小白ライン数2以下なので、ライン番号11〜13はスキップ処理されない。即ち、RIP処理部102は、図3においてライン番号11、12、13の画像データを形成し、ラスタ画像データにおいてライン番号8、9、10の画像データをメモリに格納する。また、ライン番号11〜13がスキップ処理されていないことを示すために、スキップ情報に0が3ライン分追加される。その結果、図4(d)に示す画像データおよびスキップ情報が得られる。   Next, the object area B (line numbers 11 to 13) shown in FIG. 3 is processed. Since no white line exists in the object area B, the white line counter 203 indicates 0. In this case, since the white line counter 203 has a minimum number of white lines of 2 or less, the line numbers 11 to 13 are not skipped. That is, the RIP processing unit 102 forms the image data of line numbers 11, 12, and 13 in FIG. 3, and stores the image data of line numbers 8, 9, and 10 in the memory in the raster image data. Also, in order to indicate that the line numbers 11 to 13 are not skipped, three lines of 0 are added to the skip information. As a result, the image data and skip information shown in FIG.

次に、図3に示す白領域C(ライン番号14〜17)を処理する。まず、ライン番号14、15の処理について説明する。ライン番号14、15を処理する際それぞれ、連続する白ライン数は1、2なので、白ラインカウンタ203はライン番号14を処理するときには1、ライン番号15を処理するときには2を示す。この場合、白ラインカウンタ203は最小白ライン数が2以下なので、ライン番号14、15はスキップ処理されない。即ちRIP102は、ライン番号14、15の画像データを形成し、ラスタ画像データにおけるライン番号11、12の画像データをメモリに格納する。また、ライン番号14、15のラインがスキップ処理されていないことを示すために、スキップ情報に2ライン分0が追加される。次に、図3においてライン番号16、17の処理について説明する。ライン番号16、17を処理する際の連続する白ライン数はそれぞれ、ライン番号12から継続すると3、4である。なので、白ラインカウンタ203は、ライン番号16を処理する際には3、ライン番号17を処理する際には4を示す。この場合、白ンカウンタ203は最小白ライン数2よりも大きいので、ライン番号16および17はスキップ処理される。即ち、RIP処理部102は、ライン番号16、17の画像データを形成しない。また、該当ラインがスキップ処理されていることを示すために、スキップ情報に2ライン分1が追加される。その結果、図4に示すラスタ画像データおよびスキップ情報が得られる。   Next, the white area C (line numbers 14 to 17) shown in FIG. 3 is processed. First, the processing of line numbers 14 and 15 will be described. When the line numbers 14 and 15 are processed, the number of continuous white lines is 1, 2, respectively. Therefore, the white line counter 203 indicates 1 when the line number 14 is processed and 2 when the line number 15 is processed. In this case, since the white line counter 203 has a minimum number of white lines of 2 or less, the line numbers 14 and 15 are not skipped. That is, the RIP 102 forms image data with line numbers 14 and 15, and stores the image data with line numbers 11 and 12 in the raster image data in the memory. Further, 0 is added to the skip information for two lines to indicate that the lines with the line numbers 14 and 15 are not skipped. Next, processing of line numbers 16 and 17 in FIG. 3 will be described. When the line numbers 16 and 17 are processed, the number of continuous white lines is 3 and 4 when continuing from the line number 12, respectively. Therefore, the white line counter 203 indicates 3 when processing the line number 16 and 4 when processing the line number 17. In this case, since the white counter 203 is larger than the minimum number of white lines 2, line numbers 16 and 17 are skipped. That is, the RIP processing unit 102 does not form image data with line numbers 16 and 17. Further, 1 for two lines is added to the skip information to indicate that the corresponding line is skipped. As a result, raster image data and skip information shown in FIG. 4 are obtained.

以上に示したようにRIP処理部102で処理した場合の出力画像データは最終的に図4(f)のように13ラインの画像データとなる。即ち、18ライン中5ラインがスキップ処理された画像データとして出力される。   As described above, the output image data when processed by the RIP processing unit 102 is finally 13-line image data as shown in FIG. That is, 5 lines out of 18 lines are output as skipped image data.

次に図11に戻り、画像処理部104から印刷部105までの動作を説明する。ステップS1108において画像処理部104は、スキップ処理を含むレンダリング処理後のラスタ画像データに対して画像処理を実行する。なお画像処理104では、図1には説明簡略化のため第1フィルタ処理部106と第2フィルタ処理部107のみ記載しているが、それ以外の変倍処理や色変換処理やハーフトーン処理なども行われる。なお、変倍処理がある場合には、スキップ情報も変倍される。そしてステップS1109において印刷部105は、画像処理部104で生成された画像データを取得し、RIP処理部102から取得するスキップ情報に基づいて、スキップ処理された白ラインを復元する。印刷部105は復元した画像データに基づいて、記録媒体上に画像を印刷する。以上のように本実施形態によれば、画像処理部104におけるフィルタ処理に用いられるフィルタサイズに応じて、レンダリングにおけるスキップ処理の白ライン量を調節する。これによって、スキップ処理の結果生じるフィルタ処理による画像劣化を抑制することができる。   Next, returning to FIG. 11, the operation from the image processing unit 104 to the printing unit 105 will be described. In step S1108, the image processing unit 104 performs image processing on the raster image data after rendering processing including skip processing. In the image processing 104, only the first filter processing unit 106 and the second filter processing unit 107 are shown in FIG. 1 for simplicity of explanation, but other scaling processing, color conversion processing, halftone processing, etc. Is also done. If there is a scaling process, the skip information is also scaled. In step S <b> 1109, the printing unit 105 acquires the image data generated by the image processing unit 104, and restores the skipped white line based on the skip information acquired from the RIP processing unit 102. The printing unit 105 prints an image on a recording medium based on the restored image data. As described above, according to the present embodiment, the white line amount of skip processing in rendering is adjusted according to the filter size used for the filter processing in the image processing unit 104. As a result, it is possible to suppress image degradation caused by the filter processing resulting from the skip processing.

なお、本実施形態のスキップ情報は1または0が連続したデータである。そのため、ランレングス圧縮などの圧縮方法にてデータを圧縮することで、データ量の大幅な削減が見込めることは言うまでもない。また、本実施形態では、白ラインをスキップ処理対象として説明したが、単一の画素値(例えば、黒)からなるラインをスキップ処理してもよい。あるいは、画素値が所定値(例えば、2)以下を白画素と見なして白ラインを設定することで、ノイズを含む画素からなる白ラインを検出することもできる。   Note that the skip information in the present embodiment is data in which 1 or 0 continues. Therefore, it goes without saying that a significant reduction in the amount of data can be expected by compressing the data by a compression method such as run length compression. Further, in the present embodiment, the white line has been described as a skip processing target, but a line composed of a single pixel value (for example, black) may be skipped. Alternatively, it is possible to detect a white line including pixels including noise by setting a white line by regarding a pixel value of a predetermined value (for example, 2) or less as a white pixel.

<第2実施形態>
図13は本発明の第2実施形態に係る画像処理装置の全体構成を示すブロック図である。第1実施形態では、CPU103が画像処理部104における各パラメータを直接設定した。第2実施形態では、画像処理部1304内に制御部1309を備える場合を例に説明する。また、第2実施形態におけるCPU1303は、制御部1309を経由して、画像処理部1304の画像処理サブモジュール1308(図13では、第1フィルタ処理部1306及び第2フィルタ処理部1307)に対して、スルー設定可能な構成をもつ。スルー設定された画像処理サブモジュール1308内の処理部、は何も処理せず入力をそのまま出力する。このようにして、ユースケース(モード)によって、画像処理部104で使用する画像処理サブモジュール1308を選択することができる。例えばモードAにおいては、第1フィルタ処理部1306および第2フィルタ処理部1307いずれもスルー設定せず、モードBにおいて第2フィルタ処理部1307をスルー設定する。つまりモードAでは、3×3のフィルタサイズのフィルタを用いた第1フィルタ処理1306のみがラスタ画像データに対して実行される。なお、図13における符号1301〜1302、符号1305〜1307それぞれは、図1における符号101〜102、符号105〜107と構成が同じであるため説明を省略する。
Second Embodiment
FIG. 13 is a block diagram showing the overall configuration of an image processing apparatus according to the second embodiment of the present invention. In the first embodiment, the CPU 103 directly sets each parameter in the image processing unit 104. In the second embodiment, an example in which the control unit 1309 is provided in the image processing unit 1304 will be described. In addition, the CPU 1303 in the second embodiment applies to the image processing submodule 1308 of the image processing unit 1304 (in FIG. 13, the first filter processing unit 1306 and the second filter processing unit 1307) via the control unit 1309. , Has a configuration that can be set through. The processing unit in the image processing submodule 1308 set to through does not perform any processing and outputs the input as it is. In this way, the image processing submodule 1308 used in the image processing unit 104 can be selected according to the use case (mode). For example, in mode A, neither the first filter processing unit 1306 nor the second filter processing unit 1307 is set to through, and in mode B, the second filter processing unit 1307 is set to through. That is, in mode A, only the first filter processing 1306 using a filter of 3 × 3 filter size is performed on the raster image data. Note that reference numerals 1301 to 1302 and reference numerals 1305 to 1307 in FIG. 13 have the same configurations as the reference numerals 101 to 102 and 105 to 107 in FIG.

第1実施形態においてCPU103は、第1フィルタ処理106および第2フィルタ処理107における回路構成のうち、最大フィルタサイズを取得した。これは、ユースケースが変わったとしても、RIP処理部102へ入力される最小白ライン数が変わらないため、RIP処理部102と画像処理部104の同期は簡単になる。しかしながら、ユースケースによっては、第1実施形態では冗長な処理がなされる場合がある。例えば、モードAにおいて第1フィルタ処理部106および第2フィルタ処理部107の両方を使用し、モードBにおいては、第1フィルタ処理部106のみ使用する。この場合、第1実施形態では、常に最小白ライン数は、第2フィルタ処理107に合わせた4に設定されるが、最小白ライン数4はモードAの最適値であって、モードBの最適値ではない。そこで第2実施形態では、モードに応じてより適応的に最大フィルタサイズに応じた最小白ライン数を設定可能とする方法について説明する。   In the first embodiment, the CPU 103 acquires the maximum filter size among the circuit configurations in the first filter processing 106 and the second filter processing 107. This is because the minimum number of white lines input to the RIP processing unit 102 does not change even if the use case changes, and thus the synchronization between the RIP processing unit 102 and the image processing unit 104 is simplified. However, depending on the use case, redundant processing may be performed in the first embodiment. For example, both the first filter processing unit 106 and the second filter processing unit 107 are used in mode A, and only the first filter processing unit 106 is used in mode B. In this case, in the first embodiment, the minimum number of white lines is always set to 4 in accordance with the second filter processing 107, but the minimum number of white lines 4 is the optimum value for mode A and the optimum for mode B. Not a value. Therefore, in the second embodiment, a method for enabling the minimum number of white lines corresponding to the maximum filter size to be set more adaptively according to the mode will be described.

(最小白ライン数の算出方法について)
CPU1303における最小白ライン数の算出方法を以下に示す。ただし、第1実施形態と異なる点のみ説明する。まずCPU1303は、画像処理部1304におけるユースケースを取得する。取得したユースケースにおいて使用される画像処理サブモジュール1308の中で最大フィルタサイズを取得する。例えば、画像処理サブモジュール1308のうちスルー設定されない処理部だけをピックアップし、その中で最大のフィルタサイズを取得すればよい。次に、CPU1303は、式(1)に従って最小白ライン数を算出する。以後の動作は、第1実施形態で説明したCPU103の動作と同様なため割愛する。
(How to calculate the minimum number of white lines)
A method for calculating the minimum number of white lines in the CPU 1303 will be described below. However, only differences from the first embodiment will be described. First, the CPU 1303 acquires a use case in the image processing unit 1304. The maximum filter size is acquired from the image processing submodule 1308 used in the acquired use case. For example, only the processing unit that is not set to the through setting in the image processing submodule 1308 may be picked up and the maximum filter size may be acquired. Next, the CPU 1303 calculates the minimum number of white lines according to the equation (1). The subsequent operation is the same as the operation of the CPU 103 described in the first embodiment, and is omitted.

(RIP処理部1302と画像処理部1304の同期)
RIP処理部1302と画像処理部1304において、同じ画像に対して処理を実行するタイミングが異なる。そのため、RIP処理部1302に与える最小白ライン数の切り替えを効率よくするためには、その切り替えタイミングに注意が必要である。例えば図8(a)は、画像処理部1304の処理時におけるモードBからモードAに切り替わるタイミングと同じタイミングで最小白ライン数の値を切り替えた場合を説明する図である。このような場合、RIP処理部1302に設定される最小白ライン数の値は、モードAに対応する印刷指示が入力してから、所定時間後に切り替わる。そのため、図8(a)に示すNG期間において、モードAに対応する画像データに対して、モードBに対応する最小白ライン数に基づいてスキップ処理がなされてしまう。これにより、冗長なデータを処理する場合だけでなく、画質劣化を引き起こす場合がある。
(Synchronization of RIP processing unit 1302 and image processing unit 1304)
The RIP processing unit 1302 and the image processing unit 1304 have different timings for executing processing on the same image. For this reason, in order to efficiently switch the minimum number of white lines given to the RIP processing unit 1302, it is necessary to pay attention to the switching timing. For example, FIG. 8A is a diagram illustrating a case where the value of the minimum number of white lines is switched at the same timing as the timing of switching from mode B to mode A during the processing of the image processing unit 1304. In such a case, the value of the minimum number of white lines set in the RIP processing unit 1302 is switched after a predetermined time after the print instruction corresponding to mode A is input. Therefore, during the NG period shown in FIG. 8A, skip processing is performed on the image data corresponding to mode A based on the minimum number of white lines corresponding to mode B. As a result, the image quality may be deteriorated as well as processing redundant data.

上記を回避するためには、例えば、図8(b)に示すように、RIP処理部1302においてモードBに対応する処理からモードAに対応する処理に切り替わるタイミングにおいて、最小白ライン数の値を切り替えた方が良い。これによって、モードAに対応する画像データにて、モードBに対応するスキップ処理がなされるといったことが起こるのを防ぐ。   In order to avoid the above, for example, as shown in FIG. 8B, the value of the minimum number of white lines is set at the timing when the RIP processing unit 1302 switches from the process corresponding to mode B to the process corresponding to mode A. It is better to switch. This prevents the skip processing corresponding to mode B from being performed on the image data corresponding to mode A.

以上のように本実施形態によれば、ユースケース(モード)によって、使用されるフィルタサイズの最大値が変わる場合にも対応できる。即ち、ユースケースに伴う画像処理のフィルタサイズに応じて、スキップ処理時の白ライン量を調節する。これにより、スキップ処理による画像劣化を抑制することができる。   As described above, according to the present embodiment, it is possible to cope with the case where the maximum value of the filter size to be used varies depending on the use case (mode). In other words, the amount of white lines during skip processing is adjusted according to the filter size of image processing associated with the use case. Thereby, image degradation due to skip processing can be suppressed.

<第3実施形態>
第1実施形態では、PDL処理部101及びRIP処理部102を実装していたが、最小白ライン数に応じて、スキップ処理時の白ライン量を調節し、且つスキップ情報を出力する条件を伴っていることが重要である。即ち、PDL処理部101及びRIP処理部102の代わりに上記条件を満たしたスキャナ系画像処理(スキャナで取り込んだデータを画像処理する)であっても同様の実施形態を実現できる。その構成例を以下に示す。
<Third Embodiment>
In the first embodiment, the PDL processing unit 101 and the RIP processing unit 102 are mounted. However, according to the minimum number of white lines, there is a condition for adjusting the amount of white lines during skip processing and outputting skip information. It is important that That is, the same embodiment can be realized even if the scanner system image processing (image processing is performed on the data captured by the scanner) satisfying the above conditions instead of the PDL processing unit 101 and the RIP processing unit 102. An example of the configuration is shown below.

(全体構成)
図9は、第3実施形態に適用可能な画像処理装置の全体構成を示すブロック図である。第1実施形態の全体構成を示す図1と異なる構成は、画像取得部901とスキャナ画像処理部902、CPU903である。それ以外の符号904〜907は、図1に示す符号104〜107と同じ構成であるため、説明を省略する。
(overall structure)
FIG. 9 is a block diagram showing an overall configuration of an image processing apparatus applicable to the third embodiment. A configuration different from FIG. 1 showing the overall configuration of the first embodiment is an image acquisition unit 901, a scanner image processing unit 902, and a CPU 903. The other reference numerals 904 to 907 are the same as the reference numerals 104 to 107 shown in FIG.

画像取得部901は、図示しないラインイメージセンサを用いて、原稿を読み取った画像データを取得する。スキャナ画像処理部902は、画像取得部901が取得した読取画像データに対し、補正、加工、編集を行う。例えば、シェーディング補正や文字加工、ノイズ除去などである。また、上記に加え、スキャナ画像処理902はCPU903から出力された最小白ライン数に基づいて、スキップ処理を行う。またスキャナ画像処理部902は、スキップ処理されたライン位置を示すスキップ情報を生成する。スキャナ画像処理部902の詳細は後述する。   The image acquisition unit 901 acquires image data obtained by reading a document using a line image sensor (not shown). A scanner image processing unit 902 corrects, processes, and edits the read image data acquired by the image acquisition unit 901. For example, shading correction, character processing, noise removal, and the like. In addition to the above, the scanner image processing 902 performs skip processing based on the minimum number of white lines output from the CPU 903. Also, the scanner image processing unit 902 generates skip information indicating the skipped line position. Details of the scanner image processing unit 902 will be described later.

CPU903は、第1実施形態のCPU103と同様の動作を行う。ただし、スキャナ画像処理部902にフィルタ処理が含まれる場合があるので、プリント画像処理904とスキャナ画像処理902の中で最大のフィルタサイズにて最小白ライン数を生成する必要がある。   The CPU 903 performs the same operation as the CPU 103 of the first embodiment. However, since the scanner image processing unit 902 may include filter processing, it is necessary to generate the minimum number of white lines with the maximum filter size in the print image processing 904 and the scanner image processing 902.

(スキャナ画像処理部902)
次に図10のブロック図を用いて、スキャナ画像処理部902の詳細について説明する。シェーディング補正部1001は、画像取得部901が取得した画像データの主走査方向のムラをフラットに補正する。
(Scanner image processing unit 902)
Next, details of the scanner image processing unit 902 will be described with reference to the block diagram of FIG. A shading correction unit 1001 flatly corrects unevenness in the main scanning direction of image data acquired by the image acquisition unit 901.

スキップ処理部1002は、シェーディング補正部1001で補正された画像データの白ラインに対して、その連続白ライン数がCPU903により算出された最小白ライン数を超えないように白ラインを削除する。また、それに応じてスキップ情報を生成する。スキップ情報は、第1実施形態で説明したスキップ情報と同様である。   The skip processing unit 1002 deletes white lines so that the number of continuous white lines does not exceed the minimum number of white lines calculated by the CPU 903 with respect to the white lines of the image data corrected by the shading correction unit 1001. In addition, skip information is generated accordingly. The skip information is the same as the skip information described in the first embodiment.

画像処理部1003は、図示しない画像処理サブモジュール群を備え、上記スキップ処理部1002が生成したスキップ処理後の画像データに対し、文字加工、ノイズ除去などの画像処理を施す。   The image processing unit 1003 includes an image processing submodule group (not shown), and performs image processing such as character processing and noise removal on the image data after skip processing generated by the skip processing unit 1002.

以上のように本実施形態によれば、画像処理部904の前段処理は最小白ライン数に応じて、スキップ処理時の白ライン量を調節し、且つスキップ情報を出力する条件を伴っていればよい。即ち、本実施形態にようにスキャナ系画像処理がスキップ処理時の白ライン量を調節することによって、スキップ処理による画像劣化を抑制する画像処理装置を提供することができる。   As described above, according to the present embodiment, the pre-processing of the image processing unit 904 adjusts the amount of white lines during skip processing according to the minimum number of white lines, and is accompanied by a condition for outputting skip information. Good. That is, it is possible to provide an image processing apparatus that suppresses image degradation due to skip processing by adjusting the amount of white lines during skip processing in scanner image processing as in this embodiment.

<第4実施形態>
図14は、第4実施形態に適用可能な画像処理装置の全体構成を示すブロック図である。
<Fourth embodiment>
FIG. 14 is a block diagram showing an overall configuration of an image processing apparatus applicable to the fourth embodiment.

第1実施形態の全体構成を示す図1と異なる点は、画像処理1404の内部に最小白ライン数算出部1411及びスキップ情報変換部1412が実装されている点である。また、最小白ライン数算出部1411から直接スキップ抑制レジスタ1410に書き込まれる点が異なる。また、RIP処理1402で生成されたスキップ情報がスキップ情報変換部1412に入力されている点が異なる。それ以外の符号1401〜1410は、図1に示す符号101〜110と構成が同じであるため、説明を省略する。   A difference from FIG. 1 showing the overall configuration of the first embodiment is that a minimum white line number calculation unit 1411 and a skip information conversion unit 1412 are mounted in the image processing 1404. Another difference is that the minimum white line number calculation unit 1411 writes directly to the skip suppression register 1410. Another difference is that the skip information generated in the RIP process 1402 is input to the skip information conversion unit 1412. The other reference numerals 1401 to 1410 have the same configurations as the reference numerals 101 to 110 shown in FIG.

第1実施形態では、CPU103が画像処理部104のフィルタサイズから最小白ライン数を算出していた。また、第2実施形態ではプリント画像処理部104のユースケースに従って、スキップ情報が変わる場合は、CPU103にて対応していた。そのため、RIP処理102と画像処理部104の同期にはCPU103が不可欠だった。   In the first embodiment, the CPU 103 calculates the minimum number of white lines from the filter size of the image processing unit 104. In the second embodiment, when the skip information changes in accordance with the use case of the print image processing unit 104, the CPU 103 handles it. Therefore, the CPU 103 is indispensable for the synchronization between the RIP processing 102 and the image processing unit 104.

第4実施形態では、CPUなしに、RIP処理とプリント画像処理の同期をとる方法について説明する。   In the fourth embodiment, a method for synchronizing RIP processing and print image processing without a CPU will be described.

最小白ライン数算出部1411は、画像処理部1404のフィルタサイズを取得し、式(1)を用いて最小白ライン数を算出する。そして、スキップ抑制レジスタ1410に、最小白ライン数を格納する。   The minimum white line number calculation unit 1411 acquires the filter size of the image processing unit 1404 and calculates the minimum number of white lines using Expression (1). Then, the minimum white line number is stored in the skip suppression register 1410.

スキップ情報変換部1412は、RIP処理部1402から出力されたスキップ情報を入力する。そして、ユースケースに伴ってスキップ情報に変更が生じる場合には、それに対応する。例えば、変倍処理がある場合にはスキップ情報も変倍する。   The skip information conversion unit 1412 receives the skip information output from the RIP processing unit 1402. And when skip information changes with a use case, it responds to it. For example, when there is a scaling process, the skip information is also scaled.

以上説明したように第4実施形態によれば、CPU1403なしで、RIP処理部1402とプリント画像処理部1404の間のデータの同期が可能になる。   As described above, according to the fourth embodiment, it is possible to synchronize data between the RIP processing unit 1402 and the print image processing unit 1404 without the CPU 1403.

<その他の実施形態>
前述の実施形態として、レンダリング処理部やスキャナ画像処理部が実行するスキップ処理の対象とするラインを白ラインとして説明した。しかしながら、スキップ処理の対象とする特定の条件は、白画素からなるライン以外にも適用可能である。例えば、スキップ処理の対象となる特定の条件を、黒画素からなるラインとして設定することで、黒ラインをスキップ処理の対象とする。スキップ処理の対象として設定される特定ラインを検出し、後段のフィルタ処理に用いられるフィルタサイズに応じて最小特定ライン数を算出する。そして、レンダリング処理部やスキャナ画像処理部が最小特定ライン数に応じてスキップ処理をすることで、前述の実施形態と同様の効果を得ることができる。
<Other embodiments>
In the above-described embodiment, the line that is the target of the skip processing executed by the rendering processing unit and the scanner image processing unit has been described as a white line. However, the specific condition to be skipped can be applied to lines other than white pixels. For example, by setting a specific condition that is a target of the skip process as a line composed of black pixels, the black line is a target of the skip process. A specific line set as a target of the skip process is detected, and the minimum number of specific lines is calculated according to the filter size used for the subsequent filter process. The rendering processing unit and the scanner image processing unit perform the skip processing according to the minimum number of specific lines, so that the same effect as that of the above-described embodiment can be obtained.

また本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。   In addition, the present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read the program. It can also be realized by processing to be executed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

101 PDL処理得部
102 RIP処理部
103 CPU
104 画像処理部
105 印刷部
106 3×3フィルタ処理部
107 5×5フィルタ処理部
110 スキップ抑制レジスタ
101 PDL processing obtaining unit 102 RIP processing unit 103 CPU
104 Image processing unit 105 Printing unit 106 3 × 3 filter processing unit 107 5 × 5 filter processing unit 110 Skip suppression register

Claims (10)

画像データに対して画像処理する画像処理装置であって、
PDLデータにおける白ラインを検出する検出手段と、
前記PDLデータをレンダリングするレンダリング処理手段と、
前記レンダリング処理手段によって得られる画像データが表す各画素に対して、複数の画素を参照して画素値を変換するためのフィルタを用いたフィルタ処理を実行するフィルタ処理手段と、
前記フィルタ処理手段に用いられるフィルタのサイズに応じてPDLデータに含まれる白ラインの一部をスキップしてレンダリングすることを特徴とする画像処理装置。
An image processing apparatus that performs image processing on image data,
Detecting means for detecting white lines in the PDL data;
Rendering processing means for rendering the PDL data;
Filter processing means for executing filter processing using a filter for converting pixel values with reference to a plurality of pixels for each pixel represented by image data obtained by the rendering processing means;
An image processing apparatus that performs rendering by skipping a part of a white line included in PDL data in accordance with a size of a filter used in the filter processing unit.
前記レンダリング処理手段は、前記フィルタ処理手段に用いられるフィルタのサイズに応じて前記最小白ライン数を設定し、前記最小白ライン数より多く白ラインが連続する場合は、前記最小白ライン数を超えた分の白ラインについてはレンダリング処理をスキップすることを特徴とする請求項1に記載の画像処理装置。   The rendering processing unit sets the minimum number of white lines according to the size of the filter used in the filter processing unit, and when the white lines continue more than the minimum number of white lines, the minimum number of white lines is exceeded. The image processing apparatus according to claim 1, wherein the rendering processing is skipped for the white lines corresponding to the number of white lines. 前記画像処理手段は、フィルタサイズの異なる複数のフィルタ処理手段を有し、
前記設定手段は、前記複数のフィルタ処理手段のうち、最大のフィルタサイズに基づいて、前記最小白ライン数を設定することを特徴とする請求項1または2に記載の画像処理装置。
The image processing means includes a plurality of filter processing means having different filter sizes,
The image processing apparatus according to claim 1, wherein the setting unit sets the minimum number of white lines based on a maximum filter size among the plurality of filter processing units.
さらに、少なくとも2つの異なる画像処理を実行させるモードを入力する入力手段を有し、
前記画像処理手段は、フィルタサイズの異なる複数のフィルタ処理手段を有し、
前記モードは、前記複数のフィルタ処理手段のうち画像処理に使用するフィルタ処理手段が異なるモードであって、
前記設定手段は、前記モードに応じて最小白ライン数を設定することを特徴とする請求項1または2に記載の画像処理装置。
Furthermore, it has an input means for inputting a mode for executing at least two different image processes,
The image processing means includes a plurality of filter processing means having different filter sizes,
The mode is a mode in which filter processing means used for image processing among the plurality of filter processing means is different,
The image processing apparatus according to claim 1, wherein the setting unit sets a minimum number of white lines according to the mode.
前記設定手段は、前記最大のフィルタサイズ−1により前記最小白ライン数を設定することを特徴とする請求項1乃至3の何れか一項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the setting unit sets the minimum number of white lines based on the maximum filter size−1. さらに、前記画像処理手段から得られる画像処理された画像データに基づいて、記録媒体上に画像を印刷する印刷手段を有し、
前記レンダリング処理手段は、ラインごとにスキップしたかどうかを示すスキップ情報を生成し、
前記印刷手段は、前記スキップ情報に基づいて、前記画像処理された画像データを復元した後に印刷することを特徴とする請求項1乃至5の何れか一項に記載の画像処理装置。
Furthermore, it has a printing means for printing an image on a recording medium based on the image processed image data obtained from the image processing means,
The rendering processing unit generates skip information indicating whether or not each line is skipped,
The image processing apparatus according to claim 1, wherein the printing unit performs printing after restoring the image processed image data based on the skip information.
記録媒体上の画像を読み取り、読み取った画像に基づいて記録媒体上に画像を印刷するための画像処理する画像処理装置であって、
記録媒体上の画像を読み取る読取手段と、
前記読取手段によって読み取られた画像データに対して、前記読取手段に応じた画像処理を実行する第一の画像処理手段と、
前記読取手段が読み取った画像データにおける白ラインを検出する検出手段と、
前記第一の画像処理手段から得られる画像データが表す各画素に対して、複数の画素を参照して画素値を変換するためのフィルタを用いたフィルタ処理を実行するフィルタ処理手段と、
前記フィルタ処理手段に用いられるフィルタのサイズに応じて前記読取手段によって読み取られた画像データに含まれる白ラインの一部をスキップして画像処理することを特徴とする画像処理装置。
An image processing apparatus that reads an image on a recording medium and performs image processing for printing the image on the recording medium based on the read image,
Reading means for reading an image on a recording medium;
First image processing means for executing image processing according to the reading means on the image data read by the reading means;
Detecting means for detecting a white line in the image data read by the reading means;
Filter processing means for executing filter processing using a filter for converting a pixel value with reference to a plurality of pixels for each pixel represented by image data obtained from the first image processing means;
An image processing apparatus that performs image processing by skipping a part of white lines included in image data read by the reading unit in accordance with a size of a filter used in the filter processing unit.
画像データに対して画像処理する画像処理装置であって、
PDLデータにおける所定の画素値を有する特定ラインを検出する検出手段と、
前記PDLデータをレンダリングするレンダリング処理手段と、
前記レンダリング処理手段によって得られる画像データが表す各画素に対して、複数の画素を参照して画素値を変換するためのフィルタを用いたフィルタ処理を実行するフィルタ処理手段と、
前記フィルタ処理手段に用いられるフィルタのサイズに応じてPDLデータに含まれる特定ラインの一部をスキップしてレンダリングすることを特徴とする画像処理装置。
An image processing apparatus that performs image processing on image data,
Detecting means for detecting a specific line having a predetermined pixel value in the PDL data;
Rendering processing means for rendering the PDL data;
Filter processing means for executing filter processing using a filter for converting pixel values with reference to a plurality of pixels for each pixel represented by image data obtained by the rendering processing means;
An image processing apparatus that performs rendering while skipping a part of a specific line included in PDL data according to a size of a filter used in the filter processing unit.
コンピュータに読み込み込ませ実行させることで、前記コンピュータを請求項1乃至8の何れか一項に記載された画像処理装置として機能させることを特徴とするコンピュータプログラム。   A computer program for causing a computer to function as the image processing apparatus according to any one of claims 1 to 8 by being read and executed by a computer. 画像データに対して画像処理する画像処理方法であって、
PDLデータにおける白ラインを検出し、
前記PDLデータをレンダリングするレンダリング処理を施し、
前記レンダリング処理によって得られる画像データが表す各画素に対して、複数の画素を参照して画素値を変換するためのフィルタを用いたフィルタ処理を実行し、
前記フィルタ処理に用いられるフィルタのサイズに応じてPDLデータに含まれる白ラインの一部をスキップしてレンダリングすることを特徴とする画像処理方法。
An image processing method for performing image processing on image data,
Detect white lines in PDL data,
A rendering process for rendering the PDL data;
For each pixel represented by the image data obtained by the rendering process, a filter process using a filter for converting a pixel value with reference to a plurality of pixels is performed,
An image processing method characterized by skipping a part of a white line included in PDL data in accordance with a size of a filter used for the filter processing.
JP2014237000A 2014-11-21 2014-11-21 Image processing apparatus, image processing method, and program Pending JP2016100785A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014237000A JP2016100785A (en) 2014-11-21 2014-11-21 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014237000A JP2016100785A (en) 2014-11-21 2014-11-21 Image processing apparatus, image processing method, and program

Publications (1)

Publication Number Publication Date
JP2016100785A true JP2016100785A (en) 2016-05-30

Family

ID=56077616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014237000A Pending JP2016100785A (en) 2014-11-21 2014-11-21 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP2016100785A (en)

Similar Documents

Publication Publication Date Title
JP6706985B2 (en) Image processing apparatus and control method thereof
US9477914B2 (en) Image processing apparatus, method, and medium for converting page image data
JP2017092872A (en) Image processing apparatus and image processing method
JP4803288B2 (en) Pixel interpolation device, pixel interpolation method, and image reading device
JP5485277B2 (en) Video interpolating apparatus and method using region segmentation
JP6840884B2 (en) Image processing system and image processing method
JP5451313B2 (en) Image processing apparatus, image processing method, and program
JP6338469B2 (en) Image processing apparatus and image processing method
JP2017200042A (en) Image forming device
JP2007200170A (en) Image processor and image processing program
JP4501791B2 (en) Image processing method and image processing program
JP2013026991A (en) Image processing device, image forming device, and program
US8743419B2 (en) Image processing apparatus and method converting low-resolution image to high-resolution using signal value patterns
JP2020145661A (en) Image processing device, control method thereof, and program
JP2002232654A (en) Device and method for image processing and computer readable recording medium with program for making computer perform the method recorded thereon
JP2016100785A (en) Image processing apparatus, image processing method, and program
JP5515552B2 (en) Pixel interpolation device, pixel interpolation method, and image reading device
JP4802853B2 (en) Image processing apparatus and image processing program
JP6230467B2 (en) Image processing apparatus and image processing method
JP5034131B2 (en) Image processing controller, image processing method, and image processing program
JP4863846B2 (en) Color image forming apparatus and color image processing apparatus
JP6805874B2 (en) Image processing equipment, image processing methods and programs
JP2012142898A (en) Image size conversion apparatus, method and program
KR100860995B1 (en) Method and device for increasing image resolution
JP5656790B2 (en) Image processing apparatus and image forming apparatus