JP5593769B2 - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP5593769B2 JP5593769B2 JP2010071202A JP2010071202A JP5593769B2 JP 5593769 B2 JP5593769 B2 JP 5593769B2 JP 2010071202 A JP2010071202 A JP 2010071202A JP 2010071202 A JP2010071202 A JP 2010071202A JP 5593769 B2 JP5593769 B2 JP 5593769B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- line drawing
- line
- thinning
- image
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
本発明は、画像処理装置及び画像処理方法に関する。 The present invention relates to an image processing apparatus and an image processing method.
印刷画像に対して施す画像処理の一つとして、細線化処理がある。細線化処理とは、文字画像その他の線画の輪郭を構成する画素の画素値を下げ、線画の見た目の太さを調節する処理である。
一部の画像形成装置では、細線化処理を行わない場合に文字が太くなる場合がある。例えば、電子写真方式の画像形成装置は、オフセット印刷等の画像形成装置に比してドットゲインが大きい。このため、電子写真方式の画像形成装置によって形成されたドットの線画は、オフセット印刷等の画像形成装置によって形成されたドットの線画に比して太くなる傾向がある。そこで、細線化処理を施すことにより線画の見た目の太さを調節する。
One type of image processing performed on a print image is thinning processing. The thinning process is a process of adjusting the apparent thickness of a line drawing by lowering the pixel values of pixels constituting the outline of a character image or other line drawing.
In some image forming apparatuses, characters may become thick when thinning processing is not performed. For example, an electrophotographic image forming apparatus has a larger dot gain than an image forming apparatus such as offset printing. For this reason, a dot line image formed by an electrophotographic image forming apparatus tends to be thicker than a dot line image formed by an image forming apparatus such as offset printing. Therefore, the line thickness is adjusted to adjust the apparent thickness of the line drawing.
図26(A)、(B)に細線化処理の一例を示す。図26(A)は細線化処理前の文字画像の一例を示し、図26(B)は図26(A)の文字画像に対して細線化処理を施した一例を示す。
図26(A)に示す文字画像の場合、細線化処理によって当該文字画像の輪郭を構成するエッジ画素200(図26(B)において薄いドットマスクを施された画素)の画素値が下げられる。
FIGS. 26A and 26B show an example of the thinning process. FIG. 26A shows an example of a character image before thinning processing, and FIG. 26B shows an example of thinning processing performed on the character image of FIG.
In the case of the character image shown in FIG. 26A, the pixel value of the edge pixel 200 (the pixel to which a thin dot mask is applied in FIG. 26B) constituting the outline of the character image is lowered by the thinning process.
上述のように、細線化処理は線画の輪郭を構成する画素の画素値を下げることで線画の見た目の太さを調節する。しかしながら、全ての線画に対して無条件に細線化処理を施すと、元々細かった線が細くなりすぎてかすれや消失を生じることがあり、細線化処理によって画質を損なうことがあった。そこで、元々細い線には細線化処理を施さない画像処理方法がある(例えば特許文献1)。 As described above, the thinning process adjusts the apparent thickness of the line drawing by lowering the pixel value of the pixels constituting the outline of the line drawing. However, if the line thinning process is unconditionally performed on all line drawings, the originally thin line may become too thin, resulting in blurring or disappearance, and the thinning process may impair the image quality. Therefore, there is an image processing method in which thinning processing is not originally performed on thin lines (for example, Patent Document 1).
しかしながら、特許文献1に記載の画像処理方法は、線画の見た目の太さを均一化させてしまうことがあるという問題点がある。なぜならば、元々細い線には細線化処理を施さず、太い線に細線化処理を施す画像処理を行うと、細い線はそのままである一方で太い線の見た目が細くなる。このため、細い線と太い線の見た目の違いが小さくなり、区別がつかなくなるのである。例えば、明朝体の文字画像は縦線が太く横線が細い。しかし、明朝体の文字画像に対して特許文献1の細線化処理を施すと、縦線と横線の太さの差がなくなり、ゴシック体のように見えてしまうことがある。
However, the image processing method described in
本発明は、画質を損なうことなく、線幅の見た目の太さの差異を保持した細線化処理を行うことを目的とする。 An object of the present invention is to perform a thinning process that retains the difference in the apparent thickness of the line width without impairing the image quality.
請求項1に記載の発明による画像処理装置は、線画の線幅と、当該線画に隣接する背景の線画の有無と、に応じて設定された複数の細線化強度係数の保持手段と、画像の輪郭画素を検出する輪郭検出手段と、前記輪郭画素を含む線画を検出し、当該線画の線幅と、前記輪郭画素に隣接する背景の線画の有無と、を判定する線画検出手段と、前記複数の細線化強度係数のうち、前記線画検出手段により判定された前記線画の線幅と、前記背景の線画の有無と、に対応する細線化強度係数を取得し、取得した細線化強度係数を用いて前記輪郭画素の画素値を変更する画素値変更手段と、を備えることを特徴とする。 An image processing apparatus according to a first aspect of the present invention comprises a plurality of thinning intensity coefficient holding means set in accordance with the line width of a line drawing and the presence or absence of a background line drawing adjacent to the line drawing , a contour detecting unit for detecting a contour pixel, detects a line drawing including the contour pixel, the line width of the line image, a line image detecting means for determining a presence or absence of a line drawing of a background adjacent to the contour pixels, the Among the plurality of thinning intensity coefficients, the thinning intensity coefficient corresponding to the line width of the line drawing determined by the line drawing detecting means and the presence or absence of the background line drawing is obtained, and the obtained thinning intensity coefficient is obtained. And pixel value changing means for changing the pixel value of the contour pixel.
請求項2に記載の発明は、請求項1に記載の画像処理装置であって、前記保持手段は、前記線画の線幅と、当該線画に隣接する背景の線画の有無と、当該線画の方向と、に応じて設定された複数の細線化強度係数を保持し、前記線画検出手段は、前記輪郭画素を含む線画を検出し、当該線画の線幅と、前記輪郭画素に隣接する背景の線画の有無と、当該線画の方向と、を判定し、前記画素値変更手段は、前記複数の細線化強度係数のうち、前記線画検出手段により判定された前記線画の線幅と、前記背景の線画の有無と、前記線画の方向と、に対応する細線化強度係数を取得し、取得した細線化強度係数を用いて前記輪郭画素の画素値を変更することを特徴とする。 A second aspect of the present invention is the image processing apparatus according to the first aspect, wherein the holding unit includes a line width of the line drawing, presence / absence of a background line drawing adjacent to the line drawing, and a direction of the line drawing. A plurality of thinning intensity coefficients set in accordance with the line drawing detection means, wherein the line drawing detecting means detects a line drawing including the outline pixel, and the line width of the line drawing and the line drawing of the background adjacent to the outline pixel. The pixel value changing means determines the line width of the line drawing determined by the line drawing detection means and the line drawing of the background out of the plurality of thinning intensity coefficients. The thinning intensity coefficient corresponding to the presence or absence and the direction of the line drawing is acquired, and the pixel value of the contour pixel is changed using the acquired thinning intensity coefficient .
請求項3に記載の発明は、請求項1又は2に記載の画像処理装置であって、前記画素値変更手段は、取得した細線化強度係数と、前記輪郭画素と当該輪郭画素に隣接する画素との画素値の差と、を用いて補正値を算出し、当該補正値を前記輪郭画素の画素値に加算して、変更後の画素値を得ることを特徴とする。 A third aspect of the present invention is the image processing apparatus according to the first or second aspect, wherein the pixel value changing means includes the acquired thinning intensity coefficient, the contour pixel, and a pixel adjacent to the contour pixel. The correction value is calculated using the difference between the pixel value and the pixel value of the contour pixel, and the correction value is added to the pixel value of the contour pixel to obtain the changed pixel value .
請求項4に記載の発明は、請求項1から3のいずれか一項に記載の画像処理装置であって、前記線幅は、前記線画の幅方向の画素数であり、前記細線化強度係数は、前記線画の幅方向の画素数が多いほど、前記輪郭画素の画素値の変更の度合いが大きくなるように設定されていることを特徴とする。 A fourth aspect of the present invention is the image processing apparatus according to any one of the first to third aspects, wherein the line width is the number of pixels in the width direction of the line drawing, and the thinning intensity coefficient , the higher the number of pixels width direction of the line drawing is large, characterized in that the degree of the change pixel values of the contour pixel is set to be larger.
請求項5に記載の発明は、請求項1から4のいずれか一項に記載の画像処理装置であって、前記画像の各画素に中間調処理を施す中間調処理手段と、前記画像の各画素に対して、輪郭画素である画素には前記画素値変更手段の処理結果を適用し、輪郭画素でない画素には前記中間調処理手段の処理結果を適用する処理選択手段と、を備えることを特徴とする。
The invention according to
請求項6に記載の発明による画像処理方法は、画像の輪郭画素を検出する輪郭検出工程と、前記輪郭画素を含む線画を検出し、当該線画の線幅と、前記輪郭画素に隣接する背景の線画の有無と、を判定する線画検出工程と、線画の線幅と、当該線画に隣接する背景の線画の有無と、に応じて設定された複数の細線化強度係数のうち、前記線画検出工程により判定された前記線画の線幅と、前記背景の線画の有無と、に対応する細線化強度係数を取得し、取得した細線化強度係数を用いて前記輪郭画素の画素値を変更する画素値変更工程と、を有することを特徴とする。 An image processing method according to an embodiment of the present invention includes a contour detection step of detecting a contour pixel of an image, a line drawing including the contour pixel, a line width of the line drawing, and a background adjacent to the contour pixel. and the presence or absence of line drawing, a line image detection step of determining, the line width of the line drawing, and the presence or absence of the line drawing the background adjacent to the line drawings, among the plurality of thinning intensity coefficient set according to the line drawing detection A pixel that obtains a thinning intensity coefficient corresponding to the line width of the line drawing determined in the process and the presence or absence of the background line drawing, and changes the pixel value of the contour pixel using the obtained thinning intensity coefficient And a value changing step.
請求項7に記載の発明は、請求項6に記載の画像処理方法であって、前記線画検出工程では、前記輪郭画素を含む線画を検出し、当該線画の線幅と、前記輪郭画素に隣接する背景の線画の有無と、当該線画の方向と、を判定し、前記画素値変更工程では、前記線画の線幅と、当該線画に隣接する背景の線画の有無と、当該線画の方向と、に応じて設定された複数の細線化強度係数のうち、前記線画検出工程により判定された前記線画の線幅と、前記背景の線画の有無と、前記線画の方向と、に対応する細線化強度係数を取得し、取得した細線化強度係数を用いて前記輪郭画素の画素値を変更することを特徴とする。
The invention according to claim 7 is the image processing method according to
請求項8に記載の発明は、請求項6又は7に記載の画像処理方法であって、前記画素値変更工程では、取得した細線化強度係数と、前記輪郭画素と当該輪郭画素に隣接する画素との画素値の差と、を用いて補正値を算出し、当該補正値を前記輪郭画素の画素値に加算して、変更後の画素値を得ることを特徴とする。 The invention according to an eighth aspect is the image processing method according to the sixth or seventh aspect, wherein, in the pixel value changing step, the obtained thinning intensity coefficient, the contour pixel, and a pixel adjacent to the contour pixel The correction value is calculated using the difference between the pixel value and the pixel value of the contour pixel, and the correction value is added to the pixel value of the contour pixel to obtain the changed pixel value .
請求項9に記載の発明は、請求項6から8のいずれか一項に記載の画像処理方法であって、前記線幅は、前記線画の幅方向の画素数であり、前記細線化強度係数は、前記線画の幅方向の画素数が多いほど、前記輪郭画素の画素値の変更の度合いが大きくなるように設定されていることを特徴とする。
The invention according to claim 9 is the image processing method according to any one of
請求項10に記載の発明は、請求項6から9のいずれか一項に記載の画像処理方法であって、前記画像の各画素に中間調処理を施す中間調処理工程と、前記画像の各画素に対して、輪郭画素である画素には前記画素値変更工程の処理結果を適用し、輪郭画素でない画素には前記中間調処理工程の処理結果を適用する処理選択工程と、を備えることを特徴とする。 A tenth aspect of the present invention is the image processing method according to any one of the sixth to ninth aspects, wherein a halftone processing step of performing halftone processing on each pixel of the image, and each of the images A process selection step of applying a processing result of the pixel value changing step to a pixel that is a contour pixel and applying a processing result of the halftone processing step to a pixel that is not a contour pixel. Features.
本発明によれば、画質を損なうことなく、線幅の見た目の太さの差異を保持した細線化処理を行うことができる。 According to the present invention, it is possible to perform a thinning process that retains the difference in the apparent thickness of the line width without impairing the image quality.
以下、図を参照して本発明の実施の形態の例を詳細に説明する。
本発明に係る画像処理装置としては、例えばプリンタ、複写機、ファクシミリ装置又はこれらの複合機等に搭載される画像処理装置が挙げられるが、これに限定されるものではない。
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the drawings.
Examples of the image processing apparatus according to the present invention include, but are not limited to, an image processing apparatus mounted on a printer, a copying machine, a facsimile machine, or a multifunction machine of these.
図1に、本発明による画像処理装置を含む画像形成システム1の構成の一例を示す。
画像形成システム1は、PC2、コントローラ3、画像形成装置4を有する。PC2とコントローラ3は回線5により接続され、コントローラ3と画像形成装置4は回線6により接続される。
FIG. 1 shows an example of the configuration of an
The
PC2は、印刷ジョブをコントローラ3へ出力する。印刷ジョブは、PDL(Page Description Language)データを含む。
The
コントローラ3は、印刷ジョブを受信すると、印刷ジョブに含まれるPDLデータを解析してDL(Display List)データを生成する。DLデータは、画像形成装置4の印刷処理によって描画されるオブジェクトの位置座標や領域データ、色データのアドレス情報等を含む中間データである。
コントローラ3は、さらに、DLデータに基づいて画像データを生成する。画像データは、DLデータに基づいて描画されるオブジェクトに対して画素を割り当てたデータである。画像データに含まれる各画素には画素値が設定される。本実施形態では、コントローラ3は8ビットの画像データを生成する。つまり、画像データの各画素には0〜255のいずれかの画素値が設定される。
画像データは、画像形成装置4で用いる色剤の種類に応じて生成される。本実施形態では、コントローラ3は、シアン(C)、マゼンタ(M)、イエロー(Y)及びブラック(K)の各色に対応する画像データを生成する。
When receiving the print job, the
The
The image data is generated according to the type of colorant used in the
また、コントローラ3は、各画素の属性を示す属性データTAGを生成する。属性データTAGを生成するに際して、コントローラ3は、DLデータに基づいて各画素の画像属性を判別し、その判別結果に基づいて画素単位で属性データTAGを生成する。属性データTAGが示す属性としては、画素が写真画を構成することを示すIMAGE、画素が線画を構成することを示すGRAPHICS、画素が文字を構成することを示すTEXTがある。属性データTAGは数値によって属性の内容を示すデータであり、TAG=0の場合はIMAGEの属性を示し、TAG=1の場合はGRAPHICSの属性を示し、TAG=2又は3の場合はTEXTの属性を示す。
Further, the
コントローラ3は、生成した画像データ及び属性データTAGを画像形成装置4へ出力する。
The
画像形成装置4は、画像データ及び属性データTAGに基づいて印刷媒体(例えば紙等)に対して画像を形成する。
画像形成装置4は、画像処理部100と、画像形成部10とを有する。
The
The
画像処理部100は、画像データ及び属性データTAGに基づいて出力画像データOut[ch]を生成し、画像形成部10へ出力する。
図2に、画像処理部100の構成を示す。
画像処理部100は、ラインバッファ110、エッジ抽出部120、細線化処理部130、コントーン処理部140、スクリーン処理部150及びセレクタ160を有する。
The
FIG. 2 shows the configuration of the
The
ラインバッファ110は、コントローラ3から入力された画像データ及び属性データTAGを記憶、保持する。ラインバッファ110は、4ライン分の画像データと、3ライン分の属性データTAGと、を保持する。ラインバッファ110は、エッジ抽出部120、細線化処理部130及びスクリーン処理部150の処理に応じて画像データ、属性データTAG又はその両方を画素単位又はブロック単位で供給する。
The
エッジ抽出部120は、5×5[画素]単位のブロックBの画像データを取得し、各画素のエッジ強度En[ch]ならびに注目画素Cの正エッジ情報PEDGE[ch]、負エッジ情報REDGE[ch]、輪郭情報E_EDGE及び背景情報BACKGROUND[ch]の各種データを生成し、細線化処理部130へ出力する。
The
本実施形態における注目画素Cとは、5×5[画素]単位のブロックBの中心に位置する画素をさす。注目画素Cは、画像データからの5×5[画素]単位のブロックBの切り出し位置によって変化し、画像処理部100は画像データに含まれる全ての画素を注目画素Cとして扱うよう、5×5[画素]単位のブロックBの切り出し位置を順次変更して処理する。
The target pixel C in this embodiment refers to a pixel located at the center of the block B in units of 5 × 5 [pixels]. The target pixel C changes depending on the cut-out position of the block B in units of 5 × 5 [pixels] from the image data, and the
細線化処理部130は、ラインバッファ110から取得した5×5[画素]単位のブロックBの画像データ、注目画素Cを中心とする3×3画素分の属性データTAG及びエッジ抽出部120によって出力された各種データに基づいて、細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]を生成する。また、細線化処理部130は、細線化処理を行う。細線化処理において、細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]に基づいて細線化の強度が決定される。そして、細線化処理部130は、細線化処理がなされた画素値を示すコントーン入力信号IS[ch]を生成し、コントーン処理部140へ出力する。また、細線化処理部130は、細線化実施フラグTotalSTを生成し、セレクタ160へ出力する。
The thinning
コントーン処理部140は、コントーン入力信号IS[ch]に対してγ補正(ガンマ補正)処理を施し、コントーン出力信号contone[ch]を生成し、セレクタ160へ出力する。
The
スクリーン処理部150は、注目画素Cの画像データ及び属性データTAGを取得する。そして、スクリーン処理部150は、注目画素Cに対してγ補正処理及び中間調処理(スクリーン処理)を施したスクリーン出力信号screen[ch]を生成し、セレクタ160へ出力する。スクリーン処理部150は、画像データの各画素に中間調処理を施す中間調処理手段として機能する。
The
セレクタ160は、細線化実施フラグTotalSTに基づいて、コントーン出力信号contone[ch]又はスクリーン出力信号screen[ch]のいずれか一方を出力画像データOut[ch]として画像形成部10へ出力する。
Based on the thinning execution flag TotalST, the
次に、画像処理部100の各部について詳細を説明する。
図3(A)、(B)にラインバッファ110の記憶保持内容とブロックBとの対応関係の一例を示す。図3(A)は、ラインバッファ110の記憶保持内容と画像データとの対応関係の一例を示し、図3(B)は、ラインバッファ110の記憶保持内容と属性データTAGとの対応関係の一例を示す。
図3(A)においてマスクされた画素に示すように、注目画素Cを中心とする5×5[画素]のブロックBを構成する各画素のデータを得るには、注目画素Cを含むライン及び注目画素Cを含むラインを基準とした上下2ライン分のデータを要する。このうち、画像処理部100に対して入力される1ライン分についてはラインバッファ110による保持を要しない。このことから、注目画素Cを中心とする5×5[画素]のブロックBを構成する各画素の画像データを得るには、画像処理部100に対してリアルタイムで入力される1ラインより前に入力される4ライン分の画像データを保持する必要がある。このため、本実施形態では4ライン分の画像データを記憶、保持するラインバッファ110を設けている。
Next, details of each unit of the
3A and 3B show an example of the correspondence relationship between the stored contents of the
As shown in the masked pixel in FIG. 3A, in order to obtain data of each pixel constituting the 5 × 5 [pixel] block B centered on the target pixel C, a line including the target pixel C and Data for two upper and lower lines with reference to the line including the target pixel C is required. Of these, one line input to the
一方、属性データTAGについては、注目画素Cを中心とする3×3[画素]のブロックBがあればよいが、注目画素Cを中心とする3×3[画素]のブロックBを構成する各画素のデータは、画像処理部100に対してリアルタイムで入力される1ラインに含まれない。このことから、注目画素Cを中心とする5×5[画素]のブロックBを構成する各画素の属性データTAGを得るには、画像処理部100に対してリアルタイムで入力される1ラインより前に入力される3ライン分の属性データTAGを保持する必要がある。このため、本実施形態では3ライン分の属性データTAGを記憶、保持するラインバッファ110を設けている。
On the other hand, as for the attribute data TAG, it is sufficient if there is a 3 × 3 [pixel] block B centered on the target pixel C, but each of the blocks constituting the 3 × 3 [pixel] block B centered on the target pixel C. Pixel data is not included in one line input to the
本実施形態のラインバッファ110が記憶、保持する画像データ及び属性データTAGのライン数はあくまで一例であり、画像処理に要するブロックBの単位に応じて適宜変更することができる。
The number of lines of image data and attribute data TAG stored and held in the
エッジ抽出部120は、5×5[画素]のブロックBに含まれる各画素の画素値に基づいて、注目画素に対するエッジ強度En[ch](n=1〜25)を生成する。エッジ強度En[ch]は、注目画素Cの画素値と周辺画素の画素値との差に基づく値である。
図4に、5×5[画素]のブロックBの注目画素Cに対する周辺画素の画素値の関係の一例を示す。図5に、5×5[画素]のブロックBの注目画素Cに対する周辺画素のエッジ強度En[ch]の関係の一例を示す。
なお、説明に用いる注目画素Cは、ブロックBの中央に位置する画素であり、周辺画素は、注目画素Cの周辺に位置し、ブロックBに含まれる画素である。
The
FIG. 4 shows an example of the relationship between the pixel values of the peripheral pixels and the target pixel C of the block B of 5 × 5 [pixels]. FIG. 5 shows an example of the relationship of the edge intensity En [ch] of the peripheral pixels with respect to the target pixel C of the block B of 5 × 5 [pixels].
Note that the target pixel C used for the description is a pixel located in the center of the block B, and the peripheral pixels are pixels included in the block B and located around the target pixel C.
エッジ強度En[ch]( n=1〜25)の生成にあたり、まず、エッジ抽出部120は、図4に示すように、注目画素Cの画素値及び周辺画素の画素値I01〜I25を得る。ここで、ブロックBが画像データの領域外を含む場合、周辺画素の一部が存在せず、画素値を得られない場合が有る。この場合、存在しない周辺画素の画素値は0とする。
次に、図5に示すように、エッジ抽出部120は、注目画素Cの画素値と周辺画素の画素値との差を算出してエッジ強度E01〜E25を得る。ここでエッジ強度E01〜E25は−256〜256の範囲の整数である。
なお、本実施形態では、図4、図5に示すように、画素値I01〜I25及びエッジ強度E01〜E25のうち、注目画素Cの位置に対応する画素値I13及びエッジ強度E13は用いないので、使用しない画素値、エッジ強度については取得してもしなくてもよい。
In generating the edge intensity En [ch] (n = 1 to 25), first, the
Next, as illustrated in FIG. 5, the
In this embodiment, as shown in FIGS. 4 and 5, the pixel value I13 and the edge strength E13 corresponding to the position of the pixel of interest C are not used among the pixel values I01 to I25 and the edge strengths E01 to E25. The unused pixel values and edge strengths may or may not be acquired.
次に、エッジ抽出部120は、エッジ強度En[ch]に基づいて、正エッジ情報PEDGE[ch]及び負エッジ情報REDGE[ch]を生成する。
エッジ抽出部120は、注目画素Cに隣接する4画素のエッジ強度のうち最大値を正エッジ情報PEDGE[ch]とする。具体的には、本実施形態の場合、E08、E12、E14、E18のうち最大値を正エッジ情報PEDGE[ch]とする。
また、エッジ抽出部120は、注目画素Cに隣接する4画素のエッジ強度のうち最小値を負エッジ情報REDGE[ch]とする。具体的には、本実施形態の場合、E08、E12、E14、E18のうち最小値を負エッジ情報REDGE[ch]とする。ただし、エッジ抽出部120は、第一の閾値EDGETH未満となった正エッジ情報PEDGE[ch]、負エッジ情報REDGE[ch]又はその両方を0とする。第一の閾値EDGETHは正エッジ情報PEDGE[ch]、負エッジ情報REDGE[ch]として認められる最低値を示しており、1〜254の値を取ることができる。本実施形態では、第一の閾値EDGETHを32としている。
Next, the
The
Further, the
エッジ強度En[ch]、正エッジ情報PEDGE[ch]及び負エッジ情報REDGE[ch]は、各色(例えばCMYK)の画像データに対して個別に生成される。[ch]には0〜3の整数値が設定され、ch=0はシアン(C)を、ch=1はマゼンタ(M)を、ch=2はイエロー(Y)を、ch=3はブラック(K)を示す。以下、[ch]の記載を含むデータは、各色についてそれぞれ生成される。 The edge strength En [ch], the positive edge information PEDGE [ch], and the negative edge information REDGE [ch] are individually generated for the image data of each color (for example, CMYK). [ch] is set to an integer value from 0 to 3, ch = 0 is cyan (C), ch = 1 is magenta (M), ch = 2 is yellow (Y), and ch = 3 is black (K) is shown. Hereinafter, data including the description of [ch] is generated for each color.
さらに、エッジ抽出部120は、各色のエッジ強度En[ch]、正エッジ情報PEDGE[ch]及び負エッジ情報REDGE[ch]に基づいて輪郭情報E_EDGEを生成する。輪郭情報E_EDGEは、注目画素Cが画像の輪郭を構成するか否かを示す。
Further, the
輪郭情報E_EDGEの生成にあたり、エッジ抽出部120は、まず中間データであるTOTALPEDGE、TOTALREDGEを求める。TOTALPEDGEは下記の式(1)によって求められる。TOTALREDGEは下記の式(2)によって求められる。
TOTALPEDGE ={(PEDGE[0] × Wc) + (PEDGE[1] × Wm) + (PEDGE[2] ×Wy) + (PEDGE[3] × Wk)} / 256……(1)
TOTALREDGE ={(REDGE[0] × Wc) + (REDGE[1] × Wm) + (REDGE[2] ×Wy) + (REDGE[3] × Wk)} / 256……(2)
上記式(1)、(2)における係数Wc、Wm、Wy及びWkはそれぞれ8bitの整数である。また、係数Wc、Wm、Wy、Wkは、Wc+Wm+Wy+Wk≦256を満たすように設定される。
TOTALPEDGE、TOTALREDGEは前景、背景それぞれのエッジにおける各色(例えばCMYK)のエッジの強さを比視感度に相当する係数で重み付けして足し合わせた値に基づく中間データ値である。なお、画素値の異なる複数の画素がエッジを形成する画像データにおいて、前景とは濃度が相対的に高い領域のことをさし、背景とは濃度が相対的に低い領域のことをさす。
注目画素Cが画像の輪郭を構成するか否かを示す輪郭情報E_EDGEを決定するにあたり、注目画素Cが視覚的な濃度差に基づいて輪郭を形成するか否かを判定する必要がある。そこで、中間データTOTALPEDGE、TOTALREDGEを求めるにあたり、それぞれ正エッジ情報PEDGE[ch]、負エッジ情報REDGE[ch]に対して比視感度に相当する係数による補正をかける。具体的には、シアン(C)の正エッジ情報PEDGE[0]、負エッジ情報REDGE[0]には係数Wcを用い、マゼンタ(M)の正エッジ情報PEDGE[1]、負エッジ情報REDGE[1]には係数Wmを用い、イエロー(Y)の正エッジ情報PEDGE[2]、負エッジ情報REDGE[2]には係数Wyを用い、ブラック(K)の正エッジ情報PEDGE[3]、負エッジ情報REDGE[3]には係数Wkを用い、補正をかける。
In generating the contour information E_EDGE, the
TOTALPEDGE = {(PEDGE [0] x Wc) + (PEDGE [1] x Wm) + (PEDGE [2] x Wy) + (PEDGE [3] x Wk)} / 256 …… (1)
TOTALREDGE = {(REDGE [0] x Wc) + (REDGE [1] x Wm) + (REDGE [2] x Wy) + (REDGE [3] x Wk)} / 256 …… (2)
The coefficients Wc, Wm, Wy and Wk in the above formulas (1) and (2) are 8-bit integers. The coefficients Wc, Wm, Wy, and Wk are set so as to satisfy Wc + Wm + Wy + Wk ≦ 256.
TOTALPEDGE and TOTALREDGE are intermediate data values based on values obtained by weighting and adding the edge strength of each color (for example, CMYK) at each edge of the foreground and background with a coefficient corresponding to the relative visibility. In image data in which a plurality of pixels having different pixel values form an edge, the foreground refers to a region with a relatively high density, and the background refers to a region with a relatively low density.
In determining the contour information E_EDGE indicating whether or not the target pixel C constitutes the contour of the image, it is necessary to determine whether or not the target pixel C forms a contour based on a visual density difference. Therefore, in obtaining the intermediate data TOTALPEDGE and TOTALREDGE, correction is performed on the positive edge information PEDGE [ch] and the negative edge information REDGE [ch] by a coefficient corresponding to the relative visibility. Specifically, the coefficient Wc is used for the positive edge information PEDGE [0] and negative edge information REDGE [0] for cyan (C), and the positive edge information PEDGE [1] and negative edge information REDGE [for magenta (M). 1] uses coefficient Wm, yellow (Y) positive edge information PEDGE [2], negative edge information REDGE [2] uses coefficient Wy, black (K) positive edge information PEDGE [3], negative The edge information REDGE [3] is corrected using the coefficient Wk.
本実施形態では、係数Wc、Wm、Wy、Wkの値は、比視感度に応じる。例えば、イエロー(Y)は、画素値の異なる二画素の画素値の差による視覚的な濃度差を他の色に比して生じさせにくい。一方、ブラック(K)は画素値の異なる二画素の画素値の差による視覚的な濃度差を他の色に比して生じさせやすい。係数Wc、Wm、Wy、Wkの値は、このような比視感度に応じて設定されており、例えばWc=80、Wm=32、Wy=16、Wk=128である。 In the present embodiment, the values of the coefficients Wc, Wm, Wy, Wk depend on the relative visibility. For example, yellow (Y) is less likely to cause a visual density difference due to a difference between pixel values of two pixels having different pixel values compared to other colors. On the other hand, black (K) is more likely to cause a visual density difference due to the difference between pixel values of two pixels having different pixel values compared to other colors. The values of the coefficients Wc, Wm, Wy, Wk are set according to such relative luminous sensitivity, for example, Wc = 80, Wm = 32, Wy = 16, Wk = 128.
エッジ抽出部120は、TOTALPEDGEとTOTALREDGEとの大小比較結果に基づいて輪郭情報E_EDGEを決定する。本実施形態では、TOTALPEDGEがTOTALREDGEより大きい場合に、エッジ抽出部120は、注目画素Cが輪郭を構成する画素であると判定して輪郭情報E_EDGEをONとする。TOTALPEDGEがTOTALREDGE以下である場合、エッジ抽出部120は、輪郭情報E_EDGEをOFFとする。本実施形態では、輪郭情報E_EDGEはON/OFFを示す1bit値で表されるが、同様の情報を示すことができれば他の値をとっても良い。
The
このように、エッジ抽出部120は、輪郭情報E_EDGEの生成及びその値のON/OFFによって、注目画素Cが輪郭を構成する画素(輪郭画素)であるか否かを検知する。つまり、エッジ抽出部120は、画像データに含まれる輪郭画素を検出する輪郭検出手段として機能する。
As described above, the
また、エッジ抽出部120は、正エッジ情報PEDGE[ch]及び負エッジ情報REDGE[ch]に基づいて背景情報BACKGROUND[ch]を生成する。BACKGROUND[ch]は注目画素Cが前景に含まれるか背景に含まれるかを簡易的に推定するためのデータである。本実施形態では、背景情報BACKGROUND[ch]と対になる前景情報FOREGROUND[ch]も同時に生成される。前景情報FOREGROUND[ch]及び背景情報BACKGROUND[ch]は、ON/OFFを示す1bit値で表されるが、同様の情報を示すことができれば他の値をとっても良い。前景情報FOREGROUND[ch]及び背景情報BACKGROUND[ch]は、各色(例えばCMYK)に対して個別に生成される。
In addition, the
前景情報FOREGROUND[ch]及び背景情報BACKGROUND[ch]を生成するにあたり、エッジ抽出部120は、PEDGE[ch]とREDGE[ch]とを比較する。PEDGE[ch]がREDGE[ch]よりも大きい場合、エッジ抽出部120は前景情報FOREGROUND[ch]をONとし、背景情報BACKGROUND[ch]をOFFとする。PEDGE[ch]がREDGE[ch]よりも小さい場合、エッジ抽出部120は前景情報FOREGROUND[ch]をOFFとし、背景情報BACKGROUND[ch]をONとする。PEDGE[ch]とREDGE[ch]とが等しい場合、エッジ抽出部120は前景情報FOREGROUND[ch]、背景情報BACKGROUND[ch]を共にOFFとする。
In generating the foreground information FOREGROUND [ch] and the background information BACKGROUND [ch], the
細線化処理部130は、まず、エッジの2値化を行う。本実施形態では、細線化処理部130は、8bitのエッジ強度En[ch]の値と第二の閾値TLSOLIDTHとの比較結果に基づいて、周辺画素の2値化エッジ値en[ch](n=1〜25)を求める。2値化エッジ値en[ch]は、各色(例えばCMYK)に対して個別に生成される。
図6に、5×5[画素]のブロックBの注目画素Cに対する周辺画素の2値化エッジ値en [ch]の関係の一例を示す。
細線化処理部130は、8bitのエッジ強度En[ch]の値が第二の閾値TLSOLIDTHより大きい周辺画素に対して、その2値化エッジ値en [ch]として1を設定する。細線化処理部130は、8bitのエッジ強度En[ch]の値が第二の閾値TLSOLIDTH以下の周辺画素に対して、その2値化エッジ値en [ch]として0を設定する。
The thinning
FIG. 6 shows an example of the relationship between the binarized edge values en [ch] of the peripheral pixels with respect to the target pixel C of the block B of 5 × 5 [pixels].
The thinning
次に、細線化処理部130は、細線構造信号ThinLine[ch]の生成を行う。
細線構造信号ThinLine[ch]の生成にあたり、細線化処理部130は、細線構造信号ThinLine[ch]を初期値0で設定する。その後、細線化処理部130は、注目画素Cを中心として並ぶ縦又は横の3画素について、白黒白のパターンがあるか否かを判定する。注目画素Cを中心として並ぶ縦又は横の3画素について、白黒白のパターンがある場合、細線化処理部130は、細線構造信号ThinLine[ch]の値を1とする。本実施形態の細線化処理部130は、注目画素Cを中心として並ぶ縦又は横の3画素について、白黒白のパターンがあるか否かを判定するにあたり、第一のパターンマッチング処理を行う。
Next, the thinning
In generating the thin line structure signal ThinLine [ch], the thinning
図7(A)、(B)に、第一のパターンマッチング処理のイメージ図を示す。図7(A)は、注目画素Cを中心として並ぶ横の3画素について、白黒白のパターンがあるか否かを判定する処理のイメージ図を示し、図7(B)は、注目画素Cを中心として並ぶ縦の3画素について、白黒白のパターンがあるか否かを判定する処理のイメージ図を示す。
第一のパターンマッチング処理として、細線化処理部130は、2値化エッジ値e12及びe14又はe8及びe18のいずれか一の組が共に1であるか否かを判定する。2値化エッジ値又はe8及びe18のいずれか一の組が共に1である場合、細線化処理部130は、細線構造信号ThinLine[ch]の値を1とする。
7A and 7B are image diagrams of the first pattern matching process. FIG. 7A shows an image diagram of processing for determining whether or not there is a monochrome white pattern for the three horizontal pixels arranged around the target pixel C. FIG. 7B shows the center of the target pixel C. The image figure of the process which determines whether there exists a monochrome white pattern about three vertical pixels arranged as follows is shown.
As the first pattern matching processing, the thinning
細線構造信号ThinLine[ch]=1は、縦又は横方向に沿った1画素幅の線があることを示す。
第一のパターンマッチング処理後、細線構造信号ThinLine[ch]の値が0である場合、注目画素Cを中心として並ぶ縦及び横の3画素について、白黒白のパターンがないことを示す。その場合、細線化処理部130は、注目画素Cを中心として並ぶ斜め方向の3画素について、白黒白のパターンがあるか否かを判定する。注目画素Cを中心として並ぶ斜め方向の3画素について、白黒白のパターンがある場合、細線化処理部130は、細線構造信号ThinLine[ch]の値を2とする。本実施形態の細線化処理部130は、注目画素Cを中心として並ぶ斜め方向の3画素について、白黒白のパターンがあるか否かを判定するにあたり、第二のパターンマッチング処理を行う。
The thin line structure signal ThinLine [ch] = 1 indicates that there is a line having a width of one pixel along the vertical or horizontal direction.
After the first pattern matching process, when the value of the thin line structure signal ThinLine [ch] is 0, it indicates that there is no monochrome white pattern for the vertical and horizontal three pixels arranged around the target pixel C. In this case, the thinning
図8(A)、(B)に、第二のパターンマッチング処理のイメージ図を示す。図8(A)は、注目画素Cを中心として左上から右下にかけて並ぶ斜め方向の3画素について、白黒白のパターンがあるか否かを判定する処理のイメージ図を示し、図8(B)は、注目画素Cを中心として右上から左下にかけて並ぶ斜め方向の3画素について、白黒白のパターンがあるか否かを判定する処理のイメージ図を示す。
第二のパターンマッチング処理として、白黒白のパターンがあるか否かを判定する場合、細線化処理部130は、2値化エッジ値e7及びe19又はe9及びe17のいずれか一方の組が共に1であるか否かを判定する。2値化エッジ値e7及びe19又はe9及びe17のいずれか一方の組が共に1である場合、細線化処理部130は、細線構造信号ThinLine[ch]の値を2とする。
8A and 8B show an image diagram of the second pattern matching process. FIG. 8A shows an image diagram of processing for determining whether or not there is a monochrome white pattern for three diagonal pixels arranged from the upper left to the lower right with the target pixel C as the center, and FIG. The image figure of the process which determines whether a monochrome white pattern exists about three pixels of the diagonal direction arranged from the upper right to the lower left centering on the attention pixel C is shown.
When determining whether or not there is a black and white pattern as the second pattern matching processing, the thinning
細線構造信号ThinLine[ch]=2は、斜め方向の1画素幅の線があることを示す。
第二のパターンマッチング処理後、細線構造信号ThinLine[ch]の値が0である場合、注目画素Cを中心として並ぶ縦、横及び斜めの3画素について、白黒白のパターンがないことを示す。その場合、細線化処理部130は、注目画素Cを含んだ縦又は横の2画素幅の線があるか否かを判定する。注目画素Cを含んだ縦又は横の2画素幅の線がある場合、細線化処理部130は、細線構造信号ThinLine[ch]の値を3とする。本実施形態の細線化処理部130は、注目画素Cを含んだ縦又は横の2画素幅の線があるか否かを判定するにあたり、第三のパターンマッチング処理を行う。
A thin line structure signal ThinLine [ch] = 2 indicates that there is a line with a width of one pixel in an oblique direction.
After the second pattern matching processing, when the value of the thin line structure signal ThinLine [ch] is 0, it indicates that there is no black and white pattern for three vertical, horizontal, and diagonal pixels arranged around the pixel of interest C. In that case, the thinning
図9(A)〜(D)に、第三のパターンマッチング処理のイメージ図を示す。図9(A)は、2値化エッジ値e12及びe15が1であるか否かを判定する処理のイメージ図を示し、図9(B)は、2値化エッジ値e11及びe14が1であるか否かを判定する処理のイメージ図を示し、図9(C)は、2値化エッジ値e8及びe23が1であるか否か否かを判定する処理のイメージ図を示し、図9(D)は、2値化エッジ値e3及びe18が1であるか否か否かを判定する処理のイメージ図を示す。
第三のパターンマッチング処理として、細線化処理部130は、2値化エッジ値e12及びe15、e11及びe14、e8及びe23又はe3及びe18のいずれか一の組が共に1であるか否かを判定する。2値化エッジ値e12及びe15、e11及びe14、e8及びe23又はe3及びe18のいずれか一の組が共に1である場合、細線化処理部130は、細線構造信号ThinLine[ch]の値を3とする。
9A to 9D are image diagrams of the third pattern matching process. FIG. 9A shows an image diagram of processing for determining whether or not the binarized edge values e12 and e15 are 1. FIG. 9B shows that the binarized edge values e11 and e14 are 1. FIG. 9C shows an image diagram of processing for determining whether or not, and FIG. 9C shows an image diagram of processing for determining whether or not the binarized edge values e8 and e23 are 1, FIG. 9D. Shows an image diagram of processing for determining whether or not the binarized edge values e3 and e18 are one.
As a third pattern matching process, the thinning
細線構造信号ThinLine[ch]=3は、注目画素Cを含んだ縦又は横の2画素幅の線があることを示す。
第三のパターンマッチング処理後、細線構造信号ThinLine[ch]の値が0である場合、注目画素Cを中心として並ぶ縦、横及び斜めの3画素について白黒白のパターンがないことならびに注目画素Cを含んだ縦及び横の2画素幅の線がないことを示す。その場合、細線化処理部130は、注目画素Cを含んだ斜め方向の2画素幅の線があるか否かを判定する。注目画素Cを含んだ斜め方向の2画素幅の線がある場合、細線化処理部130は、細線構造信号ThinLine[ch]の値を4とする。本実施形態の細線化処理部130は、注目画素Cを含んだ斜め方向の2画素幅の線があるか否かを判定するにあたり、第四のパターンマッチング処理を行う。
The thin line structure signal ThinLine [ch] = 3 indicates that there is a vertical or horizontal two-pixel wide line including the target pixel C.
After the third pattern matching processing, when the value of the thin line structure signal ThinLine [ch] is 0, there is no black and white pattern for the vertical, horizontal, and diagonal three pixels arranged around the target pixel C, and the target pixel C This indicates that there are no vertical and horizontal two-pixel-width lines including. In that case, the thinning
図10(A)〜(D)に、第四のパターンマッチング処理のイメージ図を示す。図10(A)は、2値化エッジ値e1及びe19が1であるか否か否かを判定する処理のイメージ図を示し、図10(B)は、2値化エッジ値e5及びe17が1であるか否かを判定する処理のイメージ図を示し、図10(C)は、2値化エッジ値e7及びe25が1であるか否かを判定する処理のイメージ図を示し、図10(D)は、2値化エッジ値e9及びe21が1であるか否かを判定する処理のイメージ図を示す。
第四のパターンマッチング処理として、細線化処理部130は、2値化エッジ値e1及びe19、e5及びe17、e7及びe25又はe9及びe21のいずれか一の組が共に1であるか否かを判定する。2値化エッジ値e1及びe19、e5及びe17、e7及びe25又はe9及びe21のいずれか一の組が共に1である場合、細線化処理部130は、細線構造信号ThinLine[ch]の値を4とする。
10A to 10D are image diagrams of the fourth pattern matching process. FIG. 10A shows an image diagram of processing for determining whether or not the binarized edge values e1 and e19 are 1, and FIG. 10B shows that the binarized edge values e5 and e17 are 1. FIG. 10C shows an image diagram of processing for determining whether or not the binarized edge values e7 and e25 are 1, and FIG. Shows an image diagram of processing for determining whether or not the binarized edge values e9 and e21 are 1. FIG.
As the fourth pattern matching process, the thinning
細線構造信号ThinLine[ch]=4は、注目画素Cを含んだ斜め方向の2画素幅の線があることを示す。
注目画素Cを含んだ縦又は横の2画素幅の線があるか否かを判定した後、細線構造信号ThinLine[ch]の値が0である場合、注目画素Cを中心として並ぶ縦、横及び斜めの3画素について白黒白のパターンがないことならびに注目画素Cを含んだ縦、横及び斜め方向の2画素幅の線がないことを示す。その場合、細線化処理部130は、細線構造信号ThinLine[ch]の値を0のままとする。細線構造信号ThinLine[ch]=0は、3画素以上の幅を有する画素の固まりがあることを示す。
細線化処理部130は、細線構造信号ThinLine[ch]の値が0以外になったとき又は第四のパターンマッチング処理の終了後、細線構造信号ThinLine[ch]の値を決定する処理を終了する。
The thin line structure signal ThinLine [ch] = 4 indicates that there is a line with a two-pixel width in an oblique direction including the pixel of interest C.
After determining whether or not there is a vertical or horizontal two-pixel wide line including the pixel of interest C, if the value of the thin line structure signal ThinLine [ch] is 0, the vertical and horizontal lines centered on the pixel of interest C In addition, it indicates that there is no black-and-white pattern for the three diagonal pixels, and that there are no two-pixel wide lines including the target pixel C in the vertical, horizontal, and diagonal directions. In this case, the thinning
The thinning
細線構造信号ThinLine[ch]の値の決定処理に示すように、細線化処理部130は、注目画素Cを含む線画の線幅を検出する線幅検出手段として機能する。そして、細線構造信号ThinLine[ch]は、線幅情報として機能する。
また、細線化処理部130は、細線構造信号ThinLine[ch]の値を、注目画素Cを含む線画の幅方向の画素数に応じて設定する。
さらに、細線化処理部130は、細線構造信号ThinLine[ch]の値を、線画の幅方向が画像の縦横のいずれか一方に沿っているか否かに応じて設定する。本実施形態では、細線構造信号ThinLine[ch]は、その値が1又は3の場合、線画の幅方向が画像の縦横のいずれか一方に沿っていることを示す。一方、細線構造信号ThinLine[ch]は、その値が2又は4の場合、線画の幅方向が画像の縦横のいずれか一方に沿っておらず、斜め方向であることを示す。
As shown in the process of determining the value of the thin line structure signal ThinLine [ch], the thinning
Further, the thinning
Further, the thinning
次に、細線化処理部130は、白抜き文字情報WThinLine[ch]を生成する。
白抜き文字情報WThinLine[ch]を生成するにあたり、細線化処理部130は、非エッジ値fn[ch] (n=1〜25)を求める。非エッジ値fn[ch]は、注目画素Cの画素値と周辺画素の画素値との差が所定の範囲内に収まっているか否かを示す。本実施形態では、各周辺画素のエッジ強度En[ch]が第三の閾値FlatTHを下回る場合、細線化処理部130は、注目画素Cの画素値と周辺画素の画素値との差が所定の範囲内に収まっていると判定し、その周辺画素の非エッジ値fn[ch]の値を1とする。一方、本実施形態では、各周辺画素のエッジ強度En[ch]が第三の閾値FlatTH以上の場合、その周辺画素の非エッジ値fn[ch]の値を0とする。
Next, the thinning
In generating the outline character information WThinLine [ch], the thinning
図11に、5×5[画素]のブロックBの注目画素Cに対する周辺画素の非エッジ値fn [ch]の関係の一例を示す。
本実施形態では、図11に示すように、非エッジ値f01〜f25のうち、f01、f03、f05、f11、f15、f21、f23、f25以外は用いないので、使用しない非エッジ値については算出してもしなくてもよい。
FIG. 11 shows an example of the relationship of the non-edge value fn [ch] of the peripheral pixels with respect to the target pixel C of the block B of 5 × 5 [pixels].
In the present embodiment, as shown in FIG. 11, since non-edge values f01 to f25 other than f01, f03, f05, f11, f15, f21, f23, and f25 are not used, non-edge values that are not used are calculated. You don't have to.
非エッジ値fn[ch]を得た後、細線化処理部130は、2値化エッジ値en[fh]及び非エッジ値fn[ch]に基づいて、白抜き線が存在するか否かを判定する処理を行う。
具体的には、細線化処理部130は、まず、白抜き文字情報WThinLine[ch]を初期値0で設定する。その後、縦又は横の1画素幅の白抜き線があるか否かを判定する。縦又は横の1画素幅の白抜き線がある場合、細線化処理部130は、白抜き文字情報WThinLine[ch]の値を1とする。本実施形態の細線化処理部130は、縦又は横の1画素幅の白抜き線があるか否かを判定するにあたり、第五のパターンマッチング処理を行う。
After obtaining the non-edge value fn [ch], the thinning
Specifically, the thinning
図12(A)〜(D)に、第五のパターンマッチング処理のイメージ図を示す。図12(A)は、注目画素Cの左側に白抜き線があるか否かを判定する処理のイメージ図を示し、図12(B)は、注目画素Cの上側に白抜き線があるか否かを判定する処理のイメージ図を示し、図12(C)は、注目画素Cの右側に白抜き線があるか否かを判定する処理のイメージ図を示し、図12(D)は、注目画素Cの下側に白抜き線があるか否かを判定する処理のイメージ図を示す。
第五のパターンマッチング処理として、細線化処理部130は、非エッジ値f11及び2値化エッジ値e12、非エッジ値f3及び2値化エッジ値e8、非エッジ値f15及び2値化エッジ値e14、非エッジ値f23及び2値化エッジ値e18のいずれか一の組が共に1であるか否かを判定する。非エッジ値f11及び2値化エッジ値e12、非エッジ値f3及び2値化エッジ値e8、非エッジ値f15及び2値化エッジ値e14、非エッジ値f23及び2値化エッジ値e18のいずれか一の組が共に1である場合、細線化処理部130は、白抜き文字情報WThinLine[ch]の値を1とする。
12A to 12D are image diagrams of the fifth pattern matching process. 12A shows an image diagram of processing for determining whether or not there is a white line on the left side of the target pixel C. FIG. 12B shows whether or not there is a white line on the upper side of the target pixel C. FIG. 12C shows an image diagram of processing for determining whether or not there is a white line on the right side of the target pixel C, and FIG. 12D shows the image of the target pixel C. The image figure of the process which determines whether there is a white line below is shown.
As the fifth pattern matching process, the thinning
白抜き文字情報WThinLine[ch]=1は、縦又は横の1画素幅の白抜き線があることを示す。
第五のパターンマッチング処理後、白抜き文字情報WThinLine[ch]の値が0である場合、縦又は横の1画素幅の白抜き線がないことを示す。その場合、細線化処理部130は、斜め方向の1画素幅の白抜き線があるか否かを判定する。斜め方向の1画素幅の白抜き線場合、細線化処理部130は、白抜き文字情報WThinLine[ch]の値を2とする。本実施形態の細線化処理部130は、斜め方向の1画素幅の白抜き線があるか否かを判定するにあたり、第六のパターンマッチング処理を行う。
White character information WThinLine [ch] = 1 indicates that there is a white or vertical white pixel line.
After the fifth pattern matching process, when the value of the white character information WThinLine [ch] is 0, it indicates that there is no vertical line or horizontal white line of 1 pixel width. In that case, the thinning
図13(A)〜(D)に、第六のパターンマッチング処理のイメージ図を示す。図13(A)は、注目画素Cの左上側に白抜き線があるか否かを判定する処理のイメージ図を示し、図13(B)は、注目画素Cの右上側に白抜き線があるか否かを判定する処理のイメージ図を示し、図13(C)は、注目画素Cの右下側に白抜き線があるか否かを判定する処理のイメージ図を示し、図13(D)は、注目画素Cの左下側に白抜き線があるか否かを判定する処理のイメージ図を示す。
第六のパターンマッチング処理として、細線化処理部130は、非エッジ値f1及び2値化エッジ値e7、非エッジ値f5及び2値化エッジ値e9、非エッジ値f25及び2値化エッジ値e19、非エッジ値f21及び2値化エッジ値e17のいずれか一の組が共に1であるか否かを判定する。非エッジ値f1及び2値化エッジ値e7、非エッジ値f5及び2値化エッジ値e9、非エッジ値f25及び2値化エッジ値e19、非エッジ値f21及び2値化エッジ値e17のいずれか一の組が共に1である場合、細線化処理部130は、白抜き文字情報WThinLine[ch]の値を2とする。
FIGS. 13A to 13D show image diagrams of the sixth pattern matching process. 13A shows an image diagram of processing for determining whether or not there is a white line on the upper left side of the target pixel C, and FIG. 13B shows a white line on the upper right side of the target pixel C. FIG. 13C shows an image diagram of a process for determining whether or not there is a white line on the lower right side of the target pixel C, and FIG. The image figure of the process which determines whether the white line exists in the lower left side of the attention pixel C is shown.
As the sixth pattern matching process, the thinning
白抜き文字情報WThinLine[ch]=2は、斜め方向の1画素幅の白抜き線があることを示す。
第六のパターンマッチング処理後、白抜き文字情報WThinLine[ch]の値が0である場合、注目画素Cの周囲に白抜き線がないことを示す。その場合、細線化処理部130は、白抜き文字情報WThinLine[ch]の値を0のままとする。白抜き文字情報WThinLine[ch]=0は、注目画素Cに隣接する白抜き文字がないことを示す。
White character information WThinLine [ch] = 2 indicates that there is a white line of one pixel width in an oblique direction.
After the sixth pattern matching process, when the value of the white character information WThinLine [ch] is 0, it indicates that there is no white line around the pixel of interest C. In this case, the thinning
細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]は、各色(例えばCMYK)に対して個別に生成される。 The thin line structure signal ThinLine [ch] and the outline character information WThinLine [ch] are individually generated for each color (for example, CMYK).
次に、細線化処理部130は、細線化処理を行う。
細線化処理において、細線化処理部130は、まず、注目画素C及び注目画素Cに隣接する周辺画素がベタか否かを判定する。細線化処理部130は、第三の閾値SOBに基づいて、ベタか否かを判定し、その結果をベタ判定フラグ(ONSOLID、RVSOLID)として生成する。ベタ判定フラグONSOLID、RVSOLIDは共にON/OFFを示すデータである。ベタ判定フラグONSOLIDがONの場合、前景のベタであることを示す。ベタ判定フラグRVSOLIDがONの場合、背景のベタがONであることを示す。
本実施形態では、細線化処理部130は、正エッジ情報PEDGE[ch]、負エッジ情報REDGE[ch]をそれぞれ第三の閾値SOBと比較する。
細線化処理部130は、各色(例えばCMYK)の正エッジ情報PEDGE[ch]をそれぞれ第三の閾値SOBと比較し、1つ以上の正エッジ情報PEDGE[ch]が第三の閾値SOBよりも大きい場合に細線化処理部130はベタ判定フラグONSOLIDをONとする。いずれの正エッジ情報PEDGE[ch]も第三の閾値SOB以下である場合、細線化処理部130は、ベタ判定フラグONSOLIDをOFFとする。
また、細線化処理部130は、各色(例えばCMYK)の負エッジ情報REDGE[ch]をそれぞれ第三の閾値SOBと比較し、1つ以上の負エッジ情報REDGE[ch]が第三の閾値SOBよりも大きい場合に細線化処理部130はベタ判定フラグRVSOLIDをONとする。いずれの負エッジ情報REDGE[ch]も第三の閾値SOB以下である場合、細線化処理部130は、ベタ判定フラグRVSOLIDをOFFとする。
Next, the thinning
In the thinning process, the thinning
In the present embodiment, the thinning
The thinning
Further, the thinning
ベタ判定フラグONSOLID、RVSOLIDの生成の後、細線化処理部130は、細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]に基づいて細線化強度係数FTVL、BTVLの値を決定する。細線化強度係数FTVL、BTVLは、細線化の強度を示す係数である。
After generating the solid determination flags ONSOLID and RVSOLID, the thinning
図14に、細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]と細線化強度係数FTVL、BTVLとの対応関係を示す。
図14に示すように、細線構造信号ThinLine[ch]、白抜き文字情報WThinLine[ch]の値に応じて、細線化強度係数FTVL、BTVLに個別の設定があらかじめなされている。
図14に示すSTVL及びBGSTVLは、注目画素Cが細線構造(例えば1画素幅又は2画素幅の線)及び白抜き文字を構成しない場合に用いられる設定値を示す。TLVL(TLVL1〜4)及びBGTLVL (BGTLVL1〜4)は、注目画素Cが細線構造を構成し、白抜き文字を構成しない場合に用いられる設定値を示す。WEVL (WEVL1,2)及びBGWEVL (BGWEVL1,2)は、注目画素Cが細線構造を構成せず、白抜き文字を構成する場合に用いられる設定値を示す。SWVL (SWVL1〜8)及びBGSWVL (BGSWVL1〜8)は、注目画素Cが細線構造及び白抜き文字を構成する場合に用いられる設定値を示す。
FIG. 14 shows a correspondence relationship between the thin line structure signal ThinLine [ch] and the outline character information WThinLine [ch] and the thinning intensity coefficients FTVL and BTVL.
As shown in FIG. 14, the thinning intensity coefficients FTVL and BTVL are individually set in advance according to the values of the thin line structure signal ThinLine [ch] and the outline character information WThinLine [ch].
STVL and BGSTVL shown in FIG. 14 indicate setting values used when the pixel of interest C does not form a thin line structure (for example, a line having a width of 1 pixel or 2 pixels) and a white character. TLVL (TLVL1 to 4) and BGTLVL (BGTLVL1 to 4) indicate setting values used when the target pixel C forms a thin line structure and does not form a white character. WEVL (WEVL1,2) and BGWEVL (BGWEVL1,2) indicate setting values used when the pixel of interest C does not form a thin line structure but forms an outline character. SWVL (SWVL1 to 8) and BGSWVL (BGSWVL1 to 8) indicate setting values used when the target pixel C forms a thin line structure and white characters.
各設定値には、それぞれ具体的な細線化の強度を示す値が設定される。本実施形態では、細線化の強度を最小(0)〜最大(100)で示す。大きな値が設定されるほど、細線化処理で施される細線化の度合い(強度)は強くなる。各設定値は、細線構造信号ThinLine[ch]が示す、注目画素Cを含む線画の幅方向の画素数が多いほど注目画素Cの細線化の強度、即ち細線化処理による注目画素Cの画素値の変更の度合いを大きくするよう設定される。 Each setting value is set to a value indicating a specific thinning intensity. In the present embodiment, the thinning intensity is indicated by a minimum (0) to a maximum (100). As a larger value is set, the degree (strength) of thinning performed in the thinning process becomes stronger. Each set value indicates the thinning intensity of the target pixel C, that is, the pixel value of the target pixel C by the thinning process as the number of pixels in the width direction of the line drawing including the target pixel C indicated by the thin line structure signal ThinLine [ch] increases. Is set to increase the degree of change.
図15に、図14に示す表の各設定値を具体化した一例を示す。
各設定値間を相対比較した場合の傾向として、WEVL及びBGWEVLは、大きな値が設定される。これは、白抜き文字がつぶれないよう、白抜き文字の輪郭を構成する画素の細線化を強めに行うことが望ましいためである。また、STVL及びBGSTVLも、大きな値が設定される。これは、細線構造でも白抜き文字でもない部分の輪郭には、強い細線化処理を施しても文字のかすれや消失を生じる可能性が低いためである。一方、TLVL及びBGTLVLは、弱めに設定される。これは、これは、細線構造に対して強い細線化処理を行うと、文字のかすれや消失を生じる可能性が大きくなるため、細線化処理の強度を弱くしたいためである。SWVL 及びBGSWVLは、中庸な値が設定される。これは、注目画素Cが細線構造を構成するため細線化処理の強度を弱くしたい一方で、注目画素Cが白抜き文字も同時に構成するため、細線化処理の強度が弱すぎると白抜き文字がつぶれる可能性が生じることから、強度を一方的に大きく、又は小さく設定することが困難なためである。
FIG. 15 shows an example in which each setting value in the table shown in FIG. 14 is embodied.
Large values are set for WEVL and BGWEVL as a tendency when the set values are relatively compared. This is because it is desirable to increase the thinning of the pixels constituting the outline of the outline character so that the outline character is not collapsed. Also, large values are set for STVL and BGSTVL. This is because the outline of a portion that is neither a fine line structure nor a white character is less likely to cause blurring or disappearance of the character even if a strong thinning process is performed. On the other hand, TLVL and BGTLVL are set weakly. This is because if the thinning process is performed with respect to the thin line structure, the possibility of fading or disappearance of characters increases, so that it is desired to reduce the strength of the thinning process. SWVL and BGSWVL are set to moderate values. This is because the pixel of interest C forms a thin line structure and thus it is desired to reduce the strength of the thinning process. On the other hand, the pixel of interest C also forms a white character at the same time. This is because it is difficult to set the strength unilaterally large or small because the possibility of crushing occurs.
本実施形態では、細線化処理部130は、細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]に応じ、図15に示す細線化強度係数FTVL、BTVLの設定値を取得する。図15に示す各設定値は一例であり、他の値を設定してもよい。
In the present embodiment, the thinning
細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]と細線化強度係数FTVL、BTVLとの対応関係を示すデータ(対応付け情報)は、細線化処理部130が保持している。このように、細線化処理部130は、線幅情報と輪郭画素に対して施す画素値の変更の度合いとを対応付ける対応付け情報を保持する対応付け情報保持手段として機能する。
The thinning
また、細線化処理部130は、細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]に基づいて、ToTalThinLineを設定し、その値を決定する。
ToTalThinLineの値の決定にあたり、後述する式(3)、(4)のように、細線化処理部130は、各色の細線構造信号ThinLine[ch]の論理和(TotalTL)及び各色の白抜き文字情報WThinLine[ch]の論理和(TotalWTL)を得る。
TotalTL=(ThinLine[0]|ThinLine[1] |ThinLine[2]|ThinLine[3])……(3)
TotalWTL=(WThinLine[0]|WThinLine[1]|WThinLine[2]|WThinLine[3])……(4)
そして、細線化処理部130は、後述する式(5)のように、TotalTLとTotalWTLの論理和をTotalThinLineとして得る。つまり、TotalThinLineの値は、各色の細線構造信号ThinLine[ch]及び各色の白抜き文字情報WThinLine[ch]の論理和に応じる。
TotalThinLine=(TotalTL|TotalWTL)……(5)
Further, the thinning
In determining the value of ToTalThinLine, as shown in equations (3) and (4) described later, the thinning
TotalTL = (ThinLine [0] | ThinLine [1] | ThinLine [2] | ThinLine [3]) …… (3)
TotalWTL = (WThinLine [0] | WThinLine [1] | WThinLine [2] | WThinLine [3]) …… (4)
Then, the thinning
TotalThinLine = (TotalTL | TotalWTL) …… (5)
また、細線化処理部130は、属性データTAGのチェック処理及び拡張タグ(ETAG)の設定を行う。具体的には、細線化処理部130は、注目画素C及び注目画素Cに対して上下左右又は斜めのいずれかで隣接する8画素の属性データTAGを取得する。そして、取得された属性データTAGのいずれかがTEXT又はGRAPHICSを示す場合、細線化処理部130は注目画素Cに対して拡張タグ(ETAG)を設定し、ETAGの値をTEXT/GRAPHICSとする。一方、取得された属性データTAGのいずれもTEXT又はGRAPHICSを示さない、即ち9画素全ての属性データTAGがIMAGEを示す場合、細線化処理部130は注目画素Cに対して拡張タグ(ETAG)を設定し、ETAGの値をIMAGEとする。
The thinning
また、細線化処理部130は、正エッジ情報PEDGE[ch]、負エッジ情報REDGE[ch]及び細線化強度係数FTVL、BTVLに基づいて前景強度dST_power_FG[ch]、背景強度dST_power_BG[ch]の算出を行う。本実施形態の細線化処理部130は、式(6)、(7)を用いて前景強度dST_power_FG[ch]、背景強度dST_power_BG[ch]の算出を行う。
dST_power_FG[ch]=−(FTVL×(PEDGE[ch]−REDGE[ch]))/256……(6)
dST_power_BG[ch]=(BTVL×(PEDGE[ch]−REDGE[ch]))/256……(7)
前景強度dST_power_FG[ch]、背景強度dST_power_BG[ch]の算出は、各色(例えばCMYK)に対して個別に行われる。
Further, the thinning
dST_power_FG [ch] = − (FTVL × (PEDGE [ch] −REDGE [ch])) / 256 …… (6)
dST_power_BG [ch] = (BTVL × (PEDGE [ch] −REDGE [ch])) / 256 …… (7)
The foreground intensity dST_power_FG [ch] and the background intensity dST_power_BG [ch] are calculated individually for each color (for example, CMYK).
次に、細線化処理部130は、補正値dST[ch]を設定し、その値を決定する。
細線化処理部130は、補正値dST[ch]の値を決定するにあたり、輪郭情報E_EDGE、ETAG、ベタ判定フラグONSOLID及び背景情報BACKGROUND[ch]の値をチェックする。注目画素Cについて、輪郭情報E_EDGEがONであり、ETAGの値がIMAGEでなく、ベタ判定フラグONSOLIDがONであって、かつ、背景情報BACKGROUND[ch]がOFFの場合、細線化処理部130は前景強度dST_power_FG[ch]の値を補正値dST[ch]の値とする。また、注目画素Cについて、輪郭情報E_EDGEであり、ETAGの値がIMAGEでなく、ベタ判定フラグONSOLIDがONであって、かつ、背景情報BACKGROUND[ch]がONの場合、細線化処理部130は背景強度dST_power_BG[ch]の値を補正値dST[ch]の値とする。それ以外の場合、即ち、輪郭情報E_EDGEがOFFであるか、ETAGの値がIMAGEであるか、あるいはベタ判定フラグONSOLIDがOFFである場合、細線化処理部130は補正値dST[ch]の値を0とする。
Next, the thinning
In determining the correction value dST [ch], the thinning
また、細線化処理部130は、細線化フラグFlagST[ch]を設定し、その値を決定する。細線化フラグFlagST[ch]は細線化を行うか否かをON/OFFで示すデータである。
細線化処理部130は、細線化フラグFlagST[ch]の値を決定するにあたり、輪郭情報E_EDGE、ETAG及びベタ判定フラグONSOLIDの値をチェックする。注目画素Cについて、輪郭情報E_EDGEがONであり、ETAGの値がIMAGEでなく、かつ、ベタ判定フラグONSOLIDがONの場合、細線化処理部130は細線化フラグFlagST[ch]をONとする。それ以外の場合、即ち、輪郭情報E_EDGEがOFFであるか、ETAGの値がIMAGEであるか、あるいはベタ判定フラグONSOLIDがOFFである場合、細線化処理部130は細線化フラグFlagST[ch]をOFFとする。
Further, the thinning
In determining the value of the thinning flag FlagST [ch], the thinning
輪郭情報E_EDGEがONであるということは、注目画素Cが輪郭(エッジ)を構成する画素であることを示す。ETAGの値がIMAGEでないとういうことは、属性データTAGがTEXT又はGRAPHICSであり、注目画素Cが文字又は線画を構成する画素であることを示す。そして、ベタ判定フラグONSOLIDがONであるということは、注目画素Cが前景のベタ画素であることを示す。
本実施形態において、細線化処理部130は、注目画素Cが輪郭(エッジ)を構成する画素であり、文字又は線画を構成する画素であり、注目画素Cが前景のベタ画素である場合に細線化処理を行う。そこで、輪郭情報E_EDGE、ETAG及びベタ判定フラグONSOLIDの値をチェックし、細線化フラグFlagST[ch]のON/OFFを決定する。
また、細線化処理部130は、注目画素Cが前景に含まれるか背景に含まれるかによって、細線化処理による注目画素値の画素値を変更する。注目画素Cが前景に含まれる場合、周囲に対して注目画素Cの画素値が大きい、即ち色が濃いということである。この場合、細線化処理部130は補正値dST[ch]の値を注目画素Cの画素値を低減させる値とする。式(6)に示すように、前景強度dST_power_FG[ch]の値は負の値である。後述する式(9)で示すように、細線化処理部130は、注目画素Cの画素値に補正値dST[ch]の値を加算することで画素値を低減させる。一方、注目画素Cが背景に含まれる場合、周囲に対して注目画素Cの画素値が小さい、即ち色が薄いということである。この場合、細線化処理部130は補正値dST[ch]の値を注目画素Cの画素値を増大させる値とする。式(7)に示すように、背景強度dST_power_BG[ch]の値は正の値である。後述する式(9)で示すように、細線化処理部130は、注目画素Cの画素値に補正値dST[ch]の値を加算することで画素値を増大させる。細線化処理部130は、背景情報BACKGROUND[ch]の値に基づいて、注目画素Cが前景に含まれるか背景に含まれるかを判定する。
The fact that the contour information E_EDGE is ON indicates that the target pixel C is a pixel constituting the contour (edge). That the value of ETAG is not IMAGE indicates that the attribute data TAG is TEXT or GRAPHICS, and the target pixel C is a pixel constituting a character or a line drawing. The solid determination flag ONSOLID being ON indicates that the target pixel C is a foreground solid pixel.
In the present embodiment, the thinning
Further, the thinning
補正値dST[ch]及び細線化フラグFlagST[ch]は、各色(例えばCMYK)に対して個別に設定、決定される。
補正値dST[ch]及び細線化フラグFlagST[ch]の値の決定処理におけるチェック処理のうち共通部分、即ち輪郭情報E_EDGE、ETAG及びベタ判定フラグONSOLIDの値は個別に行う必要は無く、1回のチェック処理で補正値dST[ch]及び細線化フラグFlagST[ch]の値の決定を行うことができる。無論、チェック処理を個別に行っても良い。
The correction value dST [ch] and the thinning flag FlagST [ch] are individually set and determined for each color (for example, CMYK).
Of the check processing in the determination processing of the correction value dST [ch] and the thinning flag FlagST [ch], the common part, that is, the values of the contour information E_EDGE, ETAG, and the solid determination flag ONSOLID do not need to be performed individually, but once In this check process, the correction value dST [ch] and the value of the thinning flag FlagST [ch] can be determined. Of course, the check processing may be performed individually.
次に、細線化処理部130は、細線化実施フラグTotalSTを生成する。
後述する式(8)のように、細線化処理部130は、各色の細線化フラグFlagST[ch]の論理和を細線化実施フラグTotalSTとする。
TotalST=(FlagST[0] | FlagST[1] | FlagST[2] | FlagST[3])……(8)
細線化実施フラグTotalSTは、画像データに含まれる各色(例えばCMYK)のうち、一つ以上の色について、注目画素Cの細線化処理が行われるか否かを示す。いずれか一つ以上の色について注目画素Cの細線化処理が行われる場合、細線化実施フラグTotalSTはONとなる。ここで、いずれか一つ以上の色について注目画素Cの細線化処理が行われる、即ち各色の細線化フラグFlagST[ch]のうち少なくとも一つがONであるということは、各色の輪郭情報E_EDGEのうち少なくとも一つがONであることを示し、注目画素Cが輪郭を構成していることを示す。つまり、細線化実施フラグTotalSTがONであるということは、注目画素Cが輪郭を構成していることを示す。
Next, the thinning
As in equation (8) described later, the thinning
TotalST = (FlagST [0] | FlagST [1] | FlagST [2] | FlagST [3]) …… (8)
The thinning execution flag TotalST indicates whether or not the thinning process of the target pixel C is performed for one or more colors among the colors (for example, CMYK) included in the image data. When the thinning process of the target pixel C is performed for any one or more colors, the thinning execution flag TotalST is turned ON. Here, the thinning process of the pixel of interest C is performed for any one or more colors, that is, at least one of the thinning flags FlagST [ch] of each color is ON, the contour information E_EDGE of each color It indicates that at least one of them is ON, and indicates that the target pixel C forms a contour. That is, that the thinning execution flag TotalST is ON indicates that the target pixel C forms a contour.
また、細線化処理部130は、コントーン入力信号IS[ch]を生成する。細線化処理部130は、以下の式(9)を用いてコントーン入力信号IS[ch]を生成する。
IS[ch]=C[ch]+dST[ch]……(9)
式(9)のC[ch]は、各色(例えばCMYK)の注目画素Cの画素値を示す。つまり、コントーン入力信号IS[ch]は、注目画素Cの画素値C[ch]に補正値dST[ch]を加えた、細線化処理後の画素値を値として持つ。
コントーン入力信号IS[ch]は、各色(例えばCMYK)に対して個別に生成される。
Further, the thinning
IS [ch] = C [ch] + dST [ch] (9)
C [ch] in Expression (9) indicates the pixel value of the pixel of interest C of each color (for example, CMYK). That is, the contone input signal IS [ch] has, as a value, a pixel value after thinning processing in which the correction value dST [ch] is added to the pixel value C [ch] of the target pixel C.
The contone input signal IS [ch] is generated individually for each color (for example, CMYK).
このように、細線化処理部130は、注目画素Cを含む線画の線幅と、細線構造信号ThinLine[ch]と細線化強度係数FTVL、BTVLとの対応関係を示すデータと、に基づいて輪郭画素の画素値を変更する画素値変更手段として機能する。
As described above, the thinning
コントーン処理部140は、コントーン入力信号IS[ch]に対してγ補正(ガンマ補正)処理を施した出力値をコントーン出力信号contone[ch]としてセレクタ160へ出力する。一方、スクリーン処理部150は、注目画素Cの画像データ及び属性データTAGを取得し、注目画素Cに対してγ補正処理及びスクリーン処理を施したスクリーン出力信号screen[ch]を生成し、セレクタ160へ出力する。スクリーン処理部150は、注目画素に対してスクリーン処理を施す一方で、コントーン処理部140は、細線化処理を施した注目画素Cに対してスクリーン処理を施さない。
なお、スクリーン処理及びγ補正処理については既知の処理であるので、その詳細を省略する。
The
Since the screen processing and the γ correction processing are known processing, details thereof are omitted.
セレクタ160は、細線化実施フラグTotalSTに基づいて、コントーン出力信号contone[ch]又はスクリーン出力信号screen[ch]のいずれか一方を出力画像データOut[ch]として画像形成部10へ出力する。
仮に、注目画素Cが細線化処理を施されるべき画素であるにも関わらず細線化処理を経ないスクリーン出力信号screen[ch]を注目画素Cに適用すると、印刷画像の輪郭にジャギーを生じさせ、画質を劣化させることとなる。そこで、セレクタ160は、細線化実施フラグTotalSTに基づいて、注目画素Cが細線化処理を行う対象となる画素であるか否かを判定し、注目画素Cが細線化処理を行う対象となる画素である場合には、セレクタ160はコントーン出力信号contone[ch]を注目画素Cの画素値とした出力画像データOut[ch]を出力する。一方、注目画素Cが細線化処理を行う対象となる画素でない場合には、セレクタ160はスクリーン出力信号screen[ch] を注目画素Cの画素値とした出力画像データOut[ch]を出力する。
Based on the thinning execution flag TotalST, the
If the screen output signal screen [ch] that does not undergo the thinning process is applied to the target pixel C even though the target pixel C is a pixel to be subjected to the thinning process, a jaggy occurs in the outline of the printed image. As a result, the image quality is degraded. Therefore, the
ここで、前述のように、細線化実施フラグTotalSTがONであるということは、注目画素Cは輪郭を構成する画素であるということを示す。つまり、セレクタ160は、細線化実施フラグTotalSTに基づく判定により、画像の各画素に対して、輪郭画素である画素には細線化処理部130の処理結果であるコントーン出力信号contone[ch]を適用し、輪郭画素でない画素にはスクリーン処理部159の処理結果であるスクリーン出力信号screen[ch]を適用する処理選択手段として機能する。
Here, as described above, that the thinning execution flag TotalST is ON indicates that the target pixel C is a pixel constituting the contour. That is, the
次に、画像処理部100の各部の処理内容を図16及至図24のフローチャートを用いて説明する。
図16に、正エッジ情報PEDGE[ch]及び負エッジ情報REDGE[ch]の生成処理の流れの一例をフローチャートで示す。
まず、エッジ抽出部120は、エッジ強度En[ch]を算出する(ステップS1)。
次に、エッジ抽出部120は、注目画素Cの上下左右のエッジ強度(エッジ強度E08、E12、E14、E18)のうち最大値を正エッジ情報PEDGE[ch]とする(ステップS2)。そして、エッジ抽出部120は、正エッジ情報PEDGE[ch]が第一の閾値EDGETH未満であるか否かを判定する(ステップS3)。正エッジ情報PEDGE[ch]が第一の閾値EDGETH未満である場合(ステップS3:YES)、エッジ抽出部120は、正エッジ情報PEDGE[ch]を0とする(ステップS4)。
また、エッジ抽出部120は、注目画素Cの上下左右のエッジ強度(エッジ強度E08、E12、E14、E18)のうち最小値を負エッジ情報REDGE[ch]とする(ステップS5)。そして、エッジ抽出部120は、負エッジ情報REDGE[ch]が第一の閾値EDGETH未満であるか否かを判定する(ステップS6)。負エッジ情報REDGE[ch]が第一の閾値EDGETH未満である場合(ステップS6:YES)、エッジ抽出部120は、負エッジ情報REDGE[ch]を0とする(ステップS7)。
正エッジ情報PEDGE[ch]の生成と負エッジ情報REDGE[ch]の生成順序は順不同である。
Next, the processing contents of each unit of the
FIG. 16 is a flowchart showing an example of the flow of processing for generating positive edge information PEDGE [ch] and negative edge information REDGE [ch].
First, the
Next, the
Further, the
The generation order of the positive edge information PEDGE [ch] and the generation order of the negative edge information REDGE [ch] are in random order.
図17に、輪郭情報E_EDGEの生成処理の流れをフローチャートで示す。
輪郭情報E_EDGEの生成処理に先立ち、正エッジ情報PEDGE[ch]及び負エッジ情報REDGE[ch]の生成処理が行われている。
エッジ抽出部120は、中間データTOTALPEDGE、TOTALREDGEを求める(ステップS11)。次に、エッジ抽出部120は、TOTALPEDGEがTOTALREDGEより大きいか否かを判定する(ステップS12)。TOTALPEDGEがTOTALREDGEより大きい場合(ステップS12:YES)、エッジ抽出部120は、輪郭情報E_EDGEをONとする(ステップS13)。一方、TOTALPEDGEがTOTALREDGE以下の場合(ステップS12:NO)、エッジ抽出部120は、輪郭情報E_EDGEをOFFとする(ステップS14)。
FIG. 17 is a flowchart showing the flow of processing for generating the contour information E_EDGE.
Prior to the generation process of the contour information E_EDGE, the generation process of the positive edge information PEDGE [ch] and the negative edge information REDGE [ch] is performed.
The
図18に、前景情報FOREGROUND[ch]及び背景情報BACKGROUND[ch]の生成処理の流れをフローチャートで示す。
前景情報FOREGROUND[ch]及び背景情報BACKGROUND[ch]の生成処理に先立ち、正エッジ情報PEDGE[ch]及び負エッジ情報REDGE[ch]の生成処理が行われている。
エッジ抽出部120は、正エッジ情報PEDGE[ch]が負エッジ情報REDGE[ch]より大きいか否かを判定する(ステップS21)。正エッジ情報PEDGE[ch]が負エッジ情報REDGE[ch]より大きい場合(ステップS21:YES)、エッジ抽出部120は、前景情報FOREGROUND[ch]をONとし、背景情報BACKGROUND[ch]をOFFとして(ステップS22)、処理を終了する。正エッジ情報PEDGE[ch]が負エッジ情報REDGE[ch]以下の場合(ステップS21:NO)、エッジ抽出部120は、正エッジ情報PEDGE[ch]が負エッジ情報REDGE[ch]より小さいか否かを判定する(ステップS23)。正エッジ情報PEDGE[ch]が負エッジ情報REDGE[ch]より小さい場合(ステップS23:YES)、エッジ抽出部120は、前景情報FOREGROUND[ch]をOFFとし、背景情報BACKGROUND[ch]をONとして(ステップS24)、処理を終了する。ステップS23において、正エッジ情報PEDGE[ch]が負エッジ情報REDGE[ch]より小さくない場合(ステップS23:NO)、エッジ抽出部120は、前景情報FOREGROUND[ch]、背景情報BACKGROUND[ch]を共にOFFとして(ステップS25)、処理を終了する。
FIG. 18 is a flowchart showing a flow of processing for generating foreground information FOREGROUND [ch] and background information BACKGROUND [ch].
Prior to the generation processing of foreground information FOREGROUND [ch] and background information BACKGROUND [ch], generation processing of positive edge information PEDGE [ch] and negative edge information REDGE [ch] is performed.
The
図19、図20に、細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]の生成処理の流れをフローチャートで示す。
図19は、細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]の生成処理のうち、ステップS31〜S44を示す。
図20は、細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]の生成処理のうち、ステップS45〜S54を示す。
まず、細線化処理部130は、2値化エッジ値en [ch]及び非エッジ値fn[ch]を算出する(ステップS31)。また、細線化処理部130は、細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]を共に初期値0で設定する(ステップS32)。
19 and 20 are flowcharts showing the flow of processing for generating the thin line structure signal ThinLine [ch] and the outline character information WThinLine [ch].
FIG. 19 shows steps S31 to S44 in the generation process of the thin line structure signal ThinLine [ch] and the outline character information WThinLine [ch].
FIG. 20 shows steps S45 to S54 in the generation process of the thin line structure signal ThinLine [ch] and the outline character information WThinLine [ch].
First, the thinning
次に、細線化処理部130は、細線構造信号ThinLine[ch]の値が0であるか否か判定する(ステップS33)。細線構造信号ThinLine[ch]の値が0である場合(ステップS33:YES)、細線化処理部130は、第一のパターンマッチング処理を行い(ステップS34)、マッチした場合(ステップS35:YES)、細線構造信号ThinLine[ch]を1とする(ステップS36)。
ステップS35においてマッチしなかった場合(ステップS35:NO)、細線化処理部130は、細線構造信号ThinLine[ch]の値が0であるか否か判定する(ステップS37)。細線構造信号ThinLine[ch]の値が0である場合(ステップS37:YES)、細線化処理部130は、第二のパターンマッチング処理を行い(ステップS38)、マッチした場合(ステップS39:YES)、細線構造信号ThinLine[ch]を2とする(ステップS40)。
ステップS39においてマッチしなかった場合(ステップS39:NO)、細線化処理部130は、細線構造信号ThinLine[ch]の値が0であるか否か判定する(ステップS41)。細線構造信号ThinLine[ch]の値が0である場合(ステップS41:YES)、細線化処理部130は、第三のパターンマッチング処理を行い(ステップS42)、マッチした場合(ステップS43:YES)、細線構造信号ThinLine[ch]を3とする(ステップS44)。
ステップS43においてマッチしなかった場合(ステップS43:NO)、細線化処理部130は、細線構造信号ThinLine[ch]の値が0であるか否か判定する(ステップS45)。細線構造信号ThinLine[ch]の値が0である場合(ステップS45:YES)、細線化処理部130は、第三のパターンマッチング処理を行い(ステップS46)、マッチした場合(ステップS47:YES)、細線構造信号ThinLine[ch]を4とする(ステップS48)。
Next, the thinning
When there is no match in step S35 (step S35: NO), the thinning
If there is no match in step S39 (step S39: NO), the thinning
If no match is found in step S43 (step S43: NO), the thinning
ステップS36、S40、S44又はS48の処理後、ステップS47においてマッチしなかった場合(ステップS47:NO)あるいはステップS33、S37、S41、S45において細線構造信号ThinLine[ch]の値が0でなかった場合、細線化処理部130は、第五のパターンマッチング処理を行い(ステップS49)、マッチした場合(ステップS50:YES)、白抜き文字情報WThinLine[ch]を1とする(ステップS51)。
ステップS50においてマッチしなかった場合(ステップS50:NO)、細線化処理部130は、第六のパターンマッチング処理を行い(ステップS52)、マッチした場合(ステップS53:YES)、白抜き文字情報WThinLine[ch]を2とする(ステップS54)。
ステップS51又はS54の処理後あるいはステップS53においてマッチしなかった場合(ステップS53:NO)、細線化処理部130は処理を終了する。
After step S36, S40, S44 or S48, if there is no match in step S47 (step S47: NO) or the value of the thin line structure signal ThinLine [ch] is not 0 in steps S33, S37, S41, S45 In this case, the thinning
If there is no match in step S50 (step S50: NO), the thinning
After the process of step S51 or S54 or when there is no match in step S53 (step S53: NO), the thinning
ステップS31の処理のうち、非エッジ値fn[ch]の算出はステップS49の処理前に行われていればよく、必ずしも2値化エッジ値en [ch]と同時に算出する必要はない。同様に、ステップS32の処理のうち、白抜き文字情報WThinLine[ch]を初期値0で設定する処理についても、非エッジ値fn[ch]の算出はステップS49の処理前に行われていればよく、必ずしも細線構造信号ThinLine[ch]と同時に設定する必要はない。
また、細線構造信号ThinLine[ch]の値を決定する処理と、白抜き文字情報WThinLine[ch]の値を決定する処理の順序は順不同である。
また、ステップS33、S37、S41、S45の処理は省略することができる。
Of the processing in step S31, the non-edge value fn [ch] may be calculated before the processing in step S49, and is not necessarily calculated simultaneously with the binarized edge value en [ch]. Similarly, in the process of setting the white character information WThinLine [ch] with the
The order of the process for determining the value of the thin line structure signal ThinLine [ch] and the process for determining the value of the outline character information WThinLine [ch] are in no particular order.
Further, the processes of steps S33, S37, S41, and S45 can be omitted.
図21に、ベタ判定フラグONSOLID、RVSOLIDの生成処理の流れをフローチャートで示す。
細線化処理部130は、各色(例えばCMYK)の正エッジ情報PEDGE[ch]のいずれか一つ以上について、第三の閾値SOBより大きいか否かを判定する。(ステップS61)各色の正エッジ情報PEDGE[ch]のいずれか一つ以上が第三の閾値SOBより大きい場合(ステップS61:YES)、細線化処理部130はベタ判定フラグONSOLIDをONとする(ステップS62)。各色の正エッジ情報PEDGE[ch]のいずれも第三の閾値SOB以下である場合(ステップS61:NO)、細線化処理部130はベタ判定フラグONSOLIDをOFFとする(ステップS63)。
また、細線化処理部130は、各色(例えばCMYK)の負エッジ情報REDGE[ch]のいずれか一つ以上について、第三の閾値SOBより大きいか否かを判定する。(ステップS64)各色の負エッジ情報REDGE[ch]のいずれか一つ以上が第三の閾値SOBより大きい場合(ステップS64:YES)、細線化処理部130はベタ判定フラグRVSOLIDをONとする(ステップS65)。各色の負エッジ情報REDGE[ch]のいずれも第三の閾値SOB以下である場合(ステップS64:NO)、細線化処理部130はベタ判定フラグRVSOLIDをOFFとする(ステップS66)。
FIG. 21 is a flowchart showing the flow of processing for generating the solid determination flags ONSOLID and RVSOLID.
The thinning
Further, the thinning
ベタ判定フラグONSOLIDの生成処理とベタ判定フラグRVSOLIDの生成処理の順序は順不同である。 The order of the solid determination flag ONSOLID generation process and the solid determination flag RVSOLID generation process is not specified.
図22に、拡張タグ(ETAG)の設定処理の流れをフローチャートで示す。
細線化処理部130は。注目画素C及び注目画素Cに対して上下左右又は斜めのいずれかで隣接する8画素、計9画素の属性データTAGが全てIMAGEを示す値であるか否か判定する(ステップS71)。当該9画素の属性データTAGが全てIMAGEを示す値である場合(ステップS71:YES)、細線化処理部130は、ETAGの値をIMAGEとする(ステップS72)。一方、当該9画素の属性データTAGのいずれか1画素以上がIMAGEを示す値でない場合(ステップS71:NO)、細線化処理部130は、ETAGの値をTEXT/GRAPHICSとする(ステップS73)。
FIG. 22 is a flowchart showing the process of setting an expansion tag (ETAG).
The thinning
図23に、補正値dST[ch]及び細線化フラグFlagST[ch]の生成処理の流れをフローチャートで示す。
まず、細線化処理部130は、前景強度dST_power_FG[ch]、背景強度dST_power_BG[ch]を算出する(ステップS81)。
次に、細線化処理部130は、注目画素Cについて、輪郭情報E_EDGEがONであり、ETAGの値がIMAGEでなく、かつ、ベタ判定フラグONSOLIDがONであるか否かを判定する(ステップS82)。注目画素Cについて、輪郭情報E_EDGEがONであり、ETAGの値がIMAGEでなく、かつ、ベタ判定フラグONSOLIDがONである場合(ステップS82:YES)、細線化処理部130は、背景情報BACKGROUND[ch]がONであるか否かを判定する(ステップS83)。背景情報BACKGROUND[ch]がONである場合(ステップS83:YES)、細線化処理部130は、背景強度dST_power_BG[ch]の値を補正値dST[ch]の値とし、細線化フラグFlagST[ch]をONとする(ステップS84)。背景情報BACKGROUND[ch]がOFFである場合(ステップS83:NO)、細線化処理部130は、前景強度dST_power_FG[ch]の値を補正値dST[ch]の値とし、細線化フラグFlagST[ch]をONとする(ステップS85)。ステップS82において、注目画素Cについて、輪郭情報E_EDGEがOFFであるか、ETAGの値がIMAGEであるか、又は、ベタ判定フラグONSOLIDがOFFである場合(ステップS82:NO)、細線化処理部130は、補正値dST[ch]の値を0とし、細線化フラグFlagST[ch]をOFFとする(ステップS86)。
FIG. 23 is a flowchart showing a flow of processing for generating the correction value dST [ch] and the thinning flag FlagST [ch].
First, the thinning
Next, the thinning
図24に、出力画像データOut[ch]の生成処理の流れをフローチャートで示す。
セレクタ160は、細線化実施フラグTotalSTがONであるか否かを判定する(ステップS91)。細線化実施フラグTotalSTがONである場合(ステップS91:YES)、セレクタ160は、コントーン出力信号contone[ch]を出力画像データOut[ch]として出力する(ステップS92)。細線化実施フラグTotalSTがOFFである場合(ステップS91:YES)、セレクタ160は、スクリーン出力信号screen[ch]を出力画像データOut[ch]として出力する(ステップS93)。
FIG. 24 is a flowchart showing the flow of processing for generating output image data Out [ch].
The
画像形成部10は、画像処理部100からの出力画像データOut[ch]に基づいて画像を形成する。
図25に、画像形成部10の主要構成を示す。
画像形成部10は、用紙Aを備蓄可能な給紙トレイ11、12と、給紙トレイ11、12から一枚ずつ用紙Aを引き出す給紙部15、15と、用紙Aを後述する転写部30へ搬送する搬送部20と、用紙Aに画像を転写する転写部30と、用紙Aに転写された画像を定着させる定着部45と、用紙Aを排紙受け部80の上方へ排出する排紙部50と、手差しで給紙を行うための手差し給紙部70と、を有する。
The
FIG. 25 shows a main configuration of the
The
給紙トレイ11は、画像形成部10の側方から引出し可能に設けられる。給紙トレイ11を引き出した状態で、その上方から用紙Aを載置して給紙トレイ11を画像形成部10にセットすることで給紙部15による用紙Aの給紙動作が可能となる。給紙トレイ11は、用紙Aを載置する底面に上げ底部(図示略)を有し、給紙トレイ11のセット時には用紙Aが載置された上げ底部が上昇動作する。これによって、給紙トレイ11内に備蓄された複数の用紙Aのうち、最も上に位置する用紙Aの上面が給紙部15の可動ローラ16に当接する。給紙トレイ12についても給紙トレイ11と同様である。
本実施形態の給紙トレイ11、12は、A4サイズの普通紙を備蓄する。
The
The
給紙部15は、その回転軸が上下動可能に設けられた可動ローラ16と、回転軸が固定された固定ローラ17とを有する。可動ローラ16、固定ローラ17はそれぞれモータ等の駆動部(図示略)によって回転駆動する。
可動ローラ16は、前述のように給紙トレイ11、12内に備蓄された複数の用紙Aのうち、最も上に位置する用紙Aの上面と当接する。用紙Aと当接した状態の可動ローラ16が回転駆動されることで、用紙Aは1枚ずつ固定ローラ17側へと引き出される。固定ローラ17は、可動ローラ16によって引き出された用紙Aを挟んで対向する位置に設けられたローラ18と協働して用紙Aを挟みこみ、回転駆動されることで用紙Aを搬送する。
The
The
給紙部15によって引き出されて搬送された用紙Aは、搬送部20の搬送ローラ21,21によって転写部30へと搬送される。搬送ローラ21,21は、用紙Aの搬送経路を挟んで対向する位置に設けられた一対のローラであり、モータ等の駆動部(図示略)によって回転駆動されることで用紙Aを搬送する。
The paper A drawn out and conveyed by the
転写部30は、中間転写体としての中間転写ベルト31と、テンションローラ33と協働で中間転写ベルト31を張架すると共に中間転写ベルト31を駆動する2次転写駆動ローラ32と、各色(シアン、マゼンダ、イエロー、ブラック)のトナーを担持する感光ドラム34C,34M,34Y,34Kと、中間転写ベルト31を挟んで各感光ドラムと対向する位置にそれぞれ設けられて各感光ドラムのトナーを中間転写ベルト31に転写するプラテンローラ35と、用紙Aにトナーを転写する転写ローラ36と、中間転写ベルト31をクリーニングするクリーニング部41を有する。
The
感光ドラム34C,34M,34Y,34Kの近傍にはそれぞれ各感光ドラムに帯電処理を施す帯電部37C,37M,37Y,37K、各感光ドラムに露光処理を施す露光部38C,38M,38Y,38K、各色のトナーカートリッジ39C,39M,39Y,39K及び各感光ドラムをクリーニングするクリーニング部40、40、40、40が設けられている。2次転写駆動ローラ32及び各感光ドラムはそれぞれモータ等の駆動部(図示略)によって回転駆動される。
In the vicinity of the
以下、転写部30による用紙Aへのトナー画像の転写について、感光ドラム34Kを例に説明する。まず、感光ドラム34Kの近傍の帯電部37Kによって感光ドラム34Kが帯電され、露光部38Kによる感光ドラムの露光により感光ドラム34Kの被露光部分が除電される処理、所謂現像処理が行われる。当該現像処理によってトナーカートリッジ39Kのトナーが感光ドラム34Kに担持される。当該現像処理は、形成する画像に基づいて行われる。他の感光ドラム34C,34M,34Yについても同様に現像処理が行われる。
Hereinafter, transfer of the toner image onto the paper A by the
中間転写ベルト31は2次転写駆動ローラ32の駆動によって稼動し、各感光ドラムに担持されたトナーはそれぞれのプラテンローラ35により中間転写ベルト31に転写される(一次転写)。一次転写により、中間転写ベルト31はトナーを担持する。このとき、各色のトナーが重なるように転写され、ひとつの画像を形成する。中間転写ベルト31に担持されたトナーは、中間転写ベルト31と転写ローラ36とによって用紙Aが挟まれる位置で用紙Aに転写される(2次転写)。かようにして用紙Aへのトナー画像の転写が行われる。用紙Aへのトナー画像の転写と共に、中間転写ベルト31の稼動と転写ローラ36の協働により用紙Aは定着部45へと搬送される。一次転写後の各感光ドラムは各感光ドラム近傍のクリーニング部40に、2次転写後の中間転写ベルト31はクリーニング部41によって転写されなかった残存トナーをクリーニングされる。
The
定着部45は、用紙Aを加熱して用紙Aに転写されたトナーを定着させる定着ローラ46と、用紙Aの搬送経路を挟んで定着ローラ46と対向する位置に設けられて用紙Aを定着ローラ46に圧接させる圧接ローラ47と、を有する。
転写部30によってトナーを転写された用紙Aは定着部45へと搬送され、定着ローラ46と圧接ローラ47との間へ導かれる。定着ローラ46はその内部に熱源(例えばコイルやハロゲンランプ等)を有しており、当該熱源により用紙Aを加熱して定着処理を行う。このとき、圧接ローラ47が用紙Aを定着ローラ46に圧接する。定着ローラ46、圧接ローラ47は用紙Aに対する定着処理と共にその回転運動により用紙Aを上方へと搬送する。
The fixing
The sheet A onto which the toner has been transferred by the
排紙部50は、モータ等の駆動部(図示略)により回転駆動される排紙ローラ51と、ローラ52とを有する。排紙ローラ51は回転駆動されることにより、画像形成の終了した用紙Aを排紙受け部80の上方に排出する。
The
手差し給紙部70は、用紙Aを載置する外部給紙トレイ71と、外部給紙トレイ71に載置された用紙Aを搬送する給紙ローラ72と、を有する。用紙Aは、外部給紙トレイ71上に載置され、モータ等の駆動部(図示略)によって駆動される給紙ローラ72により引き込まれ、搬送部20へと搬送される。
The manual
以上、本実施形態によれば、エッジ抽出部120によって輪郭画素の検出が行われる。そして、細線化処理部130によって検出された輪郭画素を含む線画の線幅と、輪郭画素を含む線画の線幅に応じて設定された細線化強度係数FTVL、BTVLとに基づいて細線化処理が行われる。これによって、線画の線幅に応じた強度の細線化処理を行うことができる。このため、太い線幅を有する線画に対しては強い細線化処理を施し、細い線幅を有する線画に対しては弱い細線化処理を施すことができる。よって、本実施形態の画像処理部100は、細線化処理によって画像データに含まれる線画の見た目の太さを均一化させてしまうことなく、線幅の見た目の太さの差異を保持した細線化処理を行うことができる。また、細い線幅を有する線画に対しては弱い細線化処理を施すことができるので、細線化処理によって線が細くなりすぎてかすれや消失を生じることがあった従来の細線化処理の問題点も解消することができる。つまり、画質を損なうことのない良好な細線化処理を施すことができる。
As described above, according to the present embodiment, the
さらに、細線構造信号ThinLine[ch]は、注目画素Cを含む線画の幅方向の画素数に応じて個別に値を設定することができるので、細線構造信号ThinLine[ch]の値によって線画の幅方向の画素数を分類することができる。これによって、線画の幅方向の画素数に応じて細線化処理の強度を個別に設定することができ、より柔軟できめ細かな細線化処理を行うことができる。 Further, since the value of the thin line structure signal ThinLine [ch] can be set individually according to the number of pixels in the width direction of the line drawing including the target pixel C, the width of the line drawing is determined by the value of the thin line structure signal ThinLine [ch]. The number of pixels in the direction can be classified. Thereby, the intensity of the thinning process can be individually set according to the number of pixels in the width direction of the line drawing, and a more flexible and finer thinning process can be performed.
さらに、細線構造信号ThinLine[ch]は、注目画素Cを含む線画の幅方向が画像データにおける画素の並びの縦横のいずれか一方に沿っているか否かに応じて設定することができる。
線画の線幅は、線画の幅方向が画像データにおける画素の並びの縦横のいずれか一方に沿っている場合、線画の幅方向が画像データにおける画素の並びの縦横のいずれか一方に沿っていない場合(例えば斜め方向の場合等)に比して線幅が細くなる。例えば、正方形の画素の場合、斜め方向である対角線の幅は、縦横の辺の幅に対して約1.41倍(√2倍)となる。このように、線画の幅方向が画像データにおける画素の並びの縦横のいずれか一方に沿っているか否かによって線画の線幅が変わる。本実施形態では、細線構造信号ThinLine[ch]の値によって線画の幅方向が画像データにおける画素の並びの縦横のいずれか一方に沿っているか否かを分類することができるので、線画の幅方向が画像データにおける画素の並びの縦横のいずれか一方に沿っているか否かによって変ずる線画の線幅に応じて細線化処理の強度を個別に設定することができる。つまり、本実施形態の画像処理部100は、いっそう柔軟できめ細かな細線化処理を行うことができる。
Further, the thin line structure signal ThinLine [ch] can be set according to whether the width direction of the line drawing including the target pixel C is along one of the vertical and horizontal directions of the pixel arrangement in the image data.
When the line drawing width direction is along one of the vertical and horizontal directions of the pixel arrangement in the image data, the line drawing width direction is not along either the vertical and horizontal arrangement of the pixel arrangement in the image data. The line width is narrower than in the case (for example, in the oblique direction). For example, in the case of a square pixel, the width of the diagonal line in the diagonal direction is approximately 1.41 times (√2 times) the width of the vertical and horizontal sides. Thus, the line width of the line drawing changes depending on whether the width direction of the line drawing is along one of the vertical and horizontal directions of the pixel arrangement in the image data. In the present embodiment, it is possible to classify whether the width direction of the line drawing is along one of the vertical and horizontal arrangements of the pixels in the image data based on the value of the thin line structure signal ThinLine [ch]. The strength of the thinning process can be individually set according to the line width of the line drawing that changes depending on whether the pixel line is along one of the vertical and horizontal directions of the pixel arrangement in the image data. That is, the
さらに、対応付け情報は、細線構造信号ThinLine[ch]が示す線画の幅方向の画素数が多いほど輪郭画素の画素値の変更の度合いを大きくするよう設定される。このため、細線化処理部130は、太い線幅を有する線画に対しては強い細線化処理を施し、細い線幅を有する線画に対しては弱い細線化処理を施す。これによって、細線化処理によって画像データに含まれる線画の見た目の太さを均一化させてしまうことなく、線幅の見た目の太さの差異を保持した細線化処理を行うことができる。また、細い線幅を有する線画に対しては弱い細線化処理を施すことができるので、細線化処理によって線が細くなりすぎてかすれや消失を生じることがあった従来の細線化処理の問題点も解消することができる。つまり、画質を損なうことのない良好な細線化処理を施すことができる。
Furthermore, the association information is set so that the degree of change in the pixel value of the contour pixel increases as the number of pixels in the width direction of the line drawing indicated by the thin line structure signal ThinLine [ch] increases. Therefore, the thinning
さらに、セレクタ160は、輪郭画素である注目画素Cの画素値としてコントーン出力信号contone[ch]を適用し、輪郭画素でない注目画素Cの画素値としてスクリーン出力信号screen[ch]を適用する。これによって、輪郭画素に細線化処理を施し、輪郭画素ではない画素に細線化処理を施さないことができる。つまり、細線化処理を施す対象を好適に選定することができ、不要な細線化処理による画質劣化を生じさせずに良好な細線化処理を施すことができる。
Further, the
さらに、本実施形態の細線化処理部130は、各画素が白抜き文字の輪郭を構成するか否かについて判定する。そして、細線化処理部130は、白抜き文字を構成するか否かの情報を白抜き文字情報WThinLine[ch]の値によって各画素に対して設定する。さらに、細線化処理部130は、細線構造信号ThinLine[ch]及び白抜き文字情報WThinLine[ch]の値と細線化処理の強度を示す各設定値とを対応付ける対応付け情報を保持する。そして、細線化処理の強度は、当該対応付け情報によって決定される。つまり、線画の線幅に加えて、白抜き文字を構成するか否かに基づいて細線化処理の強度が決定される。これによって、白抜き文字をつぶさない良好な細線化処理を施すことができる。
Furthermore, the thinning
なお、本発明の実施の形態は、今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 The embodiment of the present invention should be considered that the embodiment disclosed this time is illustrative and not restrictive in all respects. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
例えば、前述の実施形態では、画像形成装置に設けられた画像処理部100について記載されているが、他の形態をとってもよい。例えば、本発明の画像処理装置をコントローラに設けてもよいし、独立した装置として設けてもよい。
For example, in the above-described embodiment, the
また、前述の実施形態では、画像処理装置の各部の機能をハードウェア処理によって実現しているが、ソフトウェア処理によって同様の処理を行ってもよい。 In the above-described embodiment, the functions of each unit of the image processing apparatus are realized by hardware processing, but similar processing may be performed by software processing.
また、画像形成装置が用いる色の種類及び色数(CMYK)は一例であり、他の色、色数を用いてもよい。例えば、CMY、RGB、その他の画像形成装置で用いることのできる色が挙げられる。 Further, the types of colors and the number of colors (CMYK) used by the image forming apparatus are examples, and other colors and the number of colors may be used. For example, CMY, RGB, and other colors that can be used in the image forming apparatus can be given.
その他、前述の実施形態で画像処理部100が生成、設定する各種のパラメータ、予め設定された閾値やパターンマッチングのパターン、対応付け情報等の開示例はあくまで一例であり、本発明の特徴を逸脱しない範囲内で適宜設定することができる。
In addition, disclosure examples of various parameters generated and set by the
110 ラインバッファ
120 エッジ抽出部
130 細線化処理部
140 コントーン処理部
150 スクリーン処理部
159 スクリーン処理部
160 セレクタ
110
Claims (10)
画像の輪郭画素を検出する輪郭検出手段と、
前記輪郭画素を含む線画を検出し、当該線画の線幅と、前記輪郭画素に隣接する背景の線画の有無と、を判定する線画検出手段と、
前記複数の細線化強度係数のうち、前記線画検出手段により判定された前記線画の線幅と、前記背景の線画の有無と、に対応する細線化強度係数を取得し、取得した細線化強度係数を用いて前記輪郭画素の画素値を変更する画素値変更手段と、
を備えることを特徴とする画像処理装置。 A plurality of thinning intensity coefficient holding means set according to the line width of the line drawing, the presence or absence of a background line drawing adjacent to the line drawing, and
Contour detecting means for detecting contour pixels of the image;
Detecting a line image including the contour pixel, the line width of the line drawing, and the presence or absence of the line drawing the background adjacent to the contour pixel, a line image detection means for determining,
Among the plurality of thinning intensity coefficients, the thinning intensity coefficient corresponding to the line width of the line drawing determined by the line drawing detection unit and the presence or absence of the background line drawing is obtained, and the obtained thinning intensity coefficient Pixel value changing means for changing the pixel value of the contour pixel using
An image processing apparatus comprising:
前記線画検出手段は、前記輪郭画素を含む線画を検出し、当該線画の線幅と、前記輪郭画素に隣接する背景の線画の有無と、当該線画の方向と、を判定し、
前記画素値変更手段は、前記複数の細線化強度係数のうち、前記線画検出手段により判定された前記線画の線幅と、前記背景の線画の有無と、前記線画の方向と、に対応する細線化強度係数を取得し、取得した細線化強度係数を用いて前記輪郭画素の画素値を変更することを特徴とする請求項1に記載の画像処理装置。 The holding means holds a plurality of thinning intensity coefficients set according to the line width of the line drawing, the presence or absence of a background line drawing adjacent to the line drawing, and the direction of the line drawing,
The line drawing detection means detects a line drawing including the contour pixel, determines the line width of the line drawing, the presence or absence of a background line drawing adjacent to the contour pixel, and the direction of the line drawing,
The pixel value changing unit is a thin line corresponding to a line width of the line drawing determined by the line drawing detecting unit, presence or absence of the background line drawing, and a direction of the line drawing among the plurality of thinning intensity coefficients. The image processing apparatus according to claim 1, wherein the image processing apparatus is configured to acquire a reduction intensity coefficient and change a pixel value of the contour pixel using the acquired thinning intensity coefficient .
前記細線化強度係数は、前記線画の幅方向の画素数が多いほど、前記輪郭画素の画素値の変更の度合いが大きくなるように設定されていることを特徴とする請求項1から3のいずれか一項に記載の画像処理装置。 The line width is the number of pixels in the width direction of the line drawing,
4. The thinning intensity coefficient is set such that the degree of change in the pixel value of the contour pixel increases as the number of pixels in the width direction of the line drawing increases. An image processing apparatus according to claim 1.
前記画像の各画素に対して、輪郭画素である画素には前記画素値変更手段の処理結果を適用し、輪郭画素でない画素には前記中間調処理手段の処理結果を適用する処理選択手段と、を備えることを特徴とする請求項1から4のいずれか一項に記載の画像処理装置。 Halftone processing means for applying halftone processing to each pixel of the image;
For each pixel of the image, a processing selection unit that applies a processing result of the pixel value changing unit to a pixel that is a contour pixel, and applies a processing result of the halftone processing unit to a pixel that is not a contour pixel; The image processing apparatus according to claim 1, further comprising:
前記輪郭画素を含む線画を検出し、当該線画の線幅と、前記輪郭画素に隣接する背景の線画の有無と、を判定する線画検出工程と、
線画の線幅と、当該線画に隣接する背景の線画の有無と、に応じて設定された複数の細線化強度係数のうち、前記線画検出工程により判定された前記線画の線幅と、前記背景の線画の有無と、に対応する細線化強度係数を取得し、取得した細線化強度係数を用いて前記輪郭画素の画素値を変更する画素値変更工程と、
を有することを特徴とする画像処理方法。 A contour detection step of detecting a contour pixel of the image;
Detecting a line image including the contour pixel, the line width of the line image, a line image detection step of determining, the presence or absence of a line drawing of a background adjacent to the contour pixel,
The line width of the line drawing determined by the line drawing detection step among the plurality of thinning intensity coefficients set according to the line width of the line drawing and the presence or absence of the background line drawing adjacent to the line drawing, and the background A pixel value changing step of acquiring the thinning intensity coefficient corresponding to the presence or absence of the line drawing, and changing the pixel value of the contour pixel using the acquired thinning intensity coefficient ;
An image processing method comprising:
前記画素値変更工程では、前記線画の線幅と、当該線画に隣接する背景の線画の有無と、当該線画の方向と、に応じて設定された複数の細線化強度係数のうち、前記線画検出工程により判定された前記線画の線幅と、前記背景の線画の有無と、前記線画の方向と、に対応する細線化強度係数を取得し、取得した細線化強度係数を用いて前記輪郭画素の画素値を変更することを特徴とする請求項6に記載の画像処理方法。 In the line drawing detection step, a line drawing including the outline pixel is detected, the line width of the line drawing, the presence or absence of a background line drawing adjacent to the outline pixel, and the direction of the line drawing are determined,
In the pixel value changing step, the line drawing detection is performed among a plurality of thinning intensity coefficients set according to the line width of the line drawing, the presence or absence of a background line drawing adjacent to the line drawing, and the direction of the line drawing. The thinning intensity coefficient corresponding to the line width of the line drawing determined by the process, the presence or absence of the line drawing of the background, and the direction of the line drawing is acquired, and the outline pixel of the contour pixel is acquired using the acquired thinning intensity coefficient. The image processing method according to claim 6, wherein the pixel value is changed .
前記細線化強度係数は、前記線画の幅方向の画素数が多いほど、前記輪郭画素の画素値の変更の度合いが大きくなるように設定されていることを特徴とする請求項6から8のいずれか一項に記載の画像処理方法。 The line width is the number of pixels in the width direction of the line drawing,
9. The thinning intensity coefficient is set so that the degree of change in the pixel value of the contour pixel increases as the number of pixels in the width direction of the line drawing increases. An image processing method according to claim 1.
前記画像の各画素に対して、輪郭画素である画素には前記画素値変更工程の処理結果を適用し、輪郭画素でない画素には前記中間調処理工程の処理結果を適用する処理選択工程と、を有することを特徴とする請求項6から9のいずれか一項に記載の画像処理方法。 A halftone processing step for applying halftone processing to each pixel of the image;
For each pixel of the image, a processing selection step of applying the processing result of the pixel value changing step to a pixel that is a contour pixel and applying the processing result of the halftone processing step to a pixel that is not a contour pixel; The image processing method according to claim 6, further comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010071202A JP5593769B2 (en) | 2010-03-26 | 2010-03-26 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010071202A JP5593769B2 (en) | 2010-03-26 | 2010-03-26 | Image processing apparatus and image processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011205436A JP2011205436A (en) | 2011-10-13 |
JP5593769B2 true JP5593769B2 (en) | 2014-09-24 |
Family
ID=44881590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010071202A Expired - Fee Related JP5593769B2 (en) | 2010-03-26 | 2010-03-26 | Image processing apparatus and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5593769B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5609903B2 (en) * | 2012-02-21 | 2014-10-22 | コニカミノルタ株式会社 | Image processing apparatus and image processing method |
KR101910453B1 (en) | 2016-03-03 | 2018-10-24 | 한국전자통신연구원 | Apparatus and method for extracting salient-line informative signs |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09298665A (en) * | 1996-05-07 | 1997-11-18 | Ricoh Co Ltd | Image processor |
JP4189467B2 (en) * | 2004-05-27 | 2008-12-03 | コニカミノルタビジネステクノロジーズ株式会社 | Image processing device |
CN101388951A (en) * | 2007-09-14 | 2009-03-18 | 株式会社东芝 | Image forming apparatus, image processing apparatus and wire narrowing method |
-
2010
- 2010-03-26 JP JP2010071202A patent/JP5593769B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2011205436A (en) | 2011-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4410219B2 (en) | Image forming apparatus and image forming method | |
US8089639B2 (en) | Image forming apparatus with image density change portion for gradually reducing image density from an outer periphery of a character toward an inside | |
US9025206B2 (en) | Processing image using shared buffer | |
JP5645689B2 (en) | Image processing apparatus and image forming apparatus having the same | |
JP5593769B2 (en) | Image processing apparatus and image processing method | |
US8736903B2 (en) | Image processing apparatus, image forming apparatus, and computer readable medium storing program | |
CN102215314B (en) | Image processing apparatus and image forming method | |
JP6768202B2 (en) | Image forming device and toner amount calculation method | |
US9036210B2 (en) | Image processing device, image forming apparatus, image processing method, and non-transitory computer readable medium | |
JP2007013566A (en) | Image processor and image forming apparatus | |
JP4671107B2 (en) | Image forming apparatus and density setting method for image forming apparatus | |
JP2005094397A (en) | Image forming device | |
JP2019139083A (en) | Image forming apparatus | |
JP2008211743A (en) | Image forming apparatus | |
JP2015142988A (en) | Image generating device | |
JP2008107803A (en) | Image forming apparatus and image forming method | |
JP2012160858A (en) | Image forming apparatus | |
JP2010192962A (en) | Image processing apparatus and program | |
JP2019219483A (en) | Image processor and image processing program | |
US20230239412A1 (en) | Inspection apparatus, method of controlling the same, and storage medium | |
JP2013223148A (en) | Image processing device, image forming device and image processing method | |
JP2008085564A (en) | Device for forming image | |
JP7176382B2 (en) | Image processing device | |
JP6935708B2 (en) | Image processing equipment, image forming equipment, and programs | |
JP4743878B2 (en) | Image forming apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20121017 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20130416 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20131011 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20131112 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140110 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20140110 |
|
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: 20140708 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140721 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5593769 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |