JP4780126B2 - Image processing apparatus, image forming apparatus, and program - Google Patents
Image processing apparatus, image forming apparatus, and program Download PDFInfo
- Publication number
- JP4780126B2 JP4780126B2 JP2008060852A JP2008060852A JP4780126B2 JP 4780126 B2 JP4780126 B2 JP 4780126B2 JP 2008060852 A JP2008060852 A JP 2008060852A JP 2008060852 A JP2008060852 A JP 2008060852A JP 4780126 B2 JP4780126 B2 JP 4780126B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- synthesized
- image data
- line
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
本発明は、画像処理装置、画像形成システムおよびプログラムに関する。 The present invention relates to an image processing apparatus, an image forming system, and a program.
複写機や印刷装置から得られた印刷物を整理、管理するために、印刷物に番号(ナンバリング情報)等のスタンプ画像を押印することや、読み込み原稿画像に対して、「複写禁止」や「マル秘」等のスタンプ画像を押印するような画像形成システムが開示されている(例えば、特許文献1参照。)。 In order to organize and manage the printed materials obtained from copiers and printing devices, stamp images such as numbers (numbering information) are stamped on the printed materials, and “copy prohibited” and “secret” An image forming system that stamps a stamp image such as "" is disclosed (for example, see Patent Document 1).
この特許文献1に開示された画像形成システムは、原稿読み取り装置から読み取った原稿画像の画像データと生成されたスタンプ画像データを画像合成回路を介して合成することにより、印刷物に対する押印を自動的に行うシステムである。
The image forming system disclosed in this
しかし、原稿画像データとスタンプ画像データの合成処理をハードウェアの画像合成回路により実現した場合、合成処理を行うための専用のハードウェア回路が必要となりコストアップの要因となる。そのため、このような画像合成回路を必要とせずに画像合成処理を実現しようとした場合、ソフトウェア処理により画像合成処理を実現することが考えられる。 However, when the composition processing of the document image data and the stamp image data is realized by a hardware image composition circuit, a dedicated hardware circuit for performing the composition processing is required, which causes an increase in cost. Therefore, when an image composition process is to be realized without requiring such an image composition circuit, it is conceivable to realize the image composition process by software processing.
しかし、原稿画像データとスタンプ画像データの合成処理を単純にソフトウェア処理により実現しようとすると、原稿画像データの各画素毎に合成すべき画素データの有無を判定する必要があるためソフトウェア処理に大きな負担がかかってしまう。特に、画像サイズが大きな画像形成システムにおいてソフトウェア処理により画像合成処理を実行しようとすると、このソフトウェア処理における負担はさらに大きなものとなり他の処理に遅延が生じる等の弊害が発生しかねない。 However, if the composition processing of the document image data and the stamp image data is to be realized simply by software processing, it is necessary to determine the presence or absence of pixel data to be combined for each pixel of the document image data. It will take. In particular, if an image composition process is to be executed by software processing in an image forming system having a large image size, the burden on this software process becomes even larger, and other problems such as delays in other processes may occur.
本発明の目的は、スタンプ画像のような合成画像を出力画像データに合成するための画像合成処理を、大きな負担をかけることなくソフトウェア処理により実現可能な画像処理装置、画像形成システムおよびプログラムを提供することである。 An object of the present invention is to provide an image processing apparatus, an image forming system, and a program capable of realizing image synthesis processing for synthesizing a composite image such as a stamp image with output image data by software processing without imposing a heavy burden. It is to be.
[画像処理装置]
請求項1に係る本発明は、合成画像が合成される合成対象の矩形の画像データをある一定量のデータ毎に分割する分割手段と、
前記分割手段により分割された一定量の画像データを格納する格納手段と、
前記格納手段に格納された一定量の画像データの各ライン毎に、合成画像が合成される対象の画素が含まれるか否かを判定する判定手段と、
前記判定手段により合成画像が合成される対象の画素が含まれると判定された場合に、合成画像の先頭画素を画像データに合成すべき位置である合成開始点と、該合成画像の幅および長さの情報、ならびに合成対象の画像データのデータサイズ、前記合成対象の画像データの画像の幅および長さの情報に基づいて、当該ラインのどの画素に合成画像のどの画素のデータを合成すべきであるかを示すアドレス情報を算出する算出手段と、
前記算出手段により算出されたアドレス情報に基づいて、当該ラインの画像データに含まれる画素データに対して合成画像の対応する画素のデータを合成する合成手段と、
前記格納手段に格納された一定量の画像データを順次転送する転送手段とを有する画像処理装置である。
[Image processing device]
According to the first aspect of the present invention, there is provided a dividing unit that divides rectangular image data to be synthesized into a synthesized image into a certain amount of data;
Storage means for storing a fixed amount of image data divided by the dividing means;
Determining means for determining whether or not a target pixel to be synthesized is included for each line of a certain amount of image data stored in the storage means;
When the determination unit determines that the target pixel to be synthesized is included , a synthesis start point that is a position where the first pixel of the synthesized image should be synthesized with the image data, and the width and length of the synthesized image Data of which pixel of the synthesized image should be synthesized with which pixel of the line based on the information on the length, the data size of the image data to be synthesized, and the width and length information of the image of the image data to be synthesized Calculating means for calculating address information indicating whether or not
Based on the address information calculated by the calculating means, combining means for combining the data of the corresponding pixels of the combined image with the pixel data included in the image data of the line ;
An image processing apparatus having transfer means for sequentially transferring a predetermined amount of image data stored in the storage means.
請求項2に係る発明は、前記合成開始点と、合成画像の幅および長さとに基づいて該合成画像の最終画素を合成すべき位置である合成終了点を算出し、この合成終了点が合成対象画像の画像範囲を超えた場合には、合成終了点が画像範囲内に収まるように合成終了点を変更する変更手段をさらに有する請求項1記載の画像処理装置である。
The invention according to
本発明によれば、合成終了点が合成画像を合成しようとする画像範囲を超えてしまうことを防ぐことができる。 According to the present invention, it is possible to prevent the synthesis end point from exceeding the image range in which the synthesized image is to be synthesized.
請求項3に係る発明は、前記格納手段に格納された一定量の画像データ中に含まれる各ラインを、1ライン中の前側の画像データが当該一定量の画像データに含まれていない開始ライン、1ライン中の全ての画像データが当該一定量の画像データに含まれる中間ライン、1ライン中の後側の画像データが当該一定量の画像データに含まれていない終了ラインに分割するライン分割手段をさらに有する請求項1または2記載の画像処理装置である。
According to a third aspect of the present invention, each line included in a fixed amount of image data stored in the storage means is a start line in which the front image data in one line is not included in the fixed amount of image data. Line division in which all image data in one line is divided into intermediate lines that are included in the fixed amount of image data, and the rear image data in one line is divided into end lines that are not included in the fixed amount of image data The image processing apparatus according to
本発明によれば、一定量の画像データを開始ライン、中間ライン、終了ラインに分割するようにしているので、各ラインの特性に合致した処理を行うことが可能となり、ソフトウェアによる処理負担をより少なくした画像合成処理を実現することができる。 According to the present invention, since a certain amount of image data is divided into a start line, an intermediate line, and an end line, it is possible to perform processing that matches the characteristics of each line, and the processing load by software is further increased. It is possible to realize a reduced image composition process.
[画像形成装置]
請求項4に係る本発明は、合成画像が合成される合成対象の矩形の画像データをある一定量のデータ毎に分割する分割手段と、
前記分割手段により分割された一定量の画像データを格納する格納手段と、
前記格納手段に格納された一定量の画像データの各ライン毎に、合成画像が合成される対象の画素が含まれるか否かを判定する判定手段と、
前記判定手段により合成画像が合成される対象の画素が含まれると判定された場合に、合成画像の先頭画素を画像データに合成すべき位置である合成開始点と、該合成画像の幅および長さの情報、ならびに合成対象の画像データのデータサイズ、前記合成対象の画像データの画像の幅および長さの情報に基づいて、当該ラインのどの画素に合成画像のどの画素のデータを合成すべきであるかを示すアドレス情報を算出する算出手段と、
前記算出手段により算出されたアドレス情報に基づいて、当該ラインの画像データに含まれる画素データに対して合成画像の対応する画素のデータを合成する合成手段と、
前記格納手段に格納された一定量の画像データを順次転送する転送手段と、
前記転送手段により転送されてきた画像データに基づいた画像を出力する画像出力手段とを有する画像形成装置である。
[Image forming apparatus ]
According to a fourth aspect of the present invention, there is provided a dividing unit that divides rectangular image data to be synthesized into a synthesized image into a certain amount of data;
Storage means for storing a fixed amount of image data divided by the dividing means;
Determining means for determining whether or not a target pixel to be synthesized is included for each line of a certain amount of image data stored in the storage means;
When the determination unit determines that the target pixel to be synthesized is included , a synthesis start point that is a position where the first pixel of the synthesized image should be synthesized with the image data, and the width and length of the synthesized image Data of which pixel of the synthesized image should be synthesized with which pixel of the line based on the information on the length, the data size of the image data to be synthesized, and the width and length information of the image of the image data to be synthesized Calculating means for calculating address information indicating whether or not
Based on the address information calculated by the calculating means, combining means for combining the data of the corresponding pixels of the combined image with the pixel data included in the image data of the line;
Transfer means for sequentially transferring a fixed amount of image data stored in the storage means;
An image forming apparatus and an image output means for outputting an image based on image data transferred by said transfer means.
[プログラム]
請求項5に係る本発明は、合成画像が合成される合成対象の矩形の画像データをある一定量のデータ毎に分割するステップと、
分割された一定量の画像データをメモリに格納するステップと、
メモリに格納された一定量の画像データの各ライン毎に、合成画像が合成される対象の画素が含まれるか否かを判定するステップと、
合成画像が合成される対象の画素が含まれると判定された場合に、合成画像の先頭画素を画像データに合成すべき位置である合成開始点と、該合成画像の幅および長さの情報、ならびに合成対象の画像データのデータサイズ、前記合成対象の画像データの画像の幅および長さの情報に基づいて、当該ラインのどの画素に合成画像のどの画素のデータを合成すべきであるかを示すアドレス情報を算出するステップと、
算出されたアドレス情報に基づいて、当該ラインの画像データに含まれる画素データに対して合成画像の対応する画素のデータを合成するステップと、
メモリに格納された一定量の画像データを順次転送するステップとをコンピュータに実行させるためのプログラムである。
[program]
The present invention according to
Storing a certain amount of divided image data in a memory;
Determining whether each line of a fixed amount of image data stored in the memory includes a target pixel to be synthesized ; and
When it is determined that the target pixel to be synthesized is included , the synthesis start point, which is the position where the first pixel of the synthesized image is to be synthesized with the image data, and the width and length information of the synthesized image, In addition, based on the data size of the image data to be combined, and the width and length information of the image of the image data to be combined, which pixel of the combined image should be combined with which pixel of the line Calculating address information to be indicated;
Based on the calculated address information, synthesizing the corresponding pixel data of the composite image with the pixel data included in the image data of the line;
A program for causing a computer to execute a step of sequentially transferring a certain amount of image data stored in a memory.
以上説明したように、本発明によれば、スタンプ画像のような合成画像を出力画像データに合成するための画像合成処理を、大きな負担をかけることなくソフトウェア処理により実現することができるという効果を得ることができる。 As described above, according to the present invention, it is possible to realize image synthesis processing for synthesizing a composite image such as a stamp image with output image data by software processing without imposing a heavy burden. Obtainable.
次に、本発明の実施の形態について図面を参照して詳細に説明する。
図1は本発明の一実施形態の画像形成システムの構成を示すブロック図である。
Next, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of an image forming system according to an embodiment of the present invention.
本発明の一実施形態の画像形成システムは、図1に示されるように、ネットワーク30により相互に接続された画像形成システム10、および端末装置20により構成される。端末装置20は、印刷データを生成して、ネットワーク30経由にて生成した印刷データを画像形成システム10に対して送信する。画像形成システム10は、端末装置20から送信された印刷データを受け付けて、印刷データに応じた画像を用紙上に出力する。
As shown in FIG. 1, the image forming system according to an embodiment of the present invention includes an image forming system 10 and a
画像形成システム10は、図1に示されるように、システムコントローラ11と、画像形成ユニット12とにより構成されている。システムコントローラ11は、端末装置20から送信されてきた印刷データにより画像形成ユニット12の印刷動作を制御する画像処理装置として機能する。画像形成ユニット12は、システムコントローラ11による制御に基づいて印刷データに応じた画像を印刷用紙上に出力する。
As shown in FIG. 1, the image forming system 10 includes a
次に、本実施形態の画像形成システム10におけるシステムコントローラ11と画像形成ユニット12のハードウェア構成を図2に示す。
Next, FIG. 2 shows a hardware configuration of the
システムコントローラ11は、図2に示されるように、CPU21、ハードディスクドライブ(HDD)22、データ転送部23、ROM24、RAM25、タッチパネル又は液晶ディスプレイ並びにキーボードを含むユーザインタフェース(UI)装置26を有する。
As shown in FIG. 2, the
CPU21は、ROM24、RAM25またはHDD22に格納された制御プログラムに基づいて所定の処理を実行して、システムコントローラ11の動作を制御する。データ転送部23は、印刷すべき画像データを画像形成ユニット12に対して転送する。
The
また、画像形成ユニット12は、図2に示されるように、受信部31、HDD32、CPU33、ROM34、RAM35、プリントエンジン36を有する。
The
CPU33は、ROM34、RAM35またはHDD32に格納された制御プログラムに基づいて所定の処理を実行して、画像形成ユニット12の動作を制御する。受信部31は、システムコントローラ11の転送部23から印刷すべき画像データを受信する。
The
次に、CPU21において制御プログラムが実行されることにより実現されるシステムコントローラ11の機能構成を図3に示す。
Next, FIG. 3 shows a functional configuration of the
システムコントローラ11は、図3に示されるように、画像データ格納部41、合成画像データ格納部42、制御部43、送信用メモリ44、データ転送部23とを備えている。
As shown in FIG. 3, the
画像データ格納部41は、端末装置20等から送信されてきた印刷画像データを格納する。合成画像データ格納部42は、印刷画像データに合成するためのスタンプ画像等の合成画像データを格納する。
The image
制御部43は、画像データ格納部41に格納されている印刷画像データを予め設定された一定量のブロックサイズ単位で分割して送信用メモリ44に格納するとともに、合成画像データ格納部42から読み出した合成画像データを、送信用メモリ44に格納されているブロックサイズ単位の印刷画像データに対して合成する。
The
送信用メモリ44は、制御部43によりブロック単位で分割された一定量の画像データを格納する。
The
データ転送部23は、図4に示されるように、送信用メモリ44に格納された1ブロックサイズの画像データを順次画像形成ユニット12に対して転送する。
As illustrated in FIG. 4, the
このように本実施形態の画像形成システム10では、印刷画像データを一定サイズのブロック単位でシステムコントローラ11から画像形成ユニット12に転送しているため、スタンプ画像等の合成画像を合成する処理が複雑となる。
As described above, in the image forming system 10 of the present embodiment, the print image data is transferred from the
例えば、図5に示すような印刷画像データに対して、スタンプ画像等の合成画像50を合成しようとする場合について説明する。
For example, a case where a
この図5に示した印刷画像データは、600dpi、A0サイズ(69770592バイト)のイメージデータであり、幅が2484バイト、長さが28088ラインとなっている。そして、データ転送部23から受信部31に対して送信される1ブロックサイズを、16kバイト(16×1024バイト)であるものとする。
The print image data shown in FIG. 5 is image data of 600 dpi, A0 size (69770592 bytes), has a width of 2484 bytes, and a length of 28088 lines. A block size transmitted from the
このような場合、制御部43は、画像データ格納部41に格納されている印刷画像データから、16kバイト分の画像データを1ブロックサイズの画像データとして分割して、送信用メモリ44に格納する。
In such a case, the
ただし、図5に示すように、合成画像50は、かならずしも1つのブロック内の画像データに対して合成されるわけではなく、複数のブロックに分割された画像データに対して合成しなければならない場合も発生する。
However, as shown in FIG. 5, the
そのため、本実施形態の画像形成システム10では、制御部43は、送信用メモリ44に格納された1ブロック分の画像データの各ライン(列)毎に合成すべき合成画像の有無を判定する。そして、制御部43は、合成すべき合成画像が有ると判定された場合に、そのラインのどのドット(画素)に合成画像を合成すべきであるかを示すアドレス情報を算出する。最後に、制御部43は、算出されたアドレス情報に基づいて、そのラインの画像データに含まれるドットの画像データに対して合成画像を合成する合成処理を行う。
Therefore, in the image forming system 10 of the present embodiment, the
次に、本実施形態の画像形成システム10の動作を図面を参照して詳細に説明する。
図6は、本実施形態の画像形成システム10の画像合成処理の全体動作を示すフローチャートである。以下の説明では、図7(A)に示すような印刷画像データに、図7(B)に示すような合成画像を合成する場合を用いて説明する。ここでは、図5と同様に、画像の長さの単位をラインとして、画像幅の単位をバイトとして説明する。
Next, the operation of the image forming system 10 of this embodiment will be described in detail with reference to the drawings.
FIG. 6 is a flowchart showing the overall operation of the image composition processing of the image forming system 10 of the present embodiment. In the following description, a case where a composite image as shown in FIG. 7B is combined with print image data as shown in FIG. 7A will be described. Here, as in FIG. 5, the unit of the image length is described as a line, and the unit of the image width is described as a byte.
また、印刷画像データの情報である印刷画像情報としては下記のような情報が予め分かっているものとする。
・メモリ上のアドレス
・データサイズ(バイト)
・画像の幅(バイト数)
・画像の長さ(ライン数)
Further, it is assumed that the following information is known in advance as the print image information that is information of the print image data.
-Address on memory-Data size (bytes)
・ Image width (number of bytes)
・ Image length (number of lines)
また、合成画像データの情報である合成画像情報としては下記のような情報が予め分かっているものとする。
・メモリ上のアドレス
・データサイズ(バイト数)
・画像の幅(バイト数)
・画像の長さ(ライン数)
・合成開始点(ライン番号、ビット番号)
Further, it is assumed that the following information is known in advance as the composite image information that is information of the composite image data.
-Address on memory-Data size (number of bytes)
・ Image width (number of bytes)
・ Image length (number of lines)
・ Composition start point (line number, bit number)
まず、ある印刷画像データに対して、合成開始点を指定されて合成画像を合成する指示が行われた場合、制御部43は、合成終了点を算出する(ステップS101)。合成開始点とは、合成画像を合成する際に合成画像の先頭画素を合成すべき位置を示している。また、合成終了点とは、合成画像の最終画素を合成すべき位置を示している。
First, when a synthesis start point is designated for a certain print image data and an instruction to synthesize a synthesized image is given, the
この合成終了点の算出処理の詳細を図8のフローチャートに示す。
まず、合成開始点のバイト値に合成画像幅を加算することにより合成終了点のバイト値(合成終了バイト)を算出する(ステップS201)。もし、合成終了バイトが、印刷画像の幅を超えている場合には(ステップS202)、合成終了バイトを印刷画像幅の値とする(ステップS203)。
The details of the synthesis end point calculation process are shown in the flowchart of FIG.
First, the byte value (combination end byte) at the synthesis end point is calculated by adding the composite image width to the byte value at the synthesis start point (step S201). If the composition end byte exceeds the width of the print image (step S202), the composition end byte is set as the print image width value (step S203).
次に、合成開始点のライン値に合成画像長さを加算することにより合成終了点のライン値(合成終了ライン)を算出する(ステップS201)。もし、合成終了ラインが、印刷画像の長さを超えている場合には(ステップS205)、合成終了ラインを印刷画像幅の値とする(ステップS206)。 Next, the line value of the synthesis end point (combination end line) is calculated by adding the synthesized image length to the line value of the synthesis start point (step S201). If the composition end line exceeds the length of the print image (step S205), the composition end line is set as the print image width value (step S206).
この合成終了点の算出処理では、図9(A)に示すように、合成開始点と合成画像の幅および長さに基づいて合成終了点を算出し、もし、図9(B)に示すように合成終了点が印刷画像の範囲を超えてしまった場合には、合成終了点が印刷画像範囲内に収まるように合成終了点を変更するようにしている。 In this synthesis end point calculation process, as shown in FIG. 9A, the synthesis end point is calculated based on the synthesis start point and the width and length of the synthesized image, as shown in FIG. 9B. If the composition end point exceeds the print image range, the composition end point is changed so that the composition end point falls within the print image range.
このように合成終了点が算出された後、制御部43は、図6のフローチャートに示すように、送信済みサイズAを0として(ステップS102)、印刷画像データから1ブロックサイズ部の画像データをコピーして送信用メモリ44に格納する(ステップS103)。
After the synthesis end point is calculated in this way, the
そして、送信用メモリ44に格納された1ブロックサイズ分の画像データに対して合成画像を合成するブロック合成処理を行う(ステップS104)。このブロック合成処理の詳細については後述する。 Then, block composition processing is performed to synthesize a composite image with image data for one block size stored in the transmission memory 44 (step S104). Details of this block composition processing will be described later.
そして、ブロック合成処理が終了した後の送信用メモリ44の画像データは、データ転送部23により画像形成ユニット12に送信される(ステップS105)。すると、制御部43は、送信済みサイズAにブロックサイズ分のデータサイズを加算して(ステップS106)、送信済みサイズAが印刷画像データのデータサイズを超えるまでステップS103〜S106の処理を繰り返す(ステップS107)。
Then, the image data in the
次に、上記で説明したブロック合成処理の詳細を図10のフローチャートを参照して説明する。 Next, details of the block synthesis processing described above will be described with reference to the flowchart of FIG.
このブロック合成処理が行われる場合、制御部43は、まずブロック単位で分割されて送信用メモリ44に格納されている画像データに対してライン分割処理を行う(ステップS301)。このライン分割処理とは、図11に示すようなブロック単位の画像データ中に含まれる各ラインを、1ライン中の前側の画像データがブロック単位の画像データに含まれていない開始ライン、1ライン中の全ての画像データがブロック単位の画像データに含まれる中間ライン、1ライン中の後側の画像データがブロック単位の画像データに含まれていない終了ラインに分割する処理である。
When this block synthesizing process is performed, the
このライン分割処理が行われる場合、分割された開始ライン、中間ライン、終了ライン毎に、ライン番号(印刷画像データ中において何ライン目に該当するのか)、開始バイト(このラインの先頭が何バイト目であるか)、終了バイト(このラインの最後尾が何バイト目であるか)、データサイズ等のライン情報が算出される。また、このブロック内における中間ラインの数である中間ライン数nが算出される。例えば、図11に示した例では、中間ライン数n=5となっている。 When this line division processing is performed, for each divided start line, intermediate line, and end line, the line number (which line corresponds to the print image data), the start byte (the number of bytes at the beginning of this line) Line information such as the end size (how many bytes the end of this line is) and the data size are calculated. Also, the number of intermediate lines n, which is the number of intermediate lines in this block, is calculated. For example, in the example shown in FIG. 11, the number of intermediate lines n = 5.
例えば、開始ラインの開始ライン情報は下記のような方法により算出される。
(送信済みサイズA/印刷画像の幅)の商=送信が終了した印刷画像データのライン数
(送信済みサイズA/印刷画像の幅)の余り=途中まで送信が終了した最終ラインのバイト数
ライン番号=送信が終了した印刷画像データのライン数+1
開始バイト=途中まで送信が終了した最終ラインのバイト数+1
終了バイト=印刷画像の最大バイト
データサイズ=終了バイト−開始バイト+1
For example, the start line information of the start line is calculated by the following method.
The quotient of (transmitted size A / print image width) = the number of lines of print image data that has been transmitted. The remainder of (transmitted size A / width of print image) = the number of bytes of the last line that has been partially transmitted. Number = Number of print image data lines that have been sent + 1
Start byte = number of bytes in the last line where transmission was completed halfway + 1
End byte = Maximum byte of print image Data size = End byte-
また、中間ラインの中間ライン情報は下記のような方法により算出される。
ライン番号=開始ラインのライン番号+1
開始バイト=1
終了バイト=印刷画像の最大バイト
データサイズ=終了バイト−開始バイト+1
The intermediate line information of the intermediate line is calculated by the following method.
Line number = Line number of the
Start byte = 1
End byte = Maximum byte of print image Data size = End byte-
また、中間ライン数nは下記のような方法により算出される。
中間ライン数n=((ブロックサイズ−開始ラインのデータサイズ)/印刷画像の幅)の商
The number n of intermediate lines is calculated by the following method.
Number of intermediate lines n = (quotient of (block size−starting line data size) / printed image width)
また、終了ラインの終了ライン情報は下記のような方法により算出される。
ライン番号=開始ラインのライン番号+中間ライン数n+1
開始バイト=1
終了バイト=((ブロックサイズ−開始ラインのデータサイズ)/印刷画像の幅)の余り
データサイズ=終了バイト−開始バイト+1
The end line information of the end line is calculated by the following method.
Line number = Line number of start line + number of intermediate lines n + 1
Start byte = 1
End byte = remainder of ((block size-start line data size) / print image width) Data size = end byte-
そして、次に1ブロック分の画像データ内におけるライン番号iがクリアされ(ステップS302)、開始ラインに対する画像合成処理である開始ライン合成処理が行われる(ステップS303)。このライン合成処理の詳細については後述する。そして、ライン番号iに1が加算された後に、中間ラインの合成処理が行われる(ステップS304)。1つの中間ラインのライン合成処理が終了すると、ライン番号に1が加算され(ステップS305)、ライン番号が中間ライン数nとなるまでステップS304、S305の処理が繰り返される。 Then, the line number i in the image data for one block is cleared (step S302), and a start line synthesis process that is an image synthesis process for the start line is performed (step S303). Details of this line composition processing will be described later. Then, after 1 is added to the line number i, an intermediate line synthesis process is performed (step S304). When the line combining process for one intermediate line is completed, 1 is added to the line number (step S305), and the processes of steps S304 and S305 are repeated until the line number reaches the number n of intermediate lines.
そして、最後に終了ラインのライン合成処理が行われ処理が終了する(ステップS307)
次に、上述したステップS303、S304、S307において示したライン合成処理を図12のフローチャートを参照して説明する。
Finally, a line composition process for the end line is performed, and the process ends (step S307).
Next, the line composition processing shown in steps S303, S304, and S307 described above will be described with reference to the flowchart of FIG.
このライン合成処理においては、まず、合成画像が合成される可能性があるライン番号が予め分かっているため、処理対象のラインが合成画像が合成される対象であるラインが否かの判定が行われる(ステップS401)。 In this line composition processing, first, since the line number where the composite image may be synthesized is known in advance, it is determined whether or not the processing target line is the target line for which the composite image is synthesized. (Step S401).
このステップS401において処理対象のラインは合成画像を合成する必要が無いと判定された場合、ライン合成処理は終了する。そして、ステップS401において処理対象のラインは合成画像を合成する必要が有ると判定された場合、合成画像データを合成すべき画素のアドレス情報、つまり、1ラインの中の何バイト目から何バイト目までが合成画像を合成すべきであるかという情報を算出する(ステップS402)。また、制御部43は、今回のライン合成処理において、合成画像データ格納部42に格納されている合成画像データのうち、どのラインの何バイト目から何バイト目までの合成画像データを印刷画像データに合成すべきであるかというアドレス情報も算出する。
If it is determined in step S401 that the processing target line does not need to be combined with the combined image, the line combining process ends. If it is determined in step S401 that the line to be processed needs to synthesize a synthesized image, address information of the pixel to be synthesized with the synthesized image data, that is, from what byte to what byte in one line Information is calculated as to whether the synthesized image should be synthesized (step S402). Further, in the current line composition processing, the
そして、制御部43は、算出されたこれらのアドレス情報に基づいて、例えば図13に示すように、処理対象ラインにける合成対象画素データに対して、合成画像を合成する画像合成処理を行う(ステップS403)。図13に示した例では、処理対象ラインの第101バイトから第120バイトまでの画素データに対して合成画像が合成されている様子が示されている。
Then, based on the calculated address information, the
本実施形態の画像形成システム10では、印刷画像データをブロックサイズに分割して送信用メモリ44に格納した後に、ブロックサイズの印刷画像データをライン分割し、各ラインの印刷画像データ毎に合成画像を合成する処理が必要であるか否かを判定している。ここで、合成画像を合成すべきラインというのは予め分かっているため、処理対象ラインに合成画像を合成する処理が必要であるかはライン番号の単純な比較のみで判定することが可能である。つまり、合成画像を合成する必要が無いラインのライン合成処理は、ライン番号の比較を行うステップS401の処理のみで短時間に終了する。
In the image forming system 10 of this embodiment, after the print image data is divided into block sizes and stored in the
そのため、スタンプ画像のような合成画像を印刷画像データに合成するための画像合成処理を、専用の合成処理回路等のハードウェアを必要とすることなく、かつ、大きな負担をかけることなくソフトウェア処理により実現することができる。 For this reason, image composition processing for compositing a composite image such as a stamp image with print image data is performed by software processing without requiring hardware such as a dedicated composition processing circuit and without imposing a heavy burden. Can be realized.
10 画像形成システム
11 システムコントローラ
12 画像形成ユニット
20 端末装置
21 CPU
22 HDD
23 データ転送部
24 ROM
25 ユーザインタフェース(UI)装置
30 ネットワーク
31 受信部
32 HDD
33 CPU
34 ROM
35 RAM
36 プリントエンジン
41 画像データ格納部
42 合成画像データ格納部
43 制御部
44 送信用メモリ
50 合成画像
S101〜S107 ステップ
S201〜S206 ステップ
S301〜S307 ステップ
S401〜S403 ステップ
DESCRIPTION OF SYMBOLS 10
22 HDD
23
25 User Interface (UI)
33 CPU
34 ROM
35 RAM
36
Claims (5)
前記分割手段により分割された一定量の画像データを格納する格納手段と、
前記格納手段に格納された一定量の画像データの各ライン毎に、合成画像が合成される対象の画素が含まれるか否かを判定する判定手段と、
前記判定手段により合成画像が合成される対象の画素が含まれると判定された場合に、合成画像の先頭画素を画像データに合成すべき位置である合成開始点と、該合成画像の幅および長さの情報、ならびに合成対象の画像データのデータサイズ、前記合成対象の画像データの画像の幅および長さの情報に基づいて、当該ラインのどの画素に合成画像のどの画素のデータを合成すべきであるかを示すアドレス情報を算出する算出手段と、
前記算出手段により算出されたアドレス情報に基づいて、当該ラインの画像データに含まれる画素データに対して合成画像の対応する画素のデータを合成する合成手段と、
前記格納手段に格納された一定量の画像データを順次転送する転送手段と、
を有する画像処理装置。 A dividing unit that divides the rectangular image data to be synthesized into a certain amount of data into which the synthesized image is synthesized ;
Storage means for storing a fixed amount of image data divided by the dividing means;
Determining means for determining whether or not a target pixel to be synthesized is included for each line of a certain amount of image data stored in the storage means;
When the determination unit determines that the target pixel to be synthesized is included , a synthesis start point that is a position where the first pixel of the synthesized image should be synthesized with the image data, and the width and length of the synthesized image Data of which pixel of the synthesized image should be synthesized with which pixel of the line based on the information on the length, the data size of the image data to be synthesized, and the width and length information of the image of the image data to be synthesized Calculating means for calculating address information indicating whether or not
Based on the address information calculated by the calculating means, combining means for combining the data of the corresponding pixels of the combined image with the pixel data included in the image data of the line ;
Transfer means for sequentially transferring a fixed amount of image data stored in the storage means;
An image processing apparatus.
前記分割手段により分割された一定量の画像データを格納する格納手段と、
前記格納手段に格納された一定量の画像データの各ライン毎に、合成画像が合成される対象の画素が含まれるか否かを判定する判定手段と、
前記判定手段により合成画像が合成される対象の画素が含まれると判定された場合に、合成画像の先頭画素を画像データに合成すべき位置である合成開始点と、該合成画像の幅および長さの情報、ならびに合成対象の画像データのデータサイズ、前記合成対象の画像データの画像の幅および長さの情報に基づいて、当該ラインのどの画素に合成画像のどの画素のデータを合成すべきであるかを示すアドレス情報を算出する算出手段と、
前記算出手段により算出されたアドレス情報に基づいて、当該ラインの画像データに含まれる画素データに対して合成画像の対応する画素のデータを合成する合成手段と、
前記格納手段に格納された一定量の画像データを順次転送する転送手段と、
前記転送手段により転送されてきた画像データに基づいた画像を出力する画像出力手段と、
を有する画像形成装置。 A dividing unit that divides the rectangular image data to be synthesized into a certain amount of data into which the synthesized image is synthesized ;
Storage means for storing a fixed amount of image data divided by the dividing means;
Determining means for determining whether or not a target pixel to be synthesized is included for each line of a certain amount of image data stored in the storage means;
When the determination unit determines that the target pixel to be synthesized is included , a synthesis start point that is a position where the first pixel of the synthesized image should be synthesized with the image data, and the width and length of the synthesized image Data of which pixel of the synthesized image should be synthesized with which pixel of the line based on the information on the length, the data size of the image data to be synthesized, and the width and length information of the image of the image data to be synthesized Calculating means for calculating address information indicating whether or not
Based on the address information calculated by the calculating means, combining means for combining the data of the corresponding pixels of the combined image with the pixel data included in the image data of the line;
Transfer means for sequentially transferring a fixed amount of image data stored in the storage means;
Image output means for outputting an image based on the image data transferred by the transfer means;
An image forming apparatus .
分割された一定量の画像データをメモリに格納するステップと、
メモリに格納された一定量の画像データの各ライン毎に、合成画像が合成される対象の画素が含まれるか否かを判定するステップと、
合成画像が合成される対象の画素が含まれると判定された場合に、合成画像の先頭画素を画像データに合成すべき位置である合成開始点と、該合成画像の幅および長さの情報、ならびに合成対象の画像データのデータサイズ、前記合成対象の画像データの画像の幅および長さの情報に基づいて、当該ラインのどの画素に合成画像のどの画素のデータを合成すべきであるかを示すアドレス情報を算出するステップと、
算出されたアドレス情報に基づいて、当該ラインの画像データに含まれる画素データに対して合成画像の対応する画素のデータを合成するステップと、
メモリに格納された一定量の画像データを順次転送するステップとをコンピュータに実行させるためのプログラム。 Dividing the rectangular image data to be synthesized into a synthesized image into a certain amount of data; and
Storing a certain amount of divided image data in a memory;
Determining whether each line of a fixed amount of image data stored in the memory includes a target pixel to be synthesized ; and
When it is determined that the target pixel to be synthesized is included , the synthesis start point, which is the position where the first pixel of the synthesized image is to be synthesized with the image data, and the width and length information of the synthesized image, In addition, based on the data size of the image data to be combined, and the width and length information of the image of the image data to be combined, which pixel of the combined image should be combined with which pixel of the line Calculating address information to be indicated;
Based on the calculated address information, synthesizing the corresponding pixel data of the composite image with the pixel data included in the image data of the line;
A program for causing a computer to execute a step of sequentially transferring a certain amount of image data stored in a memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008060852A JP4780126B2 (en) | 2008-03-11 | 2008-03-11 | Image processing apparatus, image forming apparatus, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008060852A JP4780126B2 (en) | 2008-03-11 | 2008-03-11 | Image processing apparatus, image forming apparatus, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009218879A JP2009218879A (en) | 2009-09-24 |
JP4780126B2 true JP4780126B2 (en) | 2011-09-28 |
Family
ID=41190312
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008060852A Expired - Fee Related JP4780126B2 (en) | 2008-03-11 | 2008-03-11 | Image processing apparatus, image forming apparatus, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4780126B2 (en) |
-
2008
- 2008-03-11 JP JP2008060852A patent/JP4780126B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009218879A (en) | 2009-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20120026515A1 (en) | Image forming device, information processing device, and recording medium storing n-up printing program | |
US8934131B2 (en) | Controlling device | |
JP2004318581A (en) | Information processor and method of displaying print preview | |
JP4976971B2 (en) | Image forming system, image forming apparatus, and program | |
JP5387285B2 (en) | Printing apparatus and program | |
US20070109581A1 (en) | Information processing device and preview displaying method | |
JP5212886B2 (en) | Image forming system and image forming program | |
JP2007233591A (en) | Printer driver and its test printing method and printer | |
JP4780126B2 (en) | Image processing apparatus, image forming apparatus, and program | |
JP2009086989A (en) | Image forming system, image forming apparatus and program | |
JP2019114973A (en) | Image processing apparatus and program | |
JP2009071634A (en) | History image generating device, and program | |
JP2008114519A (en) | Image forming apparatus | |
JP2009198639A (en) | Image display apparatus and scroll control method and scroll control program for image display apparatus, electronic equipment having image display apparatus | |
JP4536671B2 (en) | Image forming apparatus, image forming method and program thereof | |
JP2006285792A (en) | Image processor and image processing method | |
JP2005043452A (en) | Image forming apparatus and image forming system | |
CN102981789B (en) | Printing control device and image formation system | |
JP5811692B2 (en) | Communication device | |
JP2016053884A (en) | Printer controller, printer system and printer control program | |
JP6007530B2 (en) | Image forming apparatus and image processing program | |
JP2016021641A (en) | Information processor and program | |
JP6094755B2 (en) | Image forming apparatus and image processing apparatus | |
JP6194771B2 (en) | Image forming apparatus and image forming method | |
JP2008065367A (en) | Information processing device, page image arrangement adjustment method, program, and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090825 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100325 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110214 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110322 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110518 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110607 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110620 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140715 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |