JP2016058868A - Image processing system and image processing method - Google Patents

Image processing system and image processing method Download PDF

Info

Publication number
JP2016058868A
JP2016058868A JP2014183236A JP2014183236A JP2016058868A JP 2016058868 A JP2016058868 A JP 2016058868A JP 2014183236 A JP2014183236 A JP 2014183236A JP 2014183236 A JP2014183236 A JP 2014183236A JP 2016058868 A JP2016058868 A JP 2016058868A
Authority
JP
Japan
Prior art keywords
image
reduction
image data
page
seam
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2014183236A
Other languages
Japanese (ja)
Inventor
弘志 松田
Hiroshi Matsuda
弘志 松田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2014183236A priority Critical patent/JP2016058868A/en
Publication of JP2016058868A publication Critical patent/JP2016058868A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem in which, when seam carving is applied without any condition to a layout in which a page is condensed, distortion may be generated in an image or even important information in an image may be made to be a target of elimination.SOLUTION: When an image is disposed in a page aggregated layout, image data representing an image to be disposed is reduced with linear scaling. By removing a seam with low importance from the reduced image data, the reduced image data is further reduced.SELECTED DRAWING: Figure 3

Description

本発明は画像を変倍する画像処理装置及び画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method for scaling an image.

画像内のコンテンツを意識した画像の変倍技術として、シームカービング(Seam Carving)が知られている。シームカービングとは、画像の縮小時や、画像の縦横比を維持しない変倍時に、画像内の重要個所を保持する変倍を実現する技術である。シームカービングでは画像の各ピクセルの重要度を表す重要度マップ(エネルギーマップ)を輝度勾配やエッジ情報、視覚顕著性などに基づいて生成する。そして、その重要度マップから縦横において最も重要度の低いシーム(継ぎ目)を探索し、当該シームを削除することにより、矩形を維持したまま画像の変倍を行う。特に画像の縮小において画像の重要情報が保持されることから、画像内の重要情報の選別技術と捉えることもできる。シームカービングをドキュメントに応用した技術として、ドキュメントの背景からバランス良くシームを削除する技術が知られている(例えば、特許文献1を参照)。   Seam carving is known as an image scaling technique that is conscious of content in an image. Seam carving is a technique that realizes zooming that preserves important points in an image when the image is reduced or when zooming without maintaining the aspect ratio of the image. In seam carving, an importance map (energy map) that represents the importance of each pixel of an image is generated based on brightness gradient, edge information, visual saliency, and the like. Then, the seam (seam) having the lowest importance in the vertical and horizontal directions is searched from the importance map, and the image is scaled while maintaining the rectangle by deleting the seam. In particular, since the important information of the image is retained when the image is reduced, it can be regarded as a technique for selecting important information in the image. As a technique in which seam carving is applied to a document, a technique for deleting a seam from a document background in a well-balanced manner is known (see, for example, Patent Document 1).

特開2010−187376号公報JP 2010-187376 A

シームカービングは画像内の重要箇所を保持する技術であるが、縮小率が大きいと画像の歪みが生じたり、画像内の重要な情報まで削減の対象となる場合がある。   Seam carving is a technique for retaining important parts in an image. However, if the reduction ratio is large, the image may be distorted or important information in the image may be reduced.

本発明に係る画像処理装置は、ページ集約したレイアウトに画像を配置する指示を取得する取得手段と、配置対象の画像を示す画像データを線形な変倍により縮小する第一の縮小手段と、前記第一の縮小手段で縮小された画像データから重要度の低いシームを削除することにより前記第一の縮小手段で縮小された画像データをさらに縮小する第二の縮小手段とを有することを特徴とする。   An image processing apparatus according to the present invention includes an acquisition unit that acquires an instruction to arrange an image in a page-aggregated layout, a first reduction unit that reduces image data indicating an arrangement target image by linear scaling, And a second reduction means for further reducing the image data reduced by the first reduction means by deleting a seam having low importance from the image data reduced by the first reduction means. To do.

本発明によれば、適度なシームカービング処理を適用することにより、重要箇所を保持したレイアウトを提供することができる。   According to the present invention, by applying an appropriate seam carving process, it is possible to provide a layout that retains important portions.

実施形態の説明で用いるハードウェアの例を示すブロック図である。It is a block diagram which shows the example of the hardware used by description of embodiment. 実施形態の説明で用いるソフトウェアの例を示すブロック図である。It is a block diagram which shows the example of the software used by description of embodiment. 実施形態1の説明で用いる画像レイアウトのフローを示す図である。FIG. 5 is a diagram illustrating a flow of an image layout used in the description of Embodiment 1. 実施形態1の説明で用いるシームカービングを説明する図である。It is a figure explaining the seam carving used by description of Embodiment 1. FIG. 実施形態2の説明で用いるページ集約済み画像の例と、この画像にシームカービングを適用した例とを示す図である。It is a figure which shows the example of the page aggregation completed image used by description of Embodiment 2, and the example which applied seam carving to this image. 実施形態2の説明で用いるページ集約レイアウト済みの印刷データの再レイアウト処理のフローを示す図である。FIG. 10 is a diagram illustrating a flow of a re-layout process of print data that has been subjected to page aggregation layout and is used in the description of Embodiment 2. 実施形態3の説明で用いるページ集約数増加時のレイアウト処理のフローを示す図である。FIG. 10 is a diagram illustrating a flow of layout processing when increasing the number of page aggregations used in the description of Embodiment 3.

以下、本発明を実施するための形態について図面を用いて説明する。   Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.

<画像処理装置のハードウェア構成図>
図1は本実施例の画像処理装置の構成を説明するハードウェアブロック図である。本実施例では画像処理装置はプリンタ装置として機能する形態を用いて説明するが、独立した画像処理装置としても成立し得るものである。
<Hardware configuration diagram of image processing apparatus>
FIG. 1 is a hardware block diagram illustrating the configuration of the image processing apparatus according to the present exemplary embodiment. In this embodiment, the image processing apparatus will be described using a form that functions as a printer apparatus. However, the image processing apparatus can also be realized as an independent image processing apparatus.

図1の画像処理装置100は、コントローラユニット150と、操作部114とプリンタエンジン115とを有する。コントローラユニット150は、CPU101、RAM102、ROM103、HDD104、システムバス105、ネットワークI/F106、操作部I/F107、画像圧伸部111、画像回転部112、RIP109、プリンタ画像処理部110を有する。   The image processing apparatus 100 in FIG. 1 includes a controller unit 150, an operation unit 114, and a printer engine 115. The controller unit 150 includes a CPU 101, RAM 102, ROM 103, HDD 104, system bus 105, network I / F 106, operation unit I / F 107, image companding unit 111, image rotating unit 112, RIP 109, and printer image processing unit 110.

コントローラユニット150は、画像信号やデバイス情報の入出力を制御する。CPU101はROM103あるいはHDD104に記憶されたプログラムをRAM102に読み出し、実行する。さらに、システムバス105に接続される各デバイスをCPU101が統括的に制御する。RAM102は、CPU101のメインメモリであり、画像処理装置の制御プログラムのためのワークエリアとして使用される。ROM103には電源ON時に実行されるブートプログラムが格納され、HDD104にはオペレーティングシステムと画像処理装置の制御プログラム本体が格納される。また、HDD104は印刷データや画像データ等の大容量データを一時的あるいは長期的に保持する目的でも使用される。   The controller unit 150 controls input / output of image signals and device information. The CPU 101 reads the program stored in the ROM 103 or the HDD 104 into the RAM 102 and executes it. Further, the CPU 101 comprehensively controls each device connected to the system bus 105. A RAM 102 is a main memory of the CPU 101 and is used as a work area for a control program of the image processing apparatus. The ROM 103 stores a boot program that is executed when the power is turned on, and the HDD 104 stores an operating system and a control program body of the image processing apparatus. The HDD 104 is also used for temporarily or long-term holding large-capacity data such as print data and image data.

ネットワークI/F106はローカルエリアネットワーク113に接続し、印刷データやデバイス情報の入出力を担う。操作部I/F107は操作部114とのインターフェース部で、操作部114に表示するビットマップデータを操作部114に対して出力する。また、操作部114から画像処理装置の使用者が入力した情報を、CPU101に伝える役割をする。操作部114は、例えば出力器として液晶パネルと音源を備え、入力器としてタッチパネルとハードキーを備えるものである。コントローラユニット150はデバイスI/F108を介して、プリンタエンジン115に接続される。デバイスI/F108はCPU101の指示に基づき、画像信号の送出、デバイス動作指示、デバイス情報の受信を行う。プリンタエンジン115はコントローラユニット150からの画像信号を媒体上に出力する出力機であり、電子写真方式、インクジェット方式の何れでも構わない。   A network I / F 106 is connected to the local area network 113 and performs input / output of print data and device information. The operation unit I / F 107 is an interface unit with the operation unit 114, and outputs bitmap data to be displayed on the operation unit 114 to the operation unit 114. Also, it serves to transmit information input by the user of the image processing apparatus from the operation unit 114 to the CPU 101. The operation unit 114 includes, for example, a liquid crystal panel and a sound source as output devices, and a touch panel and hard keys as input devices. The controller unit 150 is connected to the printer engine 115 via the device I / F 108. The device I / F 108 transmits an image signal, instructs a device operation, and receives device information based on an instruction from the CPU 101. The printer engine 115 is an output device that outputs an image signal from the controller unit 150 onto a medium, and may be either an electrophotographic system or an inkjet system.

Raster Image Processor(RIP)109は中間データであるディスプレイリスト(以後、DLと略記する)を画像データに展開する専用ハードウェアである。RIP109はCPU101によりRAM102上に生成されたDLを高速かつ、CPU101の実行と並列に処理するものである。プリンタ画像処理部110は、画像データに対して、ガンマ補正等の画像補正や、ハーフトーニングを行う。画像回転部112は画像データの回転を行う。画像圧伸部111は、例えば多値画像データについてはJPEG方式、2値画像データについてはJBIG、MMR、またはMH方式などの圧縮伸張処理を行う。   The Raster Image Processor (RIP) 109 is dedicated hardware for expanding a display list (hereinafter abbreviated as DL), which is intermediate data, into image data. The RIP 109 processes the DL generated on the RAM 102 by the CPU 101 at high speed and in parallel with the execution of the CPU 101. The printer image processing unit 110 performs image correction such as gamma correction and halftoning on the image data. The image rotation unit 112 rotates image data. The image companding unit 111 performs compression / decompression processing such as JPEG method for multi-valued image data and JBIG, MMR, or MH method for binary image data.

<画像処理装置のソフトウェアモジュール構成図>
図2は画像処理装置のコントローラユニット150におけるソフトウェアモジュール構成図である。図2に記載した各ソフトウェアモジュールは、プログラムとしてHDD104に格納され、RAM102にロードされCPU101により実行されるものである。より具体的には、各ソフトウェアモジュールはCPU101上で動作するOS(オペレーティングシステム)によりRAM102にロードされ、スレッド単位で実行権を付与され、実行されるものである。
<Software module configuration diagram of image processing apparatus>
FIG. 2 is a software module configuration diagram in the controller unit 150 of the image processing apparatus. Each software module described in FIG. 2 is stored as a program in the HDD 104, loaded into the RAM 102, and executed by the CPU 101. More specifically, each software module is loaded into the RAM 102 by an OS (operating system) operating on the CPU 101, and an execution right is given and executed in units of threads.

画像処理装置は、データ受信部201、ジョブ制御部202、PDLインタプリタ203、レンダラ204、プリントドライバ205、ユーザインタフェース206、レイアウタ207、シームカービング処理部208、ジョブデータ管理部209を有する。   The image processing apparatus includes a data reception unit 201, a job control unit 202, a PDL interpreter 203, a renderer 204, a print driver 205, a user interface 206, a layouter 207, a seam carving processing unit 208, and a job data management unit 209.

データ受信部201は外部のホストコンピュータから送信された印刷データを受信する。受信した印刷データはジョブ制御部202を介してジョブデータ管理部209で保持される。ジョブ制御部202はデータ受信から印刷までのジョブ制御の全般を司る。PDLインタプリタ203は印刷データに含まれるページ記述言語(PDL)により記述されたPDLデータを解釈して、中間データであるDLを生成する。生成されたDLはジョブ制御部202を介してジョブデータ管理部209で保持される。レンダラ204はDLから画像データを生成するモジュールであり、多くの処理は専用ハードウェアRIP109により実行される。生成された画像データはジョブ制御部202を介してジョブデータ管理部209で保持される。   The data receiving unit 201 receives print data transmitted from an external host computer. The received print data is held in the job data management unit 209 via the job control unit 202. The job control unit 202 is responsible for overall job control from data reception to printing. The PDL interpreter 203 interprets PDL data described in a page description language (PDL) included in the print data, and generates a DL that is intermediate data. The generated DL is held in the job data management unit 209 via the job control unit 202. The renderer 204 is a module that generates image data from the DL, and many processes are executed by the dedicated hardware RIP 109. The generated image data is held in the job data management unit 209 via the job control unit 202.

プリントドライバ205はデバイスI/F108を介してプリンタエンジン115への印刷指示と画像データの送出を行う。この際に、プリントドライバ205はプリンタ画像処理部110による画像補正およびハーフトーニングを制御する。   The print driver 205 sends a print instruction and image data to the printer engine 115 via the device I / F 108. At this time, the print driver 205 controls image correction and halftoning by the printer image processing unit 110.

ユーザインタフェース206は操作部I/F107を介して、操作部114を制御するモジュールである。操作部114の液晶パネルに表示するデータを生成し、タッチパネルからの入力に従い液晶パネルの表示を更新する。また、タッチパネルからの入力が何らかのジョブ実行指示であった場合は、ジョブ制御部202に指示を伝達する。   The user interface 206 is a module that controls the operation unit 114 via the operation unit I / F 107. Data to be displayed on the liquid crystal panel of the operation unit 114 is generated, and the display on the liquid crystal panel is updated in accordance with an input from the touch panel. If the input from the touch panel is any job execution instruction, the instruction is transmitted to the job control unit 202.

レイアウタ207は印刷レイアウトを制御するモジュールであり、用紙に出力するための最終レイアウト画像を表す画像データの生成を行う。特にページ集約レイアウトの為の画像の縮小や拡大などの変倍処理と画像の配置制御を行う。実際の画像の変倍処理はレイアウタ207がPDLインタプリタ203やシームカービング処理部208に指示することにより実行されるものである。   A layouter 207 is a module that controls a print layout, and generates image data representing a final layout image to be output on a sheet. In particular, scaling processing such as image reduction and enlargement for page aggregation layout and image arrangement control are performed. The actual image scaling process is executed by the layouter 207 instructing the PDL interpreter 203 or the seam carving processing unit 208.

シームカービング処理部208は、シームカービング処理により画像を指定された大きさまで縮小するモジュールである。シームカービングは、前述のように、画像の重要な箇所を残し、重要でない箇所を削減することにより画像の縮小を実現する機能である。本実施例においてシームカービング処理はソフトウェアで実行するように記述するが、ハードウェアにより処理するように構成することも可能である。   The seam carving processing unit 208 is a module that reduces an image to a specified size by seam carving processing. Seam carving is a function that realizes image reduction by leaving important parts of an image and reducing non-important parts as described above. In the present embodiment, the seam carving process is described as being executed by software, but may be configured to be processed by hardware.

<画像レイアウト基本フロー図>
図3は、コントローラユニット150にて実行される印刷データに対する画像レイアウトの処理の一例を表すフローチャートである。なお、本説明では図2の各ソフトウェアモジュールによって実行されるように記述する。また、本フローチャートはHDD104に記憶された図2の各ソフトウェアモジュール内の各プログラムがRAM102に読み出され、CPU101により実行されることにより実現される。
<Image layout basic flow diagram>
FIG. 3 is a flowchart showing an example of image layout processing for print data executed by the controller unit 150. In this description, it is described so as to be executed by each software module of FIG. Also, this flowchart is realized by reading each program in each software module of FIG. 2 stored in the HDD 104 into the RAM 102 and executing it by the CPU 101.

最初にステップS301においてデータ受信部201は、印刷データを受信し、PDLデータとジョブチケットとを取り出してジョブデータ管理部209に保存する。ジョブチケットとは両面出力や出力用紙、ページ集約などの印刷設定を記述したファイルであり、ジョブ毎の印刷設定を通知するために使用される。ジョブチケットの詳細については後述する。   First, in step S301, the data receiving unit 201 receives print data, takes out PDL data and a job ticket, and stores them in the job data management unit 209. A job ticket is a file that describes print settings such as duplex output, output paper, and page aggregation, and is used to notify the print settings for each job. Details of the job ticket will be described later.

ステップS302においてジョブ制御部202は、ジョブチケットを参照してページ集約が指定されているか否かを判定する。ページ集約とは、PDLデータ内の連続する複数のページを指定された用紙に縮小し、割り付けて印刷する機能である。例えば属性値として1から5の値を持ち、「1」が1in1、「2」が2in1、「3」が4in1、「4」が8in1をそれぞれ示すように指定することが可能である。例えば、ジョブチケットに含まれるページ集約の属性値が「2」(つまり2in1)の場合は連続する2ページが一枚の出力用紙の片面に割り付けられる。なお、ここで属性値が「1」(1in1)であるということは、ページ集約を指定しないと同義である。ステップS302においてジョブ制御部202は、このようなジョブチケットに含まれるページ集約の属性値に基づいて、ページ集約が指定されているか否かを判定する。ステップS302においてページ集約が指定されていると判定された場合、ステップS303へ進み、ページ集約が指定されていないと判定された場合、ステップS311へ進む。   In step S302, the job control unit 202 determines whether page aggregation is designated with reference to the job ticket. The page aggregation is a function for reducing a plurality of continuous pages in PDL data to a designated sheet, allocating and printing. For example, it is possible to specify 1 to 5 as attribute values, “1” indicates 1 in 1, “2” indicates 2 in 1, “3” indicates 4 in 1, and “4” indicates 8 in 1. For example, when the page aggregation attribute value included in the job ticket is “2” (that is, 2 in 1), two consecutive pages are assigned to one side of one output sheet. Here, the attribute value “1” (1 in 1) is synonymous with not specifying page aggregation. In step S <b> 302, the job control unit 202 determines whether page aggregation is designated based on the page aggregation attribute value included in the job ticket. If it is determined in step S302 that page aggregation is designated, the process proceeds to step S303. If it is determined that page aggregation is not designated, the process proceeds to step S311.

ステップS303においてレイアウタ207は、一枚の用紙に割り付けるページ数から、「単純縮小後の画像サイズ」と「シームカービング後の画像サイズ」とを決定する。これらのサイズを説明するために、簡単に本実施例の処理の概略を説明する。本実施例においては、例えば2in1のように一枚の用紙に2ページ分の画像を割り付ける場合には、配置対象の各画像をまず単純縮小する。単純縮小とは、シームカービングのように重要度に応じて縮小処理をするのではなく、一般的な線形の縮小処理のことである。そして、単純縮小した各画像に対して、シームカービングによる縮小処理を行なう。このシームカービングによる縮小処理がされた各画像が、2in1のように一枚の用紙に割り付けられた領域に配置される画像となる。つまり、シームカービングによる縮小処理がされた各ページの画像(以下、割り付けられる各ページの画像のことをページ画像と呼ぶ)は、その後、等倍で所定の領域にそれぞれ配置されることになる。ステップS303においては、このように割り付けるページ数から「シームカービング後の画像サイズ」をまず決定する。そして、その「シームカービング後の画像サイズ」のシームカービング処理前の画像サイズを「単純縮小後の画像サイズ」として決定する。そして、後述のステップで説明するように、各ページのページ画像を、その「単純縮小後の画像サイズ」となるように単純縮小する。   In step S303, the layouter 207 determines “image size after simple reduction” and “image size after seam carving” from the number of pages allocated to one sheet. In order to explain these sizes, an outline of the processing of this embodiment will be briefly described. In this embodiment, for example, when two pages of images are allocated to one sheet of paper, such as 2 in 1, each image to be arranged is first simply reduced. Simple reduction is a general linear reduction process rather than a reduction process according to the importance as in seam carving. Then, reduction processing by seam carving is performed on each simply reduced image. Each image subjected to the reduction process by seam carving becomes an image arranged in an area allocated to one sheet of paper, such as 2in1. That is, the image of each page that has been subjected to the reduction process by seam carving (hereinafter, the image of each allocated page is referred to as a page image) is then arranged in a predetermined area at the same magnification. In step S303, the “image size after seam carving” is first determined from the number of pages allocated in this way. Then, the image size before the seam carving process of “image size after seam carving” is determined as “image size after simple reduction”. Then, as described in the later-described steps, the page image of each page is simply reduced so as to be the “image size after simple reduction”.

ステップS303についてさらに説明する。前述のように、本実施例ではシームカービングにより生成された各ページのページ画像を等倍のままページ集約の配置に並び合わせて出力画像を生成する。従って、「シームカービング後の画像サイズ」は、ページ割り付け数と出力用紙と出力解像度との関係から算出される。ここで、シームカービング後の画像サイズはピクセル値である。ステップS303においては最初にレイアウタ207は、この「シームカービング後の画像サイズ」を計算する。次に、レイアウタ207はシームカービングによる縮小率を以下のシームカービング縮小率対応表に基づいて決定する。シームカービングによる縮小率とは、シームカービングを行った後の画像サイズとシームカービングを行なう前の画像サイズとの比のことである。このシームカービングによる縮小率は、ページ割り当て数に応じて表1に示すテーブルのように予め規定されているものとする。   Step S303 will be further described. As described above, in this embodiment, the page image of each page generated by the seam carving is arranged in the page aggregation arrangement while maintaining the same magnification to generate the output image. Accordingly, the “image size after seam carving” is calculated from the relationship between the number of pages allocated, the output paper, and the output resolution. Here, the image size after seam carving is a pixel value. In step S303, the layouter 207 first calculates the “image size after seam carving”. Next, the layouter 207 determines the reduction ratio by seam carving based on the following seam carving reduction ratio correspondence table. The reduction ratio by seam carving is the ratio between the image size after seam carving and the image size before seam carving. The reduction rate by seam carving is defined in advance as shown in the table shown in Table 1 according to the number of page allocations.

Figure 2016058868
Figure 2016058868

表1のような縮小率が設定される理由について説明する。表1においては、ページ割り付け数が多いほど縮小率が高くなっており(つまり、縮小後の画像サイズがより小さくなっており)、シームカービングによる情報選別が強く働くものである。これは、割り付け数が少ないほど画像の歪が目立ち易く、割り付け数が多いほど画像の視認性を高める必要性が増すからである。つまり、割り付け数が多いということは各画像の1枚の用紙における1ページ分のページ画像のサイズが小さくなる。そこで、シームカービングによって重要度の高い箇所の視認性を高めるために、シームカービングによる情報選別が強く働くように縮小率を高くしている。一方で、縮小率を高くするということ意図しない情報選別が行なわれる可能性があり、画像の歪が目立ち易くなることがある。そこで割り付け数が少ない場合には、ページ割り付け数が多い場合よりも縮小率を低くしている。なお、表1はあくまで例示を示しており、必ずしもこのような縮小率に基づいていなくてもよい。また、例えばページ割り付け数が「2」と「4」の場合とで同じ縮小率であってもよい。また、このような縮小率をユーザが任意で設定できるように構成されていてもよい。   The reason why the reduction ratio as shown in Table 1 is set will be described. In Table 1, the larger the number of page allocations, the higher the reduction ratio (that is, the smaller the image size after reduction), and the information selection by seam carving works strongly. This is because the smaller the number of assignments, the more noticeable the distortion of the image, and the larger the number of assignments, the greater the need to increase the visibility of the image. That is, a large number of allocations reduces the size of a page image for one page on one sheet of each image. Therefore, in order to increase the visibility of highly important parts by seam carving, the reduction rate is increased so that information selection by seam carving works strongly. On the other hand, there is a possibility that unintended information selection may be performed to increase the reduction ratio, and image distortion may become conspicuous. Therefore, when the allocation number is small, the reduction ratio is set lower than when the page allocation number is large. In addition, Table 1 shows an example to the last, and it does not necessarily have to be based on such a reduction ratio. For example, the same reduction ratio may be used when the page allocation number is “2” and “4”. Moreover, it may be configured such that the user can arbitrarily set such a reduction ratio.

レイアウタ207は、先に計算したシームカービング後の画像サイズと、表1に示すようなシームカービング縮小率とから、単純縮小後の画像サイズ(ピクセル値)を計算する。つまり、シームカービング後の画像サイズをシームカービング縮小率に応じて拡大した画像サイズが「単純縮小後の画像サイズ」として求まる。   The layouter 207 calculates the image size (pixel value) after simple reduction from the image size after seam carving calculated previously and the seam carving reduction rate as shown in Table 1. That is, the image size obtained by enlarging the image size after seam carving according to the seam carving reduction rate is obtained as the “image size after simple reduction”.

次のステップS304からステップS308までの処理は、1枚の用紙に集約される各ページごとの処理である。ステップS304においてPDLインタプリタ203は、PDLデータ内のページを取り出し、単純縮小による縮小率を計算する。PDLデータ内のページサイズは出力解像度に依存しない論理サイズが定義されている。PDLインタプリタ203は、まずこの論理サイズから出力解像度を考慮したピクセルサイズを算出する。そして、算出したピクセルサイズがステップS303で決定した単純縮小後の画像サイズ(ピクセル値)と同じサイズになるように縮小率を算出する。   The next processing from step S304 to step S308 is processing for each page collected on one sheet. In step S304, the PDL interpreter 203 takes out a page in the PDL data and calculates a reduction ratio by simple reduction. The page size in the PDL data is defined as a logical size that does not depend on the output resolution. The PDL interpreter 203 first calculates a pixel size considering the output resolution from this logical size. Then, the reduction ratio is calculated so that the calculated pixel size becomes the same size as the image size (pixel value) after the simple reduction determined in step S303.

次に、ステップS305においてPDLインタプリタ203は、当該ページのPDLデータを解釈し、ステップS304で算出した縮小率で縮小してレンダリングする。PDLインタプリタ203は生成した画像データをジョブデータ管理部209に保持する。本実施例では縮小処理はPDLデータ内の描画コマンドにより指示される論理座標をピクセル座標に変換する際に行う。具体的には、論理座標からピクセル座標への座標変換マトリックスに前記の縮小率を反映した変換マトリックスを連結する。そして、連結したマトリックスを使用した描画処理を行う。ただし、これは本実施例における縮小処理を限定するものではなく、等倍でレンダリングした後の画像データを縮小変換する構成でも構わない。また、この際の縮小処理は間引きによる単純縮小ではなく画像補間を伴う縮小でも構わない。画像内のコンテンツの占有比率が維持される線形の縮小処理であれば、いかなる縮小処理方法でもかまわない。   Next, in step S305, the PDL interpreter 203 interprets the PDL data of the page, and renders it by reducing it at the reduction ratio calculated in step S304. The PDL interpreter 203 holds the generated image data in the job data management unit 209. In this embodiment, the reduction process is performed when the logical coordinates specified by the drawing command in the PDL data are converted into pixel coordinates. Specifically, a transformation matrix reflecting the reduction ratio is connected to a coordinate transformation matrix from logical coordinates to pixel coordinates. Then, a drawing process using the connected matrix is performed. However, this does not limit the reduction processing in the present embodiment, and a configuration in which image data after rendering at the same magnification is reduced and converted may be used. Further, the reduction processing at this time may be reduction with image interpolation instead of simple reduction by thinning. Any reduction processing method may be used as long as it is a linear reduction processing that maintains the occupation ratio of the content in the image.

次に、ステップS306においてシームカービング処理部208は、ステップS305で生成されたレンダリング済み画像の重要度マップ(エネルギーマップ)を生成する。重要度マップは画像の各ピクセルに対応した重要度を8ビット、つまり256段階で表現したデータである。重要度マップの生成は画像に例えばエッジ強調フィルタを適応して生成する。エッジ強調フィルタはラプラシアンフィルタやプリューウィットフィルタ、ソーベルフィルタ等、既存の手法を適用する。ただし、重要度マップの生成方法はこれに限定されるものではなく、輝度勾配によるL1ノルムやL2ノルム、視覚顕著性マップ、Hog(Historam of Gradient)などを利用しても構わない。   Next, in step S306, the seam carving processing unit 208 generates an importance map (energy map) of the rendered image generated in step S305. The importance map is data representing the importance corresponding to each pixel of the image in 8 bits, that is, 256 levels. The importance map is generated by applying, for example, an edge enhancement filter to the image. As the edge enhancement filter, an existing method such as a Laplacian filter, a Prewitt filter, or a Sobel filter is applied. However, the importance map generation method is not limited to this, and an L1 norm, an L2 norm based on a luminance gradient, a visual saliency map, Hog (Historm of Gradient), or the like may be used.

次に、ステップS307においてシームカービング処理部208は、ステップS3065で生成した重要度マップを用いて重要度の低いシームを探索してステップS305で生成された画像から削除する。シームとは1ピクセルのパスであり、シーム内の各ピクセルは上下左右、左上、右上、左下、右下の8方向のいずれかで連結される。画像を縦断する縦シームと画像を横断する横シームの2種類があり、それぞれの方向において進行方向斜めの範囲内で連結される。例えば、縦シーム内のピクセルは左下、下、右下のいずれかの次のピクセルと連結される。シーム探索の方法に関しては後述する。ステップS307においてシームカービング処理部208は、縦シームと横シームを一つずつ見つけて削除する。即ち、画像は縦横に1ピクセル小さくなる。ただし、縦横いずれかの方向において目標のサイズまで縮小されている場合は、当該方向のシームの探索と削除は行わない。   Next, in step S307, the seam carving processing unit 208 searches for the low importance seam using the importance map generated in step S3065 and deletes it from the image generated in step S305. A seam is a one-pixel pass, and each pixel in the seam is connected in one of eight directions: up, down, left, right, upper left, upper right, lower left, and lower right. There are two types, a vertical seam that traverses the image and a horizontal seam that traverses the image, and each direction is connected within an oblique range of the traveling direction. For example, a pixel in a vertical seam is connected to the next pixel in the lower left, lower, or lower right. The seam search method will be described later. In step S307, the seam carving processing unit 208 finds and deletes one vertical seam and one horizontal seam. That is, the image is reduced by one pixel vertically and horizontally. However, when the target size is reduced in either the vertical or horizontal direction, the search and deletion of the seam in that direction is not performed.

ステップS308においてシームカービング処理部208は目標サイズ、即ちステップS303で算出した「シームカービング後の画像サイズ」まで縮小されたか否か判定する。縮小されたと判定した場合はステップS309へ進み、縮小されていないと判定した場合はステップS306へ戻り、シームカービングによる画像縮小処理を継続する。   In step S308, the seam carving processing unit 208 determines whether the image has been reduced to the target size, that is, the “image size after seam carving” calculated in step S303. If it is determined that the image has been reduced, the process proceeds to step S309. If it is determined that the image has not been reduced, the process returns to step S306, and the image reduction process by seam carving is continued.

ステップS309においてPDLインタプリタ203は、全ページの処理が終了したか否かを判定する。全ページの処理が終了したと判定した場合はステップS310へ進む。全ページの処理が終了していないと判定した場合はステップS304へ戻り、残りのページの処理を実行する。   In step S309, the PDL interpreter 203 determines whether all pages have been processed. If it is determined that all pages have been processed, the process proceeds to step S310. If it is determined that all the pages have not been processed, the process returns to step S304, and the remaining pages are processed.

ステップS310においてレイアウタ207は、シームカービングによる画像縮小処理済みの各ページをページ集約レイアウトに配置する。例えば、4in1の場合はシームカービングによる画像縮小処理済みの画像4枚を左上、右上、左下、右下の順番にならべて一枚の画像に合成する。ページが不足する場合は空白画像が代わりに配置される。レイアウタ207は合成した画像を示す画像データをジョブデータ管理部209に保存する。   In step S310, the layouter 207 arranges each page that has undergone image reduction processing by seam carving in the page aggregation layout. For example, in the case of 4 in 1, four images that have been subjected to image reduction processing by seam carving are combined into one image in the order of upper left, upper right, lower left, and lower right. If there are not enough pages, a blank image is placed instead. The layouter 207 stores image data indicating the synthesized image in the job data management unit 209.

ステップS302でジョブチケットにページ集約が指定されていないと判定した場合、ステップS311においてPDLインタプリタ203は、全ページを等倍でレンダリングする。   If it is determined in step S302 that page aggregation is not specified in the job ticket, in step S311, the PDL interpreter 203 renders all pages at the same magnification.

以上に示したように、本実施例ではページ集約のレイアウトを実現するにあたり、個々のページを2段階で縮小する。最初に単純縮小を実行し、次にシームカービングによる縮小を実行する。これは、シームカービングによる縮小のみを行った場合に、画像弊害や画像加工により操作者が感じる違和感が強くなり過ぎるためである。また、ページ集約レイアウトが指定された場合のみ、シームカービングを実施するのは操作者の意図を反映することができるからである。つまり、ページ集約により多少の視認性が低下しても、省資源と閲覧性を操作者が優先していると判定することができる。つまり、操作者は元画像との同一性に強い執着が無いと判定することができるので、視認性を優先したシームカービングの適用が適当と判定できる。   As described above, in the present embodiment, when realizing a page aggregation layout, each page is reduced in two stages. First, simple reduction is performed, and then reduction by seam carving is performed. This is because, when only the reduction by seam carving is performed, the image detriment and the uncomfortable feeling felt by the operator due to image processing become too strong. Also, the seam carving is performed only when the page aggregation layout is designated because the intention of the operator can be reflected. In other words, even if the visibility is somewhat reduced due to page aggregation, it can be determined that the operator gives priority to resource saving and browsing. In other words, since the operator can determine that there is no strong attachment to the original image, it can be determined that application of seam carving giving priority to visibility is appropriate.

また、シームカービングによる縮小率を画像処理の設定に応じて変更することにより、情報選別の効果と画像加工のバランスを最適に制御することも可能となる。   Further, by changing the reduction rate by seam carving according to the setting of image processing, it is possible to optimally control the information selection effect and the balance of image processing.

<ジョブチケットによる印刷設定の一覧表>
次に、ジョブチケットの詳細について説明する。表2に示すジョブチケット詳細表は、PDLデータとともに印刷データを構成するジョブチケットで指定可能な印刷設定の一覧表である。印刷設定は例えば‘両面’、‘ページ縮小’、‘省トナー’、‘用紙サイズ’、‘ページ集約’の五つを含む。‘両面’は連続するページを用紙の表面のみに印刷するか、表面、裏面、表面、裏面と交互に印刷する機能であり、属性値として、1:片面、2:両面が指定可能である。‘ページ縮小’はページを指定の縮小率で縮小する機能であり、属性値として、1:なし、2:75%、3:50%が指定可能である。‘省トナー’は印刷時に使用するトナーを削減する機能であり、属性値として、1:しない、2:するが指定可能である。‘用紙サイズ’は出力用紙サイズを指定する設定であり、属性値として、1:A4、2:A3、3:B4が指定可能である。‘ページ集約’は前述した通りである。本実施例では図3のステップS302においてページ集約が指定されているか否かに基づいてシームカービングの適用可否を決定したが、さらなる別の方法も考えられる。例えば、ページ縮小や省トナーが指定されている際、もしくは複合的な条件に応じてシームカービングを適用すると決定することもできる。
<List of print settings by job ticket>
Next, details of the job ticket will be described. The job ticket detail table shown in Table 2 is a list of print settings that can be specified by a job ticket that constitutes print data together with PDL data. The print settings include, for example, “double-sided”, “page reduction”, “toner saving”, “paper size”, and “page aggregation”. “Double-sided” is a function for printing a continuous page only on the front side of the paper or printing alternately on the front side, the back side, the front side, and the back side, and it is possible to specify 1: single side, 2: double side as attribute values. “Page reduction” is a function for reducing a page at a specified reduction ratio, and 1: None, 2: 75%, and 3: 50% can be specified as attribute values. “Toner saving” is a function for reducing toner used in printing, and the attribute value can be specified as 1: No, 2: Yes. 'Paper size' is a setting for designating the output paper size, and 1: A4, 2: A3, 3: B4 can be designated as attribute values. 'Page aggregation' is as described above. In this embodiment, the applicability of seam carving is determined based on whether or not page aggregation is specified in step S302 of FIG. 3, but another method is also conceivable. For example, it can be determined that seam carving is applied when page reduction or toner saving is specified, or in accordance with complex conditions.

Figure 2016058868
Figure 2016058868

<シームの探索処理>
次に、ステップS307におけるシームカービング処理部208によるシームの探索処理について、図4を用いて模式的に説明する。シームの探索は重要度マップにおいて累積重要度が最も低い経路を探索する手法であり、動的計画法(ダイナミックプログラミング)の考え方を用いる。
<Seam search process>
Next, seam search processing by the seam carving processing unit 208 in step S307 will be schematically described with reference to FIG. Seam search is a method for searching for a route having the lowest cumulative importance in the importance map, and uses the concept of dynamic programming.

図4(a)は4ピクセル×4ピクセルの画像に対応した重要度マップの例である。各セルが画像の1ピクセルに対応しており、数値が大きいほど重要度が高いことを示す。シームカービング処理部208は、縦シームのうち、即ち第一列目の何れかのピクセルから、第四列目のいずれかのピクセルに至る経路のうち、累積重要度が最小となる経路を探索する。   FIG. 4A shows an example of an importance map corresponding to an image of 4 pixels × 4 pixels. Each cell corresponds to one pixel of the image, and the larger the numerical value, the higher the importance. The seam carving processing unit 208 searches for a path having the minimum cumulative importance among the vertical seams, that is, paths from any pixel in the first column to any pixel in the fourth column. .

最初に第一列目から第二列目の各ピクセルに至る累積重要度が一番小さい経路を調べる。図4(b)に示すように、[1A]→[2A]、[1C]→[2B]、[1C]→[2C]、[1C]→[2D]が第一列目から第二列目の各ピクセルに至る累積重要度最小の経路であることが分かる。第二列目の累積重要度は図4(b)の右図に示すように、順に、4、5、5、4となる。   First, the path with the smallest cumulative importance from the first column to each pixel in the second column is examined. As shown in FIG. 4B, [1A] → [2A], [1C] → [2B], [1C] → [2C], [1C] → [2D] are from the first column to the second column. It can be seen that this is the path with the least cumulative importance to each pixel of the eye. The cumulative importance in the second column is 4, 5, 5, and 4 in order as shown in the right diagram of FIG.

次に第三列目の各ピクセルに至る累積重要度が一番小さい経路を調べる。その際に第二列目の累積重要度を参照する。図4(c)に示すように、[2A]→[3A]、[2A]→[3B]、[2D]→[3C]、[2D]→[3D]が累積重要度最小となる経路であることが分かる。この際に第一列目からの全経路を記憶する必要はなく、第三列目の各ピクセルに至る累積重要度が図4(c)の右図に示すように、順に、9、6、8、6であることを記憶すれば良い。   Next, the path with the smallest cumulative importance reaching each pixel in the third row is examined. At that time, the cumulative importance in the second column is referred to. As shown in FIG. 4 (c), [2A] → [3A], [2A] → [3B], [2D] → [3C], and [2D] → [3D] are paths with the minimum cumulative importance. I understand that there is. At this time, it is not necessary to store all the paths from the first column, and the cumulative importance to each pixel in the third column is 9, 6, in order as shown in the right diagram of FIG. What is necessary is just to memorize | store 8 and 6.

次に第4列目に至る累積重要度が一番小さい経路を調べる。図4(d)に示すように、[3B]→[4A]、[3B]→[4B]、[3B]→[4C]、[3D]→[4C]、[3D]→[4D]が累積重要度最小となる経路であることが分かる。[4C]に至る最小経路が[3B]からと[3D]からとの二つ存在するが、累積重要度最小となる経路のどれか一つを見つければ良いので、どちらか一つを採用すれば良い。第四列目の各ピクセルに至る累積重要度は図4(d)に示すように、順に、7、8、9、8となる。従って、縦シームの下端は[4A]のピクセルであり、その累積重要度が7であることが判明する。   Next, the route with the smallest cumulative importance reaching the fourth column is examined. As shown in FIG. 4D, [3B] → [4A], [3B] → [4B], [3B] → [4C], [3D] → [4C], [3D] → [4D] It can be seen that the route has the minimum cumulative importance. There are two minimum routes from [3B] and [3D] to [4C], but it is sufficient to find one of the routes with the minimum cumulative importance, so either one should be adopted. It ’s fine. The cumulative importance levels reaching each pixel in the fourth column are 7, 8, 9, and 8 in order as shown in FIG. Therefore, it is found that the lower end of the vertical seam is [4A] pixel, and its cumulative importance is 7.

最後に[4A]から遡って累積重要度が最小となるパスをトレースすれば、縦シームが図4(e)に示すように、[1A]→[2A]→[3B]→[4C]であることが判明する。同様の処理を横シームについても行ない、ステップS307ではこのように探索された縦シームと横シームとを削除する。   Finally, tracing the path with the minimum cumulative importance going back from [4A], the vertical seam is [1A] → [2A] → [3B] → [4C] as shown in FIG. It turns out that there is. Similar processing is performed for the horizontal seam, and the vertical seam and the horizontal seam searched in this way are deleted in step S307.

以上説明したように、本実施例によれば、適度なシームカービング処理を適用することにより、重要箇所を保持したレイアウトを提供することができる。すなわち、割り付けページの画像に対して最初に線形な縮小処理を行ない、その後にシームカービング処理を行なうことで、重要箇所を保持しつつ歪が少ないレイアウトの画像を提供することができる。なお、シームカービングは処理負荷の大きい処理であり、シームカービングによる処理を少なくすることで処理時間を短縮することもできる。   As described above, according to this embodiment, it is possible to provide a layout that retains important portions by applying an appropriate seam carving process. That is, by performing a linear reduction process on the image of the layout page first and then performing a seam carving process, it is possible to provide an image with a layout with less distortion while retaining important portions. Seam carving is a process with a large processing load, and the processing time can be shortened by reducing the processing by seam carving.

また、画像の線形な縮小とシームカービングによる縮小とを組み合わせて連続的に適用することにより、シームカービングによる画像弊害や画像加工を一定の範囲内に抑えることが可能となる。一方でシームカービングによる重要情報の選別機能は働くため、線形に縮小するよりも視認性や訴求力に優れた画像が生成できる。   Further, by continuously applying a combination of linear reduction of an image and reduction by seam carving, it is possible to suppress image adverse effects and image processing due to seam carving within a certain range. On the other hand, since the function of selecting important information by seam carving works, it is possible to generate an image with better visibility and appeal than linear reduction.

また、画像データに対する縮小が明示されているか否かを判定することにより、操作者の意図に基づいた処理が可能となる。明示的な縮小は、出力枚数を減らす、もしくは画像領域を小さくすることによる省資源を意図したものとみなして差し支えが無い場合が多い。即ち、シームカービングによる多少の画像弊害や画像加工は許容されるものと判定することができる。   In addition, by determining whether or not reduction of image data is specified, processing based on the operator's intention can be performed. In many cases, the explicit reduction can be regarded as a resource saving by reducing the number of output sheets or reducing the image area. That is, it can be determined that some image defects and image processing due to seam carving are allowed.

つまり、適度な重要情報の選別と操作者の意図の判定とにより、操作者のニーズを適切に組み取った画像処理が可能となる。さらに、線形な縮小とシームカービングによる縮小を組み合わせることにより、シームカービングに伴う処理負荷の軽減という副次的な効果を得ることもできる。   That is, by appropriately selecting important information and determining the operator's intention, it is possible to perform image processing that appropriately incorporates the operator's needs. Further, by combining linear reduction and reduction by seam carving, a secondary effect of reducing the processing load associated with seam carving can be obtained.

<ページ集約レイアウト済みの印刷データ>
実施例1では、画像処理装置においてページ集約処理を行なう例を説明した。実施例2では、他の装置において既にページ集約処理がなされている場合においてシームカービング処理を行なう例を説明する。すなわち、実施例2では、ページ集約レイアウト済みの印刷データに対してシームカービングによる重要情報の選別を適用した画像処理方法を説明する。多くの印刷データはユーザ端末上にインストールされたプリンタドライバにより生成される。プリンタドライバを使ったページ集約レイアウトでは、プリンタドライバによりページ集約レイアウト済みの印刷データが生成される場合が多い。ページ集約済みの印刷データに対して、シームカービングを適用すると、集約レイアウトに含まれる各ページの境界が歪み、元のページ区画が保たれない。例えば4in1の場合、図5(a)に示すように元データは均等に四等分されていたとしても、図5(b)に示すようにページ境界が浸食されてしまう。この結果、ページ内のあるオブジェクトが元々どのページに属したものであるかが不明瞭になってしまう。そこで、実施例2では元々の区画を保ったままシームカービングを適用する方法について説明する。
<Print data with page aggregation layout>
In the first embodiment, the example in which the page aggregation process is performed in the image processing apparatus has been described. In the second embodiment, an example in which seam carving processing is performed when page aggregation processing has already been performed in another apparatus will be described. That is, in the second embodiment, an image processing method in which selection of important information by seam carving is applied to print data that has been subjected to page aggregation layout will be described. Most print data is generated by a printer driver installed on the user terminal. In a page aggregation layout using a printer driver, print data with a page aggregation layout already generated is often generated by the printer driver. When seam carving is applied to print data that has been page-gathered, the boundary of each page included in the gage layout is distorted, and the original page section cannot be maintained. For example, in the case of 4in1, even if the original data is equally divided into four as shown in FIG. 5A, the page boundary is eroded as shown in FIG. 5B. As a result, it becomes unclear to which page an object in the page originally belongs. In the second embodiment, a method for applying seam carving while maintaining the original section will be described.

<ページ集約レイアウト済み印刷データの再レイアウトフロー>
図6は、コントローラ内で実行されるページ集約レイアウト済みの印刷データの再レイアウト処理を行なうフローを表すフローチャートである。なお、本フローは図3の画像レイアウトの基本フローと類似する部分も多いため、異なる点を中心に説明する。
<Re-layout flow of print data with page aggregation layout>
FIG. 6 is a flowchart showing a flow for performing the re-layout process of the print data having been subjected to the page aggregation layout executed in the controller. Since this flow has many parts that are similar to the basic flow of the image layout in FIG. 3, different points will be mainly described.

最初にステップS601においてデータ受信部201は、印刷データを受信し、PDLデータとジョブチケットを取り出してジョブデータ管理部209に保存する。ジョブチケットには、印刷データがページ集約レイアウト済みか否かの情報が付加されている。ページ集約設定の属性として、例えば「5」(2in1済み)、「6」(4in1済み)、「7」(8in1済み)が実施例1の属性に対して、または実施例1の属性の代わりに追加されるものとする。   First, in step S601, the data reception unit 201 receives print data, extracts PDL data and a job ticket, and stores them in the job data management unit 209. Information indicating whether the print data has been subjected to the page aggregation layout is added to the job ticket. For example, “5” (2 in 1 already completed), “6” (4 in 1 already completed), and “7” (8 in 1 already completed) are attributes for the page aggregation setting instead of the attributes of the first embodiment. Shall be added.

ステップS602においてジョブ制御部202は、ジョブチケットにページ集約済みが指定されているか否かを判定する。ページ集約済みが指定されていると判定した場合はステップS603へ進み、Noの場合はステップS610へ進む。   In step S <b> 602, the job control unit 202 determines whether page aggregation has been specified in the job ticket. If it is determined that page aggregation has been designated, the process proceeds to step S603, and if No, the process proceeds to step S610.

次のステップS603からステップS607の処理は、ページ集約済みのページが複数ある場合、各ページ毎に処理が行なわれる。ステップS603においてPDLインタプリタ203は、当該ページのPDLデータを解釈し、レンダリングを実行し、画像データを生成して、ジョブデータ管理部209に保存する。   The processes from the next step S603 to step S607 are performed for each page when there are a plurality of pages that have been consolidated. In step S603, the PDL interpreter 203 interprets the PDL data of the page, executes rendering, generates image data, and stores the image data in the job data management unit 209.

ステップS604においてレイアウタ207は、ページ集約により割り付けられたページ数を元に各ページの画像上での区画を決定する。例えば、4in1済みの場合は図5(a)のように四つの区画を決定する。   In step S604, the layouter 207 determines a section on the image of each page based on the number of pages allocated by page aggregation. For example, when 4 in 1 has been completed, four sections are determined as shown in FIG.

ステップS605においてシームカービング処理部208は、レンダリング済み画像の重要度マップ(エネルギーマップ)を生成する。この処理は図3のステップS306と同様である。   In step S605, the seam carving processing unit 208 generates an importance map (energy map) of the rendered image. This process is the same as step S306 in FIG.

ステップS606においてシームカービング処理部208は、区画毎に重要度(エネルギー)の低いシームを探索して、画像から削除する。ここでは区画毎に図3のステップS307と同様の処理を実行する。シームは各区画の中では連結しているが、区画間では連結するとは限らず、多くの場合は非連結である。複数の区画から同時に縦シームと横シームを削除するため、一度に複数ピクセル分画像が縮小される。例えば、4in1済みの場合は一度に2ピクセルずつ縦横が小さくなる。   In step S606, the seam carving processing unit 208 searches for a seam with low importance (energy) for each section and deletes it from the image. Here, the same processing as step S307 in FIG. 3 is executed for each section. Seams are connected within each compartment, but are not necessarily connected between compartments and are often unconnected. Since the vertical seam and the horizontal seam are simultaneously deleted from the plurality of sections, the image is reduced by a plurality of pixels at a time. For example, in the case of 4 in 1, the vertical and horizontal directions are reduced by 2 pixels at a time.

ステップS607においてシームカービング処理部208は、目標サイズまで縮小されたか否か判定する。目標サイズは実施例1と同様に表1のシームカービング縮小率対応表に基づいて決定する。目標サイズまで縮小されたと判定した場合はステップS608へ進み、目標サイズまで縮小されていないと判定した場合はステップS605へ戻り、シームカービングによる画像縮小処理を継続する。   In step S607, the seam carving processing unit 208 determines whether the size has been reduced to the target size. The target size is determined based on the seam carving reduction ratio correspondence table in Table 1 as in the first embodiment. If it is determined that the image has been reduced to the target size, the process proceeds to step S608. If it is determined that the image has not been reduced to the target size, the process returns to step S605, and the image reduction process by seam carving is continued.

ステップS608においてPDLインタプリタ203は全ページの処理が終了したか否かを判定する。全ページの処理が終了したと判定した場合はステップS609へ進み、全ページの処理が終了していないと判定した場合はステップS603へ戻り、残りのページの処理を実行する。   In step S608, the PDL interpreter 203 determines whether or not all pages have been processed. If it is determined that all pages have been processed, the process proceeds to step S609. If it is determined that all pages have not been processed, the process returns to step S603, and the remaining pages are processed.

ステップS609においてレイアウタ207は各ページを元の大きさまで補間拡大する。すなわち、シームカービング処理によって各区画に対応する領域(すなわち、割り付けされたページの画像)が縮小されているので、各区画に対応する領域を基の大きさまで補間拡大する。この処理を各ページ毎に行なう。   In step S609, the layouter 207 interpolates and enlarges each page to the original size. That is, since the area corresponding to each section (that is, the image of the allocated page) is reduced by the seam carving process, the area corresponding to each section is interpolated and enlarged to the original size. This process is performed for each page.

また、ステップS602においてページ集約済みの印刷データではないと判定された場合、ステップS610においてPDLインタプリタ203は、PDLデータの全ページを等倍でレンダリングする。なお、ステップS610の代わりに、図3のステップS302に処理を進めても良い。すなわち、ページ集約済みの印刷データでないと判定した場合には、図3のステップS302でジョブチケットにページ集約が指定されているかを判定し、その後は図3の処理を行なってもよい。   If it is determined in step S602 that the print data is not page-gathered, the PDL interpreter 203 renders all pages of the PDL data at the same magnification in step S610. Instead of step S610, the process may proceed to step S302 in FIG. That is, if it is determined that the print data has not been page consolidated, it may be determined in step S302 in FIG. 3 whether page consolidation is designated in the job ticket, and then the processing in FIG. 3 may be performed.

以上に示したように、ページ集約済みの画像に対してシームカービング後に元の大きさまで補間拡大することにより、重要情報の選別と強調が可能となる。また、集約済みのページ区画毎にシームの探索と削除を実行することによって、元印刷データのページ区画を維持したままシームカービング処理を適用することが可能となる。なお、本実施例に示した画像処理は、印刷データに限らずスキャンされた画像データに対しても適用可能であり、その効果が印刷データに限定されるものではない。スキャンされた画像データの割り付けページ数は、レイアウタ207がユーザからの入力情報によって取得してもよいし、レイアウタ207がスキャンされた画像データを解析して、空白領域の位置に応じて推定されるレイアウトから取得してもよい。スキャン画像データに適用する場合には、例えばページ集約済みの画像が用紙上に印刷された原稿をコピーする場面が考えられる。このとき、本実施例の処理によれば、等倍でコピー指示がされた場合であっても、印刷された用紙上の画像は次のようになっている。すなわち、複数のページ画像に対応する区画のサイズが原稿と同じであり、かつ、用紙上に印刷された画像の各ページ画像に含まれる第一のオブジェクトの変倍率と、前記第一のオブジェクトとは異なる第二のオブジェクトの変倍率とが異なることになる。つまり、印刷された用紙と原稿とを比較すると、重要情報に対応するオブジェクトは印刷された用紙では拡大されているのに対して、シームに対応するような重要度の低いオブジェクト(の一部)は削除されて縮小されることになる。   As described above, it is possible to select and emphasize important information by interpolating and enlarging the original image size after seam carving on the page-combined image. Further, by performing seam search and deletion for each aggregated page section, it is possible to apply the seam carving process while maintaining the page section of the original print data. Note that the image processing shown in the present embodiment can be applied not only to print data but also to scanned image data, and the effect is not limited to print data. The layout page number of the scanned image data may be acquired by the layouter 207 based on input information from the user, or the image data scanned by the layouter 207 is analyzed and estimated according to the position of the blank area. It may be acquired from the layout. When applied to scan image data, for example, a scene where a document on which a page-gathered image is printed on paper is copied can be considered. At this time, according to the processing of the present embodiment, even when a copy instruction is issued at the same magnification, the image on the printed paper is as follows. That is, the size of the section corresponding to a plurality of page images is the same as that of the document, and the scaling factor of the first object included in each page image of the image printed on the paper, and the first object Will have different scaling factors for different second objects. In other words, when the printed paper and the original are compared, the object corresponding to the important information is enlarged on the printed paper, whereas the low importance object corresponding to the seam (part) Will be deleted and reduced.

また、本実施例では、ページ集約済みの印刷データに対して、シームカービング処理を行ない、その後、シームカービングによって縮小されたページ画像を元のサイズに戻す拡大処理を行なう例を説明したが、逆の処理でもよい。すなわち、ページ集約済みの印刷データに対して、シームカービングの縮小率を考慮して、各区画のページ画像を拡大処理する。そして、その拡大処理された各区画のページ画像に対してシームカービング処理を行なうような形態でもよい。   In the present embodiment, an example is described in which seam carving processing is performed on print data that has been page-combined, and then enlargement processing is performed to return the page image reduced by seam carving to the original size. It may be the process. That is, the page image of each section is enlarged for the print data that has been page-gathered in consideration of the reduction rate of seam carving. And the form which performs a seam carving process with respect to the page image of each division by which the expansion process was carried out may be sufficient.

<ページ集約におけるページ割り付け数の増加>
実施例3では、ページ集約におけるページ割り付け数を増加させる方法について説明する。
<Increase in the number of pages allocated in page aggregation>
In the third embodiment, a method for increasing the page allocation number in page aggregation will be described.

図7はページ集約数増加時のレイアウト処理フロー図であり、実施例1の図3のステップS303の処理内容を変更したものである。ステップS703においてレイアウタ207は、画像の割り付け数を増やす。例えば2in1を4in1に、4in1を8in1に変更する。なお、元々、1in1であった場合は2in1には変更しない。2in1には集約レイアウトに対する意図が認められるが、1in1にはその意図が認められないからである。その後、増やした割り付け数を元にレイアウタ207は、単純縮小後の画像サイズとシームカービング後の画像サイズを決定する。その他の処理は図3で説明した処理と同一なので説明は省略する。   FIG. 7 is a flow chart of layout processing when the number of page aggregations is increased. The processing content of step S303 in FIG. 3 of the first embodiment is changed. In step S703, the layouter 207 increases the number of allocated images. For example, 2in1 is changed to 4in1, and 4in1 is changed to 8in1. If it was originally 1 in 1, it is not changed to 2 in 1. This is because the intention for the aggregate layout is recognized in 2in1, but the intention is not recognized in 1in1. Thereafter, the layouter 207 determines the image size after simple reduction and the image size after seam carving based on the increased number of allocations. The other processes are the same as those described with reference to FIG.

シームカービング処理による重要情報の選別と強調が働くので、より割り付け数を増やしたとしても、可読性の低下を抑えることができる。より一層の省資源化と情報集約による一覧性の向上を実現することができる。   Since the selection and emphasis of important information by seam carving processing works, even if the number of allocations is increased, it is possible to suppress a decrease in readability. It is possible to further improve the listability by further resource saving and information aggregation.

<その他の実施例>
上記の実施例では、画像処理装置としてプリンタを例に挙げて説明した。しかしながら、例えば画像処理装置としてコンピュータを用いてもよい。例えば、コンピュータ上に実装されたプリンタドライバが、上述したようなレイアウトが施されたデータ(例えばPDFデータやビットマップデータ)を出力するような構成であってもい。
<Other examples>
In the above embodiment, a printer is described as an example of the image processing apparatus. However, for example, a computer may be used as the image processing apparatus. For example, a printer driver mounted on a computer may be configured to output data (for example, PDF data or bitmap data) having the layout described above.

本発明の目的は、以下の処理を実行することによっても達成される。即ち、前記実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出す処理である。   The object of the present invention can also be achieved by executing the following processing. That is, a storage medium in which a program code of software that realizes the functions of the above-described embodiment is supplied to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus is stored in the storage medium. Is a process of reading.

この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention.

Claims (18)

ページ集約したレイアウトに画像を配置する指示を取得する取得手段と、
配置対象の画像を示す画像データを線形な変倍により縮小する第一の縮小手段と、
前記第一の縮小手段で縮小された画像データから重要度の低いシームを削除することにより前記第一の縮小手段で縮小された画像データをさらに縮小する第二の縮小手段と
を有することを特徴とする画像処理装置。
An acquisition means for acquiring an instruction to arrange an image in a page-aggregated layout;
First reduction means for reducing image data indicating an arrangement target image by linear scaling;
A second reduction means for further reducing the image data reduced by the first reduction means by deleting a seam having low importance from the image data reduced by the first reduction means. An image processing apparatus.
前記第二の縮小手段は、集約するページ数に応じて前記第二の縮小手段で用いる縮小率を決定することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the second reduction unit determines a reduction ratio to be used by the second reduction unit according to the number of pages to be aggregated. 前記第二の縮小手段は、集約するページ数が多い場合、集約するページ数が少ない場合よりも高い縮小率を前記第二の縮小手段で用いる縮小率として決定することを特徴とする請求項2に記載の画像処理装置。   3. The second reduction unit determines a higher reduction rate as a reduction rate used by the second reduction unit when the number of pages to be aggregated is larger than when the number of pages to be aggregated is small. An image processing apparatus according to 1. 前記第一の縮小手段は、前記第二の縮小手段で縮小される前の画像サイズに基づいて、前記第一の縮小手段で用いる縮小率を決定することを特徴とする請求項2または3に記載の画像処理装置。   4. The method according to claim 2, wherein the first reduction unit determines a reduction ratio used in the first reduction unit based on an image size before being reduced by the second reduction unit. The image processing apparatus described. 前記第二の縮小手段で縮小される前の画像サイズは、前記第二の縮小手段で縮小された後の画像サイズと、前記第二の縮小手段で用いる縮小率とに基づいて決定されることを特徴とする請求項4に記載の画像処理装置。   The image size before being reduced by the second reduction means is determined based on the image size after being reduced by the second reduction means and the reduction ratio used by the second reduction means. The image processing apparatus according to claim 4. 前記第二の縮小手段で縮小された後の画像サイズは、出力用紙、出力解像度、及び集約するページ数に基づいて決定されることを特徴とする請求項5に記載の画像処理装置。   The image processing apparatus according to claim 5, wherein the image size after being reduced by the second reduction unit is determined based on an output sheet, an output resolution, and a number of pages to be aggregated. 前記取得手段は、前記レイアウトに含まれる集約されるページ数を増やす指示をさらに取得し、
前記第一の縮小手段及び前記第二の縮小手段は、前記ページ数を増やしたレイアウトに応じて縮小を行なうことを特徴とする請求項1から6のいずれか一項に記載の画像処理装置。
The acquisition means further acquires an instruction to increase the number of pages to be aggregated included in the layout,
The image processing apparatus according to claim 1, wherein the first reduction unit and the second reduction unit perform reduction according to a layout in which the number of pages is increased.
前記第二の縮小手段は、
画像データにおける各ピクセルの重要度を表す重要度マップを生成し、
前記重要度マップを探索することで重要度の低いシームを決定し、
決定したシームを削除することを画像が所定のサイズになるまで繰り返すことで前記画像データを縮小することを特徴とする請求項1から7のいずれか一項に記載の画像処理装置。
The second reducing means includes
Generate an importance map that represents the importance of each pixel in the image data,
Search the importance map to determine a low importance seam,
The image processing apparatus according to claim 1, wherein the image data is reduced by repeatedly deleting the determined seam until the image has a predetermined size.
ページ集約済みの画像を示す画像データを取得する取得手段と、
前記画像に割り付けられたページ数に応じて前記画像上の区画を決定する決定手段と、
前記決定された区画毎に、重要度の低いシームをそれぞれの区画から削除することにより画像データを縮小する縮小手段と、
シームの削除によって縮小された区画が縮小される前と同じサイズの区画になるまで、線形な変倍により前記縮小された画像データを拡大する拡大手段と
を有することを特徴とする画像処理装置。
An acquisition means for acquiring image data indicating a page-aggregated image;
Determining means for determining a section on the image according to the number of pages allocated to the image;
Reduction means for reducing the image data by deleting a seam of low importance for each determined section from each section;
An image processing apparatus comprising: an enlarging unit that enlarges the reduced image data by linear scaling until a section reduced by seam deletion becomes a section of the same size as before the reduction.
ページ集約済みの画像を示す画像データを取得する取得手段と、
前記画像に割り付けられたページ数に応じて前記画像上の区画を決定する第一の決定手段と、
前記決定された区画毎に、重要度の低いシームをそれぞれの区画から削除することにより画像データを縮小する縮小率を決定する第二の決定手段と、
前記取得した画像データを前記決定された縮小率に基づいて線形な変倍によって拡大する拡大手段と
前記拡大手段で拡大された画像データを前記シームの削除によって縮小する縮小手段と
を有することを特徴とする画像処理装置。
An acquisition means for acquiring image data indicating a page-aggregated image;
First determining means for determining a section on the image according to the number of pages allocated to the image;
Second determining means for determining a reduction ratio for reducing the image data by deleting a seam having a low importance from each of the determined sections;
An enlargement means for enlarging the acquired image data by linear scaling based on the determined reduction ratio; and a reduction means for reducing the image data enlarged by the enlargement means by deleting the seam. An image processing apparatus.
複数のページ画像が集約された画像を示す画像データを取得する取得手段と、
前記集約された画像を1枚の用紙に印刷する印刷手段とを有し、
前記印刷手段で1枚の用紙上に印刷された画像は、前記複数のページ画像に対応する区画のサイズが同じであり、かつ、前記印刷された画像の各ページ画像に含まれる第一のオブジェクトの変倍率と、前記第一のオブジェクトとは異なる第二のオブジェクトの変倍率とが異なることを特徴とする画像処理装置。
Acquisition means for acquiring image data indicating an image in which a plurality of page images are aggregated;
Printing means for printing the aggregated image on a sheet of paper,
The image printed on one sheet by the printing unit has the same size of the section corresponding to the plurality of page images, and the first object included in each page image of the printed image An image processing apparatus characterized in that a scaling factor of a second object different from the first object is different.
複数のページ画像が集約された画像を示す画像データと、前記画像データを等倍で印刷する指示とを取得する取得手段と、
前記取得手段で取得した指示に従って、前記集約された画像を1枚の用紙に等倍で印刷する印刷手段とを有し、
前記印刷手段で1枚の用紙上に印刷された画像は、前記複数のページ画像に対応する区画のサイズが同じであり、かつ、前記印刷された画像の各ページ画像に含まれる第一のオブジェクトの変倍率と、前記第一のオブジェクトとは異なる第二のオブジェクトの変倍率とが異なることを特徴とする画像処理装置。
Acquisition means for acquiring image data indicating an image in which a plurality of page images are aggregated, and an instruction to print the image data at an equal magnification;
Printing means for printing the aggregated image on a sheet of paper at an equal magnification according to the instruction acquired by the acquisition means;
The image printed on one sheet by the printing unit has the same size of the section corresponding to the plurality of page images, and the first object included in each page image of the printed image An image processing apparatus characterized in that a scaling factor of a second object different from the first object is different.
ページ集約したレイアウトに画像を配置する指示を取得する取得ステップと、
配置対象の画像を示す画像データを線形な変倍により縮小する第一の縮小ステップと、
前記第一の縮小ステップで縮小された画像データから重要度の低いシームを削除することにより前記第一の縮小ステップで縮小された画像データをさらに縮小する第二の縮小ステップと
を有することを特徴とする画像処理方法。
An acquisition step of acquiring an instruction to arrange an image in a page-aggregated layout;
A first reduction step for reducing image data indicating an image to be arranged by linear scaling;
A second reduction step of further reducing the image data reduced in the first reduction step by deleting a seam having low importance from the image data reduced in the first reduction step. An image processing method.
ページ集約済みの画像を示す画像データを取得する取得ステップと、
前記画像に割り付けられたページ数に応じて前記画像上の区画を決定する決定ステップと、
前記決定された区画毎に、重要度の低いシームをそれぞれの区画から削除することにより画像データを縮小する縮小ステップと、
シームの削除によって縮小された区画が縮小される前と同じサイズの区画になるまで、線形な変倍により前記縮小された画像データを拡大する拡大ステップと
を有することを特徴とする画像処理方法。
An acquisition step of acquiring image data indicating an image that has been page-aggregated;
A determination step of determining a section on the image according to the number of pages allocated to the image;
For each determined partition, a reduction step of reducing the image data by deleting a less important seam from each partition;
An image processing method comprising: an enlarging step of enlarging the reduced image data by linear scaling until a section reduced by seam removal becomes a section of the same size as before the reduction.
ページ集約済みの画像を示す画像データを取得する取得ステップと、
前記画像に割り付けられたページ数に応じて前記画像上の区画を決定する第一の決定ステップと、
前記決定された区画毎に、重要度の低いシームをそれぞれの区画から削除することにより画像データを縮小する縮小率を決定する第二の決定ステップと、
前記取得した画像データを前記決定された縮小率に基づいて線形な変倍によって拡大する拡大ステップと
前記拡大ステップで拡大された画像データを前記シームの削除によって縮小する縮小ステップと
を有することを特徴とする画像処理方法。
An acquisition step of acquiring image data indicating an image that has been page-aggregated;
A first determination step of determining a section on the image according to the number of pages allocated to the image;
A second determination step for determining a reduction ratio for reducing the image data by deleting a low-importance seam from each of the determined sections;
An enlargement step of enlarging the acquired image data by linear scaling based on the determined reduction ratio; and a reduction step of reducing the image data enlarged in the enlargement step by deleting the seam. An image processing method.
複数のページ画像が集約された画像を示す画像データを取得する取得ステップと、
前記集約された画像を1枚の用紙に印刷する印刷ステップとを有し、
前記印刷ステップで1枚の用紙上に印刷された画像は、前記複数のページ画像に対応する区画のサイズが同じであり、かつ、前記印刷された画像の各ページ画像に含まれる第一のオブジェクトの変倍率と、前記第一のオブジェクトとは異なる第二のオブジェクトの変倍率とが異なることを特徴とする画像処理方法。
An acquisition step of acquiring image data indicating an image in which a plurality of page images are aggregated;
A printing step for printing the aggregated image on a sheet of paper,
The images printed on one sheet in the printing step have the same section size corresponding to the plurality of page images, and the first object included in each page image of the printed images And a scaling factor of a second object different from the first object is different from the first object.
複数のページ画像が集約された画像を示す画像データと、前記画像データを等倍で印刷する指示とを取得する取得ステップと、
前記取得ステップで取得した指示に従って、前記集約された画像を1枚の用紙に等倍で印刷する印刷ステップとを有し、
前記印刷ステップで1枚の用紙上に印刷された画像は、前記複数のページ画像に対応する区画のサイズが同じであり、かつ、前記印刷された画像の各ページ画像に含まれる第一のオブジェクトの変倍率と、前記第一のオブジェクトとは異なる第二のオブジェクトの変倍率とが異なることを特徴とする画像処理方法。
An acquisition step of acquiring image data indicating an image in which a plurality of page images are aggregated, and an instruction to print the image data at an equal magnification;
A printing step of printing the aggregated image on a sheet of paper at an equal magnification according to the instruction acquired in the acquisition step;
The images printed on one sheet in the printing step have the same section size corresponding to the plurality of page images, and the first object included in each page image of the printed images And a scaling factor of a second object different from the first object is different from the first object.
コンピュータを請求項1から12のいずれか一項に記載の画像処理装置として機能させるためのプログラム。   A program for causing a computer to function as the image processing apparatus according to any one of claims 1 to 12.
JP2014183236A 2014-09-09 2014-09-09 Image processing system and image processing method Pending JP2016058868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014183236A JP2016058868A (en) 2014-09-09 2014-09-09 Image processing system and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014183236A JP2016058868A (en) 2014-09-09 2014-09-09 Image processing system and image processing method

Publications (1)

Publication Number Publication Date
JP2016058868A true JP2016058868A (en) 2016-04-21

Family

ID=55759140

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014183236A Pending JP2016058868A (en) 2014-09-09 2014-09-09 Image processing system and image processing method

Country Status (1)

Country Link
JP (1) JP2016058868A (en)

Similar Documents

Publication Publication Date Title
US9250836B2 (en) Mobile apparatus and print controlling method
US10762401B2 (en) Image processing apparatus controlling the order of storing decompressed data, and method thereof
JP2012049826A (en) Image processing apparatus and image processing method
JP2012200955A (en) Image processing system
KR101679681B1 (en) Image forming apparatus and image forming method
JP4510847B2 (en) Image processing apparatus and image processing program
JP6202908B2 (en) Image processing apparatus, image processing method, and program
JP5590960B2 (en) Image forming apparatus, image forming method, and program
JP2012178042A (en) Image forming apparatus, image forming method, and program
JP2012257202A (en) Image processing apparatus and processing method of the same
JP6904717B2 (en) Image processing equipment, its control method, and programs
JP6590606B2 (en) Image processing apparatus, image processing method, and program
JP2016058868A (en) Image processing system and image processing method
EP3133487A1 (en) Drawing command processing apparatus, drawing command processing method, and program
JP6755644B2 (en) Character processing device, character processing method, character processing program
JP6882099B2 (en) Image processing equipment, image processing methods and programs
JP2016206934A (en) Image processing device, image processing method and program
JPH0729021A (en) Picture output device
JP6238589B2 (en) Image forming apparatus, image processing method, and program
JP2013252622A (en) Image forming device, method, and program
US11132168B2 (en) Display method, display device, and display program
JP6016483B2 (en) Image processing apparatus, image forming method, and program
JP2010171597A (en) Image processing apparatus
US8976418B2 (en) Image processing apparatus for determining a X coordinate value of an edge on a current scan line from among a plurality of X coordinate values
JP2006031086A (en) Print processing method