JP2012227598A - Image processor, image forming apparatus, image processing method, image processing program and recording medium - Google Patents
Image processor, image forming apparatus, image processing method, image processing program and recording medium Download PDFInfo
- Publication number
- JP2012227598A JP2012227598A JP2011091072A JP2011091072A JP2012227598A JP 2012227598 A JP2012227598 A JP 2012227598A JP 2011091072 A JP2011091072 A JP 2011091072A JP 2011091072 A JP2011091072 A JP 2011091072A JP 2012227598 A JP2012227598 A JP 2012227598A
- Authority
- JP
- Japan
- Prior art keywords
- image
- image processing
- 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.)
- Withdrawn
Links
Images
Landscapes
- Storing Facsimile Image Data (AREA)
Abstract
Description
本発明は、画像処理装置、画像形成装置、画像処理方法、画像処理プログラム及び記録媒体に関し、詳細には、ラインバッファ幅を越えるライン幅の画像データを効率的にかつ速やかに画像処理する画像処理装置、画像形成装置、画像処理方法、画像処理プログラム及び記録媒体に関する。 The present invention relates to an image processing apparatus, an image forming apparatus, an image processing method, an image processing program, and a recording medium, and more specifically, image processing for efficiently and quickly image processing image data having a line width exceeding the line buffer width. The present invention relates to an apparatus, an image forming apparatus, an image processing method, an image processing program, and a recording medium.
スキャナや外部装置からライン毎に入力される画像データを、ASIC(Application Specific Integrated Circuit)等の画像処理デバイスによってライン順次で画像処理を行う場合、従来、画像の水平方向の大きさがラインバッファのライン幅以内であると、図13に示すように、入力画像データを順次RAM(Random Access Memory)100に格納し、該RAM100上の画像データを所定ライン幅のラインバッファに順次格納して、ラインバッファ内の画像データを読み出して画像処理デバイスでライン毎に画像処理を行っている。この場合、入力画像を分割しないため、例えば、スキャナが1ラインの画像を読み取って画像データをRAM100に出力すると、RAM100のライン画像データを直ぐに画像処理デバイスでラインバッファに読み取って画像処理することができ、スキャナの読み取り速度に合わせてリアルタイムに画像処理を実行することができる。 When image data input for each line from a scanner or an external device is subjected to line processing by an image processing device such as an ASIC (Application Specific Integrated Circuit), the size of the image in the horizontal direction is conventionally limited to that of a line buffer. If it is within the line width, as shown in FIG. 13, the input image data is sequentially stored in a RAM (Random Access Memory) 100, and the image data on the RAM 100 is sequentially stored in a line buffer having a predetermined line width. Image data in the buffer is read and image processing is performed for each line by the image processing device. In this case, since the input image is not divided, for example, when the scanner reads an image of one line and outputs the image data to the RAM 100, the line image data in the RAM 100 is immediately read into the line buffer by the image processing device and processed. The image processing can be executed in real time according to the reading speed of the scanner.
ところが、このラインバッファのライン幅を越えるライン幅の入力画像データについては、画像処理することができない。 However, image processing cannot be performed on input image data having a line width exceeding the line width of the line buffer.
そこで、従来、ラインバッファのライン幅を超えるライン幅の画像データに対しても適切に画像処理するために、入力画像の水平方向画素数幅がラインバッファのライン幅よりも大きい場合には、入力画像を垂直方向に等分割し、分割領域のライン幅がラインバッファの水平方向画素数幅(ライン幅)より小さくなるようにして、等分割した分割領域毎に、順次画像データをラインバッファに転送して画像処理する技術が提案されている(特許文献1参照)。 Therefore, conventionally, in order to appropriately perform image processing even for image data having a line width exceeding the line width of the line buffer, when the horizontal pixel width of the input image is larger than the line width of the line buffer, The image is divided equally in the vertical direction, and the line width of the divided area is made smaller than the horizontal pixel width (line width) of the line buffer, and the image data is sequentially transferred to the line buffer for each equally divided area. Thus, a technique for image processing has been proposed (see Patent Document 1).
すなわち、この公報記載の従来技術は、入力画像データの水平方向画素数幅が、ラインバッファのライン幅よりも大きい場合、例えば、画像のライン幅が、図14に示すように、ライン幅の2倍であると、画像を、垂直方向に、領域1−1と領域1−2に等分割し、スキャナの読み取った画像データをそれぞれ領域1−1と領域1−2にRAM101に格納し、RAM101から領域1−1の画像データをラインバッファに読み出して画像処理を行なった後、領域1−2の画像データをラインバッファに読み出して画像処理を行う。
That is, in the prior art described in this publication, when the horizontal pixel width of the input image data is larger than the line width of the line buffer, for example, the line width of the image is 2 of the line width as shown in FIG. If it is doubled, the image is equally divided into the area 1-1 and the area 1-2 in the vertical direction, and the image data read by the scanner is stored in the
しかしながら、上記公報記載の従来技術にあっては、処理速度が低下し、生産性が悪いという問題があった。すなわち、公報記載の従来技術にあっては、領域1−1の処理がすべて完了した後、領域1−2の処理を開始するが、スキャナが画像の全領域の読み取りを完了しないと、領域1−1の画像処理が終了しないため、スキャナが画像の全領域の読み取りを完了した後に、領域1−2の画像処理が開始されることになる。したがって、領域1−1の画像処理を開始するまでに時間を要し、全体の処理時間が遅くなって、生産性が低下するという問題があった。
However, the prior art described in the above publication has a problem that the processing speed is lowered and the productivity is poor. That is, in the prior art described in the publication, the processing of the area 1-2 is started after the processing of the area 1-1 is completed. If the scanner does not complete the reading of the entire area of the image, the
そこで、本発明は、ラインバッファのライン幅を超える画像幅の画像データを回路規模を大きくすることなく、速やかに画像処理することのできる画像処理装置、画像形成装置、画像処理方法、画像処理プログラム及び記録媒体を提供することを目的としている。 Accordingly, the present invention provides an image processing apparatus, an image forming apparatus, an image processing method, and an image processing program capable of rapidly processing image data having an image width exceeding the line width of the line buffer without increasing the circuit scale. And it aims at providing a recording medium.
本発明は、上記目的を達成するために、処理対象画像の画像データのライン幅が所定ライン幅のラインバッファのライン幅よりも大きいと、該画像データを、水平方向において所定ライン数毎の水平領域に分割するとともに、該水平領域を垂直方向において該ラインバッファのライン幅以下の所定ライン幅で複数の垂直領域に分割して、該水平領域毎に該水平領域に属する該垂直領域のうち、所定ライン方向先頭側の垂直領域の画像データから順次該ラインバッファに転送し、該ラインバッファに転送されてきた画像データに対して所定の画像処理を施して、該垂直領域毎に画像処理された画像データを前記処理対象画像の画像データに合わせて結合することを特徴としている。 In order to achieve the above object, according to the present invention, when the line width of the image data of the processing target image is larger than the line width of the line buffer having a predetermined line width, the image data is horizontally converted every predetermined number of lines in the horizontal direction. And dividing the horizontal region into a plurality of vertical regions with a predetermined line width equal to or smaller than the line width of the line buffer in the vertical direction, and among the vertical regions belonging to the horizontal region for each horizontal region, The image data of the vertical area at the beginning of the predetermined line direction is sequentially transferred to the line buffer, and the image data transferred to the line buffer is subjected to predetermined image processing, and the image processing is performed for each vertical area. The image data is combined in accordance with the image data of the processing target image.
また、本発明は、複数ライン分の画像データが格納される前記ラインバッファに格納されている他のラインの画像データを参照して処理する画像処理を中断して他の画像処理を実行する場合に、実行中の該画像処理の中断、再開に必要なデータを中間データとして中間データ保存手段に保存することを特徴としてもよい。 In the present invention, the image processing to be processed with reference to the image data of other lines stored in the line buffer in which the image data for a plurality of lines is stored is interrupted to execute other image processing. In addition, data necessary for interrupting and resuming the image processing being executed may be stored in the intermediate data storage unit as intermediate data.
さらに、本発明は、前記中間データ保存手段に保存する前記中間データを適宜選択することを特徴としてもよい。 Furthermore, the present invention may be characterized in that the intermediate data stored in the intermediate data storage unit is appropriately selected.
本発明によれば、ラインバッファのライン幅を超える画像幅の画像データを回路規模を大きくすることなく、速やかに画像処理することができる。 According to the present invention, image data having an image width exceeding the line width of the line buffer can be promptly processed without increasing the circuit scale.
以下、本発明の好適な実施例を添付図面に基づいて詳細に説明する。なお、以下に述べる実施例は、本発明の好適な実施例であるので、技術的に好ましい種々の限定が付されているが、本発明の範囲は、以下の説明によって不当に限定されるものではなく、また、本実施の形態で説明される構成の全てが本発明の必須の構成要件ではない。 Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In addition, since the Example described below is a suitable Example of this invention, various technically preferable restrictions are attached | subjected, However, The range of this invention is unduly limited by the following description. However, not all the configurations described in the present embodiment are essential constituent elements of the present invention.
図1〜図12は、本発明の画像処理装置、画像形成装置、画像処理方法、画像処理プログラム及び記録媒体の一実施例を示す図であり、図1は、本発明の画像処理装置、画像形成装置、画像処理方法、画像処理プログラム及び記録媒体の一実施例を適用した複写装置1のブロック構成図である。
1 to 12 are diagrams illustrating an embodiment of an image processing apparatus, an image forming apparatus, an image processing method, an image processing program, and a recording medium according to the present invention. FIG. 1 illustrates an image processing apparatus and an image according to the present invention. 1 is a block configuration diagram of a
図1において、複写装置(画像形成装置)1は、読み取りユニット2、RAM3及び画像処理装置としての画像処理ユニット4等を備えているとともに、図示しない、コントローラ、ハードディスク、プリンタユニット、ネットワーク接続部及び操作表示部等を備えている。
In FIG. 1, a copying apparatus (image forming apparatus) 1 includes a
読み取りユニット2は、光源、光学系及び光電変換素子等を備え、原稿の画像を主走査及び副走査して、原稿の画像に応じた画像データを1ラインずつRAM3に書き込む。
The
RAM(中間データ保存手段)3は、所定ライン幅を有し、所定の容量を有している。RAM3は、読み取りユニット2が読み取り可能な原稿サイズ1枚分の画像データを格納する容量を有しており、読み取りユニット2は、読み取った原稿の画像データを、図2に示すように、ライン毎に順次RAM3に書き込む。
A RAM (intermediate data storage means) 3 has a predetermined line width and a predetermined capacity. The
画像処理デバイス(画像処理手段、データ管理手段、画像データ結合手段)4は、図示しないが、読み取りユニット2の最大読み取り幅よりもライン幅の短い所定ライン数分のラインバッファLb(図5参照)を備えており、RAM3の画像データを該ラインバッファLbに取り込んで、所定の画像処理、例えば、フィルタ処理、白黒反転処理、γ補正処理、階調処理等を実行して、画像処理した画像データを、処理前の画像データの並び順に合わせて結合して、図示しないコントローラに出力する。
Although not shown, the image processing device (image processing means, data management means, image data combining means) 4 has a line buffer Lb corresponding to a predetermined number of lines whose line width is shorter than the maximum reading width of the reading unit 2 (see FIG. 5). The image data of the
コントローラは、CPU(Central Processing Unit )、ROM(Read Only Memory)、RAM等を備え、ROM内のプログラムに基づいてRAMをワークメモリとして利用しつつ複写装置1の各部を制御して複写装置1としての基本処理を実行させるとともに、画像処理デバイス4を制御して、本実施例のラインバッファLbのライン幅を越える画像データを速やかにかつ適切に画像処理する画像処理方法を実行させる。コントローラは、画像処理デバイス4から送られてくる画像データを一旦ハードディスクに保存した後、画像データをプリンタユニットで印刷可能なデータ形式に変換してプリンタユニットに転送し、プリンタユニットがコントローラから送られてきた画像データに基づいて用紙に画像形成する。また、コントローラは、ハードディスクに保存した画像データをネットワーク接続されているコンピュータ等の外部装置に転送する。
The controller includes a central processing unit (CPU), a read only memory (ROM), a RAM, and the like, and controls each part of the copying
操作表示部は、複写装置1に各種命令を入力する操作キーと入力された命令内容や複合装置1からユーザに通知する各種情報を表示する表示部を備えている。
The operation display unit includes an operation key for inputting various commands to the copying
すなわち、複写装置1は、ROM、EEPROM(Electrically Erasable and Programmable Read Only Memory )、EPROM、フラッシュメモリ、フレキシブルディスク、CD−ROM(Compact Disc Read Only Memory )、CD−RW(Compact Disc Rewritable )、DVD(Digital Versatile Disk)、SD(Secure Digital)カード、MO(Magneto−Optical Disc)等のコンピュータが読み取り可能な記録媒体に記録されている本発明の画像処理方法を実行する画像処理プログラムを読み込んでROMやハードディスクに導入することで、後述する画像処理デバイス4のラインバッファLbのライン幅を越える画像データを速やかにかつ適切に画像処理する画像処理方法を実行する画像処理装置を搭載する画像形成装置である複写装置1として構築されている。この画像処理プログラムは、アセンブラ、C、C++、C#、Java(登録商標)等のレガシープログラミング言語やオブジェクト指向ブログラミング言語等で記述されたコンピュータ実行可能なプログラムであり、上記記録媒体に格納して頒布することができる。
That is, the copying
ネットワーク接続部は、LAN(Local Area Network)等のネットワークに接続されてネットワークを介して該ネットワークに接続されている外部装置との間でデータ及びコマンドの授受を行う。すなわち、複写装置1は、ネットワークを介して外部装置から画像データとコマンドが送られてくると、該コマンドに基づいて送られてきた画像データに対して画像処理デバイス4で必要な画像処理を施した後、プリンタユニットで印刷出力する。また、複写装置1は、外部装置からのコマンドによってデータ転送が要求されると、読み取りユニット2で読み取った原稿の画像データを画像処理デバイス4で必要な画像処理を施した後、ネットワークを介して該外部装置に転送する。
The network connection unit is connected to a network such as a local area network (LAN), and exchanges data and commands with an external device connected to the network via the network. That is, when image data and a command are sent from an external device via a network, the copying
次に、本実施例の作用を説明する。本実施例の複写装置1は、画像処理デバイス4のラインバッファLbのライン幅を越える画像データを速やかにかつ適切に画像処理する。
Next, the operation of this embodiment will be described. The copying
複写装置1は、読み取りユニット2に原稿がセットされ、操作表示部で必要な操作が行われた後、コピーまたはデータ転送の開始を指示する操作が操作表示部で行われると、読み取りユニット2は、原稿の画像データを読み取って読み取った原稿の画像データを、図2に示すように、1ラインずつRAM3に書き込みデータW1〜W3のように書き込む(ライトする)。
When an operation for instructing the start of copying or data transfer is performed on the operation display unit after a document is set on the
そして、画像処理デバイス4は、RAM3に書き込まれた画像データのライン幅が、内蔵するラインバッファLbのライン幅以下であるときには、RAM3の画像データをライン毎に読み出してラインバッファLbに書き込んで、ラインバッファLbの画像データに対して必要な画像処理を施して、画像処理した画像データをそのままコントローラに出力する。コントローラは、画像処理デバイス4から送られてきた画像データを、プリンタユニットで印刷出力するのに必要な画像データに変換してプリンタユニットに送って、プリンタユニットで印刷出力させたり、外部装置に転送するのに適した画像データに変換して、ネットワーク接続部を介して該外部装置に転送する。
When the line width of the image data written in the
一方、画像処理デバイス4は、RAM3に書き込まれた画像データのライン幅が、内蔵するラインバッファLbのライン幅よりも大きいときには、RAM3上の画像データを、水平方向において所定ライン数の水平領域に分割するとともに、該水平領域を垂直方向において該ラインバッファLbのライン幅以下の所定ライン幅で複数の垂直領域に分割して、該水平領域毎に該水平領域に属する該垂直領域のうち、ライン方向先頭側の垂直領域の画像データを先頭ラインから順次該ラインバッファLbに取り込み、該ラインバッファLbの画像データを、プリンタユニットで印刷出力するのに必要な画像データに変換してプリンタユニットに送って、プリンタユニットで印刷出力させたり、外部装置に転送するのに適した画像データに変換して、ネットワーク接続部を介して該外部装置に転送する。例えば、画像処理デバイス4は、図3に示すように、RAM3の画像データを、3ラインずつの水平領域Ah(h=1〜*、*は、画像データのライン数と1つの水平領域Ahのライン数によって決定される数値である。)に分割するとともに、該各水平領域Ahを垂直方向において該ラインバッファLbのライン幅以下の所定ライン幅で複数の垂直領域Av(v=1〜*、*は、画像データのライン幅とラインバッファLbのライン幅及び分割ライン幅によって決定される数値である。)に分割し、該水平領域Ah毎に該水平領域Ahに属する垂直領域Avのうち、ライン方向先頭側の垂直領域Av(v=1)における先頭ラインの画像データから順次ラインバッファLbに転送する。すなわち、画像処理デバイス4は、図3の場合、RAM3の画像データを、所定ライン数ずつの2つの水平領域Ah(h=1、2)に分割するとともに、各水平領域Ah(h=1、2)を、垂直方向においてラインバッファLbのライン幅以下のライン幅で2つの垂直領域Av(v=1、2)に分割し、水平領域Ah(h=1、2)毎に該水平領域Ah(h=1、2)に属する2つの垂直領域Av(v=1、2)のうち、ライン方向先頭側の垂直領域Av(v=1)の画像データから順次ラインバッファLbに転送する。すなわち、画像処理デバイス4は、図3及びさらに詳細な手順を示す図4に示すように、水平領域Ah(h=1)の垂直領域Av(v=1)である領域A1−1のライン画像データR1から読み取りを開始して、領域A1−1のライン画像データR2、R3を順次読み取ってラインバッファLbに取り込んで画像処理を行い、次に、水平領域Ah(h=1)の垂直領域Av(v=2)である領域A1−2のライン画像データR4からライン画像データR6までを順次読み取ってラインバッファLbに取り込んで画像処理を行う。画像処理デバイス4は、水平領域Ah(h=1)の全ての垂直領域Av(v=1、2)におけるライン画像データR1〜R6のラインバッファLbへの取り込みが完了すると、次に、次の水平領域Ah(h=2)の垂直領域Av(v=1)である領域A2−1のライン画像データR7から上記同様に読み取ってラインバッファLbに取り込んで画像処理を行う処理を順次行う。
On the other hand, when the line width of the image data written in the
そして、画像処理デバイス4は、ラインバッファLbに取り込んだ画像データを、順次ライン毎に画像処理し、RAM3上の画像データの並び順に合わせて画像処理後の画像データを結合させてコントローラに出力する。
Then, the
コントローラは、画像処理デバイス4で処理された画像データを一旦ハードディスク等に蓄積して、プリンタユニットに送ってプリンタユニットに用紙に画像形成させたり、ネットワーク接続部を介してネットワーク上の外部装置に画像データを転送する。
The controller temporarily stores the image data processed by the
なお、複写装置1は、画像処理デバイス4が実行する画像処理としては、他のラインの画像データを参照して画像処理する画像処理、例えば、フィルタ処理、階調処理等があり、このような他のラインの画像データを参照して処理する画像処理を実行するために、図5に示すように、例えば、5ラインを参照して2次元フィルタ処理を行う場合、5ライン分のラインバッファLbを備えていて、バッファLb0〜バッファLb4のラインバッファLbに、N−5ライン目の入力画像データからN−1ライン目の入力画像データを順次ライン毎に入力して最終ラインのN−1ラインの2次元フィルタ処理を行うのに、他のラインの画像データを参照する。
Note that the image processing executed by the
そして、このような他のラインの画像データを参照して画像処理を行う場合、画像処理の途中で、他の処理を行う必要が生じることがある。このような場合に、画像処理デバイス4は、一旦中断した画像処理を、該他の処理が終了した後に、速やかに続きの処理を再開することができるように、他のメモリ、例えば、RAM3を中間データ保存手段として、RAM3に、実行中の該画像処理の中断、再開に必要なデータを中間データとして保存し、他の処理が終了すると、該中間データを参照して中断した画像処理を継続する。
When performing image processing with reference to image data of such other lines, it may be necessary to perform other processing during the image processing. In such a case, the
すなわち、複写装置1は、他のラインの画像データを参照して画像処理、例えば、2次元フィルタ処理を行う場合、RAM3及び画像処理デバイス4内部の初期化を行った後、図6に示すように、複数ラインからなる先頭の水平領域Ah(h=1)における全ラインの画像データが読み取りユニット2からライン毎に読み取られてRAM3に書き込まれると、画像処理デバイス4は、RAM3から、まず、水平領域Ah(h=1)における先頭の垂直領域Av(v=1)の画像データを順次ライン毎に読み取って、例えば、図5に示したように、5ライン分のラインバッファLbに順次書き込んでいき、他のラインの画像データを参照して、フィルタ処理を実行する(S1)。
That is, when performing image processing, for example, two-dimensional filter processing, with reference to image data of another line, the copying
すなわち、図7に示すように、画像処理デバイス4は、領域A1−1(水平領域Ah(h=1)の垂直領域Av(v=1)の領域)の画像処理を開始して画像処理が終了すると、中間データC1を全てRAM3に書き出して(S2)、図7に示すように、領域A1−2(水平領域Ah(h=1)の垂直領域Av(v=2)の領域)の処理に移る(S3)。さらに、画像処理デバイス4は、領域A1−2の処理を終了すると、中間データC2を全てRAM3に書き出して(S3)、図8に示すように、領域2−1(水平領域Ah(h=2)の垂直領域Av(v=1)の領域)の処理に移る(S5、S6)。このとき、画像処理デバイス4は、図8に示すように、領域1−1の処理後の中間データCを読み出してから(S5)、領域2−1の処理を開始し(S6)、領域2−1の処理を終了すると、中間データCを全てRAM3に書き出して(S7)、領域2−2(水平領域Ah(h=2)の垂直領域Av(v=2)の領域)の処理に移る。この領域2−2の処理においては、画像処理デバイス4は、領域1−2の処理後の中間データを読み出してから、領域2−2の処理を開始し、領域2−2の処理が終了すると、中間データを全てRAM3に書き出して、領域3−1(水平領域Ah(h=3)の垂直領域Av(v=1)の領域)の処理に移る。画像処理デバイス4は、領域3−1の処理においては、領域2−1の処理後の中間データを読み出してから、領域3−1の処理を開始し、処理が終了すると、中間データCを全てRAM3に書き出して、領域3−2(水平領域Ah(h=3)の垂直領域Av(v=2)の領域)の処理に移るという処理を繰り返し行って、1ページ分の処理を行う。
That is, as shown in FIG. 7, the
すなわち、領域A1−1の処理が終わった後、領域A1−2の処理を開始するが、水平方向への分割も行うため、読み取りユニット2が領域A1−1、領域A1−2を読み終わった時点で、領域A1−2の画像処理を開始することができる。また、同様に、読み取りユニット2が全領域Ah−vを読み終わった時点で画像処理が終わっていない領域は、図4の場合、領域A3−2だけとなり、また、領域分割による処理時間の増加分は、水平方向及び垂直方向に分割された最後の一つの領域だけとなり、領域分割による処理時間の増加を、大きく削減することができる。
That is, the processing of the area A1-2 is started after the processing of the area A1-1 is completed, but the
要するに、水平方向及び垂直方向に画像を分割して、水平方向の分割単位で処理を終わらせていくので、画像処理デバイス4の処理速度を上げることで、水平領域Ah内では読み取りと等速で画像処理を行うことができ、リアルタイム処理に近い速度で画像処理を行うことができる。
In short, the image is divided in the horizontal direction and the vertical direction, and the processing is finished in the division unit in the horizontal direction. Therefore, by increasing the processing speed of the
このように、参照データを参照しながら画像処理を行う場合に、中間データCをRAM3に書き出して、該RAM3の中間データCを読み込んで、領域h−vの画像処理を行う前に、領域(h−1)−vの画像処理終了後の状態に戻すことで、領域h−vと領域(h−1)−vを連続して処理したときと同じ結果を得ることができる。
As described above, when image processing is performed while referring to the reference data, the intermediate data C is written to the
そして、画像処理デバイス4は、水平方向及び垂直方向に分割した画像データを画像処理すると、分割前の画像データに合わせて結合してコントローラに出力する。
Then, when the
すなわち、画像処理デバイス4は、図5に示したように、画像処理で参照するライン数分のラインバッファLbを備えており、ラインデータを更新するときに、全てのラインバッファLbのラインデータも1ラインシフトさせる。具体的には、ライン更新時に、ラインバッファLb1のラインデータをラインバッファLb0にコピー、ラインバッファLb2のラインデータをラインバッファLb1にコピー、ラインバッファLb3のラインデータをラインバッファLb2にコピー、ラインバッファLb4のラインデータをラインバッファLb3にコピー、それぞれ順次コピーして、連続した数ラインのデータを参照して2次元フィルタ処理を行う。
That is, as shown in FIG. 5, the
すなわち、画像データをラインバッファLbのライン幅に応じて垂直方向に分割する際に、画像データを水平方向の分割を行って処理速度を速めながら、水平方向の分割をしない場合と同じ画像処理結果を得ることができる。 That is, when the image data is divided in the vertical direction according to the line width of the line buffer Lb, the same image processing result as in the case where the image data is divided in the horizontal direction to increase the processing speed and is not divided in the horizontal direction. Can be obtained.
また、画像処理デバイス4は、フィルタ処理等の途中で、画像の他の領域の他の処理を行う等のように連続した他のラインデータの参照を伴う処理以外の処理、例えば、別領域のフィルタ処理を行う場合、図9に示すように、該他の処理を行うために、ラインバッファLbに該処理対象の別領域の画像データを書き込んで、該別領域の画像処理を行う。すなわち、別処理を行うために、ラインバッファLbが他の領域の画像データによって埋められてします。
In addition, the
そこで、画像処理デバイス4は、別領域の画像処理を行う場合、それまでの複数のラインバッファLbを参照する画像処理、例えば、フィルタ処理で使用しているラインバッファLbのデータを、中間データCとして、RAM3に書き出して保管することで、他の処理が終了して、フィルタ処理を再開する場合に、図10に示すように、RAM3の中間データを参照して、中断した処理から続けて速やかにかつ適切にフィルタ処理を再開することができる。この場合の中間データCとしては、ラインバッファLb、カウンタ等のレジスタ、その他の画像処理で使用する全てのデータである。なお、図10では、図5のN−1ライン目の5ライン参照2次元フィルタ処理を行った後に処理を中断して、図9に示した他の領域の画像データをラインバッファLbに入れた後に、Nライン目の5ライン参照2次元フィルタ処理を再開する場合について示されている。
Therefore, when performing image processing of another region, the
なお、上記説明では、5ラインを参照してフィルタ処理を行う場合について説明したが、複数のラインデータを参照して処理する画像処理としては、フィルタ処理に限るものではなく、また、ライン数も5ラインに限るものではなく、複数ライン分のラインバッファLbを使用して演算を行う画像処理一般に適用することで、該画像処理の中断及び再開を速やかにかつ適切に行うことができる。 In the above description, the case where the filtering process is performed with reference to five lines has been described. However, the image processing that is performed with reference to a plurality of line data is not limited to the filtering process, and the number of lines is also determined. The present invention is not limited to five lines, and by applying to general image processing that performs calculations using line buffers Lb for a plurality of lines, the image processing can be interrupted and resumed promptly and appropriately.
また、例えば、2種類の演算を1ライン毎に交互に切り替える画像処理においても、現在のラインが偶数ラインであるのか奇数ラインであるのかの情報を中間データCとして保存することで、中断した処理を中間データCを読み取ることで、速やかにかつ適切に連続性を維持して再開することができる。 Further, for example, even in the image processing in which two types of operations are alternately switched for each line, the information indicating whether the current line is an even line or an odd line is stored as intermediate data C, thereby interrupting the process. By reading the intermediate data C, the continuity can be maintained promptly and appropriately.
このように、画像処理で使用するラインバッファLbや内部情報を全て中間データとしてRAM3に書き出しておくことで、処理の中断及び再開を速やかにかつ適切に行うことができ、ラインバッファLbのライン幅によって画像データを垂直方向に分割しても、適切にかつ速やかに処理することができる。
Thus, by writing all the line buffer Lb and internal information used in the image processing to the
そして、中間データCは、例えば、図11に高画質用中間データとして示すように、各画像処理(プリンタ処理、階調処理等)で使用するラインバッファLbのデータと内部レジスタの情報を全てRAM3に書き出すと、全ての画像処理において中断と再開を速やかにかつ適切に行うことができる。 For example, as shown in FIG. 11 as intermediate data for high image quality, the intermediate data C includes all the data in the line buffer Lb used in each image processing (printer processing, gradation processing, etc.) and information in the internal register. In this case, interruption and resumption can be performed promptly and appropriately in all image processing.
ところが、中間データのRAM3への書き出しは、上述のように全ての処理のデータを書き出す場合に限るものではなく、画像処理において求められる画質の要件等に応じて中間データCとして使用するデータを、例えば、図12に高速処理用中間データとして示すように、フィルタ用内部レジスタデータと階調処理用内部レジスタデータのみを中間データCとしてRAM3に書き出すようにしてもよい。このようにすると、中間データCに使用するRAM3の容量を節約することができるとともに、中間データCのRAM3への書き出しや読み出しの時間を短縮して、処理時間をより一層高速化することができる。
However, the writing of the intermediate data to the
このように、本実施例の複写装置1は、読み取りユニット2で読み取られてRAM3に格納された処理対象画像の画像データのライン幅がラインバッファLbのライン幅よりも大きいと、画像処理デバイス4が、該画像データを、水平方向において所定ライン数毎の水平領域Ahに分割するとともに、該水平領域Ahを垂直方向において該ラインバッファLbのライン幅以下の所定ライン幅で複数の垂直領域Avに分割して、該水平領域Ah毎に該水平領域Ahに属する該垂直領域Avのうち、ライン方向先頭側の垂直領域Avの画像データから順次ラインバッファLbに転送し、ラインバッファLbの画像データに対して所定の画像処理を施して、該垂直領域Av毎に画像処理された画像データを処理対象画像の画像データに合わせて結合している。
As described above, when the line width of the image data of the processing target image read by the
したがって、ラインバッファLbのライン幅を超える画像幅の画像データを回路規模を大きくすることなく、速やかに画像処理することができる。 Therefore, image data having an image width exceeding the line width of the line buffer Lb can be promptly processed without increasing the circuit scale.
また、本実施例の複写装置1は、複数ライン分の画像データが格納されるラインバッファLbに格納されている他のラインの画像データを参照して処理するフィルタ処理、階調処理等の画像処理を中断して他の画像処理を実行する場合に、実行中の該画像処理の中断、再開に必要なデータを中間データCとしてRAM(中間データ保存手段)3に保存している。
In addition, the copying
したがって、ファイル処理等の他のラインを参照して処理する画像処理の実行を中断して他の処理を実行しても、中間データに基づいて処理の連続性を維持して、速やかに元の画像処理を継続することができ、画像処理の高速化を図ることができる。 Therefore, even if the execution of the image processing to be processed with reference to another line such as file processing is interrupted and another processing is executed, the continuity of the processing is maintained based on the intermediate data, and the original processing is promptly performed. Image processing can be continued, and the speed of image processing can be increased.
さらに、本実施例の複写装置1は、RAM3に保存する中間データCを適宜選択している。
Further, the copying
したがって、画像品質の高品質化とRAM3の中間データCで使用する容量を削減しつつ処理速度の高速化のうち、ユーザの意図に応じて、処理することができ、利用性を向上させることができる。
Therefore, it is possible to process according to the user's intention among the improvement of the image quality and the increase of the processing speed while reducing the capacity used for the intermediate data C of the
以上、本発明者によってなされた発明を好適な実施例に基づき具体的に説明したが、本発明は上記実施例で説明したものに限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることはいうまでもない。 The invention made by the present inventor has been specifically described based on the preferred embodiments. However, the present invention is not limited to that described in the above embodiments, and various modifications can be made without departing from the scope of the invention. It goes without saying that it is possible.
本発明は、ラインバッファ幅を越えるライン幅の画像データを画像処理する画像処理装置、画像形成装置、画像処理方法、画像処理プログラム及び記録媒体に利用することができる。 The present invention can be used in an image processing apparatus, an image forming apparatus, an image processing method, an image processing program, and a recording medium that perform image processing on image data having a line width exceeding the line buffer width.
1 複写装置
2 読み取りユニット
3 RAM
4 画像処理ユニット
Ah 水平領域
Av 垂直領域
Lb ラインバッファ
1
4 Image processing unit Ah Horizontal area Av Vertical area Lb Line buffer
Claims (7)
処理対象画像の画像データのライン幅が前記ラインバッファのライン幅よりも大きいと、該画像データを、水平方向において所定ライン数毎の水平領域に分割するとともに、該水平領域を垂直方向において該ラインバッファのライン幅以下の所定ライン幅で複数の垂直領域に分割して、該水平領域毎に該水平領域に属する該垂直領域のうち、前記ライン方向先頭側の垂直領域の画像データから順次該ラインバッファに転送するデータ管理手段と、
前記ラインバッファに転送されてきた画像データに対して所定の画像処理を施す画像処理手段と、
前記画像処理手段で前記垂直領域毎に画像処理された画像データを前記処理対象画像の画像データに合わせて結合する画像データ結合手段と、
を備えていることを特徴とする画像処理装置。 A line buffer having a predetermined line width in which image data is sequentially stored in a predetermined line direction in units of lines;
When the line width of the image data of the processing target image is larger than the line width of the line buffer, the image data is divided into horizontal areas for each predetermined number of lines in the horizontal direction, and the horizontal area is divided into the lines in the vertical direction. The line is divided into a plurality of vertical areas with a predetermined line width equal to or smaller than the line width of the buffer, and the lines are sequentially started from the image data of the vertical area on the leading side in the line direction among the vertical areas belonging to the horizontal area for each horizontal area. Data management means for transferring to the buffer;
Image processing means for performing predetermined image processing on the image data transferred to the line buffer;
Image data combining means for combining image data processed by the image processing means for each vertical region in accordance with image data of the processing target image;
An image processing apparatus comprising:
中間データを保存する中間データ保存手段を備え、
前記ラインバッファは、
複数ライン分のバッファを備え、
前記画像処理手段は、
前記ラインバッファに格納されている他のラインの画像データを参照して処理する画像処理を中断して他の画像処理を実行する場合に、実行中の該画像処理の中断、再開に必要なデータを前記中間データとして前記中間データ保存手段に保存することを特徴とする請求項1記載の画像処理装置。 The image processing apparatus includes:
An intermediate data storage means for storing the intermediate data;
The line buffer is
It has a buffer for multiple lines,
The image processing means includes
Data required for interrupting and resuming the image processing being executed when the image processing to be processed with reference to the image data of another line stored in the line buffer is interrupted and another image processing is executed The image processing apparatus according to claim 1, wherein the intermediate data is stored in the intermediate data storage unit.
前記中間データ保存手段に保存する前記中間データを適宜選択することを特徴とする請求項1または請求項2記載の画像処理装置。 The image processing means includes
3. The image processing apparatus according to claim 1, wherein the intermediate data to be stored in the intermediate data storage unit is appropriately selected.
前記ラインバッファに転送されてきた画像データに対して所定の画像処理を施す画像処理ステップと、
前記画像処理ステップで前記垂直領域毎に画像処理された画像データを前記処理対象画像の画像データに合わせて結合する画像データ結合処理ステップと、
を有していることを特徴とする画像処理方法。 When the line width of the image data of the processing target image is larger than the line width of the line buffer, the image data is divided into horizontal areas for each predetermined number of lines in the horizontal direction, and the horizontal area is divided into the line buffer in the vertical direction. Are divided into a plurality of vertical areas with a predetermined line width equal to or less than the line width of the vertical areas, and the line buffer sequentially from the image data of the vertical area on the leading side in the predetermined line direction among the vertical areas belonging to the horizontal area for each horizontal area Data management processing steps to be transferred to
An image processing step of performing predetermined image processing on the image data transferred to the line buffer;
An image data combination processing step for combining the image data image-processed for each vertical region in the image processing step according to the image data of the processing target image;
An image processing method characterized by comprising:
処理対象画像の画像データのライン幅がラインバッファのライン幅よりも大きいと、該画像データを、水平方向において所定ライン数毎の水平領域に分割するとともに、該水平領域を垂直方向において該ラインバッファのライン幅以下の所定ライン幅で複数の垂直領域に分割して、該水平領域毎に該水平領域に属する該垂直領域のうち、所定ライン方向先頭側の垂直領域の画像データから順次該ラインバッファに転送するデータ管理処理と、
前記ラインバッファに転送されてきた画像データに対して所定の画像処理を施す画像処理と、
前記画像処理で前記垂直領域毎に処理された画像データを前記処理対象画像の画像データに合わせて結合する画像データ結合処理と、
を実行させることを特徴とする画像処理プログラム。 On the computer,
When the line width of the image data of the processing target image is larger than the line width of the line buffer, the image data is divided into horizontal areas for each predetermined number of lines in the horizontal direction, and the horizontal area is divided into the line buffer in the vertical direction. Are divided into a plurality of vertical areas with a predetermined line width equal to or less than the line width of the vertical areas, and the line buffer sequentially from the image data of the vertical area on the leading side in the predetermined line direction among the vertical areas belonging to the horizontal area for each horizontal area Data management process to transfer to
Image processing for performing predetermined image processing on the image data transferred to the line buffer;
Image data combining processing for combining image data processed for each vertical region in the image processing in accordance with image data of the processing target image;
An image processing program for executing
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011091072A JP2012227598A (en) | 2011-04-15 | 2011-04-15 | Image processor, image forming apparatus, image processing method, image processing program and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011091072A JP2012227598A (en) | 2011-04-15 | 2011-04-15 | Image processor, image forming apparatus, image processing method, image processing program and recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012227598A true JP2012227598A (en) | 2012-11-15 |
Family
ID=47277348
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011091072A Withdrawn JP2012227598A (en) | 2011-04-15 | 2011-04-15 | Image processor, image forming apparatus, image processing method, image processing program and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012227598A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9219960B2 (en) | 2009-12-16 | 2015-12-22 | Trigence Semiconductor Inc. | Acoustic playback system |
US9300310B2 (en) | 2009-12-09 | 2016-03-29 | Trigence Semiconductor, Inc. | Selection device |
-
2011
- 2011-04-15 JP JP2011091072A patent/JP2012227598A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9300310B2 (en) | 2009-12-09 | 2016-03-29 | Trigence Semiconductor, Inc. | Selection device |
US9219960B2 (en) | 2009-12-16 | 2015-12-22 | Trigence Semiconductor Inc. | Acoustic playback system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2008148291A5 (en) | ||
US9569703B2 (en) | Data transfer apparatus and method thereof | |
JP2013073508A (en) | Data processing device, data processing method, and program | |
US9600747B2 (en) | Image forming apparatus and control method that execute a plurality of rendering processing units in parallel | |
JP6251029B2 (en) | Control device, image processing device, control method, and program | |
JP2007304803A (en) | Image processor | |
JP2012227598A (en) | Image processor, image forming apparatus, image processing method, image processing program and recording medium | |
JP6460627B2 (en) | Image processing apparatus capable of performing printing based on image data obtained by reading original, control method for image processing apparatus, and program | |
JP2007323335A (en) | Buffer control module, image processor, and program | |
JP2010028758A (en) | Image processing apparatus and method, program, and imaging apparatus | |
US9609173B2 (en) | Memory control circuit and image forming apparatus | |
JP2015022363A (en) | Data transfer controller, data transfer control method, and program | |
JP6544905B2 (en) | Image processing apparatus, image processing method, program | |
US8514441B2 (en) | Image processing apparatus and control method thereof, in which an address for image data depends on whether the image data is input via a detachable image processing device | |
JP2012146032A (en) | Image memory control apparatus and image processing apparatus | |
JP2017038346A (en) | Image processing apparatus, image processing method and program | |
JP4402676B2 (en) | Image processing apparatus and image processing method | |
JP7249504B2 (en) | Image processing device | |
JP4316476B2 (en) | Image processing apparatus and image forming apparatus | |
JPH11168610A (en) | Image processor | |
JP5753370B2 (en) | Image processing apparatus, method, and program | |
JP2021124945A (en) | Image processing apparatus, program, and image processing method | |
JP2001325085A (en) | Printing system | |
JP2006092506A (en) | Image processor | |
JP5278497B2 (en) | Image processing apparatus and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20140701 |