JP7226007B2 - Image processing device, image processing method, and program - Google Patents

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

Info

Publication number
JP7226007B2
JP7226007B2 JP2019058205A JP2019058205A JP7226007B2 JP 7226007 B2 JP7226007 B2 JP 7226007B2 JP 2019058205 A JP2019058205 A JP 2019058205A JP 2019058205 A JP2019058205 A JP 2019058205A JP 7226007 B2 JP7226007 B2 JP 7226007B2
Authority
JP
Japan
Prior art keywords
size
image
block
paper
observation distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019058205A
Other languages
Japanese (ja)
Other versions
JP2020161936A (en
Inventor
昌史 上田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2019058205A priority Critical patent/JP7226007B2/en
Publication of JP2020161936A publication Critical patent/JP2020161936A/en
Application granted granted Critical
Publication of JP7226007B2 publication Critical patent/JP7226007B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Record Information Processing For Printing (AREA)

Description

本明細書に開示される技術分野は、画像処理装置、画像処理方法、およびプログラムに関する。 The technical field disclosed in this specification relates to an image processing device, an image processing method, and a program.

従来から、スキャナやデジタルカメラ等の画像入力装置で生成された画像データに基づいて印刷等の画像出力処理を行う場合、画像データが示す画像を複数のブロックに分割し、ブロック単位で得られる特徴量を用いて、画像データの画像に対して画像処理を行う技術が知られている。例えば、特許文献1には、原稿画像を複数のブロックに分割し、ブロック単位で色を判定し、白以外の色のブロックが連続する数値(ランレングス)を閾値と比較することで、文字領域か中間調領域かを判定する構成が開示されている。 Conventionally, when performing image output processing such as printing based on image data generated by an image input device such as a scanner or digital camera, the image indicated by the image data is divided into multiple blocks, and the feature is that each block is obtained. Techniques for performing image processing on an image of image data using quantities are known. For example, in Patent Document 1, a document image is divided into a plurality of blocks, a color is determined for each block, and a numerical value (run length) of continuous blocks of colors other than white is compared with a threshold value to determine a character region. and a halftone region is disclosed.

特開平3-208467号公報JP-A-3-208467

印刷物のサイズによって、ユーザにとっての好適な観察距離(視認距離)が異なることが知られている。例えば、A4サイズの印刷物と比較して、名刺等の小サイズの印刷物では、印刷される文字が小さい傾向にあり、観察距離が短い。一方、ポスター等の大サイズの印刷物では、ユーザがその印刷物からある程度離れた位置でその印刷物を見ることが想定され、観察距離が長い。従来の技術では、この観察距離が考慮されていないため、より好適な画像処理を行う上で改善の余地がある。 It is known that the preferred viewing distance (visible distance) for the user differs depending on the size of the printed matter. For example, compared to A4-size printed matter, small-sized printed matter such as business cards tend to have smaller printed characters and a shorter viewing distance. On the other hand, in the case of a large-sized printed matter such as a poster, it is assumed that the user will view the printed matter at a certain distance from the printed matter, and the observation distance is long. Since the conventional technology does not consider this viewing distance, there is room for improvement in performing more suitable image processing.

本明細書は、画像データに基づいて画像処理を行う画像処理装置が、観察距離に適した画像処理を行うことが可能な技術を開示する。 This specification discloses a technique that allows an image processing apparatus that performs image processing based on image data to perform image processing suitable for an observation distance.

この課題の解決を目的としてなされた画像処理装置は、コンピュータを備える画像処理装置であって、前記コンピュータは、画像データを取得する画像データ取得処理と、前記画像データ取得処理にて取得した前記画像データが示す画像である原画像に基づく印刷を行う場合の印刷対象の画像である印刷画像のサイズを特定するサイズ情報を取得するサイズ情報取得処理と、前記サイズ情報取得処理にて取得した前記サイズ情報に基づいて、ブロックのサイズを決定するブロックサイズ決定処理と、前記原画像を、前記ブロックサイズ決定処理で決定されたブロックのサイズにて複数のブロックに分割する分割処理と、
前記分割処理にて分割された前記ブロックであって、所定の条件を満たすブロックの連続値であるランレングスを算出する算出処理と、前記算出処理にて算出された前記ランレングスを用いて、文字領域か中間調領域かを判定する領域判定処理と、を実行する、ことを特徴としている。
An image processing apparatus that aims to solve this problem is an image processing apparatus that includes a computer, wherein the computer performs an image data acquisition process for acquiring image data, and the image data acquired by the image data acquisition process. A size information acquisition process for acquiring size information specifying the size of a print image that is an image to be printed when printing is performed based on an original image that is an image indicated by data; and the size acquired by the size information acquisition process. a block size determination process for determining a block size based on the information; a division process for dividing the original image into a plurality of blocks according to the block size determined by the block size determination process;
A calculation process of calculating a run length, which is a continuous value of the blocks divided by the division process and which satisfies a predetermined condition, and a character using the run length calculated by the calculation process. and a region determination process for determining whether an area is an area or a halftone area.

本明細書に開示される画像処理装置は、印刷画像のサイズの情報に基づいて、分割するブロックのサイズを決定し、決定したブロックのサイズで原画像を複数のブロックに分割する。例えば、大サイズの印刷であれば観察距離が長く、精細な画像である必要性が低いことから、大サイズのブロックに分割し、小サイズの印刷であれば観察距離が短く、精細な画像である必要性が高くなることから、小サイズのブロックに分割する。大サイズのブロックに分割すると、処理の負荷が小さい一方、詳細な判定とはならない可能性がある。小サイズのブロックに分割した場合、詳細な判定が可能である一方、処理の負荷が大きい。画像処理装置は、印刷画像のサイズに応じたサイズのブロックに分割することで、観察距離に適した画像処理を行うことが期待できる。 The image processing apparatus disclosed in this specification determines the size of the block to be divided based on the size information of the print image, and divides the original image into a plurality of blocks according to the determined block size. For example, for large-size prints, the observation distance is long and the need for fine images is low. It is divided into small size blocks due to the high necessity. Dividing into large-sized blocks reduces the processing load, but may not result in detailed determination. When divided into small-sized blocks, detailed determination is possible, but the processing load is large. The image processing apparatus can be expected to perform image processing suitable for the viewing distance by dividing the printed image into blocks of sizes corresponding to the size of the printed image.

上記装置の機能を実現するための制御方法、コンピュータプログラム、および当該コンピュータプログラムを格納するコンピュータ読取可能な記憶媒体も、新規で有用である。 A control method, a computer program, and a computer-readable storage medium storing the computer program for implementing the functions of the above apparatus are also novel and useful.

本発明によれば、画像データに基づいて画像処理を行う画像処理装置が、観察距離に適した画像処理を行うことが可能な技術が実現される。 According to the present invention, a technology is realized that enables an image processing apparatus that performs image processing based on image data to perform image processing suitable for an observation distance.

本形態に係るMFPの電気的構成を示すブロック図である。2 is a block diagram showing an electrical configuration of the MFP according to this embodiment; FIG. 領域分割処理の手順を示すフローチャートである。6 is a flow chart showing the procedure of region division processing; サイズ決定処理の手順を示すフローチャートである。7 is a flowchart showing the procedure of size determination processing; 近点距離の変化の例を示す説明図である。FIG. 5 is an explanatory diagram showing an example of change in near-point distance; 観察距離と視野角との例を示す説明図である。FIG. 5 is an explanatory diagram showing an example of observation distance and viewing angle; ブロックに分割した状態の例を示す説明図である。FIG. 4 is an explanatory diagram showing an example of a state divided into blocks; ランレングスの例を示す説明図である。FIG. 4 is an explanatory diagram showing an example of run lengths;

画像形成装置を具体化した実施の形態について、添付図面を参照しつつ詳細に説明する。本形態は、画像形成機能と画像読取機能とを含む画像処理機能を有する複合機(以下、「MFP」とする)を開示するものである。 Embodiments of an image forming apparatus will be described in detail with reference to the accompanying drawings. This embodiment discloses a multifunction peripheral (hereinafter referred to as "MFP") having an image processing function including an image forming function and an image reading function.

本形態のMFP100の電気的構成について説明する。本形態のMFP100は、図1に示すように、CPU31と、ROM32と、RAM33と、不揮発性メモリ34と、を含む制御基板30を備えている。また、MFP100は、画像形成デバイス10と、画像読取デバイス20と、通信インタフェース(以下、「通信IF」とする)37と、操作パネル40と、を備え、これらが制御基板30に電気的に接続されている。 An electrical configuration of the MFP 100 of this embodiment will be described. The MFP 100 of this embodiment includes a control board 30 including a CPU 31, a ROM 32, a RAM 33, and a nonvolatile memory 34, as shown in FIG. The MFP 100 also includes an image forming device 10 , an image reading device 20 , a communication interface (hereinafter referred to as “communication IF”) 37 , and an operation panel 40 , which are electrically connected to the control board 30 . It is

ROM32には、MFP100を起動するための起動プログラム等が記憶されている。RAM33は、各種の処理が実行される際の作業領域として、あるいは、データを一時的に記憶する記憶領域として利用される。不揮発性メモリ34は、例えば、HDD、フラッシュメモリであり、各種のプログラムや画像データ等のデータや各種設定を記憶する領域として利用される。CPU31は、コンピュータの一例である。 The ROM 32 stores a boot program and the like for booting the MFP 100 . The RAM 33 is used as a work area when various processes are executed, or as a storage area for temporarily storing data. The nonvolatile memory 34 is, for example, an HDD or a flash memory, and is used as an area for storing various programs, data such as image data, and various settings. CPU 31 is an example of a computer.

画像形成デバイス10は、用紙に画像を形成するための構成を含む。画像形成デバイス10は、インクジェット方式プリンタ、電子写真方式プリンタなど、どのような方式のデバイスでも良い。また、画像形成デバイス10は、カラー画像の形成が可能なデバイスであっても良いし、モノクロ画像のみを形成するデバイスであっても良い。また、MFP100は、複数の画像形成デバイス10を備えていても良い。 Imaging device 10 includes a configuration for forming an image on paper. The image forming device 10 may be an inkjet printer, an electrophotographic printer, or any other type of device. Further, the image forming device 10 may be a device capable of forming a color image, or may be a device that forms only a monochrome image. Also, the MFP 100 may include a plurality of image forming devices 10 .

画像読取デバイス20は、用紙に形成されている画像を読み取って、画像データを取得するための構成を含む。MFP100の画像読取デバイス20は、カラー原稿を読み取ってカラー画像データを取得するカラーイメージスキャナであっても良いし、モノクロ画像データのみを取得するモノクロイメージスキャナであっても良い。 The image reading device 20 includes a configuration for reading an image formed on paper and acquiring image data. The image reading device 20 of the MFP 100 may be a color image scanner that reads a color document and acquires color image data, or may be a monochrome image scanner that acquires only monochrome image data.

通信IF37は、パーソナルコンピュータ等の外部装置との通信を行うための構成を含む。MFP100は、複数種類の通信方式に対応可能であってもよい。操作パネル40は、ディスプレイ等の表示のための構成と、入力ボタン等の指示入力を受け付けるための構成とを含む。操作パネル40は、例えば、タッチパネル等の表示と入力受け付けとの両方の機能を備えるものであっても良い。 The communication IF 37 includes a configuration for communicating with an external device such as a personal computer. MFP 100 may be compatible with multiple types of communication methods. The operation panel 40 includes a configuration for display such as a display and a configuration for receiving instruction input such as an input button. The operation panel 40 may be, for example, a touch panel or the like that has both a display function and an input reception function.

MFP100は、画像データを取得し、取得した画像データが示す画像である原画像に基づく印刷を実行する機能を備えている。画像データは、MFP100の画像読取デバイス20にて読み取って取得したデータでも良いし、通信IF37を介して外部装置から取得したデータでも良い。MFP100は、取得した画像データを一旦、RAM33または不揮発性メモリ34に記憶し、印刷用のデータを生成する前に、画像データに示される画像に対して各種の画像処理を施す。 The MFP 100 has a function of acquiring image data and executing printing based on an original image, which is an image indicated by the acquired image data. The image data may be data read and acquired by the image reading device 20 of the MFP 100 or data acquired from an external device via the communication IF 37 . MFP 100 temporarily stores the acquired image data in RAM 33 or nonvolatile memory 34, and performs various image processing on the image indicated by the image data before generating data for printing.

MFP100にて実行される画像処理には、例えば、文字領域と中間調領域との判定処理が含まれる。文字領域は、文字や線画等の2値画像を含む領域であり、中間調領域は、写真や網点等の中間調画像を含む領域である。取得した画像データが文字領域と中間調領域とを含む画像の画像データである場合、MFP100は、文字領域か中間調領域かを判定して、それぞれの領域に適した処理を行う。具体的には、例えば、文字領域に対してはエッジ強調処理、中間調領域に対しては平滑化処理を行うことで、MFP100は、文字は鮮明で写真は滑らかな見やすい印刷物を生成できる。 The image processing executed by the MFP 100 includes, for example, determination processing between character areas and halftone areas. The character area is an area containing binary images such as characters and line drawings, and the halftone area is an area containing halftone images such as photographs and halftone dots. When the acquired image data is image data of an image including a text area and a halftone area, the MFP 100 determines whether it is a text area or a halftone area, and performs appropriate processing for each area. Specifically, for example, the MFP 100 can generate an easy-to-see printed matter with sharp characters and smooth photographs by performing edge enhancement processing on character regions and smoothing processing on halftone regions.

本形態では、画像データを同じ大きさの複数のブロックに分割し、ブロックごとに文字領域と中間調領域との判定を行う。ブロックの大きさは、領域判定のための処理負荷が大きすぎない程度に大きく、かつ、複数の領域が混在しない程度に小さいことが望ましい。 In this embodiment, image data is divided into a plurality of blocks of the same size, and each block is determined as a character area or a halftone area. It is desirable that the block size is large enough so that the processing load for area determination is not too large, and small enough that multiple areas do not coexist.

続いて、本形態のMFP100における領域判定方法について説明する。本形態の領域分割処理の手順について、図2のフローチャートを参照して説明する。この領域分割処理は、例えば、印刷実行の指示を受け付けたことを契機に、CPU31にて実行される。 Next, an area determination method in MFP 100 of the present embodiment will be described. A procedure of region division processing according to the present embodiment will be described with reference to the flowchart of FIG. This area dividing process is executed by the CPU 31, for example, when an instruction to execute printing is received.

領域分割処理では、CPU31は、まず、印刷対象として指定された画像のドットデータを取得する(S101)。S101は、画像データ取得処理の一例である。印刷指示にて指定される印刷対象の画像のデータ形式は、様々な形式のものである。CPU31は、指定された画像の画像データに基づいて、ドットデータを取得する。例えば、受け付けた印刷指示がコピー指示であれば、CPU31は、画像読取デバイス20にて読み取ったデータであるドットデータを取得する。あるいは、外部装置から取得したPDLデータの印刷指示であれば、CPU31は、PDLデータをラスタライズして、ドットデータを取得する。ドットデータは、YMCKデータでもRGBデータでも良い。また、画像データは、不揮発性メモリ34やRAM33から読み出したデータであっても良い。 In the area dividing process, the CPU 31 first acquires dot data of an image designated as a print target (S101). S101 is an example of image data acquisition processing. The data format of the image to be printed, which is specified by the print instruction, is of various formats. The CPU 31 acquires dot data based on the image data of the designated image. For example, if the received print instruction is a copy instruction, the CPU 31 acquires dot data read by the image reading device 20 . Alternatively, if the instruction is to print PDL data acquired from an external device, the CPU 31 rasterizes the PDL data and acquires dot data. The dot data may be YMCK data or RGB data. Also, the image data may be data read from the nonvolatile memory 34 or the RAM 33 .

そして、CPU31は、取得したドットデータを分割するブロックのサイズを決定するサイズ決定処理を実行する(S102)。サイズ決定処理の手順について、図3のフローチャートを参照して説明する。 Then, the CPU 31 executes size determination processing for determining the size of blocks into which the acquired dot data is divided (S102). The procedure of size determination processing will be described with reference to the flowchart of FIG.

サイズ決定処理では、CPU31は、まず用紙サイズを取得する(S201)。CPU31は、例えば、印刷指示に含まれる印刷パラメータに基づいて、印刷対象となる用紙の用紙サイズを取得する。S201は、サイズ情報取得処理の一例である。用紙サイズは、印刷パラメータから直接取得しても良いし、印刷パラメータに含まれる他の情報を用いて取得しても良い。例えば、印刷パラメータとして給紙トレイが指定されている場合、CPU31は、指定されている給紙トレイにセットされている用紙の用紙サイズを、画像形成デバイス10から取得しても良い。用紙サイズは、サイズ情報の一例である。 In the size determination process, the CPU 31 first acquires the paper size (S201). The CPU 31 acquires the paper size of the paper to be printed, for example, based on the print parameters included in the print instruction. S201 is an example of size information acquisition processing. The paper size may be obtained directly from the print parameters, or may be obtained using other information included in the print parameters. For example, when a paper feed tray is specified as a print parameter, the CPU 31 may acquire from the image forming device 10 the paper size of the paper set in the specified paper feed tray. Paper size is an example of size information.

CPU31は、印刷指示がNin1印刷の指示であるか否かを判断する(S202)。Nin1印刷は、複数ページ分の画像を1ページに集約して印刷する印刷態様であり、Nは、1ページに集約される元のページ数を示す数値である。例えば、2in1印刷では、2ページ分の画像を1ページに集約して印刷する。Nin1印刷は、集約印刷の一例である。 The CPU 31 determines whether or not the print instruction is for Nin1 printing (S202). N-in-1 printing is a printing mode in which images for a plurality of pages are combined into one page and printed, and N is a numerical value indicating the original number of pages to be combined into one page. For example, in 2-in-1 printing, images for two pages are aggregated and printed on one page. Nin1 printing is an example of aggregate printing.

Nin1印刷の指示であると判断した場合(S202:YES)、CPU31は、用紙サイズを、1つの画像が印刷される範囲のサイズに変更する(S203)。例えば、A3の用紙に2in1印刷を行う印刷指示であれば、CPU31は、S201では用紙サイズとしてA3サイズを取得し、S203にて用紙サイズをA4サイズに変更する。 When determining that the instruction is Nin1 printing (S202: YES), the CPU 31 changes the paper size to a size within which one image is printed (S203). For example, if the print instruction is to perform 2-in-1 printing on A3 paper, the CPU 31 acquires A3 as the paper size in S201, and changes the paper size to A4 in S203.

S203の後、または、Nin1印刷の指示ではないと判断した場合(S202:NO)、CPU31は、用紙サイズに対応する観察距離Dを取得する(S204)。観察距離Dは、人が印刷物の全体を見る場合の目と印刷物との距離であり、印刷物が大きいほど観察距離Dは大きい。本形態では、印刷物のサイズごとに観察距離が予め設定されている。具体的には、A3サイズの観察距離Dは100cm、A4サイズの観察距離Dは30cm、名刺サイズの観察距離Dは10cmとする。用紙サイズによって大凡の観察距離を推測できるので、好適なブロックサイズを簡単に決定できる。 After S203, or if it is determined that the N-in-1 printing is not instructed (S202: NO), the CPU 31 acquires the observation distance D corresponding to the paper size (S204). The viewing distance D is the distance between the human eye and the printed matter when viewing the entire printed matter, and the larger the printed matter, the greater the viewing distance D. In this embodiment, the viewing distance is set in advance for each size of printed matter. Specifically, the observation distance D for A3 size is 100 cm, the observation distance D for A4 size is 30 cm, and the observation distance D for business card size is 10 cm. A suitable block size can be easily determined since the approximate viewing distance can be inferred from the paper size.

前述した観察距離Dは印刷物の全体を眺める場合の距離であり、印刷物を詳細に見る場合にはより近い近点距離を観察距離Dとして適用することが好ましい。この近点距離は、例えば、図4に示すように、加齢により変化することが知られている。観察者が30歳代までであれば、近点距離は短く、観察距離Dも前述した設定値よりも小さくすることが好ましい。一方、観察者が60歳以上であれば、近点距離が長く、観察距離Dも前述した設定値よりも大きくすることが好ましい。 The observation distance D described above is the distance when the printed matter is viewed in its entirety, and when the printed matter is viewed in detail, it is preferable to apply a closer near-point distance as the observation distance D. This periapsis distance is known to change with aging, for example, as shown in FIG. If the observer is in his or her thirties, it is preferable that the near-point distance is short and the observation distance D is also smaller than the set value described above. On the other hand, if the observer is 60 years old or older, it is preferable that the near point distance is long and the observation distance D is set larger than the above-described set value.

そこで、本形態では、CPU31は、これから形成する印刷物を見る観察者の年齢層の指定を受け付ける(S205)。年齢層は、印刷パラメータとして受け付けても良いし、MFP100の操作パネル40にて受け付けても良い。そして、CPU31は、受け付けた年齢層に基づいて、観察距離Dを調整する(S206)。例えば、観察者が30歳代までであれば、CPU31は、観察距離Dを設定値の3分の1とする。一方、観察者が60歳以上であれば、CPU31は、観察距離Dを設定値の2倍とする。観察者が40歳から60歳までの間であるか、あるいは観察者の年齢層が不明である場合には、CPU31は、観察距離Dを変更しない。 Therefore, in this embodiment, the CPU 31 accepts designation of the age group of the observer who views the printed matter to be formed (S205). The age group may be accepted as a print parameter, or may be accepted through the operation panel 40 of the MFP 100 . Then, the CPU 31 adjusts the viewing distance D based on the received age group (S206). For example, if the observer is in his or her thirties, the CPU 31 sets the observation distance D to 1/3 of the set value. On the other hand, if the observer is 60 years old or older, the CPU 31 sets the observation distance D to twice the set value. The CPU 31 does not change the observation distance D if the observer is between 40 and 60 years old, or if the observer's age group is unknown.

次に、CPU31は、印刷指示のカラーモードがモノクロ印刷であるか否かを判断する(S207)。S207は、カラーモード取得処理の一例である。モノクロ印刷の指示ではなく、カラー印刷の指示であると判断した場合(S207:NO)、CPU31は、印刷対象として選択されている用紙の用紙種を取得する(S208)。S208は、用紙種取得処理の一例である。用紙種としては、例えば、写真用の光沢紙やマット紙、普通紙、厚紙、OHP用紙がある。 Next, the CPU 31 determines whether or not the color mode of the print instruction is monochrome printing (S207). S207 is an example of color mode acquisition processing. If it is determined that the instruction is not for monochrome printing but for color printing (S207: NO), the CPU 31 acquires the paper type of the paper selected for printing (S208). S208 is an example of paper type acquisition processing. Paper types include, for example, photo glossy paper, matte paper, plain paper, thick paper, and OHP paper.

CPU31は、選択された用紙種が写真用の用紙であるか否かを判断する(S209)。光沢紙やマット紙等の写真用の用紙が選択されていると判断した場合(S209:YES)、CPU31は、視野角θを10度に決定する(S210)。用紙種は、用途情報の一例である。 CPU 31 determines whether or not the selected paper type is photo paper (S209). When determining that photo paper such as glossy paper or matte paper is selected (S209: YES), the CPU 31 sets the viewing angle θ to 10 degrees (S210). The paper type is an example of application information.

視野角は、視野の全体のうちの対象物に意識を向ける範囲を示す角度である。視野角は、写真や絵画など全体的に眺める対象物では大きく、文字や図形など細部に注目する対象物では小さい。例えば、比較的広い範囲を全体的に見る写真の視野角は約10度、詳細に観察する文字の視野角は約2度であると言われている。印刷用途によって視野角が異なり、選択されている用紙種によって印刷用途が推測できることから、本形態では、CPU31は、カラーモードと用紙種とに基づいて視野角を決定する。本形態では、カラー印刷であって写真用の用紙に印刷する指示であれば、視野角θを10度とする。光沢紙やマット紙などにカラー画像を印刷する場合、写真用途である可能性が高い。 The viewing angle is an angle that indicates the range in which the user can pay attention to an object in the entire visual field. The viewing angle is large for objects such as photographs and paintings that are viewed as a whole, and is small for objects such as characters and figures that require attention to detail. For example, it is said that the viewing angle of a photograph for which a relatively wide area is viewed as a whole is about 10 degrees, and the viewing angle of a character for detailed observation is about 2 degrees. Since the viewing angle differs depending on the printing application, and the printing application can be estimated from the selected paper type, in this embodiment, the CPU 31 determines the viewing angle based on the color mode and the paper type. In the present embodiment, the viewing angle θ is set to 10 degrees in the case of color printing and an instruction to print on photographic paper. When printing color images on glossy paper, matte paper, etc., it is highly likely to be used for photography.

一方、モノクロ印刷であると判断した場合(S207:YES)、または、カラー印刷であっても写真用紙ではないと判断した場合(S209:NO)、CPU31は、視野角θを2度に決定する(S211)。モノクロ印刷であれば、文書、図表等の画像である可能性が高いことから、写真用途である可能性は低く、CPU31は、写真用途の場合に比較して狭い視野角を用いる。これにより、例えば、図5に示すように、観察距離Dと視野角θとが決定される。 On the other hand, if it is determined to be monochrome printing (S207: YES), or if it is determined that it is color printing but not photo paper (S209: NO), the CPU 31 determines the viewing angle θ to be 2 degrees. (S211). In the case of monochrome printing, there is a high possibility that the image is a document, chart, or the like, so the possibility that it is for photography is low, and the CPU 31 uses a narrower viewing angle than for photography. Thereby, for example, as shown in FIG. 5, the observation distance D and the viewing angle θ are determined.

CPU31は、S206にて決定した観察距離Dと、S210またはS211にて取得した視野角θとから、ブロックサイズLを決定して(S212)、サイズ決定処理を終了する。S212は、ブロックサイズ決定処理の一例である。ブロックサイズLは、ドットデータを複数のブロックに分割する場合の1ブロックの一辺の長さである。 The CPU 31 determines the block size L from the observation distance D determined in S206 and the viewing angle θ obtained in S210 or S211 (S212), and ends the size determination process. S212 is an example of block size determination processing. The block size L is the length of one side of one block when dot data is divided into a plurality of blocks.

S212では、CPU31は、ブロックサイズL(cm)を、以下の(式1)にて決定する。
L(cm) = D(cm) × tanθ × 2 … (式1)
本形態では、用紙サイズに基づく観察距離Dと、印刷用途に基づく視野角θと、をブロックサイズLの決定に反映させるので、印刷対象の画像ごとに、より好適なブロックサイズLを決定できる。
In S212, the CPU 31 determines the block size L (cm) by the following (Formula 1).
L (cm) = D (cm) x tan θ x 2 (Formula 1)
In this embodiment, since the viewing distance D based on the paper size and the viewing angle θ based on the printing application are reflected in determining the block size L, a more suitable block size L can be determined for each image to be printed.

この(式1)に、前述した観察距離Dの設定値と2種類の視野角θとの数値(図5参照)を当てはめると、ブロックサイズLは、以下のようになる。
観察距離:100cm 視野角:10度 ブロックサイズ:約35.2cm
観察距離:100cm 視野角: 2度 ブロックサイズ:約 7.0cm
観察距離: 30cm 視野角:10度 ブロックサイズ:約10.6cm
観察距離: 30cm 視野角: 2度 ブロックサイズ:約 2.0cm
観察距離: 10cm 視野角:10度 ブロックサイズ:約 3.4cm
観察距離: 10cm 視野角: 2度 ブロックサイズ:約 0.6cm
By applying the set value of the observation distance D and the two types of viewing angles θ (see FIG. 5) to this (Equation 1), the block size L is obtained as follows.
Observation distance: 100 cm Viewing angle: 10 degrees Block size: Approx. 35.2 cm
Observation distance: 100 cm Viewing angle: 2 degrees Block size: Approx. 7.0 cm
Observation distance: 30 cm Viewing angle: 10 degrees Block size: Approx. 10.6 cm
Observation distance: 30 cm Viewing angle: 2 degrees Block size: Approx. 2.0 cm
Observation distance: 10 cm Viewing angle: 10 degrees Block size: Approx. 3.4 cm
Observation distance: 10 cm Viewing angle: 2 degrees Block size: Approx. 0.6 cm

図2の領域判断処理の説明に戻る。CPU31は、S101にて取得したドットデータを、一辺がサイズ決定処理にて決定したブロックサイズLの正方形のブロックに分割する(S103)。S103は、分割処理の一例である。例えば、図6に示すように、印刷対象の用紙Q内に配置された場合の印刷画像51を、Lcm四方のブロックBに分割する。例えば、A4の原稿を300dpiにて読み取った画像データを、A4サイズの用紙に印刷するコピー処理において、L=2cmとした場合、CPU31は、300×20/25.4から、一辺が236ドットの正方形のブロックに分割する。なお、用紙Qの周辺のマージンは無くても良い。 Returning to the description of the region determination processing in FIG. The CPU 31 divides the dot data obtained in S101 into square blocks each having a block size L determined in the size determination process (S103). S103 is an example of division processing. For example, as shown in FIG. 6, the print image 51 when arranged in the paper Q to be printed is divided into blocks B of L cm square. For example, in a copy process in which image data obtained by reading an A4 original at 300 dpi is printed on A4 size paper, when L=2 cm, the CPU 31 converts 236 dots per side from 300×20/25.4. Divide into square blocks. Note that the margin around the paper Q may be omitted.

さらに、CPU31は、分割した各ブロックの色を判定する(S104)。S104は、色判定処理の一例である。ブロックの色は、例えば、白以外でブロック内に現れる頻度が最大の色をCMYKRGBの7色から判定する。なお、ブロック内の全てのドットが白である場合には、CPU31は、そのブロックの色を白と判定する。また、CPU31は、ブロック中に所定の閾値よりも高濃度のドットがある場合、そのブロックを文字候補として記憶してもよい。 Furthermore, the CPU 31 determines the color of each divided block (S104). S104 is an example of color determination processing. As for the color of the block, for example, a color other than white that appears most frequently in the block is determined from seven colors of CMYKRGB. In addition, when all the dots in the block are white, the CPU 31 determines the color of the block to be white. Further, when there is a dot with a density higher than a predetermined threshold value in a block, the CPU 31 may store that block as a character candidate.

なお、ブロック内の全ての画素を判定対象とする必要はなく、例えば、ブロックサイズに関わらず同程度の所定のサンプル数となるように、画素を間引く等の処理を行っても良い。このようにすれば、ブロックサイズの大小に関わらず、同程度の処理負荷となる。 Note that it is not necessary to target all pixels in a block for determination. For example, processing such as thinning out pixels may be performed so that the same predetermined number of samples is obtained regardless of the block size. By doing so, the processing load is about the same regardless of the block size.

そして、CPU31は、主走査方向について、所定条件を満たすブロックの連続値であるランレングスを算出する(S105)。S105は、算出処理の一例である。所定条件は、例えば、ブロックの色が白以外の色と判定されたことであり、ランレングスは、白以外のブロックが連続する個数である。このようにすると、例えば、図7に示すように、ラインmでは文字と文字との間でランレングスが途切れることからランレングスが短く、ラインnでは、白以外のブロックが連続することからランレングスが長い。なお、S104にて、白以外の最大頻度の色をブロックの色としたことから、例えば、網点領域であってもランレングスは長い。 Then, the CPU 31 calculates a run length, which is a continuous value of blocks satisfying a predetermined condition, in the main scanning direction (S105). S105 is an example of calculation processing. The predetermined condition is, for example, that the block color is determined to be a color other than white, and the run length is the number of consecutive blocks other than white. In this way, for example, as shown in FIG. 7, the run length is short on line m because the run length is interrupted between characters, and the run length is short on line n because blocks other than white are continuous. is long. In S104, since the colors other than white with the highest frequency are set as the block colors, the run length is long even in halftone dot areas.

CPU31は、ランレングスが所定の閾値よりも短いブロックを文字候補とし、S104で判定した色に基づいて、黒文字か色文字かの判定も行う。S104にて、所定の閾値よりも高濃度のドットがある場合に文字候補とすることで、CPU31は、低濃度の領域では、ランレングスが短くても文字領域と判定しない。 The CPU 31 regards a block whose run length is shorter than a predetermined threshold value as a character candidate, and determines whether the character is a black character or a color character based on the color determined in S104. In S104, when there is a dot with a density higher than a predetermined threshold, it is determined as a character candidate, so that the CPU 31 does not determine a low density area as a character area even if the run length is short.

さらに、CPU31は、副走査方向について、エッジ検出を行う(S106)。S105では、図形の一部である横線が含まれる場合、そのランレングスが長くなり、文字候補とならない可能性が高い。CPU31は、例えば、副走査方向に数ブロックの範囲にエッジが有るか否かに基づいて、エッジが有る場合には文字候補とする。これにより、主走査方向に長い横線も、文字候補となる。 Furthermore, the CPU 31 performs edge detection in the sub-scanning direction (S106). In S105, if a horizontal line that is part of the figure is included, the run length will be long and there is a high possibility that it will not be a character candidate. For example, the CPU 31 determines whether or not there is an edge within a range of several blocks in the sub-scanning direction. As a result, even a horizontal line that is long in the main scanning direction becomes a character candidate.

CPU31は、S105とS106の結果に基づいて、画像データの領域判定を行い(S107)、領域分割処理を終了する。S107は、領域判定処理の一例である。例えば、CPU31は、主走査方向か副走査方向かの何れかで文字候補が存在し、かつ、ブロック内に、YMCのうち最大のものが閾値以上である画素がある場合、このブロックを文字領域と判定する。一方、CPU31は、ランレングスの長い領域を、例えば、中間調や網点が連続する領域であり、中間調領域であると判定する。また、CPU31は、白ブロックが連続する領域を、背景領域であると判定する。 Based on the results of S105 and S106, the CPU 31 determines the area of the image data (S107), and ends the area dividing process. S107 is an example of area determination processing. For example, if there is a character candidate in either the main scanning direction or the sub-scanning direction and there is a pixel in the block in which the maximum value of YMC is equal to or greater than the threshold value, the CPU 31 regards this block as a character region. I judge. On the other hand, the CPU 31 determines that an area with a long run length is, for example, an area in which halftones or halftone dots are continuous, and is a halftone area. Further, the CPU 31 determines that an area where white blocks are continuous is a background area.

つまり、本形態のMFP100は、ブロック色判定手段にて分割に用いるブロックの大きさを、印刷対象の用紙サイズと印刷の用途とを含む、印刷設定に基づいて決定することから、適切なサイズのブロックを用いて、領域判定を行うことができる。 That is, in the MFP 100 of the present embodiment, the size of the block used for division by the block color determination unit is determined based on the print settings including the size of the paper to be printed and the purpose of printing. Blocks can be used to perform region determination.

その後、MFP100は、文字領域と中間調領域とのそれぞれに応じて異なる処理を実行し、印刷に適した印刷用データを生成する。MFP100は、例えば、文字領域か中間調領域かの判定結果を、例えば色の特定に利用してもよいし、その色の特定結果に基づいて、階調補正、エッジ強調補正、ディザ補正を行っても良い。 After that, MFP 100 performs different processes depending on the character area and the halftone area, and generates print data suitable for printing. For example, the MFP 100 may use the result of determining whether an area is a text area or a halftone area to specify a color, and may perform gradation correction, edge enhancement correction, and dither correction based on the color specification result. can be

以上、詳細に説明したように、本形態のMFP100によれば、ブロックサイズを印刷画像のサイズに応じて可変とし、そのブロックサイズによってブロック単位での領域判定を行う。大きいブロックサイズを用いた場合、精細な領域判定とはならないが、処理時間が短い傾向にある。一方、小さいブロックサイズを用いた場合、処理時間が長くなる可能性があるが、精細な領域判定が可能である。本形態では、印刷対象の画像のサイズに基づいてブロックサイズが決定される。例えば、用紙に印刷される印刷画像の物理的なサイズの大小によって観察距離が異なる傾向にあることから、MFP100は、観察距離に基づいてブロックサイズを決定する。観察距離に基づいてブロックサイズを決定することで、人間の網膜上に形成される画像中の1ブロック分の画像領域の大きさは、ほぼ同一となる。従って、例えばハードウェアの規模等によって定められた固定サイズの場合と比較して、各画像に応じた適切なブロックサイズとなる可能性が高く、観察距離に適した画像処理を行うことが期待できる。 As described above in detail, according to the MFP 100 of the present embodiment, the block size is made variable according to the size of the print image, and area determination is performed on a block-by-block basis according to the block size. When a large block size is used, fine area determination is not achieved, but the processing time tends to be short. On the other hand, when a small block size is used, the processing time may be long, but fine area determination is possible. In this embodiment, the block size is determined based on the size of the image to be printed. For example, since the viewing distance tends to vary depending on the physical size of the print image printed on paper, the MFP 100 determines the block size based on the viewing distance. By determining the block size based on the observation distance, the size of the image area for one block in the image formed on the human retina becomes substantially the same. Therefore, compared to the fixed size determined by the size of the hardware, for example, it is highly likely that the block size will be appropriate for each image, and image processing that is suitable for the viewing distance can be expected. .

なお、本実施の形態は単なる例示にすぎず、本発明を何ら限定するものではない。したがって本明細書に開示される技術は当然に、その要旨を逸脱しない範囲内で種々の改良、変形が可能である。例えば、MFPに限らず、プリンタ、複写機、FAX装置等、画像形成機能を備えるものであれば適用可能である。 It should be noted that the present embodiment is merely an example, and does not limit the present invention in any way. Therefore, the technology disclosed in this specification can naturally be improved and modified in various ways without departing from the gist thereof. For example, it is applicable not only to MFPs but also to printers, copiers, facsimiles, etc., as long as they have an image forming function.

また、例えば、全ての処理をMFP100で行う構成に限らず、一部の処理を他の装置にて行っても良い。つまり、本形態の処理を行う画像処理装置は、MFP100やプリンタであってもよいし、プリンタに画像データを送信するPCであってもよいし、プリンタと接続するサーバであってもよい。PCあるいはサーバが、画像データを取得し、図2に示した領域分割処理や領域分割後の各種の画像処理を行い、さらに、印刷用データを生成してMFP100やプリンタに送信しても良い。また、領域分割後の各種の画像処理は、さらに別の装置が行っても良い。 Further, for example, the configuration is not limited to the configuration in which all processing is performed by the MFP 100, and some processing may be performed by another device. That is, the image processing apparatus that performs the processing of this embodiment may be the MFP 100, a printer, a PC that transmits image data to the printer, or a server connected to the printer. A PC or a server may acquire image data, perform the area division processing shown in FIG. 2 and various image processing after area division, generate print data, and transmit the generated data to the MFP 100 or printer. Also, various image processing after segmentation may be performed by another device.

また、印刷画像のサイズは、用紙サイズに基づいて決定する例に限らず、印刷ジョブの印刷パラメータに基づいて決定しても良い。例えば、ポスター印刷や画像の拡縮が設定されている場合、拡縮後のサイズに基づいて印刷画像のサイズを決定しても良い。 Also, the size of the print image is not limited to being determined based on the paper size, and may be determined based on the print parameters of the print job. For example, when poster printing or image scaling is set, the size of the print image may be determined based on the size after scaling.

また、前述した(式1)にてブロックサイズLを算出する例に限らず、例えば、予め複数種のブロックサイズを用意し、その中から、(式1)の結果に最も近いブロックサイズを選択する構成であってもよい。例えば、L=10cmの大ブロックと、L=2cmの中ブロックと、L=0.5cmの小ブロックと、を用意し、(式1)による算出結果が10cm以上であれば大ブロックを、2~10cmであれば中ブロック、2cm未満であれば小ブロックを用いるとしても良い。この場合、例えば、ブロックサイズごとに画像処理を行うハードウェアを用意し、各ハードウェアを用いて画像処理を行っても良い。また、ドットデータの縦横の全ドット数に応じて、割り切れる大きさとなるようにブロックサイズを調整しても良い。 In addition, it is not limited to the example of calculating the block size L by the above-described (formula 1). For example, a plurality of types of block sizes are prepared in advance, and from among them, the block size closest to the result of (formula 1) is selected. It may be configured to For example, prepare a large block of L = 10 cm, a medium block of L = 2 cm, and a small block of L = 0.5 cm. A medium block may be used for up to 10 cm, and a small block may be used for less than 2 cm. In this case, for example, hardware for performing image processing may be prepared for each block size, and image processing may be performed using each piece of hardware. Also, the block size may be adjusted so as to be divisible according to the total number of dots in the vertical and horizontal directions of the dot data.

また、コピーの場合、MFP100は、原稿を低解像度で読み取るプリスキャンを行っても良く、プリスキャンにて得られた低解像度の画像データに基づいて、文字領域と中間調領域との識別を行っても良い。 In the case of copying, the MFP 100 may perform pre-scanning to read the document at a low resolution, and distinguish between the character area and the halftone area based on the low-resolution image data obtained by the pre-scanning. can be

また、観察者の年齢層による観察距離Dの調整は、行わなくても良い。その場合、サイズ決定処理のS205とS206とを削除して、S204の後、S207に進むとすればよい。 Further, it is not necessary to adjust the observation distance D according to the observer's age group. In that case, S205 and S206 of the size determination process may be deleted, and the process may proceed to S207 after S204.

また、実施の形態に開示されている任意のフローチャートにおいて、任意の複数のステップにおける複数の処理は、処理内容に矛盾が生じない範囲で、任意に実行順序を変更できる、または並列に実行できる。 Further, in any flowchart disclosed in the embodiments, multiple processes in any multiple steps can be arbitrarily changed in execution order or executed in parallel as long as there is no contradiction in the processing contents.

また、実施の形態に開示されている処理は、単一のCPU、複数のCPU、ASICなどのハードウェア、またはそれらの組み合わせで実行されてもよい。また、実施の形態に開示されている処理は、その処理を実行するためのプログラムを記録した記録媒体、または方法等の種々の態様で実現することができる。 Also, the processing disclosed in the embodiments may be performed by a single CPU, multiple CPUs, hardware such as an ASIC, or a combination thereof. Further, the processes disclosed in the embodiments can be realized in various forms such as a recording medium recording a program for executing the processes, a method, and the like.

31 CPU
100 MFP
31 CPUs
100 MFPs

Claims (9)

コンピュータを備える画像処理装置であって、
前記コンピュータは、
画像データを取得する画像データ取得処理と、
前記画像データ取得処理にて取得した前記画像データが示す画像である原画像に基づく印刷を行う場合の印刷対象の画像である印刷画像のサイズを特定するサイズ情報を取得するサイズ情報取得処理と、
前記サイズ情報取得処理にて取得した前記サイズ情報に基づいて、ブロックのサイズを決定するブロックサイズ決定処理と、
前記原画像を、前記ブロックサイズ決定処理で決定されたブロックのサイズにて複数のブロックに分割する分割処理と、
前記分割処理にて分割された前記ブロックであって、所定の条件を満たすブロックの連続値であるランレングスを算出する算出処理と、
前記算出処理にて算出された前記ランレングスを用いて、文字領域か中間調領域かを判定する領域判定処理と、
を実行し、
さらに前記コンピュータは、
前記サイズ情報取得処理では、前記サイズ情報として、前記原画像に基づく印刷を行う場合の印刷対象の用紙サイズを取得し、
さらに前記コンピュータは、
前記ブロックサイズ決定処理では、前記サイズ情報取得処理にて取得した前記用紙サイズに対応する観察距離を用いて、前記観察距離が長いほど、前記ブロックのサイズを大きい値に決定し、
前記観察距離は、あらかじめ用紙サイズごとに定められており、第1の用紙サイズに対応する第1の観察距離は、前記第1の用紙サイズよりも大きい第2の用紙サイズに対応する第2の観察距離と比較して、短い、
ことを特徴とする画像処理装置。
An image processing device comprising a computer,
The computer is
image data acquisition processing for acquiring image data;
A size information acquisition process for acquiring size information specifying a size of a print image, which is an image to be printed when printing is performed based on an original image, which is an image represented by the image data acquired in the image data acquisition process;
a block size determination process for determining a block size based on the size information acquired in the size information acquisition process;
a division process for dividing the original image into a plurality of blocks with the block size determined by the block size determination process;
a calculation process of calculating a run length, which is a continuous value of the blocks divided by the division process and which satisfies a predetermined condition;
an area determination process for determining whether a character area or a halftone area is determined using the run length calculated in the calculation process;
and run
Further, the computer
In the size information acquisition process, as the size information, a paper size to be printed when performing printing based on the original image is acquired;
Further, the computer
In the block size determination process, using the observation distance corresponding to the paper size acquired in the size information acquisition process, the longer the observation distance is, the larger the size of the block is determined;
The observation distance is predetermined for each paper size, and the first observation distance corresponding to the first paper size corresponds to the second observation distance corresponding to the second paper size larger than the first paper size. short compared to the observation distance,
An image processing apparatus characterized by:
請求項1に記載する画像処理装置において、
前記コンピュータは、
前記ブロックサイズ決定処理では、Nページ分の画像を1ページに集約する集約印刷が設定されている場合、前記サイズ情報取得処理にて取得した前記用紙サイズのN分の1のサイズに対応する観察距離を用いて、前記ブロックのサイズを決定する、
ことを特徴とする画像処理装置。
In the image processing device according to claim 1 ,
The computer is
In the block size determination process, when aggregate printing is set to combine N pages of images into one page, an image size corresponding to 1/N of the paper size acquired in the size information acquisition process is obtained. using the distance to determine the size of the block;
An image processing apparatus characterized by:
請求項1または請求項2に記載する画像処理装置において、
前記コンピュータは、
前記ブロックサイズ決定処理では、前記ブロックのサイズの決定に、さらに印刷用途を特定する用途情報を用い、
前記用途情報には、全体的に眺める用途である写真用途と、細部に注目する用途である写真用途以外の用途とがある、
ことを特徴とする画像処理装置。
In the image processing device according to claim 1 or claim 2 ,
The computer is
In the block size determination process, usage information specifying a printing usage is further used to determine the size of the block,
The usage information includes a photographic usage that is an overall viewing usage and a non-photographic usage that is a usage that focuses on details.
An image processing apparatus characterized by:
請求項3に記載する画像処理装置において、
前記コンピュータは、
前記原画像に基づく印刷を行う場合の印刷対象の用紙種を取得する用紙種取得処理を実行し、
前記ブロックサイズ決定処理では、前記用紙種取得処理にて取得した前記用紙種を前記用途情報とし、前記用途情報に対応する視野角を用いて、前記視野角が大きいほど、前記ブロックのサイズを大きい値に決定
前記視野角は、あらかじめ用紙種ごとに定められており、写真用途である第1の用紙種に対応する第1の視野角は、写真用途以外の用途である第2の用紙種に対応する第2の視野角と比較して、大きい、
ことを特徴とする画像処理装置。
In the image processing device according to claim 3 ,
The computer is
executing paper type acquisition processing for acquiring a paper type to be printed when printing is performed based on the original image;
In the block size determination process, the paper type acquired in the paper type acquisition process is used as the usage information, and a viewing angle corresponding to the usage information is used, and the larger the viewing angle, the larger the size of the block. value and
The viewing angle is determined in advance for each paper type. Large, compared to the viewing angle of 2,
An image processing apparatus characterized by:
請求項4に記載する画像処理装置において、
前記コンピュータは、
前記原画像に基づく印刷を行う場合のカラーモードを取得するカラーモード取得処理を実行し、
前記ブロックサイズ決定処理では、前記カラーモード取得処理にて取得した前記カラーモードがモノクロを示す場合、前記第2の視野角を用いて、前記ブロックのサイズを決定する、
ことを特徴とする画像処理装置。
In the image processing device according to claim 4 ,
The computer is
executing a color mode acquisition process for acquiring a color mode for printing based on the original image;
In the block size determination process, when the color mode acquired in the color mode acquisition process indicates monochrome, the size of the block is determined using the second viewing angle.
An image processing apparatus characterized by:
請求項1から請求項5のいずれか1つに記載する画像処理装置において、
前記コンピュータは、
前記分割処理にて分割された前記ブロックごとに、前記ブロックの色を判定する色判定処理を実行し、
前記算出処理では、前記色判定処理にて判定された色が白以外であることを前記所定の条件として、前記ランレングスを算出する、
ことを特徴とする画像処理装置。
In the image processing device according to any one of claims 1 to 5 ,
The computer is
executing a color determination process for determining a color of the block for each of the blocks divided by the dividing process;
In the calculation process, the run length is calculated under the predetermined condition that the color determined in the color determination process is other than white.
An image processing apparatus characterized by:
請求項1に記載する画像処理装置において、
前記コンピュータは、
前記サイズ情報取得処理では、前記サイズ情報として、前記原画像に基づく印刷を行う場合の印刷対象の用紙サイズを取得し、
さらに前記コンピュータは、
前記原画像に基づく印刷を行う場合の印刷対象の用紙種を取得する用紙種取得処理を実行し、
さらに前記コンピュータは、
用紙サイズごとに観察距離が定められており、
用紙種ごとに視野角が定められており、
さらに前記コンピュータは、
前記ブロックサイズ決定処理では、前記サイズ情報取得処理にて取得した前記用紙サイズに対応する観察距離Dと、前記用紙種取得処理にて取得した前記用紙種に対応する視野角θを用いて、次の式(1)から算出される長さLに基づいて前記ブロックの一辺の長さを決定する、
L=D×tanθ×2 (1)
ことを特徴とする画像処理装置。
In the image processing device according to claim 1,
The computer is
In the size information acquisition process, as the size information, a paper size to be printed when performing printing based on the original image is acquired;
Further, the computer
executing paper type acquisition processing for acquiring a paper type to be printed when printing is performed based on the original image;
Further, the computer
Observation distance is defined for each paper size,
The viewing angle is specified for each paper type,
Further, the computer
In the block size determination process, using the observation distance D corresponding to the paper size acquired in the size information acquisition process and the viewing angle θ corresponding to the paper type acquired in the paper type acquisition process, the following determining the length of one side of the block based on the length L calculated from the formula (1) of
L=D×tan θ×2 (1)
An image processing apparatus characterized by:
原画像について文字領域か中間調領域かを判定する画像処理方法であって、
画像データを取得する画像データ取得ステップと、
前記画像データ取得ステップにて取得した前記画像データが示す画像である前記原画像に基づく印刷を行う場合の印刷対象の画像である印刷画像のサイズを特定するサイズ情報を取得するサイズ情報取得ステップと、
前記サイズ情報取得ステップにて取得した前記サイズ情報に基づいて、ブロックのサイズを決定するブロックサイズ決定ステップと、
前記原画像を、前記ブロックサイズ決定ステップで決定されたブロックのサイズにて複数のブロックに分割する分割ステップと、
前記分割ステップにて分割された前記ブロックであって、所定の条件を満たすブロックの連続値であるランレングスを算出する算出ステップと、
前記算出ステップにて算出された前記ランレングスを用いて、文字領域か中間調領域かを判定する領域判定ステップと、
を含
前記サイズ情報取得ステップでは、前記サイズ情報として、前記原画像に基づく印刷を行う場合の印刷対象の用紙サイズを取得し、
前記ブロックサイズ決定ステップでは、前記サイズ情報取得ステップにて取得した前記用紙サイズに対応する観察距離を用いて、前記観察距離が長いほど、前記ブロックのサイズを大きい値に決定し、
前記観察距離は、あらかじめ用紙サイズごとに定められており、第1の用紙サイズに対応する第1の観察距離は、前記第1の用紙サイズよりも大きい第2の用紙サイズに対応する第2の観察距離と比較して、短い、
ことを特徴とする画像処理方法。
An image processing method for determining whether an original image is a text area or a halftone area,
an image data acquisition step of acquiring image data;
a size information acquisition step of acquiring size information specifying a size of a print image, which is an image to be printed when printing is performed based on the original image, which is an image represented by the image data acquired in the image data acquisition step; ,
a block size determining step of determining a block size based on the size information obtained in the size information obtaining step;
a dividing step of dividing the original image into a plurality of blocks with the block size determined in the block size determining step;
a calculating step of calculating a run length, which is a continuous value of blocks satisfying a predetermined condition, which are the blocks divided in the dividing step;
a region determination step of determining whether the run length is a character region or a halftone region using the run lengths calculated in the calculation step;
including
In the size information obtaining step, as the size information, a paper size to be printed when performing printing based on the original image is obtained;
In the block size determination step, using the observation distance corresponding to the paper size acquired in the size information acquisition step, the longer the observation distance is, the larger the size of the block is determined;
The observation distance is predetermined for each paper size, and the first observation distance corresponding to the first paper size corresponds to the second observation distance corresponding to the second paper size larger than the first paper size. short compared to the observation distance,
An image processing method characterized by:
画像処理装置のコンピュータによって実行可能なプログラムであって、
前記コンピュータに、
画像データを取得する画像データ取得処理と、
前記画像データ取得処理にて取得した前記画像データが示す画像である原画像に基づく印刷を行う場合の印刷対象の画像である印刷画像のサイズを特定するサイズ情報を取得するサイズ情報取得処理と、
前記サイズ情報取得処理にて取得した前記サイズ情報に基づいて、ブロックのサイズを決定するブロックサイズ決定処理と、
前記原画像を、前記ブロックサイズ決定処理で決定されたブロックのサイズにて複数のブロックに分割する分割処理と、
前記分割処理にて分割された前記ブロックであって、所定の条件を満たすブロックの連続値であるランレングスを算出する算出処理と、
前記算出処理にて算出された前記ランレングスを用いて、文字領域か中間調領域かを判定する領域判定処理と、
を実行させ
さらに前記コンピュータに、
前記サイズ情報取得処理では、前記サイズ情報として、前記原画像に基づく印刷を行う場合の印刷対象の用紙サイズを取得させ、
さらに前記コンピュータに、
前記ブロックサイズ決定処理では、前記サイズ情報取得処理にて取得した前記用紙サイズに対応する観察距離を用いて、前記観察距離が長いほど、前記ブロックのサイズを大きい値に決定させ、
前記観察距離は、あらかじめ用紙サイズごとに定められており、第1の用紙サイズに対応する第1の観察距離は、前記第1の用紙サイズよりも大きい第2の用紙サイズに対応する第2の観察距離と比較して、短い、
ことを特徴とするプログラム。
A program executable by a computer of an image processing device,
to the computer;
image data acquisition processing for acquiring image data;
A size information acquisition process for acquiring size information specifying a size of a print image, which is an image to be printed when printing is performed based on an original image, which is an image represented by the image data acquired in the image data acquisition process;
a block size determination process for determining a block size based on the size information acquired in the size information acquisition process;
a division process for dividing the original image into a plurality of blocks with the block size determined by the block size determination process;
a calculation process of calculating a run length, which is a continuous value of the blocks divided by the division process and which satisfies a predetermined condition;
an area determination process for determining whether a character area or a halftone area is determined using the run length calculated in the calculation process;
and
Furthermore, in said computer,
In the size information acquisition process, a paper size to be printed when performing printing based on the original image is acquired as the size information,
Furthermore, in said computer,
In the block size determination process, using an observation distance corresponding to the paper size acquired in the size information acquisition process, the longer the observation distance is, the larger the size of the block is determined;
The observation distance is predetermined for each paper size, and the first observation distance corresponding to the first paper size corresponds to the second observation distance corresponding to the second paper size larger than the first paper size. short compared to the observation distance,
A program characterized by
JP2019058205A 2019-03-26 2019-03-26 Image processing device, image processing method, and program Active JP7226007B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019058205A JP7226007B2 (en) 2019-03-26 2019-03-26 Image processing device, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019058205A JP7226007B2 (en) 2019-03-26 2019-03-26 Image processing device, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2020161936A JP2020161936A (en) 2020-10-01
JP7226007B2 true JP7226007B2 (en) 2023-02-21

Family

ID=72640009

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019058205A Active JP7226007B2 (en) 2019-03-26 2019-03-26 Image processing device, image processing method, and program

Country Status (1)

Country Link
JP (1) JP7226007B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009077145A (en) 2007-09-20 2009-04-09 Canon Inc Image processing apparatus, image processing method, program thereof, and storage medium
JP2011077669A (en) 2009-09-29 2011-04-14 Sharp Corp Document reader with preview function
JP2014068083A (en) 2012-09-24 2014-04-17 Kyocera Document Solutions Inc Image forming apparatus
JP2018146650A (en) 2017-03-02 2018-09-20 コニカミノルタ株式会社 Defective image generation prediction system and defective image generation prediction program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0722330B2 (en) * 1990-01-10 1995-03-08 富士ゼロックス株式会社 Image region identification method for image processing apparatus
JPH11227178A (en) * 1998-02-12 1999-08-24 Oki Data Corp Ink jet printer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009077145A (en) 2007-09-20 2009-04-09 Canon Inc Image processing apparatus, image processing method, program thereof, and storage medium
JP2011077669A (en) 2009-09-29 2011-04-14 Sharp Corp Document reader with preview function
JP2014068083A (en) 2012-09-24 2014-04-17 Kyocera Document Solutions Inc Image forming apparatus
JP2018146650A (en) 2017-03-02 2018-09-20 コニカミノルタ株式会社 Defective image generation prediction system and defective image generation prediction program

Also Published As

Publication number Publication date
JP2020161936A (en) 2020-10-01

Similar Documents

Publication Publication Date Title
US9723177B2 (en) Image processing system, image processing apparatus, and image forming apparatus
US20110013202A1 (en) Image processing apparatus, image processing method, and program for executing the image processing method
WO2011083675A1 (en) Image processing apparatus, method of controlling the same, and storage medium storing program
US11272074B2 (en) System, method, and storage medium for converting low-resolution image data into high-resolution image data using neural network
KR100924029B1 (en) Image processing apparatus, control method for image processing apparatus and storage medium
JP2009272774A (en) Image processor, image forming apparatus, image processing method, and computer program
US20170339295A1 (en) Information processing apparatus and image forming apparatus
JP7226007B2 (en) Image processing device, image processing method, and program
JP5955822B2 (en) Color conversion apparatus, image forming apparatus, color conversion method, and color conversion program
JP7207057B2 (en) Image processing device, image processing method, and program
JP5025611B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP2006093987A (en) Color patch providing method, color correction data providing method, electronic image data providing method, image forming method and system of these
US20160062705A1 (en) Image forming apparatus, control method of image forming apparatus, and storage medium
JP7330337B2 (en) Image processing device, image processing method, and program
US8437046B2 (en) Image processing apparatus and method for outputting an image subjected to pseudo-halftone processing
KR101360516B1 (en) Image processing apparatus, image processing method, and storage medium
JP2005217859A (en) Image forming apparatus and image forming method
JP7317557B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, PROGRAM, RECORDING MEDIUM, AND IMAGE FORMING APPARATUS
KR20200092198A (en) Skew compensation based on scale factor
US20120140291A1 (en) System and method of printing micro-pictures for anti-counterfeiting and copy protection
JP2022141319A (en) Image processing device, control method for the same, and program
JP2023037968A (en) Image processing apparatus, control method of the same, and program
JP5265040B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP2010178012A (en) Image processing system, and image processing method
JP2021072517A (en) Image processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220311

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221114

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221122

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221223

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230123

R150 Certificate of patent or registration of utility model

Ref document number: 7226007

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150