JP6915455B2 - Image processing equipment, image forming equipment, and programs - Google Patents
Image processing equipment, image forming equipment, and programs Download PDFInfo
- Publication number
- JP6915455B2 JP6915455B2 JP2017162645A JP2017162645A JP6915455B2 JP 6915455 B2 JP6915455 B2 JP 6915455B2 JP 2017162645 A JP2017162645 A JP 2017162645A JP 2017162645 A JP2017162645 A JP 2017162645A JP 6915455 B2 JP6915455 B2 JP 6915455B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- image
- adjustment
- adjusted
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012545 processing Methods 0.000 title claims description 86
- 238000001514 detection method Methods 0.000 claims description 94
- 238000000034 method Methods 0.000 description 56
- 238000010586 diagram Methods 0.000 description 26
- 230000000737 periodic effect Effects 0.000 description 25
- 239000002131 composite material Substances 0.000 description 14
- 239000000203 mixture Substances 0.000 description 10
- 238000004891 communication Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000015572 biosynthetic process Effects 0.000 description 3
- 238000003786 synthesis reaction Methods 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 238000005401 electroluminescence Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 244000126211 Hericium coralloides Species 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
本発明は、画像処理装置、画像形成装置、及びプログラムに関する。 The present invention relates to an image processing device, an image forming device, and a program.
特許文献1には、画像からエッジ部か否かの判定を行うエッジ判定部と、エッジ判定部の判定結果に基づいて画像のエッジ領域を広げてエッジ部と再判定するエッジ再判定部とを備えた画像処理装置が記載されている。この画像処理装置は、更に、エッジ判定部及びエッジ再判定部によりエッジ部と判定された画像と、非エッジ部と判定された画像とで異なる処理を施す処理部と、画像の注目画素の濃度に基づいてエッジ再判定部による再判定処理の内容を変更する変更部とを備える。 Patent Document 1 includes an edge determination unit that determines whether or not an image is an edge portion, and an edge redetermination unit that expands the edge region of the image based on the determination result of the edge determination unit and redetermines the edge portion. An image processing apparatus provided is described. This image processing device further includes a processing unit that performs different processing on the image determined to be the edge portion by the edge determination unit and the edge re-determination unit and the image determined to be the non-edge portion, and the density of the pixel of interest in the image. It is provided with a change unit that changes the content of the re-determination process by the edge re-determination unit based on the above.
特許文献2には、上記特許文献1と同様に、エッジ判定部及びエッジ再判定部を備えた画像処理装置が記載されている。この画像処理装置は、更に、エッジ判定部及びエッジ再判定部によりエッジ部と判定された画像と、非エッジ部と判定された画像とで異なる処理を施す処理部と、画像の入力解像度に基づいてエッジ再判定部による再判定処理の内容を変更する変更部とを備える。 Similar to Patent Document 1, Patent Document 2 describes an image processing apparatus including an edge determination unit and an edge redetermination unit. This image processing device is further based on a processing unit that performs different processing on an image determined to be an edge portion by an edge determination unit and an edge re-determination unit and an image determined to be a non-edge portion, and an input resolution of the image. It is provided with a change unit for changing the content of the re-determination process by the edge re-determination unit.
特許文献3には、画像の各々の画素を注目画素として、注目画素を含む判定領域の濃度が閾値以上であるか否かを判定する画像処理装置が記載されている。この閾値は、注目画素の濃度に応じて設定された閾値であって、注目画素が画像のエッジ部分に相当するエッジ画素か否かを判定するための閾値である。この画像処理装置は、更に、上記判定領域の濃度が上記閾値以上の場合に、注目画素をエッジ画素として検出し、検出したエッジ画素のうち予め定めた濃度以上の濃度を有するエッジ画素に対して、当該エッジ画素の濃度に応じた補正を行う。 Patent Document 3 describes an image processing device that determines whether or not the density of a determination region including the pixel of interest is equal to or greater than a threshold value, with each pixel of the image as the pixel of interest. This threshold value is a threshold value set according to the density of the pixel of interest, and is a threshold value for determining whether or not the pixel of interest is an edge pixel corresponding to an edge portion of an image. Further, when the density of the determination region is equal to or higher than the above threshold value, the image processing device detects the pixel of interest as an edge pixel, and for the edge pixel having a density equal to or higher than a predetermined density among the detected edge pixels. , The correction is performed according to the density of the edge pixel.
ところで、電子写真方式等による画像形成装置では、外部環境における温度や湿度、更に、装置内部のマーキング特性等の様々な要因の影響を受けて、印刷された線や文字に、太りや、つぶれ、かすれ等が生じる場合がある。 By the way, in an image forming apparatus using an electrophotographic method or the like, the printed lines and characters are affected by various factors such as temperature and humidity in the external environment and marking characteristics inside the apparatus, and the printed lines and characters are thickened or crushed. Blurring may occur.
本発明は、線又は文字であることを示す画素と線又は文字でないことを示す画素との境界について常に一律に画素値を調整する場合と比べて、画像における線又は文字の太さを柔軟に調整することができる画像処理装置、画像形成装置、及びプログラムを提供することを目的とする。 In the present invention, the thickness of a line or character in an image can be flexibly adjusted as compared with the case where the pixel value is always uniformly adjusted for the boundary between a pixel indicating that it is a line or a character and a pixel indicating that it is not a line or a character. It is an object of the present invention to provide an image processing device, an image forming device, and a program that can be adjusted.
上記目的を達成するために、請求項1に記載の画像処理装置は、画像における線又は文字の一部を示す第1画素との境界に沿う第2画素であって、線又は文字の一部ではないことを示す前記第2画素を注目画素として含む予め定められた調整領域の中で、前記注目画素の近傍に位置する前記第1画素の画素値により画素値が調整された調整済画素の数が閾値未満である場合に、前記注目画素に対応する画素値を、前記注目画素の近傍に位置する前記第1画素である近傍画素の画素値に基づいて調整し、前記調整済画素の数が前記閾値以上である場合に、前記注目画素に対応する画素値を調整しない調整部を備え、前記調整領域及び前記閾値の少なくとも一方は変更可能であり、前記閾値には、1以上前記調整領域の画素数以下の値が設定される。 In order to achieve the above object, the image processing apparatus according to claim 1 is a second pixel along a boundary with a first pixel indicating a part of a line or a character in an image, and is a part of the line or the character. Of the adjusted pixel whose pixel value is adjusted by the pixel value of the first pixel located in the vicinity of the attention pixel in the predetermined adjustment region including the second pixel indicating that the second pixel is not the attention pixel. When the number is less than the threshold value, the pixel value corresponding to the attention pixel is adjusted based on the pixel value of the nearby pixel which is the first pixel located in the vicinity of the attention pixel, and the number of the adjusted pixels is adjusted. If There is more than the threshold value, an adjustment unit that does not adjust the pixel value corresponding to the pixel of interest, Ri least one modifiable der of the adjustment region and the threshold value, the threshold value, the adjustment of one or more the value of the following number of pixels in the region Ru is set.
また、請求項2に記載の画像処理装置は、請求項1に記載の発明において、前記調整部が、前記注目画素に対応する画素値の調整を、前記画像の左上角点を始点、右下角点を終点とし、前記注目画素を前記画像の左端から右端に向け、かつ、前記画像の上端から下端に向けて、1画素分ずつ移動させながら行うものである。 Further, in the image processing apparatus according to claim 2, in the invention according to claim 1, the adjusting unit adjusts the pixel value corresponding to the pixel of interest, starting from the upper left corner point of the image and lower right corner. With the point as the end point, the pixel of interest is moved from the left end to the right end of the image and from the upper end to the lower end of the image by one pixel at a time.
また、請求項3に記載の画像処理装置は、請求項2に記載の発明において、前記注目画素が、前記調整領域の右下端に位置する画素であるとされている。 Further, in the image processing apparatus according to claim 3, in the invention according to claim 2, the pixel of interest is a pixel located at the lower right end of the adjustment region.
また、請求項4に記載の画像処理装置は、請求項3に記載の発明において、前記調整領域が、前記注目画素の上隣及び左隣の各々の画素と、前記上隣の画素の右隣及び左隣の各々の画素と、を含む領域とされている。 Further, in the image processing apparatus according to claim 4, in the invention according to claim 3, the adjustment region is located on each of the pixels above and to the left of the pixel of interest and to the right of the pixel above and next to the pixel of interest. It is a region including each pixel on the left side and the pixel on the left side.
また、請求項5に記載の画像処理装置は、請求項1に記載の発明において、前記調整部が、画素値を調整した前記注目画素である前記調整済画素と、画素値を調整しない前記注目画素とを周期的に配置するように調整するものである。 Further, in the image processing apparatus according to claim 5, in the invention according to claim 1, the adjustment unit is the adjusted pixel which is the attention pixel whose pixel value is adjusted, and the attention which does not adjust the pixel value. The pixels are adjusted so as to be arranged periodically.
また、請求項6に記載の画像処理装置は、請求項1〜5のいずれか1項に記載の発明において、前記画像の各画素に対して、前記線又は文字の一部であることを示す線文字タグ、及び、前記線又は文字の一部ではないことを示す非線文字タグのいずれか一方を割り当てる割当部と、前記注目画素を含む予め定められた検出領域毎に、前記割当部により前記線文字タグが割り当てられた画素である前記第1画素と、前記非線文字タグが割り当てられた画素である前記第2画素との前記境界を検出する検出部と、を更に備えたものである。 Further, in the invention according to any one of claims 1 to 5, the image processing apparatus according to claim 6 indicates that each pixel of the image is a part of the line or character. An allocation unit that allocates either a line character tag or a non-line character tag indicating that it is not a part of the line or a character, and the allocation unit for each predetermined detection area including the pixel of interest. It further includes a detection unit that detects the boundary between the first pixel, which is a pixel to which the line character tag is assigned, and the second pixel, which is a pixel to which the non-line character tag is assigned. be.
また、請求項7に記載の画像処理装置は、請求項7に記載の発明において、前記検出部が、前記検出領域に対応する境界検出用パターンであって、前記注目画素、前記第1画素、前記第2画素、及び前記近傍画素の位置関係が予め規定された前記境界検出用パターンを用いて、前記境界を検出するものである。 Further, in the image processing apparatus according to claim 7, in the invention according to claim 7, the detection unit has a boundary detection pattern corresponding to the detection region, and the pixel of interest, the first pixel, and the like. The boundary is detected by using the boundary detection pattern in which the positional relationship between the second pixel and the neighboring pixels is defined in advance.
一方、上記目的を達成するために、請求項8に記載の画像形成装置は、画像における線又は文字の一部を示す第1画素との境界に沿う第2画素であって、線又は文字の一部ではないことを示す前記第2画素を注目画素として含む予め定められた調整領域の中で、前記注目画素の近傍に位置する前記第1画素の画素値により画素値が調整された調整済画素の数が閾値未満である場合に、前記注目画素に対応する画素値を、前記注目画素の近傍に位置する前記第1画素である近傍画素の画素値に基づいて調整し、前記調整済画素の数が前記閾値以上である場合に、前記注目画素に対応する画素値を調整しない調整部と、前記調整部により画素値が調整された前記画像又は調整されない前記画像を記録媒体に形成する形成部と、を備え、前記調整領域及び前記閾値の少なくとも一方は変更可能であり、前記閾値には、1以上前記調整領域の画素数以下の値が設定される。 On the other hand, in order to achieve the above object, the image forming apparatus according to claim 8 is a second pixel along a boundary with a first pixel indicating a part of a line or a character in an image, and is a line or a character. Adjusted in which the pixel value is adjusted by the pixel value of the first pixel located in the vicinity of the attention pixel in the predetermined adjustment region including the second pixel indicating that it is not a part as the attention pixel. When the number of pixels is less than the threshold value, the pixel value corresponding to the attention pixel is adjusted based on the pixel value of the nearby pixel which is the first pixel located in the vicinity of the attention pixel, and the adjusted pixel is adjusted. If the number of is not less than the threshold value, and which forms an adjustment unit that does not adjust the pixel value corresponding to the pixel of interest, the image is not the image or adjusted pixel value is adjusted by the adjusting unit in a recording medium comprising a part, the said Ri least one modifiable der adjustment region and the threshold value, the threshold value is 1 or more the number of pixels following values of the adjustment region Ru is set.
更に、上記目的を達成するために、請求項9に記載のプログラムは、コンピュータを、請求項1〜7のいずれか1項に記載の画像処理装置が備える各部として機能させるためのものである。 Further, in order to achieve the above object, the program according to claim 9 is for causing the computer to function as each part included in the image processing apparatus according to any one of claims 1 to 7.
請求項1、請求項8、及び請求項9に係る発明によれば、線又は文字であることを示す画素と線又は文字でないことを示す画素との境界について常に一律に画素値を調整する場合と比べて、画像における線又は文字の太さを柔軟に調整することができる。 According to the first, eighth, and ninth aspects of the invention, the pixel value is always uniformly adjusted with respect to the boundary between the pixel indicating that it is a line or a character and the pixel indicating that it is not a line or a character. Compared with, the thickness of the line or the character in the image can be adjusted flexibly.
請求項2、請求項3、及び請求項4に係る発明によれば、画像全体に対して線又は文字の太さを柔軟に調整することができる。 According to claims 2, 3, and 4, the thickness of lines or characters can be flexibly adjusted with respect to the entire image.
請求項5に係る発明によれば、画素値を調整した注目画素である調整済画素と、画素値を調整しない注目画素とを周期的に配置しない場合と比べて、画像における線又は文字の太さをより違和感なく調整することができる。 According to the invention of claim 5, the thickness of the line or character in the image is larger than that in the case where the adjusted pixel, which is the pixel of interest whose pixel value is adjusted, and the pixel of interest whose pixel value is not adjusted are not periodically arranged. You can adjust the image more comfortably.
請求項6に係る発明によれば、各画素に線又は文字の一部であるか否かを示すタグを割り当てない場合と比べて、線又は文字を構成する画素と、線又は文字を構成しない画素との境界をより的確に検出することができる。 According to the invention of claim 6, the pixels constituting the line or the character and the pixel forming the line or the character are not formed as compared with the case where the tag indicating whether or not the pixel is a part of the line or the character is not assigned to each pixel. The boundary with the pixel can be detected more accurately.
請求項7に係る発明によれば、境界検出用パターンを用いない場合と比べて、線又は文字を構成する画素と、線又は文字を構成しない画素との境界をより的確に検出することができる。 According to the invention of claim 7, the boundary between the pixel constituting the line or the character and the pixel not forming the line or the character can be detected more accurately than in the case where the boundary detection pattern is not used. ..
以下、図面を参照して、本発明を実施するための形態の一例について詳細に説明する。 Hereinafter, an example of a mode for carrying out the present invention will be described in detail with reference to the drawings.
[第1の実施形態]
図1は、第1の実施形態に係る画像形成装置10Aの構成の一例を示すブロック図である。
図1に示すように、本実施形態に係る画像形成装置10Aは、画像処理部11と、表示部16と、操作部18と、画像形成部20と、原稿読取部22と、通信部24と、を備える。画像処理部11は、画像処理装置の一例である。画像処理部11は、制御部12と、記憶部14と、を含んで構成されている。
[First Embodiment]
FIG. 1 is a block diagram showing an example of the configuration of the
As shown in FIG. 1, the
制御部12は、CPU(Central Processing Unit)12A、ROM(Read Only Memory)12B、RAM(Random Access Memory)12C、及び入出力インターフェース(I/O)12Dを備えており、これら各部がバスを介して各々接続されている。 The control unit 12 includes a CPU (Central Processing Unit) 12A, a ROM (Read Only Memory) 12B, a RAM (Random Access Memory) 12C, and an input / output interface (I / O) 12D, and each of these units is via a bus. Are connected to each other.
I/O12Dには、記憶部14と、表示部16と、操作部18と、画像形成部20と、原稿読取部22と、通信部24と、を含む各機能部が接続されている。これらの各機能部は、I/O12Dを介して、CPU12Aと相互に通信可能とされる。
Each functional unit including a
制御部12は、画像形成装置10Aの全体の動作を制御するメイン制御部の一部として構成されてもよい。制御部12の各ブロックの一部又は全部には、例えば、LSI(Large Scale Integration)等の集積回路又はIC(Integrated Circuit)チップセットが用いられる。上記各ブロックに個別の回路を用いてもよいし、一部又は全部を集積した回路を用いてもよい。上記各ブロック同士が一体として設けられてもよいし、一部のブロックが別に設けられてもよい。また、上記各ブロックのそれぞれにおいて、その一部が別に設けられてもよい。制御部12の集積化には、LSIに限らず、専用回路又は汎用プロセッサを用いてもよい。
The control unit 12 may be configured as a part of a main control unit that controls the overall operation of the
記憶部14としては、例えば、HDD(Hard Disk Drive)、SSD(Solid State Drive)、フラッシュメモリ等が用いられる。記憶部14には、画像処理プログラム14Aが記憶される。なお、この画像処理プログラム14Aは、ROM12Bに記憶されていてもよい。
As the
画像処理プログラム14Aは、例えば、画像形成装置10Aに予めインストールされていてもよい。画像処理プログラム14Aは、不揮発性の記憶媒体に記憶して、又はネットワークを介して配布して、画像形成装置10Aに適宜インストールすることで実現してもよい。なお、不揮発性の記憶媒体の例としては、CD-ROM、光磁気ディスク、HDD、DVD-ROM、フラッシュメモリ、メモリカード等が想定される。
The
表示部16には、例えば、液晶ディスプレイ(LCD:Liquid Crystal Display)や有機EL(Electro Luminescence)ディスプレイ等が用いられる。表示部16は、タッチパネルを一体的に有している。操作部18には、テンキーやスタートキー等の各種の操作キーが設けられている。表示部16及び操作部18は、画像形成装置10Aのユーザから各種の指示を受け付ける。この各種の指示には、例えば、原稿の読み取りを開始させる指示や、原稿のコピーを開始させる指示等が含まれる。表示部16は、ユーザから受け付けた指示に応じて実行された処理の結果や、処理に対する通知等の各種の情報を表示する。
For the
原稿読取部22は、画像形成装置10Aの上部に設けられた図示しない自動原稿送り装置の給紙台に置かれた原稿を1枚ずつ取り込み、取り込んだ原稿を光学的に読み取って画像情報を得る。あるいは、原稿読取部22は、プラテンガラス等の原稿台に置かれた原稿を光学的に読み取って画像情報を得る。
The
画像形成部20は、原稿読取部22による読み取りによって得られた画像情報、又は、ネットワークを介して接続された外部のPC等から得られた画像情報に基づく画像を、紙等の記録媒体に形成する。なお、本実施形態においては、画像を形成する方式として、電子写真方式を例示して説明するが、インクジェット方式等の他の方式を採用してもよい。なお、画像形成部20は、形成部の一例である。
The
画像を形成する方式が電子写真方式の場合、画像形成部20は、感光体ドラム、帯電部、露光部、現像部、転写部、及び定着部を含む。帯電部は、感光体ドラムに電圧を印加して感光体ドラムの表面を帯電させる。露光部は、帯電部で帯電された感光体ドラムを画像情報に応じた光で露光することにより感光体ドラムに静電潜像を形成する。現像部は、感光体ドラムに形成された静電潜像をトナーにより現像することで感光体ドラムにトナー像を形成する。転写部は、感光体ドラムに形成されたトナー像を記録媒体に転写する。定着部は、記録媒体に転写されたトナー像を加熱及び加圧により定着させる。
When the method for forming an image is an electrophotographic method, the
通信部24は、LAN(Local Area Network)、WAN(Wide Area Network)等のネットワークに接続されており、図示しない外部のPC等との間でネットワークを介して通信が可能とされる。なお、通信部24とネットワークとは有線で接続されていてもよく、無線で接続されていてもよい。
The
本実施形態に係る画像形成装置10AのCPU12Aは、記憶部14に記憶されている画像処理プログラム14AをRAM12Cに書き込んで実行することにより、図2に示す各部として機能する。
The
図2は、第1の実施形態に係る画像形成装置10Aの機能的な構成の一例を示すブロック図である。
図2に示すように、本実施形態に係る画像形成装置10AのCPU12Aは、ラスタライズ部30、検出部32、調整部34、及び合成部36として機能する。なお、ラスタライズ部30は、割当部の一例である。
FIG. 2 is a block diagram showing an example of a functional configuration of the
As shown in FIG. 2, the
本実施形態において、ラスタライズ部30は、入力されたベクタ画像をラスタライズしてラスタ画像を生成する。ベクタ画像とは、画像を円や直線等の幾何的な図形の集まりとして表現するベクタ形式の画像である。一方、ラスタ画像(所謂ビットマップ画像ともいう。)とは、画像を各点の濃淡の集まりとして表現するラスタ形式の画像である。ラスタ画像の各画素は、例えば、C(シアン)、M(マゼンタ)、Y(イエロー)、及びK(ブラック)の各色の画素値(階調値)を有している。
In the present embodiment, the
また、本実施形態に係るラスタライズ部30は、ラスタ画像に含まれる各画素に、線又は文字の一部であることを示す線文字タグ、及び、線又は文字の一部ではないことを示す非線文字タグのいずれか一方を割り当てる。
Further, the
検出部32は、ラスタ画像における注目画素を含む予め定められた検出領域毎に、ラスタライズ部30により線文字タグが割り当てられた画素と、非線文字タグが割り当てられた画素との境界を検出する。なお、本実施形態では、線文字タグが割り当てられた画素を線文字画素といい、非線文字タグが割り当てられた画素を非線文字画素という。線文字画素は、第1画素の一例であり、非線文字画素は、第2画素の一例である。
The
調整部34は、検出部32により上記境界が検出され、当該境界に沿う非線文字画素を注目画素として含む予め定められた調整領域の中で、調整済画素の数が閾値未満である場合に、注目画素に対応する画素値を、近傍画素の画素値に基づいて調整する。調整領域及び閾値の少なくとも一方は変更可能である。なお、調整領域とは、注目画素に対応する画素値の調整に用いる領域である。調整済画素とは、注目画素の近傍に位置する線文字画素の画素値により画素値が調整された注目画素である。近傍画素とは、注目画素の近傍に位置する線文字画素である。また、ここでいう「近傍」とは、注目画素を基準として予め定められた距離内の位置を表し、例えば、注目画素から3画素以内の位置を表すものとする。
When the boundary is detected by the
合成部36は、ラスタライズ部30によりラスタライズされたラスタ画像と、調整部34により画素値が調整された注目画素を有する修正画像とを合成して合成画像を出力する。なお、この修正画像については後述する。
The
次に、図3〜図12を参照して、本実施形態に係る画像形成装置10Aが備えるラスタライズ部30、検出部32、調整部34、及び合成部36の各部について具体的に説明する。
Next, with reference to FIGS. 3 to 12, each unit of the
なお、本実施形態では、線文字画素と非線文字画素との境界を検出するために線文字タグ及び非線文字タグを用いているが、当該境界を検出するために画素値演算による手法を用いてもよい。 In the present embodiment, the line character tag and the non-line character tag are used to detect the boundary between the line character pixel and the non-line character pixel, but a method by pixel value calculation is used to detect the boundary. You may use it.
まず、本実施形態に係る画像形成装置10Aによるラスタライズ処理について説明する。
First, the rasterization process by the
図3は、第1の実施形態に係る画像形成装置10Aによるラスタライズ処理の一例を説明するための模式図である。
FIG. 3 is a schematic diagram for explaining an example of rasterization processing by the
本実施形態に係るラスタライズ部30は、図3に示すように、ベクタ画像と共に、ベクタ画像のオブジェクト情報の入力を受け付ける。ベクタ画像のオブジェクト情報とは、例えば、グラフィックでは点の座標や、線の角度等の図形要素に関する情報とされ、テキストでは文字コードや、フォントの種類、大きさ等の文字要素に関する情報とされる。ラスタライズ部30は、オブジェクト情報を用いて、ベクタ画像をラスタライズしてラスタ画像を生成する。
As shown in FIG. 3, the
また、ラスタライズ部30は、上記のオブジェクト情報に基づいて、ラスタ画像の各画素に対して、線文字タグ及び非線文字タグのいずれか一方を割り当てる。本実施形態に係るラスタライズ部30は、割り当てた結果として、ラスタ画像の各画素に対応付けて、線文字タグ又は非線文字タグを区別するための1ビットの情報を記憶部14に記憶する。例えば、当該情報が「0」であれば、線文字タグが割り当てられていることを示し、当該情報が「1」であれば、非線文字タグが割り当てられていることを示す。本実施形態では、図3に示すように、線文字タグが割り当てられた画素を線文字画素Tg1とし、非線文字タグが割り当てられた画素を非線文字画素Tg2として区別するものとする。
Further, the
次に、本実施形態に係る画像形成装置10Aによる境界検出処理について説明する。
Next, the boundary detection process by the
図4は、本実施形態に係るラスタ画像の境界検出処理における処理順の一例を示す模式図である。
図4の矢印で示すように、本実施形態に係る境界検出処理では、ラスタ画像の左上角点を始点、右下角点を終点とし、注目画素をラスタ画像の左端から右端に向け、かつ、上端から下端に向けて、1画素分ずつ移動させながら、境界の検出が行われる。
FIG. 4 is a schematic diagram showing an example of the processing order in the boundary detection processing of the raster image according to the present embodiment.
As shown by the arrows in FIG. 4, in the boundary detection process according to the present embodiment, the upper left corner point of the raster image is set as the start point and the lower right corner point is set as the end point, and the pixel of interest is directed from the left end to the right end of the raster image and the upper end. The boundary is detected while moving one pixel at a time from the to the lower end.
図5は、第1の実施形態に係る画像形成装置10Aによる境界検出処理の一例を説明するための模式図である。
FIG. 5 is a schematic diagram for explaining an example of the boundary detection process by the
本実施形態に係る検出部32は、一例として、図5に示すように、注目画素Ap1を含む検出領域40毎に、線文字画素Tg1と非線文字画素Tg2との境界を検出する。検出領域40は、線文字画素Tg1と非線文字画素Tg2との境界の検出に用いる領域であり、上記の調整領域とは異なる領域である。検出領域40としては、一例として、3×3の領域を示しているが、5×5、7×7等の領域でもよい。なお、検出領域40における画素の配置としては、縦方向の画素数と横方向の画素数とが同一となる配置に限らず、縦方向の画素数と横方向の画素数とが異なる配置でもよい。
As an example, the
ここで、検出部32は、検出領域40に対応する境界検出用パターンを用いて、ラスタ画像に対してパターンマッチングを行うことにより、線文字画素Tg1と非線文字画素Tg2との境界を検出する。
Here, the
図6は、本実施形態に係る境界検出用パターンの一例を示す模式図である。
図6に示すように、本実施形態に係る境界検出用パターンの各々は、上記の検出領域40に対応するパターンマッチング用の画像であり、本実施形態では、検出領域40と同一の3×3の画像が適用される。
FIG. 6 is a schematic diagram showing an example of a boundary detection pattern according to the present embodiment.
As shown in FIG. 6, each of the boundary detection patterns according to the present embodiment is an image for pattern matching corresponding to the above-mentioned
本実施形態に係る境界検出用パターンでは、注目画素Ap1、線文字画素Tg1、非線文字画素Tg2、及び近傍画素Np1の位置関係が予め規定されている。画素Dc1は、画素値が任意(Don't Care)であることを示す画素である。なお、本実施形態では、境界検出用パターンの中央に位置する画素を注目画素Ap1とする。注目画素Ap1は、非線文字画素Tg2である。近傍画素Np1は、注目画素Ap1の近傍に位置する線文字画素Tg1である。近傍画素Np1は、注目画素Ap1を基準として予め定められた距離内に位置する画素である。近傍画素Np1には、例えば、注目画素Ap1から3画素以内に位置する画素が適用される。近傍画素Np1の画素値は、後述するように、注目画素Ap1に対応する画素値の調整に使用される。 In the boundary detection pattern according to the present embodiment, the positional relationship between the attention pixel Ap1, the line character pixel Tg1, the non-line character pixel Tg2, and the neighboring pixel Np1 is defined in advance. The pixel Dc1 is a pixel indicating that the pixel value is arbitrary (Don't Care). In the present embodiment, the pixel located at the center of the boundary detection pattern is designated as the pixel of interest Ap1. The pixel of interest Ap1 is a non-line character pixel Tg2. The neighborhood pixel Np1 is a line character pixel Tg1 located in the vicinity of the pixel of interest Ap1. The neighboring pixel Np1 is a pixel located within a predetermined distance with respect to the pixel of interest Ap1. For example, a pixel located within 3 pixels from the pixel of interest Ap1 is applied to the neighboring pixel Np1. The pixel value of the neighboring pixel Np1 is used for adjusting the pixel value corresponding to the pixel of interest Ap1 as described later.
本実施形態において、記憶部14には、複数種類の境界検出用パターンが予め格納されている。本実施形態に係る注目画素Ap1の近傍画素Np1は、注目画素Ap1の右隣、左隣、上隣、及び下隣のいずれかに位置する画素である。すなわち、境界検出用パターンは、図6に示すように、近傍画素Np1が注目画素Ap1の右隣、左隣、上隣、及び下隣のいずれかに位置する場合について、複数種類ずつ設けられている。なお、本実施形態は、境界検出用パターンを、近傍画素Np1が注目画素Ap1の右隣、左隣、上隣、及び下隣の各々に位置する場合について1種類ずつ設ける場合についても同様に適用される。
In the present embodiment, a plurality of types of boundary detection patterns are stored in advance in the
本実施形態に係る検出部32は、上記の各隣接方向毎に複数種類ずつの境界検出用パターンを選択的に用いて、ラスタ画像に対してパターンマッチングを行う。例えば、近傍画素Np1の位置が注目画素Ap1の右隣、左隣、上隣、及び下隣に位置する全てのパターンを用いてもよいし、近傍画素Np1が注目画素Ap1の右隣及び下隣に位置するパターンのみを用いてもよい。このような境界検出用パターンの使い分けにより、後述の画素値調整処理において線及び文字が異なる太さに調整される。例えば、右隣、左隣、上隣、及び下隣の全てのパターンを用いた場合、線及び文字の太さが2画素相当分太く調整される。一方、右隣及び下隣のパターンのみを用いた場合、線及び文字の太さが1画素相当分太く調整される。なお、線及び文字の太さをどの程度調整するかは、ユーザが設定可能とすることが望ましい。例えば、ユーザが太さ調整量のレベルを設定するための調整量設定画面(図示省略)を表示可能とする。この調整量設定画面において、例えば、レベル大が設定された場合には、2画素相当分太く調整されるようにパターンが選択され、レベル小が設定された場合には、1画素相当分太く調整されるようにパターンが選択される。
The
検出部32は、図5に示す検出領域40内の画素の配置パターンが、図6に示す境界検出用パターンのいずれかに合致した場合、線文字画素Tg1と非線文字画素Tg2との境界が存在すると判定する。ここで、検出領域40内の画素の配置パターンと境界検出用パターンとが合致する場合とは、線文字画素Tg1と非線文字画素Tg2との境界が検出され、かつ、注目画素Ap1が非線文字画素Tg2である場合である。一方、検出領域40内の画素の配置パターンが、図6に示す境界検出用パターンのいずれにも合致しない場合、線文字画素Tg1と非線文字画素Tg2との境界は存在しないと判定する。
In the
ところで、本実施形態に係る画像形成装置10Aでは、連続的画素値調整処理と、周期的画素値調整処理とが選択的に実行される。いずれの画素値調整処理を実行するかは、例えば、ユーザにより選択可能とすることが望ましい。連続的画素値調整処理とは、パターンマッチングにより境界が検出された全ての注目画素Ap1に対して連続的に画素値の調整を行う処理である。連続的画素値調整処理は、調整部34及び合成部36が実行する処理である。一方、周期的画素値調整処理とは、パターンマッチングにより境界が検出された注目画素Ap1に対して、例えば、1つおき、2つおき等のように周期的に画素値の調整を行う処理である。周期的画素値調整処理は、調整部34及び合成部36が実行する処理である。
By the way, in the
まず、本実施形態に係る画像形成装置10Aが連続的画素値調整処理を行う場合における調整部34及び合成部36の各々の動作について説明する。
First, each operation of the
調整部34は、検出部32によるパターンマッチングにより、一例として図6に示す境界検出用パターンのいずれかが合致した場合、注目画素Ap1に対応する画素値を、近傍画素Np1の画素値に基づいて調整する。ここで行う調整として、注目画素Ap1に対応する画素値を、近傍画素Np1の画素値で置き換えてもよいし、近傍画素Np1の画素値に近い値に調整してもよい。なお、近傍画素Np1の画素値に近い値としては、当該画素値を基準として予め定められた範囲内の画素値が適用される。例えば、近傍画素Np1の画素値の80%以上100%未満の範囲の画素値が適用される。
When any of the boundary detection patterns shown in FIG. 6 is matched by pattern matching by the
このように、非線文字画素である注目画素Ap1の画素値は、線文字画素である近傍画素Np1の画素値に置き換えられる。あるいは、注目画素Ap1の画素値は、近傍画素Np1の画素値に近い値に調整される。このため、連続的画素値調整処理後の画像では、連続的画素値調整処理前と比べて、線又は文字が太く視認される。 In this way, the pixel value of the attention pixel Ap1 which is a non-line character pixel is replaced with the pixel value of the neighboring pixel Np1 which is a line character pixel. Alternatively, the pixel value of the pixel of interest Ap1 is adjusted to a value close to the pixel value of the neighboring pixel Np1. Therefore, in the image after the continuous pixel value adjustment processing, the lines or characters are visually recognized thicker than those before the continuous pixel value adjustment processing.
なお、調整部34は、画素値が調整された注目画素Ap1について、連続的画素値調整処理前に注目画素Ap1に割り当てられた非線文字タグを線文字タグに更新する。
The
ここで、調整部34は、上記の連続的画素値調整処理を、ラスタ画像とは異なる修正画像を用いて行う。なお、ここでいう修正画像とは、近傍画素Np1の画素値に基づいて画素値が調整された注目画素Ap1だけを配置した画像であり、一例として、図7に示される画像である。
Here, the
図7は、第1の実施形態に係る画像形成装置10Aによる連続的画素値調整処理後における画像合成処理の一例を説明するための模式図である。
FIG. 7 is a schematic diagram for explaining an example of the image composition processing after the continuous pixel value adjustment processing by the
本実施形態に係る合成部36は、一例として、図7に示すように、ラスタライズ部30によりラスタライズされたラスタ画像と、調整部34により画素値が調整された注目画素Ap1のみを有する修正画像とを合成した合成画像を画像形成部20に出力する。
As an example, the
ここで、ラスタ画像と修正画像とを分ける理由について説明する。
上述したように、境界検出用パターンを用いたパターンマッチングは、ラスタ画像に対して実施される。このため、ラスタ画像において注目画素Ap1の画素値を直接調整して線又は文字を太らせてしまうと、線又は文字を太らせた後のラスタ画像に対して更にパターンマッチングが実施され、線又は文字を延々と太らせてしまうという事態が発生する場合がある。
Here, the reason for separating the raster image and the modified image will be described.
As described above, pattern matching using the boundary detection pattern is performed on the raster image. Therefore, if the pixel value of the pixel of interest Ap1 is directly adjusted in the raster image to thicken the line or character, pattern matching is further performed on the raster image after the line or character is thickened, and the line or character is further thickened. In some cases, the characters may be fattened endlessly.
そこで、本実施形態では、ラスタ画像と修正画像とを分けて処理することで、ラスタ画像自体はオリジナルの状態を維持するようにしている。これにより、上記のように線又は文字を延々と太らせる事態の発生が抑制される。 Therefore, in the present embodiment, the raster image itself is maintained in the original state by processing the raster image and the modified image separately. As a result, the occurrence of the situation where the line or character is thickened endlessly as described above is suppressed.
ところで、上記の連続的画素値調整処理では、境界が検出された注目画素Ap1に対して連続的に画素値の調整が行われるため、必ずしも画像における線又は文字の太さを柔軟に調整できるとは限らない。このため、ユーザによっては、画素値調整後の線又は文字の太さが太過ぎると感じることも起こり得る。 By the way, in the above-mentioned continuous pixel value adjustment process, since the pixel value is continuously adjusted for the attention pixel Ap1 in which the boundary is detected, it is not always possible to flexibly adjust the thickness of the line or character in the image. Is not always. Therefore, depending on the user, it may be felt that the thickness of the line or character after adjusting the pixel value is too thick.
これに対して、周期的画素値調整処理では、境界が検出された注目画素Ap1に対して、例えば、1つおき、2つおき等のように周期的に画素値の調整が行われる。このため、ユーザには、連続的画素値調整処理により画素値が調整された線又は文字の太さと比べて、線又は文字の太さがやや細くより適切な太さとして視認される。 On the other hand, in the periodic pixel value adjustment process, the pixel value is periodically adjusted for the pixel of interest Ap1 whose boundary is detected, for example, every other pixel value, every two pixels, and the like. Therefore, the thickness of the line or character is slightly thinner than the thickness of the line or character whose pixel value is adjusted by the continuous pixel value adjustment processing, and the user visually recognizes the line or character as a more appropriate thickness.
次に、本実施形態に係る画像形成装置10Aが周期的画素値調整処理を行う場合における調整部34及び合成部36の各々の動作について説明する。
Next, the operations of the adjusting
調整部34は、検出部32によるパターンマッチングにより、一例として、図6に示す境界検出用パターンのいずれかが合致した場合、一例として、図8に示す調整領域42を用いて、注目画素Ap1に対応する画素の画素値を調整するか否かを判定する。なお、検出部32によるパターンマッチングにより、一例として、図6に示す境界検出用パターンのいずれにも合致しない場合、注目画素Ap1に対応する画素の画素値は調整しない。
When any of the boundary detection patterns shown in FIG. 6 is matched by pattern matching by the
図8は、本実施形態に係る調整領域42の一例を示す図である。
図8に示すように、この調整領域42は、上述の検出領域40と同一の注目画素Ap1を含む領域である。図8に示す調整領域42の場合、注目画素Ap1は、調整領域42の右下端に位置する。
FIG. 8 is a diagram showing an example of the
As shown in FIG. 8, the
本実施形態に係る調整領域42は、一例として、図8に示すように、注目画素Ap1の上隣の画素p2、左隣の画素p4、画素p2の右隣の画素p3、及び画素p2の左隣の画素p1を含む領域である。つまり、注目画素Ap1の右隣及び下隣には画素が存在しない。上述した検出領域40は、ラスタ画像に対して適用される領域であり、調整領域42は、修正画像に対して適用される領域である。
As an example, the
調整部34は、調整領域42の中で調整済画素の数が閾値未満である場合に、注目画素Ap1に対応する画素値を、近傍画素Np1の画素値に基づいて調整する。一方、調整部34は、調整領域42の中で調整済画素の数が閾値以上である場合に、注目画素Ap1に対応する画素値を、近傍画素Np1の画素値の如何に係らず調整しない。上記の閾値として、例えば、「1」が設定される。この場合、調整領域42の中の調整済画素の数が1つ未満である場合(=0個の場合)、つまり、調整領域42内の画素p1〜p4が全て調整済画素ではない場合に、注目画素Ap1に対応する画素値を調整する。一方、調整領域42の中の調整済画素の数が1つ以上である場合、つまり、調整領域42内の画素p1〜p4の1つ以上が調整済画素である場合に、注目画素Ap1に対応する画素値を調整しない。
When the number of adjusted pixels in the
調整部34は、上記により、近傍画素Np1の画素値に基づいて、注目画素Ap1に対応する画素値を調整する。ここで行う調整は、上記の連続的画素値調整処理の場合と同様である。この調整の結果、修正画像には、画素値を調整した注目画素Ap1(すなわち調整済画素)と、画素値を調整しない注目画素Ap1とが周期的に配置される。一例として図8に示す調整領域42を適用した場合、画素値を調整した注目画素Ap1(調整済画素)と、画素値を調整しない注目画素Ap1とが交互に並ぶ配置となる。
As described above, the adjusting
なお、調整部34は、上記の連続的画素値調整処理の場合と同様に、画素値が調整された注目画素Ap1について、周期的画素値調整処理前に注目画素Ap1に割り当てられた非線文字タグを線文字タグに更新する。
In addition, as in the case of the continuous pixel value adjustment processing described above, the
図9は、本実施形態に係る他の調整領域44の一例を示す図である。
図9に示すように、この調整領域44は、図8に示す調整領域42と同様に、検出領域40と同一の注目画素Ap1を右下端に含む領域である。
FIG. 9 is a diagram showing an example of another
As shown in FIG. 9, the
図9に示す調整領域44についても、図8に示す調整領域42と同様に、注目画素Ap1の右隣及び下隣には画素が存在しない。調整領域44では、上記の閾値として、例えば、「2」が設定される。具体的には、調整領域44の中の調整済画素の数が2つ未満である場合(=0個又は1個の場合)、つまり、調整領域44内の画素p1〜p12の1つ以下が調整済画素である場合に、注目画素Ap1に対応する画素値を調整する。一方、調整領域44の中の調整済画素の数が2つ以上である場合、つまり、調整領域44内の画素p1〜p12の2つ以上が調整済画素である場合に、注目画素Ap1に対応する画素値を調整しない。
As for the
図10は、第1の実施形態に係る画像形成装置10Aによる周期的画素値調整処理の手順の一例を示す模式図である。以下、図10を参照して、画像形成装置10Aによる周期的画素値調整処理を、更に具体的に説明する。なお、本実施形態では、図8に示す調整領域42を適用した場合について説明するが、図9に示す調整領域44を適用してもよい。
FIG. 10 is a schematic diagram showing an example of a procedure of periodic pixel value adjustment processing by the
まず、(S1)では、検出部32が、ラスタ画像に対して検出領域40を適用し、パターンマッチングにより線文字画素Tg1と非線文字画素Tg2との境界を検出する。境界が検出された場合、調整部34が、修正画像に対して調整領域42を適用し、注目画素Ap1に対応する画素値を調整するか否かを判定する。ここでは、調整領域42の中に調整済画素Bp1が含まれないため、注目画素Ap1に対応する画素値を調整すると判定する。調整部34は、判定の結果に従って、注目画素Ap1に対応する画素値を、一例として、図6に示す近傍画素Np1の画素値に基づいて調整し、調整済画素Bp1とする。
First, in (S1), the
(S2)では、注目画素Ap1を右隣に移動させた後に、同様に、検出部32が、ラスタ画像に対して検出領域40を適用し、パターンマッチングにより線文字画素Tg1と非線文字画素Tg2との境界を検出する。境界が検出された場合、調整部34が、修正画像に対して調整領域42を適用し、注目画素Ap1に対応する画素値を調整するか否かを判定する。ここでは、調整領域42の中に調整済画素Bp1が1つ含まれるため、注目画素Ap1に対応する画素値を調整しないと判定する。
In (S2), after moving the pixel of interest Ap1 to the right, the
(S3)では、注目画素Ap1を更に右隣に移動させた後に、同様に、検出部32が、ラスタ画像に対して検出領域40を適用し、パターンマッチングにより線文字画素Tg1と非線文字画素Tg2との境界を検出する。境界が検出された場合、調整部34が、修正画像に対して調整領域42を適用し、注目画素Ap1に対応する画素値を調整するか否かを判定する。ここでは、調整領域42の中に調整済画素Bp1が含まれないため、注目画素Ap1に対応する画素値を調整すると判定する。調整部34は、判定の結果に従って、注目画素Ap1に対応する画素値を、一例として、図6に示す近傍画素Np1の画素値に基づいて調整し、調整済画素Bp1とする。
In (S3), after the attention pixel Ap1 is further moved to the right, the
(S4)では、注目画素Ap1を更に右隣に移動させた後に、同様に、検出部32が、ラスタ画像に対して検出領域40を適用し、パターンマッチングにより線文字画素Tg1と非線文字画素Tg2との境界を検出する。境界が検出された場合、調整部34が、修正画像に対して調整領域42を適用し、注目画素Ap1に対応する画素値を調整するか否かを判定する。ここでは、調整領域42の中に調整済画素Bp1が1つ含まれるため、注目画素Ap1に対応する画素値を調整しないと判定する。以下、同様に、注目画素Ap1の位置を1画素ずつ移動させながら、画素値調整処理を繰り返し実行する。
In (S4), after the attention pixel Ap1 is further moved to the right, the
ここで、調整部34は、上記の周期的画素値調整処理を、ラスタ画像とは異なる修正画像を用いて行う。なお、ここでいう修正画像とは、近傍画素Np1の画素値に基づいて画素値が調整された注目画素Ap1と、画素値が調整されない注目画素Ap1とを配置した画像であり、一例として、図11に示される画像である。
Here, the
図11は、第1の実施形態に係る画像形成装置10Aによる周期的画素値調整処理後における画像合成処理の一例を説明するための模式図である。
FIG. 11 is a schematic diagram for explaining an example of the image composition processing after the periodic pixel value adjustment processing by the
図11に示すように、ラスタ画像に対して、上記の周期的画素値調整処理を行った結果、画素値が調整された注目画素Ap1と、画素値が調整されない注目画素Ap1とが一例として交互に配置された修正画像が生成される。 As shown in FIG. 11, as a result of performing the above periodic pixel value adjustment processing on the raster image, the attention pixel Ap1 whose pixel value is adjusted and the attention pixel Ap1 whose pixel value is not adjusted alternate as an example. A modified image placed in is generated.
本実施形態に係る合成部36は、図11に示すように、ラスタライズ部30によりラスタライズされたラスタ画像と、調整部34により生成された修正画像とを合成した合成画像を画像形成部20に出力する。この場合、合成画像は、一例として櫛歯状に形成されている。
As shown in FIG. 11, the
本実施形態に係る画像形成部20は、合成部36により出力された、図11に示す合成画像を、紙等の記録媒体に形成する。
The
図12は、第1の実施形態に係る連続的画素値調整処理及び周期的画素値調整処理の各々を適用した場合の合成画像の一例を示す模式図である。 FIG. 12 is a schematic diagram showing an example of a composite image when each of the continuous pixel value adjustment process and the periodic pixel value adjustment process according to the first embodiment is applied.
図12に示すように、連続的画素値調整処理を適用した合成画像では、ラスタ画像における線の太さが1画素相当分太くなっている。これに対して、一例として図8に示す調整領域42を用いた周期的画素値調整処理を適用した合成画像では、ユーザにはラスタ画像における線の太さが1/2画素相当分太くなっているように視認される。これは、周期的画素値調整処理が適用された合成画像では、ラスタ画像に対して、画素値を調整した画素と、画素値を調整しない画素とが交互に配置されるためである。なお、図12に示す合成画像は、実際には細かい櫛歯状になっているが、ユーザの目で判別することは難しく、ユーザには連続した線として視認される。
As shown in FIG. 12, in the composite image to which the continuous pixel value adjustment processing is applied, the line thickness in the raster image is thickened by one pixel. On the other hand, in the composite image to which the periodic pixel value adjustment process using the
一方、図8に示す調整領域42に代えて、図9に示す調整領域44を用いた周期的画素値調整処理を適用した合成画像では、ユーザにはラスタ画像における線の太さが2/3画素相当分太くなっているように視認される。このように、調整領域における画素の配置パターンと、調整済画素の個数と、を適宜設定することで、線又は文字の太さがユーザの好みに応じて柔軟に調整される。なお、周期的画素値調整処理で線及び文字の太さをどの程度調整するかは、ユーザが設定可能とすることが望ましい。例えば、ユーザが太さ調整量のレベルを設定するための調整量設定画面(図示省略)を表示可能とする。この調整量設定画面において、例えば、レベル大が設定された場合には、2/3画素相当分太く視認されるように、図9に示す調整領域44が選択され、レベル小が設定された場合には、1/2画素相当分太く視認されるように、図8に示す調整領域42が選択される。
On the other hand, in the composite image in which the periodic pixel value adjustment process using the
次に、図13を参照して、第1の実施形態に係る画像形成装置10Aの作用を説明する。なお、図13は、第1の実施形態に係る画像処理プログラム14Aの処理の流れの一例を示すフローチャートである。
Next, the operation of the
まず、画像形成装置10Aの画像処理に関するメニュー画面(図示省略)において、ユーザの操作により、例えば、「線文字太さ調整」の項目が選択され、実行が指示されると、画像処理プログラム14Aが起動され、以下の各ステップを実行する。なお、ここでは、周期的画素値調整処理を適用した場合について説明する。
First, on the menu screen (not shown) related to image processing of the
図13のステップ100では、ラスタライズ部30が、上述の図3を参照して説明したように、ベクタ画像及びオブジェクト情報の入力を受け付ける。
In
ステップ102では、ラスタライズ部30が、上述の図3を参照して説明したように、オブジェクト情報を用いて、ベクタ画像をラスタライズしてラスタ画像を生成する。
In
ステップ104では、ラスタライズ部30が、上述の図3を参照して説明したように、オブジェクト情報に基づいて、ラスタ画像の各画素に対して、線文字タグ及び非線文字タグのいずれか一方を割り当てる。
In
ステップ106では、検出部32が、ラスタ画像のM画素目(M=1以上m以下:mはラスタ画像の全画素数)を注目画素Ap1として含む検出領域40(図5も参照)に対して、図6に示す境界検出用パターンを選択的に用いてパターンマッチングを行う。なお、Mの初期値は「1」に設定されているものとする。
In
ステップ108では、検出部32が、ステップ106でのパターンマッチングの結果、注目画素Ap1を含む検出領域40の画素の配置パターンが、複数種類の境界検出用パターンのいずれかと合致したか否かを判定する。合致したと判定した場合(肯定判定の場合)、ステップ110に移行し、合致しないと判定した場合(否定判定の場合)、ステップ116に移行する。
In
ステップ110では、調整部34が、注目画素Ap1に対応する画素値を調整するか否かを判定する。具体的には、調整部34は、一例として調整領域42の中で調整済画素Bp1の数が閾値未満である場合に、注目画素Ap1に対応する画素値を、近傍画素Np1の画素値に基づいて調整すると判定し(肯定判定)、ステップ112に移行する。一方、調整部34は、調整領域42の中で調整済画素Bp1の数が閾値以上である場合に、注目画素Ap1に対応する画素値を、近傍画素Np1の画素値の如何に係らず調整しないと判定し(否定判定)、ステップ116に移行する。
In
ステップ112では、調整部34が、注目画素Ap1に対して、ステップ108の処理により合致した境界検出用パターンに基づいて、ラスタ画像において、注目画素Ap1に対応する近傍画素Np1の位置を特定する。つまり、近傍画素Np1が、注目画素Ap1の左隣、右隣、上隣、及び下隣のいずれに位置しているかを特定する。
In
ステップ114では、調整部34が、ステップ112の処理により特定した位置の近傍画素Np1の画素値に基づいて、注目画素Ap1に対応する画素値を調整する。なお、このとき、調整部34は、注目画素Ap1に割り当てられている非線文字タグを線文字タグに更新する。
In
ステップ116では、調整部34が、ラスタ画像に含まれる全ての画素について処理が終了したか否かを判定する。全ての画素について処理が終了したと判定した場合(肯定判定の場合)、ステップ118に移行する。一方、全ての画素について処理が終了していないと判定した場合(否定判定の場合)、ステップ106に戻り、ラスタ画像のM画素目(Mを1つだけインクリメント)を注目画素Ap1として処理を繰り返す。
In
ステップ118では、合成部36が、図11を参照して説明したように、ラスタライズ部30によりラスタライズされたラスタ画像と、調整部34により画素値が調整された注目画素Ap1を有する修正画像とを合成して合成画像を生成する。そして、合成部36は、生成した合成画像を画像形成部20に出力し、上記画像処理プログラム14Aによる一連の処理を終了する。
In
[第2の実施形態]
上記第1の実施形態では、線文字タグ及び非線文字タグの2種類のタグを用いて、線と文字とを区別せずに周期的画素値調整処理を行った。これに対して、本実施形態では、線タグ、文字タグ、非線タグ、及び非文字タグの4種類のタグを用いて、線と文字とを区別して周期的画素値調整処理を行う。なお、本実施形態は、周期的画素値調整処理に限らず、連続的画素値調整処理にも同様に適用可能とされる。
[Second Embodiment]
In the first embodiment, two types of tags, a line character tag and a non-line character tag, are used to perform periodic pixel value adjustment processing without distinguishing between lines and characters. On the other hand, in the present embodiment, four types of tags, a line tag, a character tag, a non-line tag, and a non-character tag, are used to distinguish between a line and a character and perform periodic pixel value adjustment processing. It should be noted that this embodiment can be similarly applied not only to the periodic pixel value adjustment process but also to the continuous pixel value adjustment process.
図14は、第2の実施形態に係る画像形成装置10Bの機能的な構成の一例を示すブロック図である。
図14に示すように、本実施形態に係る画像形成装置10Bは、ラスタライズ部50、検出部52、調整部54、及び合成部36を備える。なお、同じ機能を有する構成要素には同じ符号を付し、繰り返しの説明は省略する。
FIG. 14 is a block diagram showing an example of a functional configuration of the
As shown in FIG. 14, the
図15は、第2の実施形態に係る画像形成装置10Bによるラスタライズ処理の一例を説明するための模式図である。
FIG. 15 is a schematic diagram for explaining an example of rasterization processing by the
本実施形態に係るラスタライズ部50は、図15に示すように、線及び文字を含むベクタ画像と共に、ベクタ画像のオブジェクト情報の入力を受け付ける。ラスタライズ部50は、第1の実施形態と同様に、オブジェクト情報に基づいて、ベクタ画像をラスタライズしてラスタ画像を生成する。
As shown in FIG. 15, the
本実施形態において、線文字タグは、線タグ及び文字タグを含み、非線文字タグは、非線タグ及び非文字タグを含む。ラスタライズ部50は、上記のオブジェクト情報に基づいて、ラスタ画像の各画素に対して、線タグ、文字タグ、非線タグ、及び非文字タグのいずれか1つを割り当てる。線タグは、画素が線の一部であることを示すタグである。文字タグは、画素が文字の一部であることを示すタグである。非線タグは、画素が非線であることを示すタグである。非文字タグは、画素が非文字であることを示すタグである。
In the present embodiment, the line character tag includes a line tag and a character tag, and the non-line character tag includes a non-line tag and a non-character tag. The
本実施形態では、図15に示すように、線タグが割り当てられた画素を線画素Tg3とし、非線タグが割り当てられた画素を非線画素Tg5として区別する。同様に、文字タグが割り当てられた画素を文字画素Tg4とし、非文字タグが割り当てられた画素を非文字画素Tg6として区別する。但し、非線画素Tg5と非文字画素Tg6とは同一の画素である。本実施形態に係るラスタライズ部50は、割り当てた結果として、ラスタ画像の各画素に対応付けて、線タグ、文字タグ、非線タグ、及び非文字タグを区別するための2ビットの情報を記憶部14に記憶する。例えば、当該情報が「00」であれば、線タグが割り当てられていることを示し、当該情報が「01」であれば、文字タグが割り当てられていることを示す。同様に、当該情報が「10」であれば、非線タグが割り当てられていることを示し、当該情報が「11」であれば、非文字タグが割り当てられていることを示す。
In the present embodiment, as shown in FIG. 15, the pixel to which the line tag is assigned is designated as the line pixel Tg3, and the pixel to which the non-line tag is assigned is designated as the non-line pixel Tg5. Similarly, the pixel to which the character tag is assigned is designated as the character pixel Tg4, and the pixel to which the non-character tag is assigned is designated as the non-character pixel Tg6. However, the non-line pixel Tg5 and the non-character pixel Tg6 are the same pixel. As a result of the allocation, the
本実施形態に係る検出部52は、上述の図5を参照して説明したように、注目画素Ap1を含む検出領域40毎に、線画素Tg3と非線画素Tg5との境界を検出する。但し、図5に示す線文字画素Tg1を線画素Tg3と読み替え、非線文字画素Tg2を非線画素Tg5と読み替える。同様に、検出部52は、注目画素Ap1を含む検出領域40毎に、文字画素Tg4と非文字画素Tg6との境界を検出する。但し、図5に示す線文字画素Tg1を文字画素Tg4と読み替え、非線文字画素Tg2を非文字画素Tg6と読み替える。
As described with reference to FIG. 5 described above, the
本実施形態に係る境界検出処理には、線検出の場合及び文字検出の場合の各々に対して、第1の実施形態と同様に、図6に示す境界検出用パターンを用いたバターンマッチングが適用される。 In the boundary detection process according to the present embodiment, pattern matching using the boundary detection pattern shown in FIG. 6 is applied to each of the case of line detection and the case of character detection, as in the first embodiment. Will be done.
本実施形態に係る調整部54は、線検出の場合のパターンマッチングにより、図6に示す境界検出用パターンのいずれかが合致した場合、注目画素Ap1に対応する画素値を、近傍画素Np1の画素値に基づいて調整するか否かを判定する。この場合、注目画素Ap1は、非線画素Tg5であり、近傍画素Np1は、線画素Tg3である。そして、線検出の場合には、一例として図8に示す調整領域42を用いて周期的画素値調整処理を行う。一方、調整部54は、文字検出の場合のパターンマッチングにより、図6に示す境界検出用パターンのいずれかが合致した場合、注目画素Ap1に対応する画素値を、近傍画素Np1の画素値に基づいて調整するか否かを判定する。この場合、注目画素Ap1は、非文字画素Tg6であり、近傍画素Np1は、文字画素Tg4である。そして、文字検出の場合には、一例として図9に示す調整領域44を用いて周期的画素値調整処理を行う。
When any of the boundary detection patterns shown in FIG. 6 matches by pattern matching in the case of line detection, the
上記のような調整領域の使い分けにより、線と文字とが異なる太さに調整される。例えば、調整領域42を用いた場合、線の太さが1/2画素相当分太く視認されるように調整される。一方、調整領域44を用いた場合、文字の太さが2/3画素相当分太く視認されるように調整される。
By properly using the adjustment area as described above, the lines and characters are adjusted to different thicknesses. For example, when the
以上、実施形態として画像処理装置及び画像形成装置を例示して説明した。実施形態は、画像処理装置又は画像形成装置が備える各部の機能をコンピュータに実行させるためのプログラムの形態としてもよい。実施形態は、このプログラムを記憶したコンピュータが読み取り可能な記憶媒体の形態としてもよい。 In the above, the image processing apparatus and the image forming apparatus have been illustrated and described as embodiments. The embodiment may be in the form of a program for causing a computer to execute the functions of each part included in the image processing device or the image forming device. The embodiment may be in the form of a storage medium that can be read by a computer that stores this program.
その他、上記実施形態で説明した画像処理装置又は画像形成装置の構成は、一例であり、主旨を逸脱しない範囲内において状況に応じて変更してもよい。 In addition, the configuration of the image processing device or the image forming device described in the above embodiment is an example, and may be changed depending on the situation within a range that does not deviate from the gist.
また、上記実施形態で説明したプログラムの処理の流れも、一例であり、主旨を逸脱しない範囲内において不要なステップを削除したり、新たなステップを追加したり、処理順序を入れ替えたりしてもよい。 Further, the processing flow of the program described in the above embodiment is also an example, and even if unnecessary steps are deleted, new steps are added, or the processing order is changed within a range that does not deviate from the purpose. good.
また、上記実施形態では、プログラムを実行することにより、実施形態に係る処理がコンピュータを利用してソフトウェア構成により実現される場合について説明したが、これに限らない。実施形態は、例えば、ハードウェア構成や、ハードウェア構成とソフトウェア構成との組み合わせによって実現してもよい。 Further, in the above-described embodiment, the case where the processing according to the embodiment is realized by the software configuration by using the computer by executing the program has been described, but the present invention is not limited to this. The embodiment may be realized by, for example, a hardware configuration or a combination of a hardware configuration and a software configuration.
10A、10B画像形成装置
11 画像処理部
12 制御部
12A CPU
12B ROM
12C RAM
12D I/O
14 記憶部
14A 画像処理プログラム
16 表示部
18 操作部
20 画像形成部
22 原稿読取部
24 通信部
30、50 ラスタライズ部
32、52 検出部
34、54、 調整部
36 合成部
40 検出領域
42、44 調整領域
10A, 10B
12B ROM
12C RAM
12D I / O
14
Claims (9)
を備え、
前記調整領域及び前記閾値の少なくとも一方は変更可能であり、
前記閾値には、1以上前記調整領域の画素数以下の値が設定される画像処理装置。 A predetermined adjustment that includes the second pixel along the boundary with the first pixel indicating a part of a line or character in the image and not a part of the line or character as a pixel of interest. When the number of adjusted pixels whose pixel value is adjusted by the pixel value of the first pixel located in the vicinity of the pixel of interest in the region is less than the threshold value, the pixel value corresponding to the pixel of interest is determined. Adjustment is made based on the pixel value of the nearby pixel, which is the first pixel located in the vicinity of the attention pixel, and when the number of the adjusted pixels is equal to or greater than the threshold value, the pixel value corresponding to the attention pixel is adjusted. Equipped with an adjustment unit that does not
Ri least one modifiable der of the adjustment regions and the threshold value,
The threshold value is 1 or more the adjustment region image processing apparatus following values: number of pixels Ru is set in.
前記注目画素を含む予め定められた検出領域毎に、前記割当部により前記線文字タグが割り当てられた画素である前記第1画素と、前記非線文字タグが割り当てられた画素である前記第2画素との前記境界を検出する検出部と、
を更に備えた請求項1〜5のいずれか1項に記載の画像処理装置。 Assignment to assign either a line character tag indicating that it is a part of the line or character and a non-line character tag indicating that it is not a part of the line or character to each pixel of the image. Department and
The first pixel, which is a pixel to which the line character tag is assigned by the allocation unit, and the second pixel, which is a pixel to which the non-line character tag is assigned, for each predetermined detection region including the pixel of interest. A detection unit that detects the boundary with the pixel,
The image processing apparatus according to any one of claims 1 to 5, further comprising.
前記調整部により画素値が調整された前記画像又は調整されない前記画像を記録媒体に形成する形成部と、
を備え、
前記調整領域及び前記閾値の少なくとも一方は変更可能であり、
前記閾値には、1以上前記調整領域の画素数以下の値が設定される画像形成装置。 A predetermined adjustment that includes the second pixel along the boundary with the first pixel indicating a part of a line or character in the image and not a part of the line or character as a pixel of interest. When the number of adjusted pixels whose pixel value is adjusted by the pixel value of the first pixel located in the vicinity of the pixel of interest in the region is less than the threshold value, the pixel value corresponding to the pixel of interest is determined. Adjustment is made based on the pixel value of the nearby pixel, which is the first pixel located in the vicinity of the attention pixel, and when the number of the adjusted pixels is equal to or greater than the threshold value, the pixel value corresponding to the attention pixel is adjusted. With the adjustment part that does not
A forming unit that forms the image whose pixel value is adjusted by the adjusting unit or the image whose pixel value is not adjusted on a recording medium, and a forming unit.
With
Ri least one modifiable der of the adjustment regions and the threshold value,
The threshold value is 1 or more the adjustment region image forming apparatus which the value of or less than the number of pixels Ru is set in.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017162645A JP6915455B2 (en) | 2017-08-25 | 2017-08-25 | Image processing equipment, image forming equipment, and programs |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017162645A JP6915455B2 (en) | 2017-08-25 | 2017-08-25 | Image processing equipment, image forming equipment, and programs |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2019041280A JP2019041280A (en) | 2019-03-14 |
| JP6915455B2 true JP6915455B2 (en) | 2021-08-04 |
Family
ID=65726780
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017162645A Active JP6915455B2 (en) | 2017-08-25 | 2017-08-25 | Image processing equipment, image forming equipment, and programs |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6915455B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110084814B (en) * | 2019-05-13 | 2021-11-02 | 苏州微创关节医疗科技有限公司 | Surface coating measuring method, device, computer equipment and storage medium |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007057954A (en) * | 2005-08-25 | 2007-03-08 | Fuji Xerox Co Ltd | Image forming apparatus |
| JP5924112B2 (en) * | 2012-05-14 | 2016-05-25 | コニカミノルタ株式会社 | Image processing apparatus and image processing method |
| JP5812960B2 (en) * | 2012-09-24 | 2015-11-17 | 京セラドキュメントソリューションズ株式会社 | Image forming apparatus |
| JP6472336B2 (en) * | 2014-06-18 | 2019-02-20 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
| JP2016201037A (en) * | 2015-04-13 | 2016-12-01 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
| JP6249244B2 (en) * | 2015-06-25 | 2017-12-20 | 京セラドキュメントソリューションズ株式会社 | Image processing apparatus and image forming apparatus |
-
2017
- 2017-08-25 JP JP2017162645A patent/JP6915455B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2019041280A (en) | 2019-03-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5874721B2 (en) | Image processing apparatus, image correction method, and program | |
| CN108337400B (en) | Image processing apparatus and image processing method | |
| JP6206018B2 (en) | Image processing apparatus, image processing system, and image processing method | |
| JP6299436B2 (en) | Image processing apparatus, image processing method, program, and recorded member | |
| JP4979357B2 (en) | Image forming apparatus and control method thereof | |
| JP5499981B2 (en) | Image processing device | |
| CN102461149B (en) | Image forming apparatus and image processing method | |
| US20180234592A1 (en) | Image forming apparatus and method of adjusting output density of image forming apparatus | |
| JP6915455B2 (en) | Image processing equipment, image forming equipment, and programs | |
| JP6232948B2 (en) | Information processing apparatus, information processing method, and program | |
| JP6977390B2 (en) | Image processing equipment, image forming equipment, and programs | |
| JP2013205703A (en) | Image formation device | |
| US9036210B2 (en) | Image processing device, image forming apparatus, image processing method, and non-transitory computer readable medium | |
| JP2013031148A (en) | Image forming apparatus and image forming method | |
| JP6935708B2 (en) | Image processing equipment, image forming equipment, and programs | |
| JP2006295624A (en) | Image processing apparatus and method, and computer program and recording medium | |
| US20210120142A1 (en) | Pattern generation device, pattern generation method, and pattern forming device | |
| JP2019047206A (en) | Image processing apparatus, image forming apparatus, and program | |
| JP2020127142A (en) | Image forming device | |
| JP7205292B2 (en) | Information processing device and image forming device | |
| JP6705620B2 (en) | History generation device, history generation method, and program | |
| JP6175939B2 (en) | Image forming apparatus | |
| CN107783398B (en) | Image forming apparatus and printing sheet | |
| JP6604172B2 (en) | Image forming apparatus and line width adjusting method | |
| JP2024040692A (en) | Information processing device, information processing system, and information processing program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200717 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210406 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210413 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210602 |
|
| 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: 20210615 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210628 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6915455 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |