JP6002649B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP6002649B2
JP6002649B2 JP2013206261A JP2013206261A JP6002649B2 JP 6002649 B2 JP6002649 B2 JP 6002649B2 JP 2013206261 A JP2013206261 A JP 2013206261A JP 2013206261 A JP2013206261 A JP 2013206261A JP 6002649 B2 JP6002649 B2 JP 6002649B2
Authority
JP
Japan
Prior art keywords
scanning direction
descriptor
block
band
area
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
Application number
JP2013206261A
Other languages
Japanese (ja)
Other versions
JP2015069619A (en
Inventor
篤志 西田
篤志 西田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions 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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2013206261A priority Critical patent/JP6002649B2/en
Publication of JP2015069619A publication Critical patent/JP2015069619A/en
Application granted granted Critical
Publication of JP6002649B2 publication Critical patent/JP6002649B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、ディスクリプターを用いた画像データの処理に関する。   The present invention relates to processing of image data using a descriptor.

画像データ(例えば、原稿をスキャナーで読み取ることによって得られた画像データ)をメインメモリーに格納する時、画像データが大きければ、連続するアドレスの記憶領域を必ずしも確保できない。そこで、画像データを複数に分けて、アドレスが不連続な記憶領域に格納することにより、メモリー空間を効率的に利用している。この場合、アドレスが不連続な記憶領域に格納されたデータをつなげて元の画像データに戻すことができるように、ディスクリプターが用いられる(例えば、特許文献1参照)。   When image data (for example, image data obtained by reading a document with a scanner) is stored in the main memory, if the image data is large, a storage area of continuous addresses cannot be secured. Therefore, the memory space is efficiently used by dividing the image data into a plurality of pieces and storing them in a storage area where the addresses are discontinuous. In this case, a descriptor is used so that data stored in storage areas with discontinuous addresses can be connected and restored to the original image data (see, for example, Patent Document 1).

メモリー空間を効率的に利用するために、一つの画像データに対してディスクリプターが大量(例えば数千)に割り当てられる。目的となるディスクリプターへのアクセス時間を短くできれば、画像データを効率的に処理(例えばメインメモリーに格納された各画素のデータへのアクセス時間の短縮)することができる。   In order to efficiently use the memory space, a large number (for example, thousands) of descriptors are assigned to one image data. If the access time to the target descriptor can be shortened, the image data can be processed efficiently (for example, the access time to the data of each pixel stored in the main memory).

そこで、次の技術が提案されている(例えば、特許文献2参照)。複数のブロックディスクリプターが、主走査方向及び副走査方向に並ぶ複数のブロック領域のそれぞれに割り当てられている。複数のバンドディスクリプターが、副走査方向に並ぶ複数のバンド領域にそれぞれ割り当てられている。ブロックディスクリプターとバンドディスクリプターとを組み合わせることにより、目的となるバンドディスクリプターへのアクセス時間を短くすることを可能にしている。   Therefore, the following technique has been proposed (see, for example, Patent Document 2). A plurality of block descriptors are assigned to each of a plurality of block areas arranged in the main scanning direction and the sub-scanning direction. A plurality of band descriptors are respectively assigned to a plurality of band regions arranged in the sub-scanning direction. By combining the block descriptor and the band descriptor, it is possible to shorten the access time to the target band descriptor.

特開2005−250996号公報(段落0023〜段落0026、図2、図3)Japanese Patent Laying-Open No. 2005-250996 (paragraphs 0023 to 0026, FIGS. 2 and 3) 特開2011−248447号公報(要約)JP 2011-248447 A (summary)

複数のブロックディスクリプターは、それぞれ、割り当てられたブロック領域の先頭画素について、主走査方向及び副走査方向の座標値、並びに、割り当てられたブロック領域について、主走査方向及び副走査方向の画素数の情報を含む。これらの情報は、ブロックディスクリプターどうしにおいて重複しており、冗長になっていた。   The plurality of block descriptors each have coordinate values in the main scanning direction and sub-scanning direction for the first pixel of the allocated block area, and the number of pixels in the main scanning direction and sub-scanning direction for the allocated block area. Contains information. These pieces of information are duplicated between the block descriptors and are redundant.

本発明は、ブロックディスクリプターとバンドディスクリプターとを用いて画像データを処理する場合に、ディスクリプターのサイズを小さくできる画像処理装置を提供することを目的とする。   An object of the present invention is to provide an image processing apparatus capable of reducing the size of a descriptor when image data is processed using a block descriptor and a band descriptor.

上記目的を達成する本発明に係る画像処理装置は、主走査方向にm個、副走査方向にn個のブロック領域が並ぶm×n個の前記ブロック領域と、前記ブロック領域よりも画素数が主走査方向で多いバンド領域が副走査方向に並ぶ複数の前記バンド領域と、を用いて画像データを処理する画像処理装置であって、メインメモリーと、前記メインメモリーに格納する画像データについて、複数の前記バンド領域のそれぞれに対応する複数のバンド領域データに分けて処理をする処理部であって、前記バンド領域データを複数の分割データに分割して前記メインメモリーにアドレスを異ならせて格納する処理を、複数の前記バンド領域データのそれぞれについて実行する分割処理部と、複数の前記バンド領域のそれぞれに割り当てられた複数のバンドディスクリプターを処理する処理部であって、前記メインメモリーに前記画像データが格納される際に、前記バンド領域データに対応する前記バンド領域に割り当てられた前記バンドディスクリプターに対して、複数の前記分割データのそれぞれの先頭画素のデータの前記メインメモリー上のアドレス及び複数の前記分割データのそれぞれの画素数を示す分割データ情報を加えて前記メインメモリーに格納する処理を、複数の前記バンドディスクリプターのそれぞれにおいて実行するバンドディスクリプター処理部と、を備え、複数の前記バンドディスクリプターは、順番付けられており、前記メインメモリーに格納された複数の前記バンドディスクリプターのそれぞれは、次の順番のバンドディスクリプターの前記メインメモリー上のアドレスの情報を含み、前記ブロック領域の先頭画素を含む前記バンド領域に割り当てられた前記バンドディスクリプターの前記メインメモリー上のアドレスを、バンドディスクリプター関係付けアドレスとし、さらに、前記ブロック領域の先頭画素の主走査方向の座標値及び前記ブロック領域の主走査方向の画素数が共通する前記ブロック領域に対して設けられ、主走査方向において共通する前記座標値及び前記画素数の情報を含むm個の主走査方向ディスクリプターと、前記ブロック領域の先頭画素の副走査方向の座標値及び前記ブロック領域の副走査方向の画素数が共通する前記ブロック領域に対して設けられ、副走査方向において共通する前記座標値及び前記画素数、並びに、前記バンドディスクリプター関係付けアドレスの情報を含むn個の副走査方向ディスクリプターと、について、前記メインメモリーに前記画像データが格納される際に、予め定められた記憶領域に格納する主・副走査方向ディスクリプター処理部と、前記記憶領域に格納されたm個の前記主走査方向ディスクリプターと、n個の前記副走査方向ディスクリプターと、を組み合わせて、m×n個の前記ブロック領域の任意のブロック領域に割り当てられたブロックディスクリプターを生成するブロックディスクリプター生成部と、を備える。   An image processing apparatus according to the present invention that achieves the above object includes m × n block areas in which m block areas are arranged in the main scanning direction and n block areas are arranged in the sub scanning direction, and the number of pixels is larger than that of the block areas. An image processing apparatus that processes image data using a plurality of band regions in which a large number of band regions in the main scanning direction are arranged in the sub-scanning direction, wherein a plurality of image data stored in the main memory are stored in the main memory. A processing unit that divides the data into a plurality of band region data corresponding to each of the band regions, divides the band region data into a plurality of divided data, and stores the data in the main memory with different addresses. A division processing unit that executes processing for each of the plurality of band region data, and a plurality of bands assigned to each of the plurality of band regions. A processing unit for processing a descriptor, wherein when the image data is stored in the main memory, a plurality of the band descriptors assigned to the band region corresponding to the band region data A plurality of band descriptors including a process of adding to the main memory an address on the main memory of the data of the first pixel of each of the divided data and dividing data information indicating the number of pixels of each of the plurality of divided data Each of the plurality of band descriptors is ordered, and each of the plurality of band descriptors stored in the main memory is in the following order: Add the band descriptor on the main memory An address on the main memory of the band descriptor assigned to the band area including the head pixel of the block area is a band descriptor-related address, and further, the head pixel of the block area Are provided for the block region having the same coordinate value in the main scanning direction and the number of pixels in the main scanning direction of the block region, and include m pieces of information including the coordinate value and the number of pixels common in the main scanning direction. The main scanning direction descriptor, the coordinate value in the sub-scanning direction of the first pixel of the block region, and the number of pixels in the sub-scanning direction of the block region are provided for the block region, and the common in the sub-scanning direction. Contains information on coordinate values, the number of pixels, and the band descriptor association address A main / sub-scanning direction descriptor processing unit that stores in a predetermined storage area when the image data is stored in the main memory, and the sub-scanning direction descriptor, and stores in the storage area A block descriptor assigned to an arbitrary block area of the m × n block areas is generated by combining the m main scanning direction descriptors and the n sub-scanning direction descriptors. A block descriptor generation unit.

本発明に係る画像処理装置では、m個の主走査方向ディスクリプターとn個の副走査方向ディスクリプターとを組み合わせて、m×n個のブロック領域の任意のブロック領域に割り当てられたブロックディスクリプターを生成する。従って、m×n個のブロックディスクリプターを予め用意する必要がないので、ディスクリプターのサイズ(データの量)を小さくすることができる。   In the image processing apparatus according to the present invention, a block descriptor assigned to an arbitrary block area of m × n block areas by combining m main scanning direction descriptors and n sub-scanning direction descriptors. Is generated. Accordingly, since it is not necessary to prepare m × n block descriptors in advance, the descriptor size (data amount) can be reduced.

ブロックディスクリプターを構成する副走査方向ディスクリプターは、バンドディスクリプター関係付けアドレスの情報を含む。したがって、ブロック領域の先頭の画素を含むバンド領域に割り当てられたバンドディスクリプターのアドレスを、そのブロック領域に割り当てられたブロックディスクリプターから知ることができる。   The sub-scanning direction descriptor constituting the block descriptor includes information on a band descriptor association address. Therefore, the address of the band descriptor assigned to the band area including the first pixel of the block area can be known from the block descriptor assigned to the block area.

メインメモリーに格納されている複数のバンドディスクリプターのそれぞれは、次の順番のバンドディスクリプターのメインメモリー上のアドレスの情報を含むので、ブロックディスクリプターを利用しなくても目的となるバンドディスクリプターへアクセスできる。しかし、この場合は1番目のバンドディスクリプターから順番にバンドディスクリプターを検索しなければならない。本発明によればブロックディスクリプターを利用することにより、途中のバンドディスクリプターから検索を開始して目的となるバンドディスクリプターへアクセスすることができる。したがって、バンドディスクリプターへのアクセス時間を短くすることが可能となる。   Each of the plurality of band descriptors stored in the main memory includes the address information on the main memory of the next band descriptor, so that the target band descriptor can be obtained without using the block descriptor. Access to. However, in this case, the band descriptors must be searched in order from the first band descriptor. According to the present invention, by using a block descriptor, it is possible to start a search from an intermediate band descriptor and access a target band descriptor. Therefore, the access time to the band descriptor can be shortened.

上記構成において、前記分割処理部、前記バンドディスクリプター処理部、前記ブロックディスクリプター生成部、並びに、m個の前記主走査方向ディスクリプター及びn個の前記副走査方向ディスクリプターが格納されているSRAMを含むASICと、前記ASICと前記メインメモリーとを接続するバスと、を備え、前記記憶領域は、前記SRAMであり、前記ブロックディスクリプター生成部は、前記SRAMに格納されているm個の前記主走査方向ディスクリプターのそれぞれのアドレスとn個の前記副走査方向ディスクリプターのそれぞれのアドレスを保持し、前記SRAMから前記主走査方向ディスクリプターと前記副走査方向ディスクリプターとを読み出して、m×n個の前記ブロック領域の任意のブロック領域に割り当てられた前記ブロックディスクリプターを生成する。   In the above configuration, the division processing unit, the band descriptor processing unit, the block descriptor generation unit, and an SRAM in which m main scanning direction descriptors and n sub scanning direction descriptors are stored Including the ASIC including the bus, and the bus connecting the ASIC and the main memory, the storage area is the SRAM, and the block descriptor generation unit includes the m pieces of the pieces of data stored in the SRAM. Holding each address of the main scanning direction descriptor and each address of the n sub-scanning direction descriptors, reading out the main scanning direction descriptor and the sub-scanning direction descriptor from the SRAM; Allocated to an arbitrary block area of the n block areas To generate the block descriptor that.

m個の主走査方向ディスクリプター及びn個の副走査方向ディスクリプターの全部のサイズは、m×n個のブロックディスクリプターの全部のサイズよりも、かなり小さいので、メインメモリーでなく、ASICのSRAMに格納することができる。これにより、m個の主走査方向ディスクリプターのそれぞれに、次に読み出す順番の主走査方向ディスクリプターのメインメモリー上のアドレスの情報を含める必要がなくなる。同様に、n個の副走査方向ディスクリプターのそれぞれに、次に読み出す順番の副走査方向ディスクリプターのメインメモリー上のアドレスの情報を含める必要がなくなる。従って、m個の主走査方向ディスクリプター及びn個の副走査方向ディスクリプターの全部のサイズをさらに小さくすることができる。   The total size of the m main scanning direction descriptors and the n sub scanning direction descriptors is considerably smaller than the total size of the m × n block descriptors. Can be stored. Thereby, it is not necessary to include the address information on the main memory of the main scanning direction descriptor in the order of reading next in each of the m main scanning direction descriptors. Similarly, it is not necessary to include the address information on the main memory of the sub-scanning direction descriptor in the next reading order in each of the n sub-scanning direction descriptors. Accordingly, it is possible to further reduce the size of all of the m main scanning direction descriptors and the n sub scanning direction descriptors.

上記構成において、前記ブロックディスクリプター生成部によって生成された各ブロックディスクリプターを構成する前記主走査方向ディスクリプター及び前記副走査方向ディスクリプターに含まれる前記画素数及び前記座標値が、割り当てられた前記ブロック領域についての主走査方向及び副走査方向の画素数並びに先頭画素の座標の情報であるブロック領域情報となり、前記メインメモリーに格納されている前記画像データを基にして形成される画像について、N番目(Nは正の整数)画素が位置する主走査方向及び副走査方向の座標を、前記画像の主走査方向の画素数を基にして演算する座標演算部と、前記座標演算部で演算された前記N番目画素の座標、及び、前記ブロックディスクリプター生成部によって生成された各ブロックディスクリプターに含まれる前記ブロック領域情報を基にして、m×n個の前記ブロック領域のうち前記N番目画素が属する前記ブロック領域を特定するブロック領域特定部と、前記ブロック領域特定部で特定された前記ブロック領域に割り当てられた前記ブロックディスクリプターについて、当該ブロックディスクリプターに含まれる前記バンドディスクリプター関係付けアドレスに格納されている前記バンドディスクリプターを前記メインメモリーから読み出すバンドディスクリプター読出部と、を備える。   In the above configuration, the number of pixels and the coordinate value included in the main scanning direction descriptor and the sub scanning direction descriptor constituting each block descriptor generated by the block descriptor generation unit are allocated With respect to an image formed based on the image data stored in the main memory, the block area information is information on the number of pixels in the main scanning direction and the sub-scanning direction and the coordinates of the leading pixel for the block area. A coordinate calculation unit that calculates the coordinates in the main scanning direction and the sub-scanning direction in which the second (N is a positive integer) pixel is calculated based on the number of pixels in the main scanning direction of the image, and the coordinate calculation unit. The coordinates of the Nth pixel and each block data generated by the block descriptor generator Based on the block area information included in the crypter, the block area specifying unit for specifying the block area to which the Nth pixel belongs among the m × n block areas and the block area specifying unit are specified. A band descriptor reading unit for reading out the band descriptor stored in the band descriptor association address included in the block descriptor from the main memory for the block descriptor assigned to the block area; Prepare.

この構成によれば、メインメモリーに格納されているN番目画素のデータにバンドディスクリプターを利用してアクセスする場合に、N番目画素が属するブロック領域の先頭の画素を含むバンド領域に割り当てられたバンドディスクリプターから開始できる。   According to this configuration, when the Nth pixel data stored in the main memory is accessed using the band descriptor, the Nth pixel data is allocated to the band region including the first pixel of the block region to which the Nth pixel belongs. You can start with a band descriptor.

ここでN番目画素とは、画像において主走査方向に並ぶ画素を行とした場合、1行目の先頭の画素から1行目の最後の画素までを数え、次に2行目の先頭の画素から2行目の最後の画素までを数え、3行目以降も同様にして数えた順番である。   Here, when the pixels arranged in the main scanning direction in the image are rows, the Nth pixel is counted from the first pixel in the first row to the last pixel in the first row, and then the first pixel in the second row. To the last pixel in the second row, and the third and subsequent rows are counted in the same manner.

本発明によれば、ブロックディスクリプターとバンドディスクリプターとを用いて画像データを処理する場合に、ディスクリプターのサイズを小さくできる。   According to the present invention, when image data is processed using a block descriptor and a band descriptor, the size of the descriptor can be reduced.

本発明の一実施形態に係る画像処理装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the image processing apparatus which concerns on one Embodiment of this invention. 本実施形態で用いられるブロック領域とバンド領域の概念図である。It is a conceptual diagram of the block area | region and band area | region used by this embodiment. 図2に示す複数のバンド領域のそれぞれに割り当てられた複数のバンドディスクリプターを示す図である。FIG. 3 is a diagram showing a plurality of band descriptors assigned to each of a plurality of band regions shown in FIG. 2. 4個(m個)の主走査方向ディスクリプターを示す図である。It is a figure which shows four (m pieces) main scanning direction descriptors. 4個(n個)の副走査方向ディスクリプターを示す図である。It is a figure which shows four (n pieces) subscanning direction descriptors. メインメモリーに格納する画像データのうち、バンド領域BA22に対応する画像データであるバンド領域データM22を示す図である。It is a figure which shows the band area data M22 which is image data corresponding to band area BA22 among the image data stored in a main memory. 本実施形態に係る画像処理装置を用いて画像データをメインメモリーへ格納する処理を説明するフローチャートである。It is a flowchart explaining the process which stores image data in the main memory using the image processing apparatus which concerns on this embodiment. 本実施形態に係る画像処理装置を用いて、メインメモリーに格納されている画像データに含まれるN番目画素のデータへのアクセスについて説明するフローチャートである。It is a flowchart explaining the access to the data of the Nth pixel contained in the image data stored in the main memory using the image processing apparatus which concerns on this embodiment. 本実施形態の変形例に係る画像処理装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the image processing apparatus which concerns on the modification of this embodiment.

以下、図面に基づいて本発明の実施形態を詳細に説明する。図1は、本発明の一実施形態に係る画像処理装置1のハードウェア構成を示すブロック図である。画像処理装置1は、複合機、コピー機等に適用されるものであり、CPU(Central Processing Unit)3、メインメモリー7、読み取り専用メモリー9及びASIC(Application Specific Integrated Circuit)11を備えており、これらはバス13により接続されている。また、画像処理装置1は、ラインセンサー5を備えており、専用バス14によりASIC11に接続されている。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing a hardware configuration of an image processing apparatus 1 according to an embodiment of the present invention. The image processing apparatus 1 is applied to a multifunction machine, a copier, and the like, and includes a CPU (Central Processing Unit) 3, a main memory 7, a read-only memory 9, and an ASIC (Application Specific Integrated Circuit) 11. These are connected by a bus 13. Further, the image processing apparatus 1 includes a line sensor 5 and is connected to the ASIC 11 through a dedicated bus 14.

CPU3は、画像処理装置1を動作させるために必要な制御を、画像処理装置1を構成する上記ハードウェアに対して実行する。ラインセンサー5は、画像処理装置1のスキャナーを構成する要素であり、原稿の画像を読み取り、画像データを出力する。ラインセンサー5は、例えば、CCD(Charge Coupled Device)センサーにより実現される。   The CPU 3 executes control necessary for operating the image processing apparatus 1 on the hardware constituting the image processing apparatus 1. The line sensor 5 is an element constituting the scanner of the image processing apparatus 1, reads an image of a document, and outputs image data. The line sensor 5 is realized by, for example, a CCD (Charge Coupled Device) sensor.

メインメモリー7は、RAM(Random Access Memory)であり、ソフトウェアの実行時に発生するデータの一時的な記憶及びアプリケーションソフトの記憶等に利用される。メインメモリー7は、例えば、DRAM(Dynamic Random Access Memory)によって実現される。   The main memory 7 is a RAM (Random Access Memory), and is used for temporary storage of data generated during execution of software, storage of application software, and the like. The main memory 7 is realized by, for example, a DRAM (Dynamic Random Access Memory).

読み取り専用メモリー9は、ROM(Read Only Memory)であり、画像処理装置1の動作の制御に必要なソフトウェア等を記憶している。読み取り専用メモリー9は、フラッシュメモリー等により実現される。   The read-only memory 9 is a ROM (Read Only Memory) and stores software and the like necessary for controlling the operation of the image processing apparatus 1. The read-only memory 9 is realized by a flash memory or the like.

ASIC11は、画像処理専用であり、画像データの各種処理(フィルター等)に用いられる。図1では、本実施形態に関係する機能ブロックが示されている。ASIC11は、分割処理部21、バンドディスクリプター処理部23、主・副走査方向ディスクリプター処理部25及び画素データアクセス部27を備える。これらを理解する前提として、バンド領域、ブロック領域、バンドディスクリプター、主走査方向ディスクリプター、及び、副走査方向ディスクリプターについて説明する。   The ASIC 11 is dedicated to image processing and is used for various types of processing (filters and the like) of image data. FIG. 1 shows functional blocks related to the present embodiment. The ASIC 11 includes a division processing unit 21, a band descriptor processing unit 23, a main / sub scanning direction descriptor processing unit 25, and a pixel data access unit 27. As a premise for understanding these, a band region, a block region, a band descriptor, a main scanning direction descriptor, and a sub scanning direction descriptor will be described.

図2は、本実施形態で用いられるブロック領域とバンド領域の概念図である。複数、例えば、16個のブロック領域BL1〜BL16が主走査方向D1及び副走査方向D2に並べて配置されている。複数のブロック領域を区別する必要がある場合は、ブロック領域BL1〜BL16と記載し、区別する必要がない場合は、ブロック領域BLと記載する。主走査方向D1に4つのブロック領域BLが並べられており、副走査方向D2に4つのブロック領域BLが並べられている。各ブロック領域BLの主走査方向D1の画素数は、同じであり、また、各ブロック領域BLの副走査方向D2の画素数も同じである。したがって各ブロック領域BLの画素数(サイズ)は、同じである。なお、本実施形態において、主走査方向D1をx方向、副走査方向D2をy方向と言い換えることもできる。   FIG. 2 is a conceptual diagram of a block area and a band area used in this embodiment. A plurality of, for example, 16 block regions BL1 to BL16 are arranged in the main scanning direction D1 and the sub-scanning direction D2. When it is necessary to distinguish a plurality of block areas, they are described as block areas BL1 to BL16, and when it is not necessary to distinguish between them, they are described as block areas BL. Four block areas BL are arranged in the main scanning direction D1, and four block areas BL are arranged in the sub scanning direction D2. The number of pixels in the main scanning direction D1 of each block region BL is the same, and the number of pixels in the sub-scanning direction D2 of each block region BL is also the same. Therefore, the number of pixels (size) in each block region BL is the same. In the present embodiment, the main scanning direction D1 can also be referred to as the x direction and the sub scanning direction D2 as the y direction.

以上のように、主走査方向にm個、副走査方向にn個のブロック領域BLが並ぶm×n個のブロック領域BLが設けられている。m及びnは、2以上の整数である。mとnとが等しくてもよいし、異なっていてもよい。   As described above, m × n block regions BL in which m block regions BL are arranged in the main scanning direction and n block regions BL are provided in the sub scanning direction are provided. m and n are integers of 2 or more. m and n may be equal or different.

複数のバンド領域BAが、副走査方向D2に沿って並べて配置されている。複数のバンド領域を区別する必要がある場合は、バンド領域BA1,BA2,・・・と記載し、区別する必要がない場合は、バンド領域BAと記載する。   A plurality of band areas BA are arranged side by side along the sub-scanning direction D2. When it is necessary to distinguish a plurality of band areas, they are described as band areas BA1, BA2,..., And when it is not necessary to distinguish between them, they are described as band areas BA.

バンド領域BAは、主走査方向D1に延びる帯状の領域であり、ブロック領域BLよりも主走査方向D1の画素数が多い。ラインセンサー5から出力された画像データのうち、予め定められた数の走査ライン(例えば、64本の走査ライン)のスキャンで得られた画像データが、一つのバンド領域BAに相当する。したがって、バンド領域BAの主走査方向D1の画素数は、画像データの主走査方向D1の画素数と同じであり、バンド領域BAの副走査方向D2の画素数は、予め定められた走査ラインの数(例えば64本)と同じとなる。   The band area BA is a band-like area extending in the main scanning direction D1, and has more pixels in the main scanning direction D1 than the block area BL. Of the image data output from the line sensor 5, image data obtained by scanning a predetermined number of scanning lines (for example, 64 scanning lines) corresponds to one band area BA. Accordingly, the number of pixels in the main scanning direction D1 of the band area BA is the same as the number of pixels in the main scanning direction D1 of the image data, and the number of pixels in the sub-scanning direction D2 of the band area BA is equal to the predetermined scanning line. It is the same as the number (for example, 64).

なお、バンド領域BAは、主走査方向D1に延びる帯状の領域であり、ブロック領域BLよりも主走査方向D1の画素数が多くかつ副走査方向D2の画素数が少なくてもよい。   The band area BA is a band-shaped area extending in the main scanning direction D1, and may have a larger number of pixels in the main scanning direction D1 and a smaller number of pixels in the sub-scanning direction D2 than the block area BL.

画像処理装置1は、m×n個のブロック領域BLと、複数のバンド領域BAとを用いて画像データを処理する。   The image processing apparatus 1 processes image data using m × n block areas BL and a plurality of band areas BA.

図3は、図2に示す複数のバンド領域BAのそれぞれに割り当てられた複数のバンドディスクリプターを示す図である。複数のバンドディスクリプターを区別する必要がある場合は、バンドディスクリプターBAD1,BAD2,・・・と記載し、区別する必要がない場合は、バンドディスクリプターBADと記載する。   FIG. 3 is a diagram showing a plurality of band descriptors assigned to each of the plurality of band areas BA shown in FIG. When it is necessary to distinguish a plurality of band descriptors, they are described as band descriptors BAD1, BAD2,..., And when there is no need to distinguish between them, they are described as band descriptors BAD.

複数のバンドディスクリプターBADは、複数のバンド領域BAが副走査方向D2に並ぶ順番に従って順番が決められている。例えば、1番目のバンドディスクリプターBAD1は、バンド領域BA1に割り当てられたバンドディスクリプターであり、2番目のバンドディスクリプターBAD2は、バンド領域BA2に割り当てられたバンドディスクリプターであり、また、22番目のバンドディスクリプターBAD22は、バンド領域BA22に割り当てられたバンドディスクリプターである。   The order of the plurality of band descriptors BAD is determined according to the order in which the plurality of band areas BA are arranged in the sub-scanning direction D2. For example, the first band descriptor BAD1 is a band descriptor assigned to the band area BA1, the second band descriptor BAD2 is a band descriptor assigned to the band area BA2, and the 22nd The band descriptor BAD22 is a band descriptor assigned to the band area BA22.

画像データをメインメモリー7に格納する際に、複数のバンドディスクリプターBADは、メインメモリー7に格納される。複数のバンドディスクリプターBADのそれぞれについて、メインメモリー7上のアドレスが予め決められている。例えば、バンド領域BA1に割り当てられたバンドディスクリプターBAD1は、メインメモリー7上のアドレスAdd51が予め割り当てられている。   When the image data is stored in the main memory 7, the plurality of band descriptors BAD are stored in the main memory 7. For each of the plurality of band descriptors BAD, an address on the main memory 7 is determined in advance. For example, an address Add51 on the main memory 7 is assigned in advance to the band descriptor BAD1 assigned to the band area BA1.

各バンドディスクリプターBADは、次の順番のバンドディスクリプターBADのメインメモリー7上のアドレスの情報、並びに、分割データ情報(複数の分割データのそれぞれの先頭画素のデータのメインメモリー7上のアドレスの情報及び複数の分割データのそれぞれの画素数の情報)を有する。分割データ情報については後で説明する。   Each band descriptor BAD includes the address information on the main memory 7 of the band descriptor BAD in the next order, and the divided data information (the address on the main memory 7 of the data of the first pixel of each of a plurality of divided data). Information and information on the number of pixels of each of the plurality of divided data). The divided data information will be described later.

図4は、主走査方向ディスクリプターMSDを示す図である。4個の主走査方向ディスクリプターMSDを区別する必要がある場合は、主走査方向ディスクリプターMSD1〜MSD4と記載し、区別する必要がない場合は、主走査方向ディスクリプターMSDと記載する。図5は、副走査方向ディスクリプターVSDを示す図である。4個の副走査方向ディスクリプターVSDを区別する必要がある場合は、副走査方向ディスクリプターVSD1〜VSD4と記載し、区別する必要がない場合は、副走査方向ディスクリプターVSDと記載する。   FIG. 4 is a diagram showing the main scanning direction descriptor MSD. When it is necessary to distinguish the four main scanning direction descriptors MSD, they are described as main scanning direction descriptors MSD1 to MSD4, and when it is not necessary to distinguish them, they are described as main scanning direction descriptors MSD. FIG. 5 is a diagram showing the sub-scanning direction descriptor VSD. When it is necessary to distinguish the four sub-scanning direction descriptors VSD, they are described as sub-scanning direction descriptors VSD1 to VSD4, and when they are not necessary to be distinguished, they are described as sub-scanning direction descriptors VSD.

4個の主走査方向ディスクリプターMSDと4個の副走査方向ディスクリプターVSDとを組み合わせることにより、16個のブロック領域BLに割り当てられるブロックディスクリプターが生成される。例えば、主走査方向ディスクリプターMSD1と副走査方向ディスクリプターVSD1との組み合わせが、ブロック領域BL1に割り当てられるブロックディスクリプターとなる。主走査方向ディスクリプターMSD1と副走査方向ディスクリプターVSD2との組み合わせが、ブロック領域BL5に割り当てられるブロックディスクリプターとなる。主走査方向ディスクリプターMSD4と副走査方向ディスクリプターVSD4との組み合わせが、ブロック領域BL16に割り当てられるブロックディスクリプターとなる。   By combining the four main scanning direction descriptors MSD and the four sub scanning direction descriptors VSD, block descriptors assigned to the 16 block regions BL are generated. For example, a combination of the main scanning direction descriptor MSD1 and the sub scanning direction descriptor VSD1 becomes a block descriptor assigned to the block area BL1. A combination of the main scanning direction descriptor MSD1 and the sub scanning direction descriptor VSD2 becomes a block descriptor assigned to the block area BL5. A combination of the main scanning direction descriptor MSD4 and the sub scanning direction descriptor VSD4 is a block descriptor assigned to the block area BL16.

主走査方向ディスクリプターMSDについて詳細に説明する。主走査方向ディスクリプターMSDは、ブロック領域BLの先頭画素の主走査方向D1の座標値及びブロック領域BLの主走査方向D1の画素数が共通するブロック領域BLに対して設けられ、主走査方向D1において共通する上記座標値及び上記画素数の情報を含む。先頭画素の主走査方向D1の座標値とは、図2に示すブロック領域BL5で説明すると、ブロック領域BL5の先頭画素Pの座標のうち、主走査方向D1の値を指している。   The main scanning direction descriptor MSD will be described in detail. The main scanning direction descriptor MSD is provided for the block region BL in which the coordinate value in the main scanning direction D1 of the first pixel of the block region BL and the number of pixels in the main scanning direction D1 of the block region BL are common, and the main scanning direction D1. The information on the coordinate value and the number of pixels common to each other is included. The coordinate value of the first pixel in the main scanning direction D1 refers to the value in the main scanning direction D1 among the coordinates of the first pixel P in the block region BL5 as described in the block region BL5 shown in FIG.

図2を参照して、ブロック領域BL1,BL5,BL9,BL13は、先頭画素の主走査方向D1の座標値及び主走査方向D1の画素数が共通している。従って、ブロック領域BL1,BL5,BL9,BL13に対して、主走査方向ディスクリプターMSD1が設けられている。   Referring to FIG. 2, the block areas BL1, BL5, BL9, and BL13 have the same coordinate value in the main scanning direction D1 and the number of pixels in the main scanning direction D1 of the top pixel. Accordingly, a main scanning direction descriptor MSD1 is provided for the block regions BL1, BL5, BL9, and BL13.

ブロック領域BL2,BL6,BL10,BL14は、先頭画素の主走査方向D1の座標値及び主走査方向D1の画素数が共通している。従って、ブロック領域BL2,BL6,BL10,BL14に対して、主走査方向ディスクリプターMSD2が設けられている。   In the block regions BL2, BL6, BL10, and BL14, the coordinate value of the leading pixel in the main scanning direction D1 and the number of pixels in the main scanning direction D1 are common. Therefore, the main scanning direction descriptor MSD2 is provided for the block regions BL2, BL6, BL10, and BL14.

同様に、ブロック領域BL3,BL7,BL11,BL15に対して、主走査方向ディスクリプターMSD3が設けられており、ブロック領域BL4,BL8,BL12,BL16に対して、主走査方向ディスクリプターMSD4が設けられている。   Similarly, a main scanning direction descriptor MSD3 is provided for the block regions BL3, BL7, BL11, and BL15, and a main scanning direction descriptor MSD4 is provided for the block regions BL4, BL8, BL12, and BL16. ing.

本実施形態では、主走査方向D1に4個のブロック領域BLが並んでいるので、主走査方向ディスクリプターMSDの数は、4個である。従って、主走査方向D1にm個のブロック領域BLが並んでいれば、主走査方向ディスクリプターMSDの数は、m個である。   In the present embodiment, since four block regions BL are arranged in the main scanning direction D1, the number of main scanning direction descriptors MSD is four. Therefore, if m block regions BL are arranged in the main scanning direction D1, the number of main scanning direction descriptors MSD is m.

画像データがメインメモリー7に格納される際に、m個の主走査方向ディスクリプターMSDが生成されて、メインメモリー7に格納される。m個の主走査方向ディスクリプターMSDのそれぞれについて、メインメモリー7上のアドレスが予め割り当てられている。例えば、主走査方向ディスクリプターMSD1は、メインメモリー7上のアドレスAddx31が予め割り当てられている。   When the image data is stored in the main memory 7, m main scanning direction descriptors MSD are generated and stored in the main memory 7. An address on the main memory 7 is assigned in advance for each of the m main scanning direction descriptors MSD. For example, the address Addx31 on the main memory 7 is assigned in advance to the main scanning direction descriptor MSD1.

m個の主走査方向ディスクリプターMSDのそれぞれは、次の順番の主走査方向ディスクリプターMSDのメインメモリー7上のアドレスの情報、先頭画素の主走査方向D1の座標値、及び、主走査方向D1の画素数を含む。それらの情報について、主走査方向ディスクリプターMSD1を例に説明する。次の順番の主走査方向ディスクリプターMSDのメインメモリー7上のアドレスとは、主走査方向ディスクリプターMSD2のメインメモリー7上のアドレスAddx32である。   Each of the m main scanning direction descriptors MSD includes address information on the main memory 7 of the next main scanning direction descriptor MSD, the coordinate value of the main pixel in the main scanning direction D1, and the main scanning direction D1. Including the number of pixels. Such information will be described by taking the main scanning direction descriptor MSD1 as an example. The address on the main memory 7 of the main scanning direction descriptor MSD in the next order is the address Addx32 on the main memory 7 of the main scanning direction descriptor MSD2.

先頭画素の主走査方向D1の座標値は、ブロック領域BL1の先頭画素の主走査方向D1の座標値である。主走査方向D1の画素数は、ブロック領域BL1の主走査方向D1の画素数である。本実施形態において、ブロック領域BL1〜BL16の主走査方向D1の画素数は、同じである。しかしながら、主走査方向D1において、ブロック領域BL1(ブロック領域BL5,BL9,BL13)の画素数、ブロック領域BL2(ブロック領域BL6,BL10,BL14)の画素数、ブロック領域BL3(ブロック領域BL7,BL11,BL15)の画素数、ブロック領域BL4(ブロック領域BL8,BL12,BL16)の画素数が異なっていてもよい。   The coordinate value of the first pixel in the main scanning direction D1 is the coordinate value of the first pixel in the block region BL1 in the main scanning direction D1. The number of pixels in the main scanning direction D1 is the number of pixels in the main scanning direction D1 of the block region BL1. In the present embodiment, the number of pixels in the main scanning direction D1 of the block regions BL1 to BL16 is the same. However, in the main scanning direction D1, the number of pixels in the block region BL1 (block regions BL5, BL9, BL13), the number of pixels in the block region BL2 (block regions BL6, BL10, BL14), and the block region BL3 (block regions BL7, BL11, The number of pixels of BL15) and the number of pixels of the block region BL4 (block regions BL8, BL12, BL16) may be different.

副走査方向ディスクリプターVSDについて詳細に説明する。副走査方向ディスクリプターVSDは、ブロック領域BLの先頭画素の副走査方向D2の座標値及びブロック領域BLの副走査方向D2の画素数が共通するブロック領域BLに対して設けられ、副走査方向D2において共通する上記座標値及び上記画素数の情報を含む。先頭画素の副走査方向D2の座標値とは、図2に示すブロック領域BL5で説明すると、ブロック領域BL5の先頭画素Pの座標のうち、副走査方向D2の値を指している。   The sub-scanning direction descriptor VSD will be described in detail. The sub-scanning direction descriptor VSD is provided for the block region BL in which the coordinate value in the sub-scanning direction D2 of the first pixel of the block region BL and the number of pixels in the sub-scanning direction D2 of the block region BL are common, and the sub-scanning direction D2 The information on the coordinate value and the number of pixels common to each other is included. The coordinate value of the first pixel in the sub-scanning direction D2 indicates the value in the sub-scanning direction D2 among the coordinates of the first pixel P of the block region BL5, as described in the block region BL5 shown in FIG.

図2を参照して、ブロック領域BL1,BL2,BL3,BL4は、先頭画素の副走査方向D2の座標値及び副走査方向D2の画素数が共通している。従って、ブロック領域BL1,BL2,BL3,BL4に対して、副走査方向ディスクリプターVSD1が設けられている。   Referring to FIG. 2, the block areas BL1, BL2, BL3, and BL4 have the same coordinate value in the sub-scanning direction D2 and the number of pixels in the sub-scanning direction D2 of the top pixel. Therefore, the sub-scanning direction descriptor VSD1 is provided for the block areas BL1, BL2, BL3, and BL4.

ブロック領域BL5,BL6,BL7,BL8は、先頭画素の副走査方向D2の座標値及び副走査方向D2の画素数が共通している。従って、ブロック領域BL5,BL6,BL7,BL8に対して、副走査方向ディスクリプターVSD2が設けられている。   In the block regions BL5, BL6, BL7, and BL8, the coordinate value of the top pixel in the sub-scanning direction D2 and the number of pixels in the sub-scanning direction D2 are common. Accordingly, the sub-scanning direction descriptor VSD2 is provided for the block areas BL5, BL6, BL7, and BL8.

同様に、ブロック領域BL9,BL10,BL11,BL12に対して、副走査方向ディスクリプターVSD3が設けられており、ブロック領域BL13,BL14,BL15,BL16に対して、副走査方向ディスクリプターVSD4が設けられている。   Similarly, a sub-scanning direction descriptor VSD3 is provided for the block areas BL9, BL10, BL11, and BL12, and a sub-scanning direction descriptor VSD4 is provided for the block areas BL13, BL14, BL15, and BL16. ing.

本実施形態では、副走査方向D2に4個のブロック領域BLが並んでいるので、副走査方向ディスクリプターVSDの数は、4個である。従って、副走査方向D2にn個のブロック領域BLが並んでいれば、副走査方向ディスクリプターVSDの数は、n個である。   In the present embodiment, since the four block areas BL are arranged in the sub-scanning direction D2, the number of sub-scanning direction descriptors VSD is four. Therefore, if n block regions BL are arranged in the sub-scanning direction D2, the number of sub-scanning direction descriptors VSD is n.

画像データがメインメモリー7に格納される際に、n個の副走査方向ディスクリプターVSDが生成されて、メインメモリー7に格納される。n個の副走査方向ディスクリプターVSDのそれぞれについて、メインメモリー7上のアドレスが予め割り当てられている。例えば、副走査方向ディスクリプターVSD1は、メインメモリー7上のアドレスAddy31が予め割り当てられている。   When image data is stored in the main memory 7, n sub-scanning direction descriptors VSD are generated and stored in the main memory 7. An address on the main memory 7 is assigned in advance for each of the n sub-scanning direction descriptors VSD. For example, the address Addy31 on the main memory 7 is assigned in advance to the sub-scanning direction descriptor VSD1.

n個の副走査方向ディスクリプターVSDのそれぞれは、次の順番の副走査方向ディスクリプターVSDのメインメモリー7上のアドレスの情報、先頭画素の副走査方向D2の座標値、副走査方向D2の画素数、及び、バンドディスクリプター関係付けアドレスの情報を含む。それらの情報について、副走査方向ディスクリプターVSD1を例に説明する。次の順番の副走査方向ディスクリプターVSDのメインメモリー7上のアドレスとは、副走査方向ディスクリプターVSD2のメインメモリー7上のアドレスAddy32である。   Each of the n sub-scanning direction descriptors VSD includes address information on the main memory 7 of the next sub-scanning direction descriptor VSD, coordinate values of the first pixel in the sub-scanning direction D2, and pixels in the sub-scanning direction D2. Information on the number and band descriptor association address. Such information will be described using the sub-scanning direction descriptor VSD1 as an example. The address on the main memory 7 of the sub-scanning direction descriptor VSD in the next order is the address Addy32 on the main memory 7 of the sub-scanning direction descriptor VSD2.

先頭画素の副走査方向D2の座標値は、ブロック領域BL1の先頭画素の副走査方向D2の座標値である。副走査方向D2の画素数は、ブロック領域BL1の副走査方向D2の画素数である。本実施形態において、ブロック領域BL1〜BL16の副走査方向D2の画素数は、同じである。しかしながら、副走査方向D2において、ブロック領域BL1(ブロック領域BL2,BL3,BL4)の画素数、ブロック領域BL5(ブロック領域BL6,BL7,BL8)の画素数、ブロック領域BL9(ブロック領域BL10,BL11,BL12)の画素数、ブロック領域BL13(ブロック領域BL14,BL15,BL16)の画素数が異なっていてもよい。   The coordinate value of the first pixel in the sub-scanning direction D2 is the coordinate value of the first pixel in the block region BL1 in the sub-scanning direction D2. The number of pixels in the sub-scanning direction D2 is the number of pixels in the sub-scanning direction D2 of the block region BL1. In the present embodiment, the number of pixels in the sub-scanning direction D2 of the block regions BL1 to BL16 is the same. However, in the sub-scanning direction D2, the number of pixels in the block area BL1 (block areas BL2, BL3, BL4), the number of pixels in the block area BL5 (block areas BL6, BL7, BL8), and the block area BL9 (block areas BL10, BL11, The number of pixels of BL12) and the number of pixels of the block region BL13 (block regions BL14, BL15, BL16) may be different.

バンドディスクリプター関係付けアドレスの情報とは、ブロック領域BLの先頭画素を含むバンド領域BAに割り当てられたバンドディスクリプターBADのメインメモリー7上のアドレスの情報である。具体的に説明すると、図2に示すように、ブロック領域BL5の先頭画素Pはバンド領域BA22に位置するので、バンド領域BA22に割り当てられたバンドディスクリプターBAD22(図3)のメインメモリー7上のアドレスAdd72を意味する。以上がブロック領域BL、バンド領域BA、バンドディスクリプターBAD、主走査方向ディスクリプターMSD及び副走査方向ディスクリプターVSDの説明である。   The band descriptor association address information is address information on the main memory 7 of the band descriptor BAD assigned to the band area BA including the first pixel of the block area BL. More specifically, as shown in FIG. 2, since the first pixel P of the block area BL5 is located in the band area BA22, the band descriptor BAD22 (FIG. 3) assigned to the band area BA22 on the main memory 7 It means the address Add72. The above is the description of the block area BL, the band area BA, the band descriptor BAD, the main scanning direction descriptor MSD, and the sub scanning direction descriptor VSD.

図1に示すASIC11に含まれる分割処理部21は、メインメモリー7に格納する画像データについて、図2に示す複数のバンド領域BAのそれぞれに対応する複数のバンド領域データに分けて処理をする処理部である。分割処理部21は、バンド領域データを複数の分割データに分割してメインメモリー7にアドレスを異ならせて格納する処理を、複数のバンド領域データのそれぞれについて実行する。   The division processing unit 21 included in the ASIC 11 illustrated in FIG. 1 divides the image data stored in the main memory 7 into a plurality of band area data corresponding to each of the plurality of band areas BA illustrated in FIG. Part. The division processing unit 21 performs a process of dividing the band area data into a plurality of divided data and storing the data in the main memory 7 with different addresses for each of the plurality of band area data.

分割処理部21での処理について、バンド領域BA22を例にして説明する。図6は、メインメモリー7に格納する画像データのうち、バンド領域BA22に対応する画像データであるバンド領域データM22を示す図である。バンド領域データは、バンド領域BAに対応しており、例えば、バンド領域データM1(不図示)は、バンド領域BA1に対応し、バンド領域データM2(不図示)は、バンド領域BA2に対応する。複数のバンド領域データを区別する必要がある場合は、バンド領域データM1,M2,・・・と記載し、区別する必要がない場合は、バンド領域データMと記載する。   The processing in the division processing unit 21 will be described using the band area BA22 as an example. FIG. 6 is a diagram showing band area data M22 which is image data corresponding to the band area BA22 among the image data stored in the main memory 7. The band area data corresponds to the band area BA. For example, the band area data M1 (not shown) corresponds to the band area BA1, and the band area data M2 (not shown) corresponds to the band area BA2. When it is necessary to distinguish a plurality of band area data, it is described as band area data M1, M2,..., And when it is not necessary to distinguish, it is described as band area data M.

分割処理部21は、バンド領域データM22を複数の分割データ、例えば、5つの分割データm1〜m5に分割してメインメモリー7にアドレスを異ならせて格納する。このように画像データを細かく分割して、メインメモリー7の空いているアドレスに格納することにより、メインメモリー7のメモリー空間を有効利用することができる。   The division processing unit 21 divides the band area data M22 into a plurality of divided data, for example, five divided data m1 to m5, and stores them in the main memory 7 with different addresses. As described above, by dividing the image data finely and storing the data in empty addresses in the main memory 7, the memory space of the main memory 7 can be used effectively.

バンドディスクリプター処理部23は、図2に示す複数のバンド領域BAのそれぞれに割り当てられた複数のバンドディスクリプターBADを処理する。具体的には、バンドディスクリプター処理部23は、メインメモリー7に画像データが格納される際に、バンド領域データMに対応するバンド領域BAに割り当てられたバンドディスクリプターBADに対して、分割データ情報を加えてメインメモリー7に格納する処理を、複数のバンドディスクリプターBADのそれぞれにおいて実行する。   The band descriptor processing unit 23 processes a plurality of band descriptors BAD assigned to each of the plurality of band areas BA shown in FIG. Specifically, when the image data is stored in the main memory 7, the band descriptor processing unit 23 performs divided data on the band descriptor BAD assigned to the band area BA corresponding to the band area data M. The process of adding information and storing it in the main memory 7 is executed in each of the plurality of band descriptors BAD.

このように、バンドディスクリプター処理部23は、メインメモリー7に画像データが格納される際に、分割データ情報が含まれないバンドディスクリプターBADを生成し、これに分割データ情報を加えてメインメモリー7に格納する処理をする。   As described above, when the image data is stored in the main memory 7, the band descriptor processing unit 23 generates the band descriptor BAD that does not include the divided data information, and adds the divided data information to the main memory 7. 7 is stored.

分割データ情報とは、複数の分割データのそれぞれの先頭画素のデータのメインメモリー7上のアドレス及び複数の分割データのそれぞれの画素数を示す情報である。これを図6に示すバンド領域データM22を例に説明する。分割データm1〜m5の先頭画素をそれぞれ、先頭画素p1〜p5とする。ここで、分割データm1の先頭画素p1は、図2に示すブロック領域BL5の先頭の画素Pと一致し、図示しないがバンド領域BA22の先頭画素と一致する。   The divided data information is information indicating the address on the main memory 7 of the data of the first pixel of each of the plurality of divided data and the number of pixels of each of the plurality of divided data. This will be described using the band region data M22 shown in FIG. 6 as an example. Let the top pixels of the divided data m1 to m5 be the top pixels p1 to p5, respectively. Here, the leading pixel p1 of the divided data m1 matches the leading pixel P of the block area BL5 shown in FIG. 2, and matches the leading pixel of the band area BA22 (not shown).

バンド領域データM22の分割データ情報は、分割データm1の先頭画素p1のデータが格納されているメインメモリー7上のアドレス及び分割データm1に対応する領域の画素数(例えば10000)、分割データm2の先頭画素p2のデータが格納されているメインメモリー7上のアドレス及び分割データm2に対応する領域の画素数(例えば20000)、・・・、分割データm5の先頭画素p5のデータが格納されているメインメモリー7上のアドレス及び分割データm5に対応する領域の画素数により構成される。   The divided data information of the band area data M22 includes the address on the main memory 7 where the data of the first pixel p1 of the divided data m1 is stored, the number of pixels in the area corresponding to the divided data m1 (for example, 10000), and the divided data m2 Stores the address of the main memory 7 where the data of the first pixel p2 is stored and the number of pixels in the area corresponding to the divided data m2 (for example, 20000),..., The data of the first pixel p5 of the divided data m5. It is composed of the number of pixels in the area corresponding to the address on the main memory 7 and the divided data m5.

図3に示すように、各バンドディスクリプターBADは、次の順番のバンドディスクリプターのメインメモリー7上のアドレスの情報及び分割データ情報を有する。したがって、バンドディスクリプターBAD1を読み出して、バンドディスクリプターBAD1に含まれる分割データ情報を基にして、複数の分割データをつなげてバンド領域データM1とし、次にバンドディスクリプターBAD2を読み出して、バンドディスクリプターBAD2に含まれる分割データ情報を基にして、複数の分割データをつなげてバンド領域データM2とし、残りのバンドディスクリプターBADについても同じ処理を繰り返すことにより、メインメモリー7に格納される前の画像データに戻すことができる。   As shown in FIG. 3, each band descriptor BAD has address information and divided data information on the main memory 7 of the band descriptor in the next order. Therefore, the band descriptor BAD1 is read out, and based on the divided data information included in the band descriptor BAD1, a plurality of pieces of divided data are connected to form band area data M1, and then the band descriptor BAD2 is read out to obtain the band data. Based on the divided data information included in the scripter BAD2, a plurality of pieces of divided data are connected to form the band area data M2, and the same processing is repeated for the remaining band descriptor BAD. The image data can be restored.

図1に示す主・副走査方向ディスクリプター処理部25は、メインメモリー7に画像データが格納される際に、図4に示す4個(m個)の主走査方向ディスクリプターMSD、及び、図5に示す4個(n個)の副走査方向ディスクリプターVSDを生成し、メインメモリー7(記憶領域の一例)に格納する。   The main / sub-scanning direction descriptor processing unit 25 shown in FIG. 1 includes four (m) main scanning direction descriptors MSD shown in FIG. 4 (n) sub-scanning direction descriptors VSD shown in FIG. 5 are generated and stored in the main memory 7 (an example of a storage area).

図1に示す画素データアクセス部27は、分割データに分割されてメインメモリー7に格納されている画像データについて、画像を構成する各画素のデータである画素データへのアクセス処理をする。画素データアクセス部27は、主・副走査方向ディスクリプター読出部29、ブロックディスクリプター生成部31、座標演算部33、ブロック領域特定部35、バンドディスクリプター読出部37、バンド領域特定部41、画素数演算部43、分割データ特定部45及びアドレス特定部47を備える。   The pixel data access unit 27 illustrated in FIG. 1 performs access processing to pixel data that is data of each pixel constituting an image, with respect to image data that is divided into divided data and stored in the main memory 7. The pixel data access unit 27 includes a main / sub-scanning direction descriptor reading unit 29, a block descriptor generation unit 31, a coordinate calculation unit 33, a block region specifying unit 35, a band descriptor reading unit 37, a band region specifying unit 41, a pixel A number calculation unit 43, a divided data specifying unit 45, and an address specifying unit 47 are provided.

主・副走査方向ディスクリプター読出部29は、メインメモリー7に格納されている主走査方向ディスクリプターMSD及び副走査方向ディスクリプターVSDを読み出す。   The main / sub scanning direction descriptor reading unit 29 reads the main scanning direction descriptor MSD and the sub scanning direction descriptor VSD stored in the main memory 7.

ブロックディスクリプター生成部31は、4個(m個)の主走査方向ディスクリプターMSDと4個(n個)の副走査方向ディスクリプターVSDとを組み合わせて、16個(m×n個)のブロック領域BLの任意のブロック領域BLに割り当てられたブロックディスクリプターを生成する。   The block descriptor generator 31 combines 16 (m × n) blocks by combining 4 (m) main scanning direction descriptors MSD and 4 (n) sub-scanning direction descriptors VSD. A block descriptor assigned to an arbitrary block area BL in the area BL is generated.

例えば、ブロック領域BL1に割り当てられるブロックディスクリプターを生成する場合、ブロックディスクリプター生成部31は、主・副走査方向ディスクリプター読出部29に対して、主走査方向ディスクリプターMSD1と副走査方向ディスクリプターVSD1とを、メインメモリー7から読み出す処理をさせる。主走査方向ディスクリプターMSD1と副走査方向ディスクリプターVSD1との組み合わせが、ブロック領域BL1に割り当てられたブロックディスクリプターである。また、例えば、ブロック領域BL5に割り当てられるブロックディスクリプターを生成する場合、ブロックディスクリプター生成部31は、主・副走査方向ディスクリプター読出部29に対して、主走査方向ディスクリプターMSD1と副走査方向ディスクリプターVSD2とを、メインメモリー7から読み出す処理をさせる。主走査方向ディスクリプターMSD1と副走査方向ディスクリプターVSD2との組み合わせが、ブロック領域BL5に割り当てられたブロックディスクリプターである。   For example, when generating a block descriptor assigned to the block region BL1, the block descriptor generating unit 31 sends the main scanning direction descriptor MSD1 and the sub scanning direction descriptor to the main / sub scanning direction descriptor reading unit 29. The VSD 1 is read from the main memory 7. A combination of the main scanning direction descriptor MSD1 and the sub scanning direction descriptor VSD1 is a block descriptor assigned to the block area BL1. Further, for example, when generating a block descriptor assigned to the block region BL5, the block descriptor generating unit 31 sends the main scanning direction descriptor MSD1 and the sub scanning direction to the main / sub scanning direction descriptor reading unit 29. A process of reading the descriptor VSD2 from the main memory 7 is performed. A combination of the main scanning direction descriptor MSD1 and the sub scanning direction descriptor VSD2 is a block descriptor assigned to the block area BL5.

各ブロックディスクリプターは、割り当てられたブロック領域BLについてのブロック領域情報を含む。ブロック領域情報とは、ブロック領域BLについて、主走査方向及び副走査方向の画素数、並びに、先頭画素の座標の情報である。例えば、ブロック領域BL5の場合、上述したように、主走査方向ディスクリプターMSD1と副走査方向ディスクリプターVSD2との組み合わせが、ブロックディスクリプターとなる。ブロック領域BL1の先頭画素の主走査方向の座標値、ブロック領域BL1の主走査方向の画素数、ブロック領域BL5の先頭画素の副走査方向の座標値、及び、ブロック領域BL5の副走査方向の画素数がブロック領域情報となる。   Each block descriptor includes block area information for the allocated block area BL. The block area information is information on the number of pixels in the main scanning direction and the sub-scanning direction and the coordinates of the top pixel for the block area BL. For example, in the case of the block region BL5, as described above, a combination of the main scanning direction descriptor MSD1 and the sub scanning direction descriptor VSD2 is a block descriptor. The coordinate value in the main scanning direction of the first pixel in the block region BL1, the number of pixels in the main scanning direction in the block region BL1, the coordinate value in the sub scanning direction of the first pixel in the block region BL5, and the pixel in the sub scanning direction of the block region BL5 The number becomes block area information.

座標演算部33は、アクセス対象となる画素データに対応する画素について、主走査方向D1及び副走査方向D2の座標を演算する。すなわち、座標演算部33は、メインメモリー7に格納されている画像データを基にして形成される画像について、N番目(Nは正の整数)画素が位置する主走査方向D1及び副走査方向D2の座標を、その画像の主走査方向D1の画素数を基にして演算する。   The coordinate calculation unit 33 calculates the coordinates in the main scanning direction D1 and the sub-scanning direction D2 for the pixels corresponding to the pixel data to be accessed. That is, the coordinate calculation unit 33 performs main scanning direction D1 and sub-scanning direction D2 in which the Nth pixel (N is a positive integer) is located in an image formed based on image data stored in the main memory 7. Are calculated based on the number of pixels in the main scanning direction D1 of the image.

ブロック領域特定部35は、N番目画素が属するブロック領域BLを特定する。詳細に説明すると、ブロック領域特定部35は、座標演算部33で演算されたN番目画素の座標、及び、ブロックディスクリプター生成部31によって生成されたブロックディスクリプターに含まれるブロック領域情報を基にして、m×n個のブロック領域BLのうちN番目画素が属するブロック領域BLを特定する。   The block area specifying unit 35 specifies the block area BL to which the Nth pixel belongs. More specifically, the block area specifying unit 35 is based on the coordinates of the Nth pixel calculated by the coordinate calculation unit 33 and the block area information included in the block descriptor generated by the block descriptor generation unit 31. Thus, the block region BL to which the Nth pixel belongs is specified among the m × n block regions BL.

バンドディスクリプター読出部37は、ブロック領域特定部35で特定されたブロック領域BLに割り当てられたブロックディスクリプターについて、そのブロックディスクリプターに含まれるバンドディスクリプター関係づけアドレスに格納されているバンドディスクリプターBADをメインメモリー7から読み出す。   The band descriptor reading unit 37, for the block descriptor assigned to the block area BL specified by the block area specifying unit 35, is stored in the band descriptor association address included in the block descriptor. BAD is read from the main memory 7.

バンド領域特定部41は、複数のバンド領域BAのうちN番目画素が属するバンド領域BA、及び、そのバンド領域BAにおけるN番目画素の副走査方向D2上の位置を特定する。   The band area specifying unit 41 specifies the band area BA to which the Nth pixel belongs among the plurality of band areas BA, and the position of the Nth pixel in the band area BA in the sub-scanning direction D2.

画素数演算部43は、バンド領域特定部41で特定されたN番目画素が属するバンド領域BAの先頭の画素からN番目画素までの画素数を演算する。   The pixel number calculation unit 43 calculates the number of pixels from the first pixel to the Nth pixel of the band area BA to which the Nth pixel specified by the band area specifying unit 41 belongs.

分割データ特定部45は、バンドディスクリプター読出部37によって読み出されたバンドディスクリプターBADに含まれる分割データ情報において、複数の分割データのうちN番目画素のデータが属する分割データを特定する。   The divided data specifying unit 45 specifies divided data to which the data of the Nth pixel belongs among the plurality of divided data in the divided data information included in the band descriptor BAD read by the band descriptor reading unit 37.

アドレス特定部47は、分割データ特定部45で特定された分割データの先頭画素のデータのメインメモリー7上のアドレスからN番目画素のデータのメインメモリー7上のアドレスを特定する。   The address specifying unit 47 specifies the address on the main memory 7 of the Nth pixel data from the address on the main memory 7 of the data of the first pixel of the divided data specified by the divided data specifying unit 45.

次に、本実施形態に係る画像処理装置1を用いて画像データをメインメモリー7へ格納する処理について説明する。図7は、この処理を説明するフローチャートである。図1に示すラインセンサー5によって主走査方向D1に原稿を走査して、1走査ラインずつ原稿を読み取ることにより、ラインセンサー5から原稿の画像データが出力される(ステップS1)。   Next, processing for storing image data in the main memory 7 using the image processing apparatus 1 according to the present embodiment will be described. FIG. 7 is a flowchart for explaining this process. By scanning the document in the main scanning direction D1 by the line sensor 5 shown in FIG. 1 and reading the document one scanning line at a time, image data of the document is output from the line sensor 5 (step S1).

主・副走査方向ディスクリプター処理部25は、図4に示す4個の主走査方向ディスクリプターMSD及び図5に示す4個の副走査方向ディスクリプターVSDを生成し、メインメモリー7上の予め割り当てられたアドレスに格納する(ステップS3)。   The main / sub scanning direction descriptor processor 25 generates four main scanning direction descriptors MSD shown in FIG. 4 and four sub scanning direction descriptors VSD shown in FIG. The stored address is stored (step S3).

ステップS1において、ラインセンサー5から出力された画像データのうち、予め定められた数の走査ライン(例えば64本の走査ライン)のスキャンで得られた画像データが、バンド領域データMに相当する。ラインセンサー5から出力された画像データは、分割処理部21へ送られる。バンド領域データM1(バンド領域BA1に対応)が分割処理部21のバッファに蓄積されると、分割処理部21は、バンド領域データM1を複数の分割データに分割してメインメモリー7にアドレスを異ならせて格納する処理をする(ステップS5)。   In step S1, image data obtained by scanning a predetermined number of scanning lines (for example, 64 scanning lines) among the image data output from the line sensor 5 corresponds to the band region data M. The image data output from the line sensor 5 is sent to the division processing unit 21. When the band area data M1 (corresponding to the band area BA1) is accumulated in the buffer of the division processing unit 21, the division processing unit 21 divides the band area data M1 into a plurality of division data and sets the address to the main memory 7 differently. The process of storing is performed (step S5).

バンドディスクリプター処理部23は、分割データ情報が含まれないバンドディスクリプターBAD1を生成し、これに、バンド領域データM1を構成する複数の分割データに関する分割データ情報を付加して、メインメモリー7に格納する(ステップS7)。   The band descriptor processing unit 23 generates a band descriptor BAD1 that does not include the divided data information, adds the divided data information related to the plurality of divided data constituting the band area data M1, to the main memory 7 Store (step S7).

分割処理部21は、分割処理部21のバッファに次のバンド領域データM(ここではバンド領域データM2)が蓄積されているか判断する(ステップS9)。分割処理部21によって次のバンド領域データMが蓄積していると判断されれば(ステップS9でYes)、ステップS5へ戻る。これに対して、分割処理部21によって次のバンド領域データMが蓄積していないと判断されれば(ステップS9でNo)、すなわち最後のバンド領域データMについてステップS5,S7の処理がされれば、画像データをメインメモリー7へ格納する処理が終了する。   The division processing unit 21 determines whether the next band area data M (here, band area data M2) is stored in the buffer of the division processing unit 21 (step S9). If the division processing unit 21 determines that the next band area data M is accumulated (Yes in step S9), the process returns to step S5. On the other hand, if the division processing unit 21 determines that the next band area data M is not accumulated (No in step S9), that is, the last band area data M is processed in steps S5 and S7. In this case, the process for storing the image data in the main memory 7 ends.

以上説明したように、本実施形態に係る画像処理装置1よれば、画像データを分割データに分割してメインメモリー7に格納する際に、4個(m個)の主走査方向ディスクリプターMSD、4個(n個)の副走査方向ディスクリプターVSD、及び、複数のバンドディスクリプターBADをメインメモリー7に格納している。図5に示すように、ブロックディスクリプターを構成する副走査方向ディスクリプターVSDは、バンドディスクリプター関係付けアドレスの情報を含む。したがって、ブロック領域BLの先頭の画素を含むバンド領域BAに割り当てられたバンドディスクリプターBADのアドレスを、そのブロック領域BLに割り当てられたブロックディスクリプターから知ることができる。   As described above, according to the image processing apparatus 1 according to the present embodiment, when the image data is divided into divided data and stored in the main memory 7, four (m) main scanning direction descriptors MSD, Four (n) sub-scanning direction descriptors VSD and a plurality of band descriptors BAD are stored in the main memory 7. As shown in FIG. 5, the sub-scanning direction descriptor VSD constituting the block descriptor includes information on the band descriptor association address. Therefore, the address of the band descriptor BAD assigned to the band area BA including the first pixel of the block area BL can be known from the block descriptor assigned to the block area BL.

メインメモリー7に格納されている複数のバンドディスクリプターBADのそれぞれは、次の順番のバンドディスクリプターBADのメインメモリー7上のアドレスの情報を含むので、ブロックディスクリプターを利用しなくても目的となるバンドディスクリプターBADへアクセスできる。しかし、この場合は1番目のバンドディスクリプターBADから順番にバンドディスクリプターBADを検索しなければならない。本実施形態によれば、ブロックディスクリプターを利用することにより、途中のバンドディスクリプターBADから検索を開始して目的となるバンドディスクリプターBADへアクセスすることができる。したがって、バンドディスクリプターBADへのアクセス時間を短くすることが可能となる。   Each of the plurality of band descriptors BAD stored in the main memory 7 includes address information on the main memory 7 of the band descriptor BAD of the next order, so that the purpose can be achieved without using a block descriptor. The band descriptor BAD can be accessed. However, in this case, the band descriptor BAD must be searched in order from the first band descriptor BAD. According to the present embodiment, by using a block descriptor, it is possible to start a search from an intermediate band descriptor BAD and access the target band descriptor BAD. Therefore, the access time to the band descriptor BAD can be shortened.

次に、メインメモリー7に格納されている画像データに含まれるN番目(Nは正の整数)画素のデータへのアクセスについて説明する。図8は、このアクセスを説明するフローチャートである。ここでは、N番目画素を70万番目画素、画像データの主走査方向D1の画素数(言い換えればバンド領域BAの主走査方向D1の画素数)を500、バンド領域データMに相当する走査ラインの数を64本とする。   Next, access to data of the Nth pixel (N is a positive integer) included in the image data stored in the main memory 7 will be described. FIG. 8 is a flowchart for explaining this access. Here, the Nth pixel is the 700,000th pixel, the number of pixels in the main scanning direction D1 of the image data (in other words, the number of pixels in the main scanning direction D1 of the band area BA) is 500, and the scanning line corresponding to the band area data M The number is 64.

座標演算部33は、メインメモリー7に格納されている画像データによって形成される画像について、70万番目画素が位置する主走査方向D1及び副走査方向D2の座標を、画像データの主走査方向D1の画素数(500)を基にして演算する(ステップS21)。   The coordinate calculation unit 33 uses the coordinates in the main scanning direction D1 and the sub-scanning direction D2 where the 700,000th pixel is located for the image formed by the image data stored in the main memory 7, and the main scanning direction D1 of the image data. Is calculated based on the number of pixels (500) (step S21).

700000÷500=1400
1400は、主走査方向D1の座標(x座標)が0、副走査方向D2の座標(y座標)が1400を意味している。したがって、図2に示すように、70万番目画素Qが位置する座標は(0、1400)である。
700,000 ÷ 500 = 1400
1400 means that the coordinate (x coordinate) in the main scanning direction D1 is 0, and the coordinate (y coordinate) in the sub scanning direction D2 is 1400. Therefore, as shown in FIG. 2, the coordinates where the 700,000th pixel Q is located are (0, 1400).

ブロック領域特定部35は、画素Qが、いずれのブロック領域BLに属するかについて、ブロック領域BL1から順番に判定する(ステップS23)。ブロックディスクリプター生成部31は、主・副走査方向ディスクリプター読出部29に対して、主走査方向ディスクリプターMSD1と副走査方向ディスクリプターVSD1とを、メインメモリー7から読み出す処理をさせる。主走査方向ディスクリプターMSD1と副走査方向ディスクリプターVSD1との組み合わせが、ブロック領域BL1に割り当てられたブロックディスクリプターである。   The block area specifying unit 35 determines in order from the block area BL1 which block area BL the pixel Q belongs to (step S23). The block descriptor generation unit 31 causes the main / sub scanning direction descriptor reading unit 29 to perform a process of reading the main scanning direction descriptor MSD1 and the sub scanning direction descriptor VSD1 from the main memory 7. A combination of the main scanning direction descriptor MSD1 and the sub scanning direction descriptor VSD1 is a block descriptor assigned to the block area BL1.

このブロックディスクリプターによれば、図4及び図5に示すように、ブロック領域BL1について、先頭画素の主走査方向の座標値「0」、先頭画素の副走査方向の座標値「0」、主走査方向の画素数「125」、副走査方向の画素数「1344」である。従って、ブロック領域BL1は、主走査方向の座標値が「0」から「124」まで、副走査方向の座標値が「0」から「1343」までの領域である。よって、ブロック領域特定部35は、画素Q(0、1400)が、ブロック領域BL1に属しないと判定する。   According to this block descriptor, as shown in FIGS. 4 and 5, for the block region BL1, the coordinate value “0” of the top pixel in the main scanning direction, the coordinate value “0” of the top pixel in the sub scanning direction, The number of pixels in the scanning direction is “125”, and the number of pixels in the sub-scanning direction is “1344”. Therefore, the block region BL1 is a region where the coordinate value in the main scanning direction is “0” to “124” and the coordinate value in the sub-scanning direction is “0” to “1343”. Therefore, the block area specifying unit 35 determines that the pixel Q (0, 1400) does not belong to the block area BL1.

ブロック領域特定部35は、ブロック領域BL1以降のブロック領域BLについても、同様にして、画素Qがブロック領域BLに属するか否かを判定する。本実施形態では、画素Qがブロック領域BL5に属することが判定される。詳しく説明する。ブロックディスクリプター生成部31は、主・副走査方向ディスクリプター読出部29に対して、主走査方向ディスクリプターMSD1と副走査方向ディスクリプターVSD2とを、メインメモリー7から読み出す処理をさせる。主走査方向ディスクリプターMSD1と副走査方向ディスクリプターVSD2との組み合わせが、ブロック領域BL5に割り当てられたブロックディスクリプターである。   The block area specifying unit 35 similarly determines whether or not the pixel Q belongs to the block area BL for the block areas BL after the block area BL1. In the present embodiment, it is determined that the pixel Q belongs to the block region BL5. explain in detail. The block descriptor generation unit 31 causes the main / sub scanning direction descriptor reading unit 29 to read the main scanning direction descriptor MSD 1 and the sub scanning direction descriptor VSD 2 from the main memory 7. A combination of the main scanning direction descriptor MSD1 and the sub scanning direction descriptor VSD2 is a block descriptor assigned to the block area BL5.

このブロックディスクリプターによれば、ブロック領域BL5について、先頭画素の主走査方向の座標値「0」、先頭画素の副走査方向の座標値「1344」、主走査方向の画素数「125」、副走査方向の画素数「1344」である。従って、ブロック領域BL5は、主走査方向の座標値が「0」から「124」まで、副走査方向の座標値が「1344」から「2687」までの領域である。よって、ブロック領域特定部35は、画素Q(0、1400)がブロック領域BL5に属すると判定する。   According to this block descriptor, with respect to the block region BL5, the coordinate value “0” of the top pixel in the main scanning direction, the coordinate value “1344” of the top pixel in the sub scanning direction, the number of pixels “125” in the main scanning direction, The number of pixels in the scanning direction is “1344”. Accordingly, the block region BL5 is a region where the coordinate value in the main scanning direction is “0” to “124” and the coordinate value in the sub-scanning direction is “1344” to “2687”. Therefore, the block area specifying unit 35 determines that the pixel Q (0, 1400) belongs to the block area BL5.

次に、バンドディスクリプター読出部37は、ステップS23で特定されたブロック領域BL5に割り当てられたブロックディスクリプターについて、このブロックディスクリプターを構成する副走査方向ディスクリプターVSD2に含まれるバンドディスクリプター関係づけアドレスAdd72に格納されているバンドディスクリプターBAD22をメインメモリー7から読み出す(ステップS25)。   Next, the band descriptor reading unit 37 relates the band descriptors included in the sub-scanning direction descriptor VSD2 constituting the block descriptor with respect to the block descriptor assigned to the block area BL5 specified in step S23. The band descriptor BAD22 stored at the address Add72 is read from the main memory 7 (step S25).

次に、バンド領域特定部41は、複数のバンド領域BAのうち70万番目画素Qが属するバンド領域BA、及び、そのバンド領域BAにおける70万番目画素Qの副走査方向D2上の位置を特定する(ステップS27)。70万番目画素Qの副走査方向D2上の位置とは、そのバンド領域BAにおいて70万番目画素Qが位置する行を意味する。ステップS27の特定は、バンド領域BAの副走査方向D2の画素数64、及び、ステップS21で演算された70万番目画素Qの副走査方向D2の座標1400を基にして実行される。   Next, the band area specifying unit 41 specifies the band area BA to which the 700,000th pixel Q belongs among the plurality of band areas BA, and the position of the 700,000th pixel Q in the band area BA in the sub-scanning direction D2. (Step S27). The position of the 700,000th pixel Q in the sub-scanning direction D2 means the row where the 700,000th pixel Q is located in the band area BA. The identification in step S27 is executed based on the number of pixels 64 in the sub-scanning direction D2 of the band area BA and the coordinates 1400 in the sub-scanning direction D2 of the 700,000th pixel Q calculated in step S21.

1400÷64=21.875
21.875は、21個のバンド領域BA+0.875個のバンド領域BAを意味する。したがって、70万番目画素Qは、22番目のバンド領域BAであるバンド領域BA22に属している。バンド領域BA22における70万番目画素の副走査方向D2の位置は、バンド領域BA22の56(=64×0.875)行目となる。
1400 ÷ 64 = 21.875
21.875 means 21 band areas BA + 0.875 band areas BA. Therefore, the 700,000th pixel Q belongs to the band area BA22 which is the 22nd band area BA. The position of the 700,000th pixel in the band area BA22 in the sub-scanning direction D2 is the 56th (= 64 × 0.875) line of the band area BA22.

次に、画素数演算部43は、ステップS27で特定された70万番目画素Qが属するバンド領域BA22の先頭の画素(すなわち分割データm1の先頭画素p1)から70万番目画素Qまでの画素数を演算する(ステップS29)。この演算は、ステップS21で演算された70万番目画素Qの主走査方向D1の座標0、ステップS27で特定された副走査方向D2の位置(56行目)、及び、画像データの主走査方向D1の画素数(言い換えればバンド領域BAの主走査方向D1の画素数)500を基にして実行される。   Next, the number-of-pixels calculation unit 43 counts the number of pixels from the head pixel of the band area BA22 to which the 700,000th pixel Q specified in step S27 belongs (that is, the head pixel p1 of the divided data m1) to the 700,000th pixel Q. Is calculated (step S29). This calculation is based on the coordinate 0 in the main scanning direction D1 of the 700,000th pixel Q calculated in step S21, the position in the sub-scanning direction D2 specified in step S27 (line 56), and the main scanning direction of the image data. The processing is performed based on the number of pixels D1 (in other words, the number of pixels in the main scanning direction D1 of the band area BA) 500.

0+500×56=28000
28000がステップS29で演算された画素数である。
0 + 500 × 56 = 28000
28000 is the number of pixels calculated in step S29.

次に、ステップS25で読み出された図3に示すバンドディスクリプターBAD22に含まれる分割データ情報を利用して、分割データ特定部45は、複数の分割データm1〜m5のうち70万番目画素データQが属する分割データを特定する(ステップS31)。その特定は、バンドディスクリプターBAD22の分割データ情報に含まれる複数の分割データm1〜m5のそれぞれの画素数(図6)、及び、ステップ31で演算された画素数28000を基にして実行される。   Next, using the divided data information included in the band descriptor BAD22 shown in FIG. 3 read in step S25, the divided data specifying unit 45 performs the 700,000th pixel data among the plurality of divided data m1 to m5. The divided data to which Q belongs is specified (step S31). The identification is executed based on the number of pixels (FIG. 6) of each of the plurality of divided data m1 to m5 included in the divided data information of the band descriptor BAD22 and the number of pixels 28000 calculated in step 31. .

10000(分割データm1の画素数)<28000
70万番目画素Qのデータは、分割データm1に属さない。
10000 (number of pixels of the divided data m1) <28000
The data of the 700,000th pixel Q does not belong to the divided data m1.

10000+20000(分割データm2の画素数)>28000
したがって、70万番目画素Qのデータは、図6に示すように分割データm2に属する。
10000 + 20000 (number of pixels of the divided data m2)> 28000
Therefore, the data of the 700,000th pixel Q belongs to the divided data m2 as shown in FIG.

次に、アドレス特定部47は、分割データm2の先頭画素p2のデータのメインメモリー7上のアドレスから70万番目画素Qのデータのメインメモリー7上のアドレスを特定する(ステップS33)。この特定は、ステップS29で演算された画素数28000を基にして実行される。   Next, the address specifying unit 47 specifies the address on the main memory 7 of the data of the 700,000th pixel Q from the address on the main memory 7 of the data of the first pixel p2 of the divided data m2 (step S33). This specification is executed based on the number of pixels 28000 calculated in step S29.

ここでは、先頭画素p2のデータのメインメモリー7上のアドレスから18000(=28000−10000)番目の画素のデータのメインメモリー7上のアドレスが、70万番目画素Qのデータのアドレスである。   Here, the address on the main memory 7 of the data of the 18000 (= 28000−10000) th pixel from the address of the data of the top pixel p2 on the main memory 7 is the address of the data of the 700,000th pixel Q.

以上説明したように、本実施形態によれば、メインメモリー7に格納されているN番目画素のデータに対してバンドディスクリプターBADを利用してアクセスする場合に、ブロックディスクリプターを利用することによって、N番目画素が属するブロック領域BLの先頭の画素を含むバンド領域BAに割り当てられたバンドディスクリプターBADから開始できる。一方、もしブロックディスクリプターを利用しなければ、1番目のバンドディスクリプターBADから順番にN番目画素のデータに対応するバンドディスクリプターBADを検索してN番目画素のデータへアクセスしなければならない。バンドディスクリプターBADの数は、例えば数千なので、ブロックディスクリプターの数(例えば10から数十)よりも相当多い。したがって、本実施形態によれば、ブロックディスクリプターを用いない場合よりも、N番目画素のデータへのアクセス時間を短くすることができる。   As described above, according to the present embodiment, when the N-th pixel data stored in the main memory 7 is accessed using the band descriptor BAD, the block descriptor is used. The band descriptor BAD assigned to the band area BA including the first pixel of the block area BL to which the Nth pixel belongs can be started. On the other hand, if the block descriptor is not used, the band descriptor BAD corresponding to the Nth pixel data must be searched in order from the first band descriptor BAD to access the Nth pixel data. Since the number of band descriptors BAD is, for example, thousands, it is considerably larger than the number of block descriptors (for example, 10 to several tens). Therefore, according to the present embodiment, the access time to the data of the Nth pixel can be shortened compared with the case where no block descriptor is used.

本実施形態の変形例を説明する。図9は、本実施形態の変形例に係る画像処理装置2のハードウェア構成を示すブロック図である。変形例に係る画像処理装置2を構成する要素のうち、図1に示す本実施形態に係る画像処理装置1を構成する要素と同じ要素については、同一符号を付している。   A modification of this embodiment will be described. FIG. 9 is a block diagram illustrating a hardware configuration of the image processing apparatus 2 according to a modification of the present embodiment. Among the elements constituting the image processing apparatus 2 according to the modification, the same elements as those constituting the image processing apparatus 1 according to the present embodiment shown in FIG.

図1に示す本実施形態に係る画像処理装置1では、m個の主走査方向ディスクリプターMSD及びn個の副走査方向ディスクリプターVSDを、メインメモリー7に格納している。これに対して、変形例に係る画像処理装置2では、m個の主走査方向ディスクリプターMSD及びn個の副走査方向ディスクリプターVSDを、ASIC11に備えられるSRAM51に格納している。   In the image processing apparatus 1 according to the present embodiment shown in FIG. 1, m main scanning direction descriptors MSD and n sub scanning direction descriptors VSD are stored in the main memory 7. On the other hand, in the image processing apparatus 2 according to the modified example, m main scanning direction descriptors MSD and n sub scanning direction descriptors VSD are stored in the SRAM 51 provided in the ASIC 11.

SRAM51は、例えば、ラインセンサー5から出力された画像データが一時的に格納される。   In the SRAM 51, for example, image data output from the line sensor 5 is temporarily stored.

ブロックディスクリプター生成部31は、SRAM51に格納されているm個の主走査方向ディスクリプターMSDのそれぞれのアドレスとn個の副走査方向ディスクリプターVSDのそれぞれのアドレスを保持している。ブロックディスクリプター生成部31は、SRAM51から主走査方向ディスクリプターMSDと副走査方向ディスクリプターVSDとを読み出して、m×n個のブロック領域BLの任意のブロック領域BLに割り当てられたブロックディスクリプターを生成する。   The block descriptor generation unit 31 holds the addresses of m main scanning direction descriptors MSD and the addresses of n sub scanning direction descriptors VSD stored in the SRAM 51. The block descriptor generation unit 31 reads the main scanning direction descriptor MSD and the sub scanning direction descriptor VSD from the SRAM 51, and sets the block descriptor assigned to any block area BL of the m × n block areas BL. Generate.

m個の主走査方向ディスクリプターMSD及びn個の副走査方向ディスクリプターVSDの全部のサイズは、m×n個のブロックディスクリプターの全部のサイズよりも、かなり小さいので、メインメモリー7でなく、ASIC11のSRAM51に格納することができる。これにより、m個の主走査方向ディスクリプターMSDのそれぞれに、次に読み出す順番の主走査方向ディスクリプターMSDのメインメモリー7上のアドレスの情報を含める必要がなくなる。同様に、n個の副走査方向ディスクリプターVSDのそれぞれに、次に読み出す順番の副走査方向ディスクリプターVSDのメインメモリー7上のアドレスの情報を含める必要がなくなる。従って、m個の主走査方向ディスクリプターMSD及びn個の副走査方向ディスクリプターVSDの全部のサイズをさらに小さくすることができる。   The total size of m main scanning direction descriptors MSD and n sub scanning direction descriptors VSD is considerably smaller than the total size of m × n block descriptors. The data can be stored in the SRAM 51 of the ASIC 11. Thereby, it is not necessary to include the address information on the main memory 7 of the main scanning direction descriptor MSD of the next reading order in each of the m main scanning direction descriptors MSD. Similarly, it is not necessary to include address information on the main memory 7 of the sub-scanning direction descriptor VSD in the next reading order in each of the n sub-scanning direction descriptors VSD. Accordingly, it is possible to further reduce the size of all the m main scanning direction descriptors MSD and the n sub scanning direction descriptors VSD.

1,2 画像処理装置
7 メインメモリー(記憶領域の一例)
51 SRAM(記憶領域の一例)
BL,BL1〜BL16 ブロック領域
BA,BA1,BA2,BA21,BA22 バンド領域
MSD,MSD1〜MSD4 主走査方向ディスクリプター
VSD,VSD1〜VSD4 副走査方向ディスクリプター
BAD,BAD1〜BAD3,BAD21〜BAD23 バンドディスクリプター
P ブロック領域BL5の先頭の画素
M22 バンド領域データ
m1〜m5 分割データ
Q 70万番目画素
1, 2 Image processing device 7 Main memory (an example of storage area)
51 SRAM (an example of a storage area)
BL, BL1 to BL16 Block area BA, BA1, BA2, BA21, BA22 Band area MSD, MSD1 to MSD4 Main scanning direction descriptor VSD, VSD1 to VSD4 Sub scanning direction descriptor BAD, BAD1 to BAD3, BAD21 to BAD23 Band descriptor P First pixel of block area BL5 M22 Band area data m1 to m5 Divided data Q 700,000th pixel

Claims (3)

主走査方向にm個、副走査方向にn個のブロック領域が並ぶm×n個の前記ブロック領域と、前記ブロック領域よりも画素数が主走査方向で多いバンド領域が副走査方向に並ぶ複数の前記バンド領域と、を用いて画像データを処理する画像処理装置であって、
メインメモリーと、
前記メインメモリーに格納する画像データについて、複数の前記バンド領域のそれぞれに対応する複数のバンド領域データに分けて処理をする処理部であって、前記バンド領域データを複数の分割データに分割して前記メインメモリーにアドレスを異ならせて格納する処理を、複数の前記バンド領域データのそれぞれについて実行する分割処理部と、
複数の前記バンド領域のそれぞれに割り当てられた複数のバンドディスクリプターを処理する処理部であって、前記メインメモリーに前記画像データが格納される際に、前記バンド領域データに対応する前記バンド領域に割り当てられた前記バンドディスクリプターに対して、複数の前記分割データのそれぞれの先頭画素のデータの前記メインメモリー上のアドレス及び複数の前記分割データのそれぞれの画素数を示す分割データ情報を加えて前記メインメモリーに格納する処理を、複数の前記バンドディスクリプターのそれぞれにおいて実行するバンドディスクリプター処理部と、を備え、
複数の前記バンドディスクリプターは、順番付けられており、前記メインメモリーに格納された複数の前記バンドディスクリプターのそれぞれは、次の順番のバンドディスクリプターの前記メインメモリー上のアドレスの情報を含み、
前記ブロック領域の先頭画素を含む前記バンド領域に割り当てられた前記バンドディスクリプターの前記メインメモリー上のアドレスを、バンドディスクリプター関係付けアドレスとし、
さらに、
前記ブロック領域の先頭画素の主走査方向の座標値及び前記ブロック領域の主走査方向の画素数が共通する前記ブロック領域に対して設けられ、主走査方向において共通する前記座標値及び前記画素数の情報を含むm個の主走査方向ディスクリプターと、前記ブロック領域の先頭画素の副走査方向の座標値及び前記ブロック領域の副走査方向の画素数が共通する前記ブロック領域に対して設けられ、副走査方向において共通する前記座標値及び前記画素数、並びに、前記バンドディスクリプター関係付けアドレスの情報を含むn個の副走査方向ディスクリプターと、について、前記メインメモリーに前記画像データが格納される際に、予め定められた記憶領域に格納する主・副走査方向ディスクリプター処理部と、
前記記憶領域に格納されたm個の前記主走査方向ディスクリプターと、n個の前記副走査方向ディスクリプターと、を組み合わせて、m×n個の前記ブロック領域の任意のブロック領域に割り当てられたブロックディスクリプターを生成するブロックディスクリプター生成部と、を備える画像処理装置。
A plurality of m × n block areas in which m block areas are arranged in the main scanning direction and n block areas are arranged in the sub scanning direction, and a band area having a larger number of pixels in the main scanning direction than the block areas are arranged in the sub scanning direction. An image processing apparatus that processes image data using the band region of
Main memory,
A processing unit that processes image data stored in the main memory by dividing it into a plurality of band area data corresponding to each of the plurality of band areas, and dividing the band area data into a plurality of divided data. A division processing unit that performs processing for storing the different addresses in the main memory for each of the plurality of band area data;
A processing unit for processing a plurality of band descriptors assigned to each of the plurality of band areas, wherein when the image data is stored in the main memory, the band area corresponding to the band area data is stored in the band area; To the allocated band descriptor, the division data information indicating the address on the main memory of the data of the first pixel of each of the plurality of division data and the number of pixels of each of the plurality of division data is added, and A band descriptor processing unit that executes processing to be stored in the main memory in each of the plurality of band descriptors,
The plurality of band descriptors are ordered, and each of the plurality of band descriptors stored in the main memory includes information on an address on the main memory of a band descriptor in the next order,
An address on the main memory of the band descriptor assigned to the band area including the first pixel of the block area is a band descriptor association address,
further,
The coordinate value in the main scanning direction of the first pixel of the block area and the number of pixels in the main scanning direction of the block area are provided for the block area, and the coordinate value and the number of pixels common in the main scanning direction are provided. The m main scanning direction descriptors including information, the coordinate value in the sub-scanning direction of the first pixel of the block area, and the number of pixels in the sub-scanning direction of the block area are provided for the block area. When the image data is stored in the main memory with respect to the n sub-scanning direction descriptors including information on the coordinate value and the number of pixels common to the scanning direction and the band descriptor-related address. A main / sub-scanning direction descriptor processing unit for storing in a predetermined storage area;
The m number of main scanning direction descriptors stored in the storage area and the n number of sub scanning direction descriptors are combined and assigned to an arbitrary block area of m × n block areas. An image processing apparatus comprising: a block descriptor generation unit that generates a block descriptor.
前記分割処理部、前記バンドディスクリプター処理部、前記ブロックディスクリプター生成部、並びに、m個の前記主走査方向ディスクリプター及びn個の前記副走査方向ディスクリプターが格納されているSRAMを含むASICと、
前記ASICと前記メインメモリーとを接続するバスと、を備え、
前記記憶領域は、前記SRAMであり、
前記ブロックディスクリプター生成部は、前記SRAMに格納されているm個の前記主走査方向ディスクリプターのそれぞれのアドレスとn個の前記副走査方向ディスクリプターのそれぞれのアドレスを保持し、前記SRAMから前記主走査方向ディスクリプターと前記副走査方向ディスクリプターとを読み出して、m×n個の前記ブロック領域の任意のブロック領域に割り当てられた前記ブロックディスクリプターを生成する請求項1に記載の画像処理装置。
An ASIC including an SRAM in which the division processing unit, the band descriptor processing unit, the block descriptor generation unit, and m main scanning direction descriptors and n sub scanning direction descriptors are stored; ,
A bus connecting the ASIC and the main memory;
The storage area is the SRAM;
The block descriptor generation unit holds addresses of m main scanning direction descriptors and addresses of n sub scanning direction descriptors stored in the SRAM, and stores the addresses from the SRAM. The image processing apparatus according to claim 1, wherein the main processing direction descriptor and the sub scanning direction descriptor are read to generate the block descriptor assigned to an arbitrary block area of the m × n block areas. .
前記ブロックディスクリプター生成部によって生成された各ブロックディスクリプターを構成する前記主走査方向ディスクリプター及び前記副走査方向ディスクリプターに含まれる前記画素数及び前記座標値が、割り当てられた前記ブロック領域についての主走査方向及び副走査方向の画素数並びに先頭画素の座標の情報であるブロック領域情報となり、
前記メインメモリーに格納されている前記画像データを基にして形成される画像について、N番目(Nは正の整数)画素が位置する主走査方向及び副走査方向の座標を、前記画像の主走査方向の画素数を基にして演算する座標演算部と、
前記座標演算部で演算された前記N番目画素の座標、及び、前記ブロックディスクリプター生成部によって生成された各ブロックディスクリプターに含まれる前記ブロック領域情報を基にして、m×n個の前記ブロック領域のうち前記N番目画素が属する前記ブロック領域を特定するブロック領域特定部と、
前記ブロック領域特定部で特定された前記ブロック領域に割り当てられた前記ブロックディスクリプターについて、当該ブロックディスクリプターに含まれる前記バンドディスクリプター関係付けアドレスに格納されている前記バンドディスクリプターを前記メインメモリーから読み出すバンドディスクリプター読出部と、を備える請求項1又は2に記載の画像処理装置。
The number of pixels and the coordinate values included in the main scanning direction descriptor and the sub scanning direction descriptor constituting each block descriptor generated by the block descriptor generation unit are assigned to the block area to which the block descriptor is assigned. It becomes block area information which is information on the number of pixels in the main scanning direction and the sub-scanning direction and the coordinates of the top pixel,
For an image formed based on the image data stored in the main memory, the coordinates of the main scanning direction and the sub-scanning direction where the Nth (N is a positive integer) pixel is located are used as the main scanning of the image. A coordinate calculation unit that calculates based on the number of pixels in the direction;
Based on the coordinates of the Nth pixel calculated by the coordinate calculation unit and the block area information included in each block descriptor generated by the block descriptor generation unit, mxn blocks A block area specifying unit for specifying the block area to which the Nth pixel belongs in the area;
For the block descriptor assigned to the block area specified by the block area specifying unit, the band descriptor stored in the band descriptor association address included in the block descriptor is transferred from the main memory. The image processing apparatus according to claim 1, further comprising: a band descriptor reading unit for reading.
JP2013206261A 2013-10-01 2013-10-01 Image processing device Expired - Fee Related JP6002649B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013206261A JP6002649B2 (en) 2013-10-01 2013-10-01 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013206261A JP6002649B2 (en) 2013-10-01 2013-10-01 Image processing device

Publications (2)

Publication Number Publication Date
JP2015069619A JP2015069619A (en) 2015-04-13
JP6002649B2 true JP6002649B2 (en) 2016-10-05

Family

ID=52836155

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013206261A Expired - Fee Related JP6002649B2 (en) 2013-10-01 2013-10-01 Image processing device

Country Status (1)

Country Link
JP (1) JP6002649B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7249504B2 (en) * 2019-06-21 2023-03-31 京セラドキュメントソリューションズ株式会社 Image processing device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09149221A (en) * 1995-11-27 1997-06-06 Mutoh Ind Ltd Method and device for outputting image
JP2000158724A (en) * 1998-11-30 2000-06-13 Fuji Xerox Co Ltd Image-processing apparatus, image processing method and recording medium
JP5135382B2 (en) * 2010-05-24 2013-02-06 京セラドキュメントソリューションズ株式会社 Image processing device

Also Published As

Publication number Publication date
JP2015069619A (en) 2015-04-13

Similar Documents

Publication Publication Date Title
JP5593060B2 (en) Image processing apparatus and method of operating image processing apparatus
JP3781634B2 (en) Image processing apparatus, image processing method, and portable video device
JP2008276408A5 (en)
US8953904B2 (en) Image processing apparatus and method of operating image processing apparatus
JP6210743B2 (en) Data processing device and data transfer control device
JP6002649B2 (en) Image processing device
JP2008072585A (en) Method of supplying data for arithmetic processing and image processing apparatus
JP5135382B2 (en) Image processing device
JP7299770B2 (en) Arithmetic processing device and arithmetic processing method
JP2007079708A (en) Image processor and processing method
JP2021012596A (en) Calculation processing device and calculation processing method
JP5327482B2 (en) Image processing apparatus and image processing method
JP6772020B2 (en) Image processing device, control method of image processing device, and program
JP2010028758A (en) Image processing apparatus and method, program, and imaging apparatus
US20120254573A1 (en) System, data structure, and method for collapsing multi-dimensional data
JP7249504B2 (en) Image processing device
JP4316476B2 (en) Image processing apparatus and image forming apparatus
JP7082757B2 (en) Image processing equipment
EP2323099A1 (en) Image reading device and method of writing image data in an image reading device
JP2008059452A (en) Image processor and image processing method
JP2008027077A (en) Memory management device, image processor, and image forming device
JP2018159590A (en) Parallax computation device
JP2005311745A (en) Image processor
JP2008217515A (en) Image data access method
JP5892961B2 (en) Image processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150824

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160708

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160905

R150 Certificate of patent or registration of utility model

Ref document number: 6002649

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees