JP2020005061A - Image processing apparatus and program - Google Patents
Image processing apparatus and program Download PDFInfo
- Publication number
- JP2020005061A JP2020005061A JP2018121051A JP2018121051A JP2020005061A JP 2020005061 A JP2020005061 A JP 2020005061A JP 2018121051 A JP2018121051 A JP 2018121051A JP 2018121051 A JP2018121051 A JP 2018121051A JP 2020005061 A JP2020005061 A JP 2020005061A
- Authority
- JP
- Japan
- Prior art keywords
- image
- enlarged
- original image
- original
- character string
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、画像の拡大および部分的変更等を行うことができる画像処理装置およびプログラムに関する。 The present invention relates to an image processing apparatus and a program capable of performing enlargement and partial change of an image.
複合機等の画像形成装置は、イメージスキャナにより読み取った画像、通信回線を介して外部から受信した画像、または内部の記憶装置に保存された画像等を用紙に印刷する機能を有している。また、このような機能を有する画像形成装置の中には、画像を拡大して用紙に印刷する拡大印刷機能を有するものがある。拡大印刷機能を有する画像形成装置は、画像を用紙に印刷する前に、その画像をプレビュー画面に表示する。利用者はプレビュー画面を見て画像の拡大率を指定する。画像形成装置は、指定された拡大率に画像を拡大して用紙に印刷する(例えば、下記の特許文献1または2を参照)。 2. Description of the Related Art An image forming apparatus such as a multifunction peripheral has a function of printing an image read by an image scanner, an image received from outside via a communication line, an image stored in an internal storage device, and the like on a sheet. Some image forming apparatuses having such a function have an enlarged printing function of enlarging an image and printing it on paper. An image forming apparatus having an enlarged printing function displays an image on a preview screen before printing the image on paper. The user looks at the preview screen and specifies the magnification of the image. The image forming apparatus enlarges an image to a designated enlargement ratio and prints the image on paper (for example, see Patent Document 1 or 2 below).
上述したような拡大印刷機能を有する画像形成装置において、画像を拡大して用紙に印刷する場合、拡大画像の一部が用紙からはみ出すことがある。従来の画像形成装置によれば、拡大画像において用紙からはみ出した部分は用紙に印刷されず、または、はみ出した部分だけが別の用紙に印刷される。 In the image forming apparatus having the above-described enlarged printing function, when an image is enlarged and printed on a sheet, a part of the enlarged image may protrude from the sheet. According to the conventional image forming apparatus, a portion of the enlarged image that protrudes from the paper is not printed on the paper, or only the protruding part is printed on another paper.
拡大画像において用紙からはみ出した部分が用紙に印刷されない場合、印刷された用紙を受け取った利用者は、はみ出した部分を見ることができず、不便である。 If a portion of the enlarged image that protrudes from the sheet is not printed on the sheet, a user who receives the printed sheet cannot see the protruding portion, which is inconvenient.
また、拡大画像において用紙からはみ出した部分だけが別の用紙に印刷される場合、画像が複数の用紙に分断されるので、印刷された用紙を受け取った利用者にとって画像が見にくくなり、不便である。例えば、数行の文章を含む画像を拡大した結果、文章の各行の右端部分が用紙からはみ出したために、各行の右端部分だけが別の用紙に印刷された場合には、各行が文の途中で分断されて別々の用紙に分散して配置されてしまい、文章が非常に読み難くなってしまう。 Further, when only the portion of the enlarged image that protrudes from the sheet is printed on another sheet, the image is divided into a plurality of sheets, so that the user who receives the printed sheet becomes difficult to view the image, which is inconvenient. . For example, if an image containing several lines of text is enlarged and the right end of each line of the text protrudes from the paper, and only the right end of each line is printed on another paper, The text is divided and laid out on separate sheets, and the text becomes very difficult to read.
このような不都合を防止するために、画像形成装置において画像を拡大する処理を行う際に、拡大画像において一枚の用紙からはみ出す部分がその一枚の用紙中に印刷されるように、拡大画像の一部を変更する画像処理を行うことが考えられる。例えば、拡大画像において一枚の用紙からはみ出す部分を、その一枚の用紙の空白部分に移動させる画像処理を行うことが考えられる。しかしながら、拡大画像をその一部を変更して単に用紙に印刷した場合、用紙に印刷された拡大画像の元の画像、すなわち、拡大および部分的変更が行われる前の画像を、当該用紙を用いて復元することができなくなる。それゆえ、拡大画像が印刷された用紙を受け取った利用者は、その用紙に印刷された画像の元の状態を知ることができず、不便である。 In order to prevent such inconvenience, when performing an image enlargement process in the image forming apparatus, the enlarged image is printed such that a portion of the enlarged image that protrudes from one sheet is printed on the one sheet. It is conceivable to perform image processing for changing a part of. For example, it is conceivable to perform image processing for moving a portion of the enlarged image that protrudes from one sheet to a blank portion of the one sheet. However, if the enlarged image is simply printed on paper with a part of the enlarged image changed, the original image of the enlarged image printed on the paper, that is, the image before the enlargement and partial change is performed, is performed using the paper. And cannot be restored. Therefore, the user who receives the sheet on which the enlarged image is printed cannot know the original state of the image printed on the sheet, which is inconvenient.
本発明は例えば上述したような問題に鑑みなされたものであり、本発明の課題は、画像を拡大することにより、画像の一部が失われ、または画像が分断されて見にくくなることを防止することができ、かつ拡大された画像が表示された表示媒体を用いて、拡大された画像を元の画像に戻すことができる画像処理装置およびプログラムを提供することにある。 The present invention has been made in consideration of, for example, the above-described problems, and an object of the present invention is to prevent a part of an image from being lost or an image from being divided and becoming difficult to see by enlarging the image. It is an object of the present invention to provide an image processing apparatus and a program capable of returning an enlarged image to an original image using a display medium on which the enlarged image is displayed.
上記課題を解決するために、本発明の画像処理装置は、元画像の大きさを前記元画像の表示媒体の表示領域の大きさに対して相対的に拡大することにより前記元画像の拡大画像を生成する画像拡大部と、前記拡大画像が前記表示領域からはみ出すか否かを判断するはみ出し判断部と、前記はみ出し判断部の判断の結果、前記拡大画像が前記表示領域からはみ出す場合には前記拡大画像が前記表示領域内に収まるように前記元画像または前記拡大画像を部分的に変更する画像変更部と、前記画像変更部により変更された前記元画像または前記拡大画像を変更前の状態に戻すのに要する復元情報を表す復元情報画像を前記拡大画像に付加する情報画像付加部とを備えていることを特徴とする。 In order to solve the above-mentioned problem, an image processing apparatus according to the present invention provides an enlarged image of the original image by enlarging the size of the original image relative to the size of a display area of a display medium of the original image. An image enlarging unit that generates a, an extended judging unit that determines whether the enlarged image protrudes from the display area, and a result of the judging unit that determines whether the enlarged image protrudes from the display area. An image changing unit that partially changes the original image or the enlarged image so that the enlarged image fits in the display area; and the original image or the enlarged image changed by the image changing unit is in a state before the change. An information image adding unit for adding a restoration information image representing restoration information required for returning to the enlarged image.
上記本発明の画像処理装置において、前記復元情報は、前記画像変更部により変更された前記元画像もしくは前記拡大画像の変更前の状態を示す情報、前記画像変更部による前記元画像もしくは前記拡大画像の変更内容を示す情報、または前記画像変更部により変更された前記元画像もしくは前記拡大画像を変更前の状態に戻す方法を示す情報を含む構成としてもよい。 In the image processing device of the present invention, the restoration information is information indicating a state before the change of the original image or the enlarged image changed by the image changing unit, and the original image or the enlarged image is changed by the image changing unit. May be included, or information indicating a method of returning the original image or the enlarged image changed by the image changing unit to a state before the change.
上記本発明の画像処理装置において、前記情報画像付加部は前記復元情報画像を、前記拡大画像において前記画像変更部により変更された部分に重なるように配置する構成としてもよい。 In the image processing apparatus of the present invention, the information image adding unit may be configured to arrange the restored information image so as to overlap a portion of the enlarged image changed by the image changing unit.
上記本発明の画像処理装置において、前記画像変更部は、前記元画像または前記拡大画像中における1行の文字列の長さが短くなるように文字を移動させる構成としてもよい。 In the above-described image processing apparatus of the present invention, the image changing unit may be configured to move a character such that the length of one line of a character string in the original image or the enlarged image is shortened.
上記本発明の画像処理装置において、前記画像変更部は、前記元画像または前記拡大画像中における文字列の行数が少なくなるように文字を移動させる構成としてもよい。 In the image processing apparatus of the present invention, the image changing unit may move the character so that the number of lines of the character string in the original image or the enlarged image is reduced.
上記本発明の画像処理装置において、前記画像変更部は、前記元画像中の文字を前記元画像中の空白部分に移動させ、または前記拡大画像中の文字を前記拡大画像中の空白部分に移動させる構成としてもよい。 In the image processing apparatus of the present invention, the image changing unit moves a character in the original image to a blank portion in the original image or moves a character in the enlarged image to a blank portion in the enlarged image. It is good also as composition which makes it do.
上記本発明の画像処理装置において、前記情報画像付加部は、前記元画像または前記拡大画像の構成を示す構成情報を表す構成情報画像を前記元画像または前記拡大画像に付加し、前記構成情報画像は、前記元画像に対する前記拡大画像の拡大率を示す情報、前記画像変更部による変更が行われる前の前記元画像もしくは前記拡大画像中における文字列の行数を示す情報、前記画像変更部による変更が行われる前の前記元画像もしくは前記拡大画像中における文字列の1行当たりの文字数を示す情報、前記元画像もしくは前記拡大画像中における文字列の方向を示す情報、または前記元画像もしくは前記拡大画像中における文字列全体の開始位置を示す情報を含む構成としてもよい。 In the image processing device of the present invention, the information image adding unit adds a configuration information image representing configuration information indicating a configuration of the original image or the enlarged image to the original image or the enlarged image, and Is information indicating an enlargement ratio of the enlarged image with respect to the original image, information indicating the number of lines of a character string in the original image or the enlarged image before the change is performed by the image changing unit, Information indicating the number of characters per line of the character string in the original image or the enlarged image before the change is performed, information indicating the direction of the character string in the original image or the enlarged image, or the original image or the It may be configured to include information indicating the start position of the entire character string in the enlarged image.
上記課題を解決するために、本発明のプログラムは、元画像の大きさを前記元画像の表示媒体の表示領域の大きさに対して相対的に拡大することにより前記元画像の拡大画像を生成する画像拡大部と、前記拡大画像が前記表示領域からはみ出すか否かを判断するはみ出し判断部と、前記はみ出し判断部の判断の結果、前記拡大画像が前記表示領域からはみ出す場合には前記拡大画像が前記表示領域内に収まるように前記元画像または前記拡大画像を部分的に変更する画像変更部と、前記画像変更部により変更された前記元画像または前記拡大画像を変更前の状態に戻すのに要する復元情報を示す復元情報画像を前記拡大画像に付加する情報画像付加部とを備えていることを特徴とする。 In order to solve the above problem, a program according to the present invention generates an enlarged image of the original image by enlarging the size of the original image relative to the size of a display area of a display medium of the original image. An image enlargement unit that performs the operation, an overflow determination unit that determines whether the enlarged image extends out of the display area, and a result of the determination performed by the overflow determination unit that determines that the enlarged image extends outside the display area. An image changing unit for partially changing the original image or the enlarged image so that the original image or the enlarged image is included in the display area; and returning the original image or the enlarged image changed by the image changing unit to a state before the change. And an information image adding section for adding a restoration information image indicating restoration information required for the enlarged image to the enlarged image.
本発明によれば、画像を拡大することにより、画像の一部が失われ、または画像が分断されて見にくくなることを防止することができ、かつ拡大された画像が表示された表示媒体を用いて、拡大された画像を元の画像に戻すことができる。 According to the present invention, by enlarging an image, it is possible to prevent a part of the image from being lost or to prevent the image from being divided and becoming difficult to see, and to use a display medium on which the enlarged image is displayed. Thus, the enlarged image can be returned to the original image.
(画像形成装置)
図1は、本発明の画像処理装置の実施形態である画像処理部18を有する画像形成装置1を示している。本実施形態において、画像形成装置1は、複合機であり、コピー機能、ファクシミリ機能、データ保存機能、印刷機能等を有している。また、図1に示すように、画像形成装置1は、原稿読取部11、通信部12、記憶部13、印刷部14、操作部15、表示部16、制御部17および画像処理部18を備えている。
(Image forming device)
FIG. 1 shows an image forming apparatus 1 having an
原稿読取部11は原稿を読み取る装置であり、例えばイメージスキャナを備えている。原稿読取部11は原稿を写し取った画像の画像データを生成する。具体的には、原稿読取部11は、原稿の表面に光を当て、その反射光を撮像素子により電気信号に変換して画像データを生成する。
The
通信部12は、例えば通信回線およびコンピュータネットワーク等を介して通信を行うための通信回路を備えている。通信部12は、通信回線を介して外部のファクシミリから送信された画像データを受信することができる。また、通信部12は、原稿読取部11により読み取った原稿の画像データを、通信回線を介して外部のファクシミリへ送信することができる。また、通信部12は、コンピュータネットワークを介して外部のパーソナルコンピュータ等の端末装置から送信された画像データ等を受信することができる。
The
記憶部13は、例えば半導体メモリおよびハードディスクドライブ装置を備えており、データまたはプログラムを記憶する。具体的には、記憶部13は、画像データの保存する記憶媒体として用いられる。また、記憶部13は、後述する画像拡大処理において、処理作業のために元画像を一時的に記憶する作業領域として用いられる。
The
印刷部14は、例えば、電子写真方式により画像を用紙に印刷する印刷機構である。印刷部14は、感光体ドラム、帯電装置、露光装置、現像装置、転写ローラー、定着装置、用紙搬送機構等を備えている。なお、印刷部14は、インクジェット方式等、他の方式の印刷機構でもよい。
The
操作部15および表示部16は、ユーザーインターフェイスとして機能する装置である。操作部15は、利用者が画像形成装置1を操作することができるボタン等を備えている。操作部15は、画像の拡大率を設定するボタンを備えている。また、表示部16は、利用者が画像形成装置1の状態や動作を確認することができるディスプレイを備えている。後述するように、表示部16には元画像のプレビュー画面が表示される。
The
制御部17および画像処理部18は、演算処理装置等により構成されている。制御部17および画像処理部18は、記憶部13に記憶されたプログラムを演算処理装置により実行することにより実現される。制御部17は、原稿読取部11による原稿の読取、通信部12によるファクシミリ送受信、印刷部14により画像の用紙への印刷等を制御する。画像処理部18は、本発明の画像処理装置の実施形態に当たる部分であり、後述する画像拡大処理、画像復元処理等を行う。画像処理部18は、画像解析部21、はみ出し判断部22、画像変更部23、情報画像付加部24、画像拡大部25および画像復元部26を備えている。
The control unit 17 and the
(画像拡大処理)
画像処理部18は画像拡大処理を行う。画像拡大処理は、元画像の大きさを元画像の表示媒体の表示領域の大きさに対して相対的に拡大することにより元画像の拡大画像を生成する処理である。画像拡大処理では、元画像を実際に拡大する前に次の処理が行われる。
(1)元画像を解析し、元画像の構成、および元画像中に配置された各文字の位置を認識する処理
(2)元画像または拡大画像の構成を示す構成情報を表す構成情報画像を元画像に付加する処理
(3)拡大画像が表示領域からはみ出すか否かを判断し、拡大画像が表示領域からはみ出す場合には拡大画像が表示領域内に収まるように元画像を部分的に変更する処理
(4)画像変更部により変更された元画像を変更前の状態に戻すのに要する復元情報を表す復元情報画像を元画像に付加する処理
以上の処理を行った後、元画像を拡大することにより、表示媒体の表示領域内に収まるように画像が部分的に変更され、かつ構成情報画像および復元情報画像が付加された拡大画像が生成される。利用者は拡大画像を用紙に印刷することができる。
(Image enlargement processing)
The
(1) A process of analyzing the original image and recognizing the configuration of the original image and the position of each character arranged in the original image. (2) A configuration information image representing the configuration information indicating the configuration of the original image or the enlarged image. Processing to be added to the original image (3) It is determined whether the enlarged image protrudes from the display area, and when the enlarged image protrudes from the display area, the original image is partially changed so that the enlarged image fits in the display area. (4) Process of adding a restoration information image representing restoration information required to return the original image changed by the image changing unit to the state before the change to the original image After performing the above processing, expanding the original image By doing so, the image is partially changed so as to fit within the display area of the display medium, and an enlarged image to which the configuration information image and the restoration information image are added is generated. The user can print the enlarged image on paper.
上記画像拡大処理において、「元画像」は、例えば、原稿読取部11により読み取られた原稿の画像、記憶部13に画像データとして保存された画像、外部のファクシミリから送信された画像等である。また、「表示媒体」は例えば用紙である。また、「表示領域」は、用紙の表面の全領域のうち、上下左右の縁側の余白を除く領域である。例えば、用紙の各縁から用紙の内側へ5mm程度離れた位置までの部分を余白として設定することができる。
In the image enlargement process, the “original image” is, for example, an image of a document read by the
また、上記画像拡大処理において、元画像の構成は、例えば、元画像中に配置された文字列の方向、元画像中における文字列全体の開始位置、元画像中の文字列の最大行数、元画像中の文字列の1行当たりの最大文字数等である。元画像が通常の横書きの文書である場合、元画像中に配置された文字列の方向は右方向であり、元画像中における文字列全体の開始位置は左上端である。元画像が通常の縦書きの文書である場合、元画像中に配置された文字列の方向は下方向であり、元画像中における文字列全体の開始位置は右上端である。元画像中の文字列の最大行数および文字列の1行当たりの最大文字数は、用紙の表示領域中に配置可能な文字列の最大行数および文字列の1行当たりの最大文字数を意味する。これらは元画像中に配置された文字の間隔に基づいて算出することができる。また、「構成情報」には、元画像の構成を示す情報に加え、元画像に対する拡大画像の拡大率を示す情報が含まれる。 In the image enlargement processing, the configuration of the original image includes, for example, the direction of the character string arranged in the original image, the start position of the entire character string in the original image, the maximum number of lines of the character string in the original image, This is the maximum number of characters per line of the character string in the original image. When the original image is a normal horizontally written document, the direction of the character string arranged in the original image is rightward, and the start position of the entire character string in the original image is the upper left corner. When the original image is a normal vertically written document, the direction of the character string arranged in the original image is downward, and the start position of the entire character string in the original image is the upper right end. The maximum number of lines of the character string in the original image and the maximum number of characters per line of the character string mean the maximum number of lines of the character string and the maximum number of characters per line of the character string that can be arranged in the display area of the sheet. . These can be calculated based on the intervals between the characters arranged in the original image. The “configuration information” includes, in addition to the information indicating the configuration of the original image, information indicating an enlargement ratio of the enlarged image with respect to the original image.
また、上記画像拡大処理において、拡大画像が表示領域内に収まるように元画像を部分的に変更する処理には、元画像中における1行の文字列の長さが短くなるように文字を移動させる処理、および元画像中における文字列の行数が少なくなるように文字を移動させる処理が含まれる。 In the image enlargement process, the process of partially changing the original image so that the enlarged image fits in the display area includes moving characters so that the length of one line of the character string in the original image becomes shorter. And a process of moving characters so as to reduce the number of lines of the character string in the original image.
また、上記画像拡大処理において、「復元情報」は、例えば、移動した文字の移動前の位置を示す情報である。 In the image enlargement process, the “restoration information” is, for example, information indicating a position of a moved character before movement.
また、上記画像拡大処理において、「構成情報画像」は、構成情報を例えば2次元のコードに符号化した画像であり、「復元情報画像」は、復元情報を例えば2次元のコードに符号化した画像である。また、構成情報画像および復元情報画像はそれぞれ、人間の目でその存在を認識することは困難であるが、原稿読取部により読み取って画像処理部によりその内容を確実に認識することができる画像であり、例えば、用紙の色に近い色の地紋、模様、パターンまたはマークである。なお、構成情報画像および復元情報画像をステガノグラフィーの技術を用いて形成してもよい。後述するように、構成情報画像および復元情報画像はそれぞれ、元画像の文字列の背景に、文字列に重なるように配置されるが、人間が、元画像を拡大した拡大画像を見たとき、人間は拡大画像中の文字列を明確に認識することができ、人間の目による文字列の認識が構成情報画像または復元情報画像によって不明確になったり、不鮮明になったりすることはない。一方、画像処理部18は、後述する画像復元処理を行う際に、原稿読取部11により読み取られた拡大画像中の構成情報画像および復元情報画像のそれぞれを、拡大画像中の文字列から分離して明確に認識することができる。
In the image enlargement processing, the “configuration information image” is an image obtained by encoding the configuration information into, for example, a two-dimensional code, and the “restoration information image” is obtained by encoding the recovery information into, for example, a two-dimensional code. It is an image. Further, although it is difficult for the human eyes to recognize the existence of each of the configuration information image and the restored information image, it is an image that can be read by the document reading unit and the contents can be reliably recognized by the image processing unit. For example, it is a copy-forgery-inhibited pattern, pattern, pattern, or mark of a color close to the color of the paper. Note that the configuration information image and the restoration information image may be formed using a steganography technique. As will be described later, the configuration information image and the restoration information image are each arranged on the background of the character string of the original image so as to overlap the character string. However, when a human looks at the enlarged image obtained by enlarging the original image, A human can clearly recognize a character string in the enlarged image, and the recognition of the character string by human eyes is not unclear or unclear by the constituent information image or the restored information image. On the other hand, when performing an image restoration process described later, the
また、上記画像拡大処理において、画像処理部18の各構成要素は次のような処理を行う。すなわち、画像解析部21は、元画像の構成、および元画像中に配置された各文字の位置を認識する処理を行う。はみ出し判断部22は、拡大画像が表示領域からはみ出すか否かを判断する処理を行う。画像変更部23は、はみ出し判断部22の判断の結果、拡大画像が表示領域からはみ出す場合に、拡大画像が表示領域内に収まるように元画像を部分的に変更する処理を行う。情報画像付加部24は構成情報画像および復元情報画像を元画像に付加する処理を行う。画像拡大部25は、元画像の大きさを元画像の表示媒体の表示領域の大きさに対して相対的に拡大することにより元画像の拡大画像を生成する処理を行う。
In the image enlargement process, each component of the
(画像復元処理)
また、画像処理部18は画像復元処理を行う。画像復元処理は、拡大画像に付加された構成情報画像および復元情報画像に基づき、拡大画像を元画像に戻す処理である。具体的には、拡大画像を元の大きさに縮小し、画像拡大処理において移動した文字列を元の位置に戻す。画像復元処理は、画像復元部26により行われる。利用者は、拡大画像が印刷された用紙を原稿読取部11により読み取らせ、画像復元処理を実行させ、拡大画像を元画像に戻し、その元画像を用紙に印刷することができる。
(Image restoration processing)
Further, the
(画像拡大処理の具体例)
図2は、原稿読取、拡大率設定、画像拡大および印刷の処理の流れを示している。図2中のステップS4からステップS13までが画像拡大処理に当たる。
(Specific example of image enlargement processing)
FIG. 2 shows the flow of processing of document reading, enlargement ratio setting, image enlargement, and printing. Steps S4 to S13 in FIG. 2 correspond to the image enlargement processing.
図2において、例えば、利用者が、画像形成装置1の原稿載置部(原稿ガラス)上に原稿を置いた後、操作部15を操作し、原稿のコピーを開始する指示を画像形成装置1に入力する。これに応じ、原稿読取部11が原稿を読み取り、原稿を写し取った画像の画像データを生成する(ステップS1)。本処理において、この原稿を写し取った画像が元画像に当たる。この元画像の画像データは記憶部13の作業領域に記憶される。
In FIG. 2, for example, after a user places a document on a document placing unit (document glass) of the image forming apparatus 1, the user operates the
続いて、画像形成装置1の制御部17は、元画像のプレビュー画面を表示部16に表示する(ステップS2)。利用者はプレビュー画面を見ることにより元画像の大きさを確認することができる。利用者は元画像の大きさを確認した後、操作部15を操作し、元画像を拡大するための所望の拡大率を画像形成装置1に入力する(ステップS3)。
Subsequently, the control unit 17 of the image forming apparatus 1 displays a preview screen of the original image on the display unit 16 (Step S2). The user can check the size of the original image by looking at the preview screen. After confirming the size of the original image, the user operates the
続いて、画像解析部21が、元画像の構成、および元画像中における各文字の位置を認識する(ステップS4)。図3は、本具体例において、作業領域に記憶された元画像を示している。図3に示す元画像の構成は次の通りである。すなわち、元画像は通常の横書きの文書であり、元画像中に配置された文字列の方向は右方向である。また、元画像中における文字列の全体的な開始位置は左上端である。また、元画像中の文字列の最大行数は23行であり、元画像中の文字列の1行当たりの最大文字数は33文字である。
Subsequently, the
続いて、情報画像付加部24が、上記元画像の構成を示す情報に、ステップS3で利用者が入力した拡大率を示す情報を加えることにより構成情報を生成し、この構成情報を表す構成情報画像を生成し、この構成情報画像を、作業領域に記憶された元画像に付加する(ステップ5)。情報画像付加部24は、構成情報画像を、元画像における文字列全体の開始位置に配置する。具体的には、情報画像付加部24は、構成情報画像を、上記開始位置に配置された文字列の一部または全部の背景に、文字列の一部または全部と重なるように配置する。図4は、ステップS5の処理が終了した時点の本具体例における元画像の状態を示している。図4に示すように、構成画像情報41が、元画像の左上端に配置された「aaaa」の一部の背景に、「aaaa」の一部と重なるように配置される。なお、「文字列」とは、一般に、2つ以上の文字の連なりを意味するが、本実施形態では、この意味を拡張し、ある特定の領域内に文字が1つのみ存在する場合にも、その1つの文字を指して「文字列」ということとする。
Subsequently, the information
続いて、はみ出し判断部22が、元画像における文字列全体の開始位置(左上端)を基準に、利用者が入力した拡大率に従って元画像を拡大することにより拡大画像を生成した場合に、拡大画像において表示領域31から右側にはみ出す文字列があるか否かを判断する(ステップS6)。はみ出し判断部22は、この判断を例えば次のように行う。まず、利用者が入力した拡大率の逆数の比率で、元画像における文字列全体の開始位置を基準に、元画像の表示領域31を縮小することにより仮想表示領域32を形成する。次に、元画像中の文字列を元画像の上から下に向かって行単位で調べていき、仮想表示領域32から右側にはみ出した文字列があるか否かを判断し、はみ出した文字列がある場合には、当該はみ出した文字列がある行(以下、これを「右側はみ出し行」という。)を特定する。図5は、ステップS5の処理が終了した直後の本具体例における元画像に仮想表示領域32を重ね合わせた状態を示している。
Subsequently, when the protruding
右側はみ出し行が特定された場合には(ステップS6:YES)、画像変更部23が、作業領域に記憶された元画像に対し、次のような変更を加える。すなわち、右側はみ出し行において、仮想表示領域32から右側にはみ出した文字列を抽出し、当該元画像において、右側はみ出し行よりも下に配置された文字列を下へ1行分ずらすことにより、右側はみ出し行の直下に空白行を生成し、抽出した文字列をこの空白行に移動させる(ステップS7)。このとき、抽出された文字列を、当該文字列における先頭の文字が空白行の先頭に位置するように配置する。
When the right-extending line is specified (step S6: YES), the
続いて、情報画像付加部24が、復元情報を生成し、復元情報を表す復元情報画像を生成し、復元情報画像を、作業領域に記憶された元画像に付加する(ステップS8)。ここでの復元情報は、ステップS7で移動させた文字列における先頭の文字の移動前の位置を示す情報である。情報画像付加部24は、復元情報画像を、作業領域に記憶された元画像において、ステップS7で移動させた文字列の背景に、当該文字列と重なるように配置する。
Subsequently, the information
元画像において右側はみ出し行が複数ある場合には、はみ出し判断部22、画像変更部23および情報画像付加部24は、ステップS6、S7およびS8の処理を元画像の上から下に向かって繰り返し行う。
If the original image includes a plurality of right-extending rows, the
また、元画像において、仮想表示領域32から下側にはみ出した文字列があり、その下側にはみ出し文字列において、仮想表示領域32の右端に対応する位置よりも右側に位置する文字列がある場合には、はみ出し判断部22、画像変更部23および情報画像付加部24は、このような文字列がある行をも右側はみ出し行として特定し、その行に対してもステップS7およびS8の処理を行う。
In addition, in the original image, there is a character string that protrudes below the
本具体例では、図5に示すように、ステップS5の処理が終了した直後の元画像において、第5行の右側部分の文字列「eeeee」と、第8行の右側部分の「hhhhhhh」とが仮想表示領域32から右側にはみ出している。また、第17行の右側部分の「qqq」が、仮想表示領域32の右端に対応する位置よりも右側に位置している。したがって、当該元画像において、第5行、第8行および第17行が右側はみ出し行である。
In this specific example, as shown in FIG. 5, in the original image immediately after the processing of step S5 is completed, the character string “eeeeee” on the right side of the fifth line and “hhhhhhhh” on the right side of the eighth line are included. Protrudes from the
また、図6は、図5に示す元画像中のすべての右側はみ出し行に対してステップS7およびS8の処理が行われた直後の本具体例における元画像の状態を示している。図5に示す元画像中のすべての右側はみ出し行に対してステップS7の処理が行われることによって、図6に示すように、仮想表示領域32から右側にはみ出していた文字列「eeeee」は仮想表示領域32内の第6行に移動され、仮想表示領域32から右側にはみ出していた文字列「hhhhhhh」は仮想表示領域32内の第10行に移動される。また、仮想表示領域32の右端に対応する位置よりも右側に位置していた文字列「qqq」は、仮想表示領域32の右端に対応する位置よりも左側に移動される。
FIG. 6 shows the state of the original image in this specific example immediately after the processing of steps S7 and S8 has been performed on all right-extending rows in the original image shown in FIG. By performing the process in step S7 on all right-extending rows in the original image shown in FIG. 5, the character string "eeee" that extends to the right from the
また、図6に示す元画像において、第6行の文字列「eeeee」の背景には復元情報画像42が配置されている。この復元情報画像42が表している復元情報は、文字列「eeeee」の移動前の位置を示している。図5に示すように、この文字列「eeeee」は、移動前には、元画像の第5行の第24文字から配置されていた。したがって、復元情報画像が表している復元情報は「5、24」である。また、図6において第10行の文字列「hhhhhhh」の背景に配置された復元情報画像43が表している復元情報は、文字列「hhhhhhh」の移動前の位置を示しており、それは「8、24」である。また、図6において第20行の文字列「qqq」の背景に配置された復元情報画像44が表している復元情報は、文字列「qqq」の移動前の位置を示しており、それは「17、24」である。
Also, in the original image shown in FIG. 6, a
図2中のステップS6で元画像において右側はみ出し行が特定されなかった場合、または元画像において特定されたすべての右側はみ出し行についてステップS7およびS8の処理を終えた場合には(ステップS6:NO)、処理はステップS9へ移行する。そして、ステップS9において、はみ出し判断部22が、作業領域に記憶されている元画像中に、仮想表示領域32から下側にはみ出した文字列があるか否かを判断する。
In the case where the right protruding line is not specified in the original image in step S6 in FIG. 2, or when the processes of steps S7 and S8 are completed for all the right protruding lines specified in the original image (step S6: NO) ), The process proceeds to step S9. Then, in step S9, the protruding
仮想表示領域32から下側にはみ出した文字列がある場合には(ステップS9:YES)、画像変更部23が、作業領域に記憶された元画像において、行を詰めることができる部分があるか否かを判断する(ステップS10)。具体的には、画像変更部23は、作業領域に記憶された元画像中の文字列を当該元画像の上から下に向かって調べていき、次の(A)および(B)の条件を充たす上下に連続した2つの行があるか否かを判断する。
(A)作業領域に記憶された元画像において、ステップS7で移動された文字列が配置された行を除き、右側の部分に文字列を追加して配置可能な空白を有する行(以下、これを「文字追加可能行」という。)が存在すること
(B)作業領域に記憶された元画像において、文字追加可能行の次の行に配置された文字列(文字間の空白を含む)の長さと所定の設定間隔長とを合算した長さが、当該文字追加可能行の有する空白の長さ以下であること
上記設定間隔長は例えば5文字である。
If there is a character string that protrudes below the virtual display area 32 (step S9: YES), the
(A) In the original image stored in the work area, except for the line in which the character string moved in step S7 is arranged, a line having a space that can be arranged by adding a character string to the right part (hereinafter referred to as “ Is called “character addition possible line”.) (B) In the original image stored in the work area, the character string (including a space between characters) arranged on the line next to the character addition possible line The sum of the length and a predetermined set interval length is equal to or less than the length of the blank space of the character addable line. The set interval length is, for example, 5 characters.
上記(A)および(B)の条件を充たす上下に連続した2つの行がある場合には(ステップS10:YES)、画像変更部23は、作業領域に記憶された元画像に対し、次のような変更を加える。すなわち、上下に連続した2つの行のうちの下側の行(文字追加可能行の次の行)に配置されたすべての文字列を、上下に連続した2つの行のうちの上側の行(文字追加可能行)が有する空白に移動した後、上下に連続した2つの行のうちの下側の行よりも下に配置された文字列を上へ1行移動させて行を詰める(ステップS11)。文字追加可能行の次の行に配置されたすべての文字列を、文字追加可能行が有する空白に移動するときには、文字追加可能行に既に配置されている文字列の末尾の文字と、文字追加可能行が有する空白に移動する文字列の先頭の文字との間に、設定間隔長の空白(5文字分の空白)を挿入する。このように空白を挿入することにより、ステップS11において文字列を移動したために元画像に記された文章の意味がわかりにくくなってしまうことを防止することができる。
When there are two vertically continuous rows that satisfy the above conditions (A) and (B) (step S10: YES), the
続いて、情報画像付加部24が、復元情報を生成し、この復元情報を表す復元情報画像を生成し、この復元情報画像を、作業領域に記憶された元画像に付加する(ステップS12)。ここでの復元情報は、ステップS11で移動させた文字列における先頭の文字の移動前の位置を示す情報である。情報画像付加部24は、復元情報画像を、作業領域に記憶された元画像において、ステップS11で移動させた文字列の背景に、当該文字列と重なるように配置する。
Subsequently, the information
はみ出し判断部22、画像変更部23および情報画像付加部24は、作業領域に記憶された元画像において、仮想表示領域32から下側にはみ出した文字列がなくなり、または行を詰めることができる空白がなくなるまで、ステップS9、S10およびS11の処理を繰り返す。
The
図6に示す本具体例における元画像において、第16行よりも下の文字列が、仮想表示領域32から下側にはみ出した文字列である。また、この元画像において、第1行および第2行は上記(A)および(B)の条件を充たす。すなわち、第1行は、右側の部分に文字列を追加して配置可能な空白50を有するので、文字追加可能行である。第1行の空白50の長さは19文字である。また、第1行の次の行、すなわち第2行に配置された文字列の長さは3文字である。第2行に配置された文字列の長さと設定間隔長(5文字)とを合算した長さは8文字であり、第1行が有する空白50の長さ以下である。同様に、図6に示す元画像において、第7行および第8行、並びに第14行および第15行も上記(A)および(B)の条件を充たす。
In the original image in this specific example shown in FIG. 6, a character string below the 16th line is a character string protruding below the
なお、図6に示す元画像において、第6行および第7行は上記(A)および(B)の条件を一見充たすとも思えるが、第6行は、ステップS7で移動された文字列が配置された行に当たるので、上記(A)の条件を充たさない。このようにステップS7で移動された文字列が配置された行に、ステップS11で文字列を移動しないようにすることで、元画像に記された文章の意味がわかりにくくなってしまうことを防止することができる。 In the original image shown in FIG. 6, the sixth and seventh lines seem to satisfy the conditions (A) and (B) at a glance, but the sixth line contains the character string moved in step S7. Therefore, the above condition (A) is not satisfied. By preventing the character string from being moved in step S11 on the line in which the character string moved in step S7 is arranged, it is possible to prevent the meaning of the text written in the original image from becoming difficult to understand. can do.
図6に示す元画像に対してステップS11の処理が行われることによって、図6に示す元画像において第2行に配置されていた文字列「bbb」が、図7に示すように第1行に移動する。また、元画像の第1行に元から配置されていた文字列「aaaa」の末尾の文字と、第1行に移動された文字列「bbb」の先頭の文字との間に5文字の空白51が挿入される。また、図6に示す元画像において第3行に配置されていた文字列「ccc」も、図7に示すように第1行に移動する。また、図7に示す元画像の第1行において、文字列「bbb」の末尾の文字と文字列「ccc」の先頭の文字との間に5文字の空白52が挿入される。また、図6に示す元画像において第4行〜第7行に配置されていた文字列が、図7に示すように第2行〜第5行にそれぞれ移動する。また、図6に示す元画像において第8行に配置されていた文字列「gggg」が、図7に示すように第5行に移動する。また、図7に示す元画像の第5行において、文字列「ffffff」の末尾の文字と文字列「gggg」の先頭の文字との間に5文字の空白53が挿入される。また、図6に示す元画像において第9行〜第14行に配置されていた文字列が、図7に示すように第6行〜第11行にそれぞれ移動する。また、図6に示す元画像において第15行に配置されていた文字列「mmmm」が、図7に示すように第11行に移動する。また、図7に示す元画像の第11行において、文字列「llll」の末尾の文字と文字列「mmmmm」の先頭の文字との間に空白54が挿入される。また、図6に示す元画像において第16行〜第20行に配置されていた文字列が、図7に示すように第12行〜第16行にそれぞれ移動する。これらの文字列の移動により、図6の元画像において仮想表示領域32から下側にはみ出していた文字列は、図7に示すように仮想表示領域32内に収まる。
By performing the process of step S11 on the original image shown in FIG. 6, the character string "bbb" arranged on the second line in the original image shown in FIG. Go to In addition, a space of 5 characters is provided between the last character of the character string “aaaa” originally arranged on the first line of the original image and the first character of the character string “bbb” moved to the first line. 51 is inserted. Further, the character string “ccc” arranged on the third line in the original image shown in FIG. 6 also moves to the first line as shown in FIG. In the first line of the original image shown in FIG. 7, a
また、図7に示す元画像において、第1行の文字列「bbb」の背景には復元情報画像45が配置されている。この復元情報画像45が表している復元情報は、文字列「bbb」の移動前の位置を示している。図5に示すように、この文字列「bbb」は、移動前には、元画像の第2行の第1文字から配置されていた。したがって、復元情報画像が表している復元情報は「2、1」である。また、図7において第1行の文字列「ccc」の背景に配置された復元情報画像46が表している復元情報は、文字列「ccc」の移動前の位置を示しており、それは「3、1」である。また、図7において第5行の文字列「ggggg」の背景に配置された復元情報画像47が表している復元情報は、文字列「ggggg」の移動前の位置を示しており、それは「7、1」である。また、図7において第11行の文字列「mmmmm」の背景に配置された復元情報画像48が表している復元情報は、文字列「mmmmm」の移動前の位置を示しており、それは「13、1」である。
In the original image shown in FIG. 7, a
図2中のステップS9で、作業領域に記憶された元画像において仮想表示領域32から下側にはみ出した文字列がなく、または行を詰めることができる空白がなかった場合、または作業領域に記憶された元画像に対してステップS9ないしS12の処理を行い、元画像において、仮想表示領域32から下側にはみ出した文字列がなくなり、または行を詰めることができる空白がなくなった場合には(ステップS9:NO)、処理はステップS13へ移行する。そして、ステップS13において、画像拡大部25が、現時点において作業領域に記憶された元画像を、当該元画像における文字列の全体的な開始位置を基準に、利用者が入力した拡大率に従って拡大することにより、拡大画像を生成する(ステップS13)。図8は、本具体例における拡大画像を示している。画像形成装置1の制御部17は、印刷部14により、拡大画像を用紙に印刷する(図2中のステップS14)。
In step S9 in FIG. 2, if there is no character string extending below the
なお、上記画像拡大処理において、ステップS13の直前の時点で、作業領域に記憶された元画像中の文字列が仮想表示領域32に収まらない場合もあり得る。その場合には、元画像において、仮想表示領域32内に収まった行により第1頁が形成され、仮想表示領域32から下側にはみ出した行により第2頁が形成される。この場合には、それぞれの頁につき拡大画像が生成され、これら拡大画像が例えば2枚の用紙にそれぞれ印刷される。
In the image enlargement process, the character string in the original image stored in the work area may not fit in the
(画像復元処理の具体例)
画像復元部26による画像復元処理の一例を述べる。まず、用紙に印刷された拡大画像を原稿読取部11により読み取り、記憶部13の作業領域に記憶する。続いて、作業領域に記憶された拡大画像から構成情報画像を読み取り、構成情報画像を復号して構成情報を取得する。続いて、取得した構成情報に基づき、拡大画像の元画像に対する拡大率を認識し、この拡大率の逆数を縮小率に設定し、この縮小率で拡大画像を縮小し、拡大画像の大きさを元画像の大きさと等しくする。以下、このようにして縮小した画像を「中間画像」という。
(Specific example of image restoration processing)
An example of the image restoration processing by the
続いて、取得した構成情報に基づき、中間画像中の文字列全体の開始位置、および中間画像中の文字列の方向を認識する。ここでは、中間画像中の文字列全体の開始位置が左上端であり、中間画像中の文字列の方向が右方向であることを認識したとする。この場合、中間画像の上から下に向かって行単位に各文字および各復元情報画像の位置を認識していく。 Subsequently, based on the acquired configuration information, the start position of the entire character string in the intermediate image and the direction of the character string in the intermediate image are recognized. Here, it is assumed that the start position of the entire character string in the intermediate image is the upper left corner, and that the direction of the character string in the intermediate image is rightward. In this case, the position of each character and each restored information image is recognized line by line from top to bottom of the intermediate image.
復元情報画像と重なった文字列を認識した場合には、復元情報画像を読み取り、復元情報画像を復号して復号情報を取得し、取得した復号情報に基づき、当該復元情報画像と重なった文字列の移動前の位置を認識する。 When the character string overlapping the restoration information image is recognized, the restoration information image is read, the restoration information image is decoded to obtain the decoding information, and the character string overlapping the restoration information image is obtained based on the obtained decoding information. Recognize the position before the movement.
当該文字列の移動前の位置が現在の位置よりも下である場合には、当該文字列よりも下に配置された文字列および復元情報画像を下へ1行分ずらして空白行を形成し、当該文字列を移動前の位置(形成した空白行の先頭)に戻す。 If the position before the movement of the character string is below the current position, the character string and the restoration information image arranged below the character string are shifted downward by one line to form a blank line. The character string is returned to the position before the movement (the head of the formed blank line).
また、中間画像の1行中に、復元情報画像と重なった文字列を2つ認識した場合には、それぞれの文字列に対応する復元情報画像を復号して得られた復号情報に基づき、これらの文字列の移動前の位置をそれぞれ認識する。そして、これらの文字列よりも下に配置された文字列および復元情報画像を下へ2行分ずらして2つの空白行を形成し、2つの文字列を移動前の位置(形成した2つの空白行の先頭)にそれぞれ戻す。 Further, when two character strings overlapping with the restoration information image are recognized in one line of the intermediate image, based on the decoded information obtained by decoding the restoration information image corresponding to each of the character strings, Recognize the position of the character string before the movement. Then, the character strings arranged below these character strings and the restoration information image are shifted downward by two lines to form two blank lines, and the two character strings are moved to the position before the movement (the two blank lines formed). (Beginning of line).
また、復元情報画像と重なった文字列を認識し、その復元情報画像から得られた復号情報に基づき、その復元情報画像と重なった文字列の移動前の位置を認識した結果、当該文字列の移動前の位置が現在の位置よりも上である場合には、当該文字列を、当該文字列の前の行の文字列の末尾に移動し、当該文字列よりも下に配置された文字列および復元情報画像を上へ1行分ずらす。 Further, a character string overlapping with the restoration information image is recognized, and a position before movement of the character string overlapping with the restoration information image is recognized based on decoding information obtained from the restoration information image. If the position before the movement is above the current position, move the character string to the end of the character string on the line before the character string, and place the character string positioned below the character string Also, the restoration information image is shifted upward by one line.
以上、説明した通り、画像形成装置1における画像処理部18は、拡大画像が表示領域からはみ出す場合に、拡大画像が表示領域内に収まるように元画像を部分的に変更する。これにより、画像を拡大することにより、画像の一部が失われ、または画像が分断されて見にくくなることを防止することができる。なお、画像処理部18の画像拡大処理において、拡大画像が2枚の用紙に分断されることがあるが、その場合でも、横書きの文書の各行がその途中で左右に分断されるのではなく、横書きの文章が行と行との間を境に上下に分断されるので、画像中に記された文章が読みにくくなることがない。
As described above, when the enlarged image protrudes from the display area, the
また、画像形成装置1における画像処理部18は、元画像に復元情報画像を付加した後、この元画像を拡大して拡大画像を生成し、この拡大画像を用紙に印刷する。したがって、用紙には、拡大画像と復元情報画像が印刷される。よって、利用者は、拡大画像と復元情報画像が印刷された用紙を、画像形成装置1に読み込ませて画像復元処理を実行させることにより、拡大画像を元の画像に戻すことができる。
After adding the restoration information image to the original image, the
また、復元情報は、画像変更部23により移動された文字列の移動前の位置を示す情報である。これにより、画像復元処理において、復元情報に基づき、拡大画像を元の画像に容易かつ正確に戻すことができる。
The restoration information is information indicating the position of the character string moved by the
また、画像形成装置1における画像処理部18は、復元情報画像に加えて構成情報画像を付加した後、この元画像を拡大して拡大画像を生成し、この拡大画像を用紙に印刷する。したがって、用紙には、拡大画像および復元情報画像に加えて構成情報画像が印刷される。よって、画像復元処理において、構成情報に基づき、拡大画像の元の画像の構成を認識することができ、拡大画像を元の画像に容易かつ正確に戻すことができる。
Further, the
また、画像形成装置1における画像処理部18は、復元情報画像を、元画像において移動された文字列に重なるように配置する。これにより、画像復元処理において、拡大画像または元画像中における復元情報画像の位置に基づき、移動された文字列を容易に認識することができる。
Further, the
また、画像形成装置1における画像処理部18は、画像拡大処理において、元画像中の文字列の長さが短くなるように文字を移動させる。具体的には、元画像中の右側はみ出し行において仮想表示領域32から右側にはみ出した部分を仮想表示領域32内に移動させる。これにより、拡大画像中の文字列が表示領域から右側にはみ出すことを防止することができる。
Further, the
また、画像形成装置1における画像処理部18は、画像拡大処理において、元画像の文字列の行数が少なくなるように文字を移動させる。具体的には、仮想表示領域内において、元画像中の文字列を元画像中の空白部分に移動させることにより行を詰める。これにより、拡大画像中の文字列の行数を減らすことができ、拡大画像が複数の用紙に分断されて印刷される頻度を下げることができる。
Further, the
なお、上記画像形成装置1の画像処理部18により、縦書きの文書の元画像、すなわち、文字列全体の開始位置が元画像の右上端であり、文字列の方向が下方向である元画像に対して画像拡大処理を行う場合には、概ね次のような処理を行う。すなわち、構成情報画像を、元画像の右上端に配置された文字列と重なるように配置した後、元画像中の文字列において仮想表示領域から下側にはみ出す文字列を次の行(左の行)に移動させ、当該移動させた文字列と重なるように復元情報画像を配置する。その後、元画像中の文字列を、元画像中の空白部分に移動させ、元画像中の文字列を右から左へ詰め、当該移動させた文字列と重なるように復元情報画像を配置する。
The
また、上記実施形態では、復元情報を、元画像の変更前の状態を示す情報(具体的には、文字列の移動前の位置を示す情報)としたが、本発明はこれに限らない。復元情報を、元画像の変更内容を示す情報としてもよい。元画像の変更内容を示す情報として、例えば、文字列を1行下の先頭へ移動させたことを示すコードや、文字列を1行上の空白部分に移動させたことを示すコード等が考えられる。また、復元情報を、元画像を変更前の状態に戻す方法を示す情報としてもよい。元画像を変更前の状態に戻す方法を示す情報として、文字列を1行上の文字列の末尾に戻すことを示すコードや、文字列を1行下の先頭に戻すことを示すコード等が考えられる。 Further, in the above embodiment, the restoration information is information indicating the state before the change of the original image (specifically, information indicating the position before the movement of the character string), but the present invention is not limited to this. The restoration information may be information indicating the changed content of the original image. As the information indicating the changed content of the original image, for example, a code indicating that the character string has been moved to the head one line below, a code indicating that the character string has been moved to the blank part on one line, and the like are considered. Can be Alternatively, the restoration information may be information indicating a method of returning the original image to the state before the change. As information indicating the method of returning the original image to the state before the change, a code indicating that the character string is returned to the end of the character string on one line, a code indicating that the character string is returned to the head of one line below, and the like are included. Conceivable.
また、上記実施形態で述べた構成情報の一部を省いてもよいし、上記実施形態で述べた構成情報に別の情報を追加してもよい。また、上記実施形態では、構成情報画像を、元画像の文字列全体の開始位置に配置された文字列と重なるように配置する場合を例にあげたが、構成情報画像を元画像の余白部分等、他の位置に配置してもよい。 Further, a part of the configuration information described in the above embodiment may be omitted, or another information may be added to the configuration information described in the above embodiment. Further, in the above-described embodiment, the case where the configuration information image is arranged so as to overlap the character string arranged at the start position of the entire character string of the original image has been described as an example. Etc. may be arranged at other positions.
また、上記実施形態では、復元情報画像を、移動させた文字列と重なるように配置する場合を例にあげたが、例えば、復元情報画像を、移動させた文字列の直下等、移動させた文字列と一定の位置関係にある他の位置に配置してもよい。 Further, in the above embodiment, the case where the restored information image is arranged so as to overlap with the moved character string has been described as an example, but for example, the restored information image is moved, for example, immediately below the moved character string. It may be arranged at another position having a certain positional relationship with the character string.
また、上記実施形態では、元画像を拡大する前に、元画像中の文字列を移動させる場合を例にあげたが、本発明はこれに限らず、元画像を拡大させてから、拡大画像中の文字列を移動させてもよい。 Further, in the above embodiment, the case where the character string in the original image is moved before enlarging the original image has been described as an example. However, the present invention is not limited to this. The character string inside may be moved.
また、上記実施形態では、元画像中の文字列を一律に拡大させたが、元画像中の一部の文字列を拡大させず、または元画像中の一部の文字列の拡大率を他の文字列の拡大率よりも小さくすることにより、拡大画像において表示領域からはみ出す文字列を表示領域内に入るようにしてもよい。 In the above embodiment, the character strings in the original image are uniformly enlarged. However, some character strings in the original image are not enlarged, or the enlargement ratio of some character strings in the original image is changed. By making the character string smaller than the enlargement ratio of the character string, the character string that protrudes from the display area in the enlarged image may be included in the display area.
また、上記実施形態では、表示領域の大きさを変えずに元画像を拡大する場合を例にあげたが、本発明はこれに限らない。本発明は、元画像の大きさを変えずに、表示領域を縮小する場合にも適用することができる。 Further, in the above embodiment, the case where the original image is enlarged without changing the size of the display area has been described as an example, but the present invention is not limited to this. The present invention can be applied to a case where the display area is reduced without changing the size of the original image.
また、本発明は複合機に限らず、コピー機、ファクシミリ等にも適用することができる。 Further, the present invention is not limited to a multifunction peripheral, and can be applied to a copier, a facsimile, and the like.
また、本発明は、請求の範囲および明細書全体から読み取ることのできる発明の要旨または思想に反しない範囲で適宜変更可能であり、そのような変更を伴う画像処理装置およびプログラムもまた本発明の技術思想に含まれる。 In addition, the present invention can be appropriately modified within a scope that does not contradict the gist or idea of the invention that can be read from the claims and the entire specification, and an image processing apparatus and a program with such a modification are also included in the present invention. Included in technical thought.
1 画像形成装置
18 画像処理部
21 画像解析部
22 はみ出し判断部
23 画像変更部
24 情報画像付加部
25 画像拡大部
26 画像復元部
31 表示領域
32 仮想表示領域
41 構成画像情報
42〜48 復元画像情報
REFERENCE SIGNS LIST 1
Claims (8)
前記拡大画像が前記表示領域からはみ出すか否かを判断するはみ出し判断部と、
前記はみ出し判断部の判断の結果、前記拡大画像が前記表示領域からはみ出す場合には前記拡大画像が前記表示領域内に収まるように前記元画像または前記拡大画像を部分的に変更する画像変更部と、
前記画像変更部により変更された前記元画像または前記拡大画像を変更前の状態に戻すのに要する復元情報を表す復元情報画像を前記元画像または前記拡大画像に付加する情報画像付加部とを備えていることを特徴とする画像処理装置。 An image enlarging unit that generates an enlarged image of the original image by enlarging the size of the original image relative to the size of the display area of the display medium of the original image,
A protruding determination unit that determines whether the enlarged image protrudes from the display area,
As a result of the determination of the protruding determination unit, when the enlarged image protrudes from the display area, an image changing unit that partially changes the original image or the enlarged image so that the enlarged image falls within the display area. ,
An information image adding unit that adds a restoration information image representing restoration information required to return the original image or the enlarged image changed by the image changing unit to a state before the change to the original image or the enlarged image. An image processing apparatus characterized in that:
前記構成情報画像は、前記元画像に対する前記拡大画像の拡大率を示す情報、前記画像変更部による変更が行われる前の前記元画像もしくは前記拡大画像中における文字列の行数を示す情報、前記画像変更部による変更が行われる前の前記元画像もしくは前記拡大画像中における文字列の1行当たりの文字数を示す情報、前記元画像もしくは前記拡大画像中における文字列の方向を示す情報、または前記元画像もしくは前記拡大画像中における文字列全体の開始位置を示す情報を含むことを特徴とする請求項1ないし6のいずれかに記載の画像処理装置。 The information image adding unit adds a configuration information image representing configuration information indicating a configuration of the original image or the enlarged image to the original image or the enlarged image,
The configuration information image is information indicating an enlargement ratio of the enlarged image with respect to the original image, information indicating the number of lines of a character string in the original image or the enlarged image before the image is changed by the image changing unit, Information indicating the number of characters per line of the character string in the original image or the enlarged image before the change by the image changing unit, information indicating the direction of the character string in the original image or the enlarged image, or 7. The image processing apparatus according to claim 1, further comprising information indicating a start position of the entire character string in the original image or the enlarged image.
前記拡大画像が前記表示領域からはみ出すか否かを判断するはみ出し判断部と、
前記はみ出し判断部の判断の結果、前記拡大画像が前記表示領域からはみ出す場合には前記拡大画像が前記表示領域内に収まるように前記元画像または前記拡大画像を部分的に変更する画像変更部と、
前記画像変更部により変更された前記元画像または前記拡大画像を変更前の状態に戻すのに要する復元情報を示す復元情報画像を前記拡大画像に付加する情報画像付加部とを備えていることを特徴とする画像処理装置としてコンピュータを機能させるプログラム。 An image enlarging unit that generates an enlarged image of the original image by enlarging the size of the original image relative to the size of the display area of the display medium of the original image,
A protruding determination unit that determines whether the enlarged image protrudes from the display area,
As a result of the determination by the protruding determination unit, when the enlarged image protrudes from the display area, an image change unit that partially changes the original image or the enlarged image so that the enlarged image falls within the display area. ,
An information image adding unit that adds a restoration information image indicating restoration information required to return the original image or the enlarged image changed by the image changing unit to a state before the change to the enlarged image. A program that causes a computer to function as an image processing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018121051A JP2020005061A (en) | 2018-06-26 | 2018-06-26 | Image processing apparatus and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018121051A JP2020005061A (en) | 2018-06-26 | 2018-06-26 | Image processing apparatus and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2020005061A true JP2020005061A (en) | 2020-01-09 |
Family
ID=69100527
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018121051A Pending JP2020005061A (en) | 2018-06-26 | 2018-06-26 | Image processing apparatus and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2020005061A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021112243A (en) * | 2020-01-16 | 2021-08-05 | 株式会社三共 | Game machine |
-
2018
- 2018-06-26 JP JP2018121051A patent/JP2020005061A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021112243A (en) * | 2020-01-16 | 2021-08-05 | 株式会社三共 | Game machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4145316B2 (en) | Image forming apparatus | |
JP5834866B2 (en) | Image processing apparatus, image generation method, and computer program | |
JP2006259045A (en) | Image forming apparatus and method | |
JP2006341614A (en) | Image forming device and image forming method | |
JP3745179B2 (en) | Information processing apparatus, control method therefor, and storage medium | |
JP2008028808A (en) | Image composing apparatus, image composing apparatus control method and program | |
JP2007148486A (en) | Method for supporting document browsing, system for the same, document processor, and program | |
JP5871606B2 (en) | Image forming apparatus, image display method, and program | |
JP6213481B2 (en) | Operation display device | |
JP2020005061A (en) | Image processing apparatus and program | |
JP2006093917A (en) | Image reading apparatus and image processor, and image forming apparatus | |
EP3648107A1 (en) | Image processing apparatus | |
JP2010136085A (en) | Image processor | |
JP7147544B2 (en) | Information processing device and information processing method | |
JP5168084B2 (en) | Image processing apparatus, program, and image processing method | |
JP6930082B2 (en) | Information processing equipment, image forming equipment, and programs | |
US10902182B2 (en) | Changing the height of a facsimile source area in accordance with a registered language | |
JP2008236251A (en) | Image processing device, program and image process method | |
JP6399000B2 (en) | Image processing apparatus and image creation program | |
JP6705327B2 (en) | Image forming apparatus, special pattern synthesizing method, and synthesizing program | |
JP4881897B2 (en) | Image processing method and image processing apparatus | |
JP2021136550A (en) | Information processing device, method, and program | |
JP5097143B2 (en) | Image processing device | |
JP5084679B2 (en) | Image processing apparatus, program, and image processing method | |
JP2018024138A (en) | Image formation apparatus |