JP5843168B2 - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP5843168B2
JP5843168B2 JP2012275278A JP2012275278A JP5843168B2 JP 5843168 B2 JP5843168 B2 JP 5843168B2 JP 2012275278 A JP2012275278 A JP 2012275278A JP 2012275278 A JP2012275278 A JP 2012275278A JP 5843168 B2 JP5843168 B2 JP 5843168B2
Authority
JP
Japan
Prior art keywords
area
image data
image processing
stored
predetermined
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
JP2012275278A
Other languages
Japanese (ja)
Other versions
JP2014120961A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2012275278A priority Critical patent/JP5843168B2/en
Publication of JP2014120961A publication Critical patent/JP2014120961A/en
Application granted granted Critical
Publication of JP5843168B2 publication Critical patent/JP5843168B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Input (AREA)
  • Storing Facsimile Image Data (AREA)

Description

本発明は、画像処理装置、画像処理方法、及びプログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and a program.

従来より、デジタルカメラや、携帯電話等の撮影機能を有する画像処理装置では、画像を生成する場合、撮像素子から取り込んだベイヤデータ(元画像データ)に対して、JPEG(Joint Photographic Experts Group)変換、YUVデータへの変換、シェーディング補正や、エッジ強調などの画像補正、ノイズリダクション、歪曲補正、拡大・縮小などの各処理を行っている。   Conventionally, in an image processing apparatus having a photographing function such as a digital camera or a mobile phone, when generating an image, Bayer data (original image data) captured from an image sensor is converted into JPEG (Joint Photographic Experts Group), Processing such as conversion to YUV data, shading correction, image correction such as edge enhancement, noise reduction, distortion correction, and enlargement / reduction is performed.

上述したような各処理を行う場合に、画像全体を処理しようとすると、各処理回路が非常に大きくなってしまうため、画像を横方向に所定のライン数ごとに分割し、分割した画像データごとに中間的な画像処理を含む各種画像処理を行っている。このとき、画像処理装置では、画像処理の過程における中間的な画像データを一時的に保持しておくために、メモリ上に所定の領域を確保し、該領域をリングバッファとして用いる技術が知られている(例えば、特許文献1、2参照)。   When processing each of the processes described above, if the entire image is processed, each processing circuit becomes very large. Therefore, the image is divided in the horizontal direction by a predetermined number of lines, and each divided image data In addition, various image processing including intermediate image processing is performed. At this time, in the image processing apparatus, a technique is known in which a predetermined area is secured on a memory and the area is used as a ring buffer in order to temporarily hold intermediate image data in the course of image processing. (For example, see Patent Documents 1 and 2).

リングバッファは、メモリを有効に使うため、中間的な画像データをより少ない領域の使用にとどめるための手法である。メモリは、プログラム、スタック、プログラム処理のためのデータ、CCDから取り込んだベイヤデータ、表示データなどのために使用される。このため、大きな領域が必要な画像データの使用量を少なくすることで、他で必要な領域が大きく取れることになる。このため、画像処理などの処理速度をアップさせることができるという利点がある。   The ring buffer is a method for limiting the intermediate image data to a smaller area in order to use the memory effectively. The memory is used for programs, stacks, data for program processing, Bayer data fetched from the CCD, display data, and the like. For this reason, by reducing the amount of use of image data that requires a large area, it is possible to make a large area necessary elsewhere. For this reason, there is an advantage that the processing speed of image processing or the like can be increased.

図9は、従来技術によるメモリ利用状況を説明するための概念図である。例えば、JPEG変換モジュールは、ベイヤデータを直接処理することができないため、また、サイズの変更、色調整などのために、一時的にベイヤデータ1をYUVデータ2に変換し、そのYUVデータを2JPEGデータ3に変換する。この一時的に必要なYUVデータ2をリングバッファ4に巡回的に格納することで、リングバッファ4を使用しない場合に比べ、メモリ上の画像データの使用量を少なくしている。リングバッファ4は、使用するデータ量に関係なく、固定された一部の領域のみを使用するものである。データ量が一部の領域を超えてしまう場合に、その領域の先頭に戻り、領域を巡回的に使用するためリングバッファと呼ばれている。   FIG. 9 is a conceptual diagram for explaining a memory use situation according to the conventional technique. For example, the JPEG conversion module cannot directly process Bayer data, and temporarily converts Bayer data 1 to YUV data 2 for size change, color adjustment, etc., and converts the YUV data to 2 JPEG data 3 Convert to By storing the temporarily required YUV data 2 in the ring buffer 4 in a cyclic manner, the amount of image data used in the memory is reduced as compared with the case where the ring buffer 4 is not used. The ring buffer 4 uses only a fixed area regardless of the amount of data to be used. When the amount of data exceeds a part of the area, it is called a ring buffer because it returns to the beginning of the area and uses the area cyclically.

このため、リングバッファ4へのデータ入力側、リングバッファ4からのデータ出力側における、2つのモジュールのデータ処理速度が異なる場合には、読み出しが行われていない領域へのデータの上書きや、書き込みされていない領域からのデータ読み込みが行われてしまう可能性がある。そこで、データ入力側のモジュールがデータ出力側を制御するか、データ出力側のモジュールがデータ入力側を制御することで、未書き込み領域の読み出しを行わせないようにしたり、読み込みが終わっていない領域への新規書き込みを行わせないようにしたりしている。制御するモジュールに対し、制御されるモジュールは、処理終了ラインを通知し、その情報と自身の処理終了ラインとリングバッファのライン数とにより、RAMアクセスの制御を行う。   For this reason, when the data processing speeds of the two modules on the data input side to the ring buffer 4 and the data output side from the ring buffer 4 are different, data is overwritten or written to an area where reading has not been performed. There is a possibility that data is read from an area that has not been processed. Therefore, the data input side module controls the data output side, or the data output side module controls the data input side, so that the unwritten area is not read or the area where reading has not been completed. To prevent new writes from being made. The controlled module notifies the control module of the process end line, and controls RAM access based on the information, its own process end line, and the number of lines in the ring buffer.

図10は、従来技術において、データ出力側モジュールと入力側モジュールとの動作制御方法を示すブロック図である。データ出力側モジュール12は、自身が必要なライン数までリングバッファ11へのデータ書き込みが行われると、リングバッファ11からデータ読み込みを開始する。その後、データ出力側モジュール12の処理速度が入力側より遅い場合には、読み込んでいないデータが上書きされないように、データ出力側モジュール12からデータ入力側モジュール10に対してデータ書き込みを停止するように制御する(データ書き込み制御)。逆に、データ出力側モジュール12の処理速度がデータ入力側モジュール10より速い場合には、書き込み終わっていないラインのデータ読み込みをしないように、データ入力側モジュー10ルからデータ出力側モジュール12による読み込みを制御する(データ書き込み終了ライン通知)。   FIG. 10 is a block diagram showing an operation control method for the data output side module and the input side module in the prior art. The data output module 12 starts reading data from the ring buffer 11 when data is written to the ring buffer 11 up to the number of lines required by the data output module 12 itself. Thereafter, when the processing speed of the data output side module 12 is slower than that of the input side, data writing from the data output side module 12 to the data input side module 10 is stopped so that unread data is not overwritten. Control (data write control). On the contrary, when the processing speed of the data output module 12 is faster than that of the data input module 10, the data output module 12 reads from the data input module 10 so as not to read the data of the line that has not been written. (Data write end line notification).

特開2010−86497号公報JP 2010-86497 A 特開2007−88806号公報JP 2007-88806 A

しかしながら、上記従来技術では、図11に示すように、元画像データの記憶領域20、処理後の画像データの記憶領域21以外に、中間データを一時的に保持するために、メモリの一部にリングバッファのための記憶領域22を、別途確保しなければならないという問題があった。また、画像サイズの拡大、処理経路の増加に伴い、リングバッファ22のために必要とされるメモリ容量が増大するという問題があった。   However, in the above prior art, as shown in FIG. 11, in order to temporarily hold intermediate data in addition to the storage area 20 for the original image data and the storage area 21 for the processed image data, There was a problem that a storage area 22 for the ring buffer had to be secured separately. Further, there has been a problem that the memory capacity required for the ring buffer 22 increases as the image size increases and the processing path increases.

そこで本発明は、リングバッファ専用の記憶領域を不要とし、メモリを有効利用することができる画像処理装置、画像処理方法、及びプログラムを提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus, an image processing method, and a program that can effectively use a memory without requiring a storage area dedicated to a ring buffer.

この発明は、少なくとも、元画像データを記憶する第1の領域と前記元画像に対する画像処理後の画像データを記憶する第2の領域とを有する記憶手段と、所定の画像処理を施す画像処理手段と、前記記憶手段の第1の領域に格納されている元画像データを、所定の分割単位で逐次読み出して前記画像処理手段に供給し、前記画像処理手段によって画像処理された画像データを前記記憶手段の第2の領域に逐次格納する過程で、前記画像処理手段による所定の画像処理のための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域と前記第1の領域内の読み出し済みの画像データが格納されていた領域とに、前記記憶手段の利用状況に基づいて確保する画像データ転送手段とを備え、前記画像データ転送手段は、前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になるまでの間、前記所定の画像処理を行うための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域に確保し、前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になった後の所定タイミングで、前記所定の画像処理を行うための作業領域を、前記第1の領域内の読み出し済みの画像データが格納されていた領域へと切り替えることを特徴とする。 The present invention includes a storage means having at least a first area for storing original image data and a second area for storing image data after image processing for the original image, and image processing means for performing predetermined image processing. The original image data stored in the first area of the storage means is sequentially read out in a predetermined division unit, supplied to the image processing means, and the image data processed by the image processing means is stored in the storage In the process of sequentially storing in the second area of the means, the work area for the predetermined image processing by the image processing means is defined as the area in which the processed image data in the second area is not stored. to the first read already image data in the region has been storage area, and an image data transfer means for securing based on the use status of said storage means, said image data transfer means, said first A work area for performing the predetermined image processing until the size of the area in which the read image data is stored is equal to or larger than the size of the work area required for the predetermined image processing. The processed image data in the second area is secured in an unstored area, and the size of the area in which the read image data in the first area is stored is the predetermined image processing. At a predetermined timing after the size of the required work area is reached, the work area for performing the predetermined image processing is changed to an area in which the read image data in the first area is stored. It is characterized by switching.

この発明は、少なくとも、元画像データを記憶する第1の領域と前記元画像に対する画像処理後の画像データを記憶する第2の領域とを有する記憶手段と、所定の画像処理を施す画像処理手段と、前記記憶手段の第1の領域に格納されている元画像データを、所定の分割単位で逐次読み出して前記画像処理手段に供給し、前記画像処理手段によって画像処理された画像データを前記記憶手段の第2の領域に逐次格納する過程で、前記画像処理手段による所定の画像処理のための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域と前記第1の領域内の読み出し済みの画像データが格納されていた領域とに、前記記憶手段の利用状況に基づいて確保する画像データ転送手段とを備え、前記画像処理手段は、前記第1の領域に格納されている元画像データに対して所定の分割単位で第1の画像処理を行い、この第1の画像処理が施された後の画像データに対して所定の分割単位で第2の画像処理を行い、前記作業領域は、前記第1の画像処理の結果を一時的に格納する作業領域であることを特徴とする。 The present invention includes a storage means having at least a first area for storing original image data and a second area for storing image data after image processing for the original image, and image processing means for performing predetermined image processing. The original image data stored in the first area of the storage means is sequentially read out in a predetermined division unit, supplied to the image processing means, and the image data processed by the image processing means is stored in the storage In the process of sequentially storing in the second area of the means, the work area for the predetermined image processing by the image processing means is defined as the area in which the processed image data in the second area is not stored. An image data transfer unit that secures the read image data in one area based on the use status of the storage unit, and the image processing unit includes the first area. The first image processing is performed in a predetermined division unit on the original image data stored in the image data, and the second image is processed in a predetermined division unit on the image data after the first image processing is performed. Processing is performed, and the work area is a work area for temporarily storing the result of the first image processing.

この発明によれば、リングバッファ用の記憶領域を不要とし、メモリを有効利用することができるという利点が得られる。   According to the present invention, there is an advantage that a memory area for the ring buffer is not required and the memory can be used effectively.

本発明の実施形態によるデジタルカメラの略構成を示すブロック図である。It is a block diagram which shows the schematic structure of the digital camera by embodiment of this invention. 本実施形態によるASIC31の構成を示すブロック図である。It is a block diagram which shows the structure of ASIC31 by this embodiment. 本実施形態によるメモリ利用状況を説明するための概念図である。It is a conceptual diagram for demonstrating the memory utilization condition by this embodiment. 本実施形態による画像データ転送部45の動作を説明するためのフローチャートである。5 is a flowchart for explaining an operation of an image data transfer unit 45 according to the present embodiment. 本実施形態の画像データ転送部45によるベルト単位でのRAM32の使用例を示す概念図である。It is a conceptual diagram which shows the usage example of RAM32 by the belt unit by the image data transfer part 45 of this embodiment. 本実施形態による画像データ転送部47の動作を説明するためのフローチャートである。7 is a flowchart for explaining the operation of an image data transfer unit 47 according to the present embodiment. 本実施形態の画像データ転送部47によるベルト単位でのRAM32の使用例を示す概念図である。It is a conceptual diagram which shows the usage example of RAM32 by the belt unit by the image data transfer part 47 of this embodiment. 本実施形態の画像データ転送部47によるベルト単位でのRAM32の使用例を示す概念図である。It is a conceptual diagram which shows the usage example of RAM32 by the belt unit by the image data transfer part 47 of this embodiment. 従来技術によるメモリ利用状況を説明するための概念図である。It is a conceptual diagram for demonstrating the memory utilization condition by a prior art. 従来技術において、データ出力側モジュールと入力側モジュールとの動作制御方法を示すブロック図である。In the prior art, it is a block diagram which shows the operation control method of a data output side module and an input side module. 従来技術でのメモリ利用状態を示す模式図である。It is a schematic diagram which shows the memory utilization state in a prior art.

以下、本発明の実施の形態を、図面を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

A.実施形態の構成
図1は、本発明の実施形態によるデジタルカメラの略構成を示すブロック図である。図において、CPU30は、所定のプログラムを実行することにより、後述する当該デジタルカメラの各部の動作(撮影、画像処理など)を制御する。ASIC31は、後述するCCD33から入力したベイヤデータに対して、YUVデータ変換、エッジ強調やシェーディング補正などの画像補正、画像の拡大や縮小を行う。また、ASIC31は、後述するCCD33から入力された画像データに対して各種画像処理等を施してLCD35に表示する。
A. Configuration of Embodiment FIG. 1 is a block diagram showing a schematic configuration of a digital camera according to an embodiment of the present invention. In the figure, the CPU 30 controls the operation (photographing, image processing, etc.) of each part of the digital camera described later by executing a predetermined program. The ASIC 31 performs YUV data conversion, image correction such as edge enhancement and shading correction, and image enlargement and reduction on Bayer data input from the CCD 33 described later. Further, the ASIC 31 performs various image processing and the like on the image data input from the CCD 33 described later, and displays the image data on the LCD 35.

RAM32は、CPU30や、ASIC31の動作に係る各種パラメータや、撮像された画像データ、該画像データに対して画像処理を施した後の画像データなどを保存するとともに、画像処理での途中結果を一時保存する。CCD33は、レンズ等の光学系を通して結像された画像を電気信号として取り込み、撮像画像データ(以下、元画像データ、またはベイヤデータという)としてASIC31に供給する。   The RAM 32 stores various parameters related to the operation of the CPU 30 and the ASIC 31, captured image data, image data after image processing is performed on the image data, and temporarily stores intermediate results in the image processing. save. The CCD 33 takes in an image formed through an optical system such as a lens as an electrical signal and supplies it to the ASIC 31 as captured image data (hereinafter referred to as original image data or Bayer data).

ROM34は、CPU39、ASIC31で実行される所定のプログラムや、動作パラメータなどを記憶する。LCD35は、各種メニュー画面や、メニュー画面での各種設定項目、動作パラメータ、撮影時のスルー画像、撮影された元画像データなどを表示する。キーボード36は、各種撮影パラメータ、動作モードを設定・指定するためのボタンや、シャッタボタンなどからなる。電源部37は、各種バッテリ(一次電池、二次電池など)からなり、上述した各部を動作させるための電源を供給する。   The ROM 34 stores predetermined programs executed by the CPU 39 and the ASIC 31, operation parameters, and the like. The LCD 35 displays various menu screens, various setting items on the menu screen, operation parameters, a through image at the time of shooting, original image data that has been shot, and the like. The keyboard 36 includes buttons for setting and specifying various shooting parameters and operation modes, a shutter button, and the like. The power supply unit 37 includes various batteries (a primary battery, a secondary battery, and the like), and supplies power for operating the above-described units.

次に、図2は、本実施形態によるASIC31の構成を示すブロック図である。図において、ASIC31は、DMAC(Dynamic Memory Access Controller)40、メモリ制御部41、CCD制御部42、画像変換部43、画像補正部44、画像データ転送部45、画素数変換部46、画像データ転送部47、キーボード制御部48、及びLCD制御部49からなる。   Next, FIG. 2 is a block diagram showing a configuration of the ASIC 31 according to the present embodiment. In the figure, an ASIC 31 includes a DMAC (Dynamic Memory Access Controller) 40, a memory control unit 41, a CCD control unit 42, an image conversion unit 43, an image correction unit 44, an image data transfer unit 45, a pixel number conversion unit 46, an image data transfer A unit 47, a keyboard control unit 48, and an LCD control unit 49.

DMAC40は、CPU30を介さずに、メモリ制御部41を用いてRAM32や、ROM34に直接アクセスし、元画像データの保存や、読み込み、あるいは、後述する各種画像処理部への引き渡しなどを制御する。メモリ制御部41は、DMAC40による制御の下、直接、RAM32や、ROM34にアクセスして、DMAC40とRAM32や、ROM34との間でデータの受け渡しを行う。CCD制御部42は、CCD33を駆動制御し、CCD33で取り込んだ元画像データをDMAC40に供給する。   The DMAC 40 directly accesses the RAM 32 and the ROM 34 using the memory control unit 41 without going through the CPU 30, and controls the storage and reading of the original image data or the transfer to various image processing units described later. The memory control unit 41 directly accesses the RAM 32 and the ROM 34 under the control of the DMAC 40, and exchanges data between the DMAC 40 and the RAM 32 and the ROM 34. The CCD control unit 42 drives and controls the CCD 33 and supplies the original image data captured by the CCD 33 to the DMAC 40.

画像変換部43は、画像データ転送部45を介して供給される元画像データをYUVデータに変換し、画像補正部44に供給する。画像補正部44は、供給される画像データに対して、エッジ強調や、シェーディング補正などの画像補正を行い、画像転送部45に供給する。画像データ転送部45は、上記画像変換部43、画像補正部44、がRAM32との間で画像データの入出力を行う場合に、DMAC40との間で転送処理を制御する。このとき、画像補正部44による画像補正後の中間データは、後述するリングバッファA、Bに一時的に格納される。   The image conversion unit 43 converts the original image data supplied via the image data transfer unit 45 into YUV data and supplies the YUV data to the image correction unit 44. The image correction unit 44 performs image correction such as edge enhancement and shading correction on the supplied image data, and supplies the image data to the image transfer unit 45. The image data transfer unit 45 controls transfer processing with the DMAC 40 when the image conversion unit 43 and the image correction unit 44 perform input / output of image data with the RAM 32. At this time, the intermediate data after the image correction by the image correction unit 44 is temporarily stored in ring buffers A and B described later.

画素数変換部46は、供給される画像データの拡大や、縮小を行う。画像データ転送部47は、上記画素数変換部46がRAM3との間で画像データの入出力を行う場合に、DMAC40との間で転送処理を制御する。このとき、後述するリングバッファA、Bに一時的に格納された、画像補正部44による画像補正後の中間データが画素数変換部46に供給される。キーボード制御部48は、キーボード36の入力(スキャン)を制御する。LCD制御部49は、DMAC40から供給される元画像データや、画像処理が施された画像データなどのLCD35への表示を制御する   The pixel number conversion unit 46 enlarges or reduces the supplied image data. The image data transfer unit 47 controls transfer processing with the DMAC 40 when the pixel number conversion unit 46 inputs and outputs image data with the RAM 3. At this time, the intermediate data after the image correction by the image correction unit 44 temporarily stored in ring buffers A and B described later is supplied to the pixel number conversion unit 46. The keyboard control unit 48 controls input (scanning) of the keyboard 36. The LCD control unit 49 controls the display on the LCD 35 of original image data supplied from the DMAC 40 and image data subjected to image processing.

図3は、本実施形態によるメモリ利用状況を説明するための概念図である。本実施形態では、処理後の画像データの記憶領域51の未使用領域を、リングバッファAの記憶領域52として、画像処理前の元画像データの記憶領域50の利用可能領域を、リングバッファAの記憶領域52として、画像処理の進捗状況に基づく所定のタイミングで切り替えながら用いることを特徴としている。すなわち、画像処理が進むにつれて、元画像データは使用済みとなるので、元画像データの記憶領域50には、利用可能な記憶領域が発生することになる。また、処理後の画像データの記憶領域51には、画像処理が進むにつれて、処理後の画像データが記憶されていくが、画像処理の初期においては未使用領域がある。そこで、本実施形態では、画像処理が開始されると、まず、処理後の画像データの記憶領域51の未使用領域の一部を、リングバッファAの記憶領域52として用い、その後、所定のタイミングで、元画像データの記憶領域50の一部を、リングバッファBの記憶領域53として用いるように切り替えるようなっている。本実施形態では、元画像データの記憶領域50に作業領域として十分な利用可能な記憶領域が確保できる程度に画像処理が進んだタイミングでリングバッファAからリングバッファBへと切り替える。   FIG. 3 is a conceptual diagram for explaining a memory usage state according to the present embodiment. In this embodiment, the unused area of the image data storage area 51 after processing is used as the storage area 52 of the ring buffer A, and the available area of the storage area 50 of the original image data before image processing is used as the storage area 52 of the ring buffer A. The storage area 52 is characterized by being used while being switched at a predetermined timing based on the progress of image processing. That is, as the image processing proceeds, the original image data becomes used, so that an available storage area is generated in the storage area 50 for the original image data. The processed image data storage area 51 stores the processed image data as the image processing proceeds, but there is an unused area at the initial stage of the image processing. Therefore, in the present embodiment, when image processing is started, first, a part of the unused area of the processed image data storage area 51 is used as the storage area 52 of the ring buffer A, and then a predetermined timing is used. Thus, a part of the storage area 50 of the original image data is switched to be used as the storage area 53 of the ring buffer B. In the present embodiment, switching from the ring buffer A to the ring buffer B is performed at a timing when image processing has progressed to such an extent that a storage area sufficient as a work area can be secured in the storage area 50 of the original image data.

なお、本実施形態におけるリングバッファA、Bは、移動しながら作業領域を確保していくバッファであり、巡回的に使用される、いわゆるリングバッファではないが、従来技術において、画像処理途中の中間データを一時的に保持するために用いたリングバッファに相当する作業領域として機能するので、以下の説明においてもリングバッファということにする。但し、本実施形態のリングバッファA、Bは、上述したように、従来のリングバッファのように専用にメモリ上に確保されたものでなく、元画像データの記憶領域50の読み出し済みの画像データが格納されていた領域、あるいは処理後の画像データの記憶領域51の未使用領域を切り替えて用いる点で異なる。   The ring buffers A and B in the present embodiment are buffers that secure work areas while moving, and are not cyclically used so-called ring buffers. Since it functions as a work area corresponding to a ring buffer used for temporarily storing data, it will be referred to as a ring buffer in the following description. However, as described above, the ring buffers A and B of the present embodiment are not exclusively reserved on the memory as in the conventional ring buffer, but read out image data in the storage area 50 of the original image data. Is different in that it is used by switching the area where the image is stored or the unused area of the storage area 51 of the processed image data.

B.実施形態の動作
次に、上述した実施形態の動作について説明する。
図4は、本実施形態による画像データ転送部45の動作を説明するためのフローチャートである。また、図5は、本実施形態の画像データ転送部45によるベルト単位でのRAM32の使用例を示す概念図である。また、図6は、本実施形態による画像データ転送部47の動作を説明するためのフローチャートである。図7(a)〜(d)、及び図8(a)〜(d)は、本実施形態の画像データ転送部47によるベルト単位でのRAM32の使用例を示す概念図である。
B. Operation of Embodiment Next, the operation of the above-described embodiment will be described.
FIG. 4 is a flowchart for explaining the operation of the image data transfer unit 45 according to the present embodiment. FIG. 5 is a conceptual diagram showing a usage example of the RAM 32 in belt units by the image data transfer unit 45 of the present embodiment. FIG. 6 is a flowchart for explaining the operation of the image data transfer unit 47 according to this embodiment. FIGS. 7A to 7D and FIGS. 8A to 8D are conceptual diagrams showing an example of use of the RAM 32 in units of belts by the image data transfer unit 47 of the present embodiment.

なお、以下の説明では、ベイヤデータは、16bit/pix、中間データ、及び画像拡大縮小後の最終データは、YYUVデータの16bit/pixとする。また、入力画像サイズは、320x240、出力画像サイズは、入力画像を4倍した640x480とする。また、中間画像は、320x240のYYUVデータの16bit/pixで、320x60ピクセル分のリングバッファAを確保するものとする。   In the following description, Bayer data is 16 bits / pix, intermediate data, and final data after image enlargement / reduction is 16 bits / pix of YYUV data. The input image size is 320 × 240, and the output image size is 640 × 480, which is four times the input image. Further, it is assumed that the intermediate image secures a ring buffer A for 320 × 60 pixels at 16 bits / pix of YYUV data of 320 × 240.

画像データ転送部45は、リングバッファAの開始アドレスを算出し、リングバッファ変更信号をディセーブル(無効)として出力し、最初はリングバッファAを使用する(ステップS10)。図6(a)に示すように、入力画像の先頭アドレスを0x00000000、出力画像の先頭アドレスを0x00025800とする。また、リングバッファAのサイズは、(320×60×16)/8=38400(16進で0x00009600)バイトになる。リングバッファAの開始アドレスは、出力画像の先頭アドレス+出力画像のデータサイズ−リングバッファのサイズ=0x00025800+0x000BB800−0x00009600=0x000D7A00となる。   The image data transfer unit 45 calculates the start address of the ring buffer A, outputs the ring buffer change signal as disabled (invalid), and initially uses the ring buffer A (step S10). As shown in FIG. 6A, the head address of the input image is set to 0x00000000, and the head address of the output image is set to 0x00025800. The size of the ring buffer A is (320 × 60 × 16) / 8 = 38400 (0x00009600 in hexadecimal) bytes. The start address of the ring buffer A is output image start address + output image data size−ring buffer size = 0x00025800 + 0x000BB800-0x00009600 = 0x000D7A00.

次に、画像データ転送部45は、処理内容に応じてベルトのライン数を算出する(ステップS12)。各処理部が処理できるベルトのライン数はMAX32ラインとする。各処理部ともにMAXで使用すると仮定すると、画像データ転送部45が処理するベルトのライン数は、入力側、出力側ともに30ラインとなり、画像データ転送部47が処理するベルトのライン数は、入力側が15ライン、出力側は拡大されて30ラインとなる。   Next, the image data transfer unit 45 calculates the number of belt lines according to the processing content (step S12). The number of belt lines that can be processed by each processing unit is set to MAX 32 lines. Assuming that each processing unit is used in MAX, the number of belt lines processed by the image data transfer unit 45 is 30 on both the input side and the output side, and the number of belt lines processed by the image data transfer unit 47 is The side is expanded to 15 lines, and the output side is expanded to 30 lines.

次に、画像データ転送部45は、入力画像の読み込み中にリングバッファを変更してもいいリングバッファ変更アドレスADDRa(=開始アドレス+リングバッファサイズ)を算出する(ステップS14)。この場合、リングバッファ変更アドレスADDRa=入力開始アドレス+リングバッファサイズ=0x00009600となる。次に、画像データ転送部45は、ベルト単位入力開始アドレスADDRbを算出する(ステップS16)。この場合、最初のベルトであるので、ベルト単位入力開始アドレスADDRb=0x00000000になる。   Next, the image data transfer unit 45 calculates a ring buffer change address ADDRa (= start address + ring buffer size) that may change the ring buffer during reading of the input image (step S14). In this case, the ring buffer change address ADDRa = input start address + ring buffer size = 0x00009600. Next, the image data transfer unit 45 calculates the belt unit input start address ADDRb (step S16). In this case, since it is the first belt, the belt unit input start address ADDRb = 0x00000000.

次に、画像データ転送部45は、ADDRa>ADDRbであるか否かを判断する(ステップS18)。ここでは、ADDRa>ADDRbであるので(ステップS18のYES)、画像データ転送部45は、ベルト単位出力開始アドレスを算出し、該ベルト単位出力開始アドレスに従って、ベルト単位でのデータ入出力を行うとともに、出力したライン数の算出する(ステップS24)。具体的には、第1ベルト目の場合、ベルト単位出力開始アドレスは、リングバッファAの開始アドレス「0x000D7A00」となる。画像データ転送部45は、元画像データの30ライン分(図5の0x00000000〜0x00004B00の第1ベルト)を画像変換部43へ供給し、画像補正部44からの出力データ(30ライン分)を、図6(a)に示すように、処理後の画像データの記憶領域51に設定されたリングバッファAの記憶領域52(0x000D7A00〜)に出力する。出力ライン数は30ラインとなる。   Next, the image data transfer unit 45 determines whether or not ADDRa> ADDRb (step S18). Here, since ADDRa> ADDRb (YES in step S18), the image data transfer unit 45 calculates a belt unit output start address, and performs data input / output in belt units according to the belt unit output start address. The number of output lines is calculated (step S24). Specifically, in the case of the first belt, the belt unit output start address is the start address “0x000D7A00” of the ring buffer A. The image data transfer unit 45 supplies the original image data for 30 lines (the first belt of 0x0000000 to 0x00004B00 in FIG. 5) to the image conversion unit 43, and outputs the output data (for 30 lines) from the image correction unit 44. As shown in FIG. 6A, the data is output to the storage area 52 (0x000D7A00) of the ring buffer A set in the storage area 51 of the processed image data. The number of output lines is 30 lines.

次に、画像データ転送部45は、全ての処理が終了したか否かを判断し(ステップS26)、終了していない場合には(ステップS26のNO)、ステップS16に戻り、上述した処理を繰り返し、第2ベルト目に対する処理を行う。第2ベルトの場合には、ステップS16で、ベルト単位入力開始アドレスADDRbに30ライン分加算し、ベルト単位入力開始アドレスADDRb=0x00004B00になる(図6(b)参照、第2ベルト)。この場合、第1ベルトと同様に、ADDRa>ADDRbと判断されるので(ステップS18のYES)、画像データ転送部45は、ステップS24で、ベルト単位出力開始アドレスを算出し(0x000D7A00+30ライン=0x000C500)、該ベルト単位出力開始アドレスに従って、元画像データの30ライン分(0x00004B00〜の第2ベルト)を画像変換部43へ供給し、画像補正部44からの出力データ(30ライン分)を、図6(b)に示すように、処理後の画像データの記憶領域51に設定されたリングバッファAの記憶領域52(0x000C500〜)に出力する。出力ライン数は60ラインとなる。   Next, the image data transfer unit 45 determines whether or not all the processes have been completed (step S26). If not completed (NO in step S26), the process returns to step S16 and performs the above-described processes. The process for the second belt is repeated. In the case of the second belt, in step S16, 30 lines are added to the belt unit input start address ADDRb, and the belt unit input start address ADDRb = 0x00004B00 (see FIG. 6B, second belt). In this case, since ADDRa> ADDRb is determined as in the case of the first belt (YES in step S18), the image data transfer unit 45 calculates a belt unit output start address in step S24 (0x000D7A00 + 30 line = 0x000C500). In accordance with the belt unit output start address, 30 lines of the original image data (second belt of 0x00004B00) are supplied to the image conversion unit 43, and the output data (30 lines) from the image correction unit 44 is shown in FIG. As shown in (b), the data is output to the storage area 52 (0x000C500-) of the ring buffer A set in the storage area 51 of the processed image data. The number of output lines is 60 lines.

次に、画像データ転送部45は、再び、ステップS16に戻り、上述した処理を繰り返し、第3ベルト目に対する処理を行う。第3ベルト目の処理では、図6(c)に示すように、ベルト単位入力開始アドレスADDRb=0x00009600になり、ADDRa=ADDRbとなるので(ステップS18のNO)、画像データ転送部45は、リングバッファ変更信号がイネーブルであるか否かを判断する(ステップS20)。この場合、先のステップS10で、リングバッファ変更信号はディセーブル(無効)であるので(ステップS20のNO)、画像データ転送部45は、出力したライン数60を変更ライン数LNcとして出力するとともに、リングバッファ変更信号をイネーブルにして画像データ転送部47に出力し、リングバッファBに変更する(ステップS23)。   Next, the image data transfer unit 45 returns to step S16 again, repeats the above-described processing, and performs processing for the third belt. In the process of the third belt, as shown in FIG. 6C, since the belt unit input start address ADDRb = 0x00009600 and ADDRa = ADDRb (NO in step S18), the image data transfer unit 45 It is determined whether or not the buffer change signal is enabled (step S20). In this case, since the ring buffer change signal is disabled (invalid) in the previous step S10 (NO in step S20), the image data transfer unit 45 outputs the output line number 60 as the changed line number LNc. Then, the ring buffer change signal is enabled and output to the image data transfer unit 47 and changed to the ring buffer B (step S23).

次に、画像データ転送部45は、ステップS24で、ベルト単位出力開始アドレスを算出する。ここからは、リングバッファBを用いるので、ベルト単位出力開始アドレス=0x00000000となり、該ベルト単位出力開始アドレスに従って、元画像データの30ライン分(0x00009600〜の第3ベルト)を画像変換部43へ供給し、画像補正部44からの出力データ(30ライン分)を、図6(c)に示すように、元画像データの記憶領域50の空き領域に設定されたリングバッファBの記憶領域53(0x0000000〜)に出力する。出力ライン数は90ラインとなる。   Next, in step S24, the image data transfer unit 45 calculates a belt unit output start address. From now on, since the ring buffer B is used, the belt unit output start address = 0x00000000, and 30 lines of the original image data (the third belt from 0x00009600) are supplied to the image conversion unit 43 according to the belt unit output start address Then, as shown in FIG. 6C, the output data (for 30 lines) from the image correction unit 44 is stored in the storage area 53 (0x0000000) of the ring buffer B set in the empty area of the storage area 50 of the original image data. To ~). The number of output lines is 90 lines.

次に、画像データ転送部45は、再び、ステップS16に戻り、上述した処理を繰り返し、第4ベルト目に対する処理を行う。第4ベルト目の処理では、図6(d)に示すように、ベルト単位入力開始アドレスADDRb=0x00012C00になり、ADDRa<ADDRbとなり(ステップS18のNO)、この場合、先のステップS22で、リングバッファ変更信号はイネーブル(有効)であるので(ステップS20のYES)、画像データ転送部45は、ステップS24で、ベルト単位出力開始アドレスを算出する。この場合、リングバッファBを用いるので、ベルト単位出力開始アドレス=0x00004B00となり、該ベルト単位出力開始アドレスに従って、元画像データの30ライン分(0x00012C00〜の第4ベルト)を画像変換部43へ供給し、画像補正部44からの出力データ(30ライン分)を、図6(d)に示すように、元画像データの記憶領域50の空き領域に設定されたリングバッファBの記憶領域53(0x0004B00〜)に出力する。出力ライン数は120ラインとなる。   Next, the image data transfer unit 45 returns to step S16 again, repeats the above-described processing, and performs processing for the fourth belt. In the process of the fourth belt, as shown in FIG. 6D, the belt unit input start address ADDRb = 0x00012C00 and ADDRa <ADDRb (NO in step S18). In this case, in the previous step S22, the ring Since the buffer change signal is enabled (YES in step S20), the image data transfer unit 45 calculates the belt unit output start address in step S24. In this case, since the ring buffer B is used, the belt unit output start address = 0x00004B00, and 30 lines of the original image data (the fourth belt of 0x00012C00) are supplied to the image conversion unit 43 according to the belt unit output start address. The output data (for 30 lines) from the image correction unit 44 is stored in the storage area 53 (0x0004B00 to 0x0004B00) of the ring buffer B set as a free area in the storage area 50 of the original image data, as shown in FIG. ). The number of output lines is 120 lines.

その後、画像データ転送部45は、元画像データを読出して画像変換部43に供給するとともに、画像補正部44からの処理済みの中間データを、元画像データの記憶領域50の空き領域に設定されたリングバッファBに格納するという処理を最終ベルトまで繰り返す。そして、元画像データの全てに対して処理が終了すると(ステップS26のYES)、当該処理を終了する。   Thereafter, the image data transfer unit 45 reads out the original image data and supplies it to the image conversion unit 43, and the processed intermediate data from the image correction unit 44 is set as a free area in the storage area 50 of the original image data. The process of storing in the ring buffer B is repeated until the final belt. When the process is completed for all of the original image data (YES in step S26), the process is terminated.

一方、画像データ転送部47は、まず、処理内容によりベルトのライン数を算出する(ステップS30)。本実施形態では、上述したように、画像データ転送部47が処理するベルトのライン数は、入力側が15ライン、出力側は拡大されて30ラインとなる。次に、画像データ転送部47は、リングバッファA、またはBに入力データがあるか否かを判断する(ステップS32)。そして、入力データがない場合には(ステップS32のNO)、ステップS32に戻り、入力データがあるまで待機する。   On the other hand, the image data transfer unit 47 first calculates the number of belt lines according to the processing content (step S30). In this embodiment, as described above, the number of belt lines processed by the image data transfer unit 47 is 15 lines on the input side and 30 lines on the output side. Next, the image data transfer unit 47 determines whether there is input data in the ring buffer A or B (step S32). If there is no input data (NO in step S32), the process returns to step S32 and waits until there is input data.

一方、リングバッファA、またはBに入力データがある場合には(ステップS32のYES)、画像データ転送部47は、リングバッファ変更信号がイネーブルであるか否かを判断する(ステップS34)。例えば、前述した画像データ転送部45の処理においては、第1ベルトから第2ベルトまでは、リングバッファ変更信号はディセーブルである。このように、リングバッファ変更信号がディセーブルである場合には(ステップS34のNO)、画像データ転送部47は、リングバッファAを使用するバッファとして選択する(ステップS40)。次に、画像データ転送部47は、リングバッファAから中間データを入力して画素数変換部46に供給し、画素数変換部46からの画像データを処理後の画像データの記憶領域51に格納し、入力したライン数LNdを算出する(ステップS42)。   On the other hand, if there is input data in the ring buffer A or B (YES in step S32), the image data transfer unit 47 determines whether or not the ring buffer change signal is enabled (step S34). For example, in the processing of the image data transfer unit 45 described above, the ring buffer change signal is disabled from the first belt to the second belt. As described above, when the ring buffer change signal is disabled (NO in step S34), the image data transfer unit 47 selects the ring buffer A as a buffer to be used (step S40). Next, the image data transfer unit 47 receives the intermediate data from the ring buffer A, supplies the intermediate data to the pixel number conversion unit 46, and stores the image data from the pixel number conversion unit 46 in the storage area 51 of the processed image data. Then, the input line number LNd is calculated (step S42).

具体的には、画像データ転送部47は、図7(a)に示すように、処理後の画像データの記憶領域51に設定された、リングバッファAの記憶領域52(0x000D7A00)から第1ベルトの中間データ(15ライン)を画素数変換部46に供給し、画素数変換部46からの拡大処理されたデータ(30ライン:第1ベルトの前半)を、処理後の画像データの記憶領域51(0x00025800〜)に格納する。このとき、入力ベルトは15ラインなので、入力したライン数LNd=15になる。   Specifically, as shown in FIG. 7A, the image data transfer unit 47 starts from the storage area 52 (0x000D7A00) of the ring buffer A set in the storage area 51 for the processed image data. Intermediate data (15 lines) is supplied to the pixel number conversion unit 46, and the enlarged data (30 lines: the first half of the first belt) from the pixel number conversion unit 46 is stored in the image data storage area 51 after processing. (0x00025800 ~). At this time, since the input belt has 15 lines, the number of input lines LNd = 15.

次に、画像データ転送部47は、全ての処理が終了したか否かを判断し(ステップS44)、終了していない場合には(ステップS44のNO)、ステップS32に戻り、上述した処理を繰り返す。この場合も、リングバッファ変更信号はディセーブルであるので、画像データ転送部47は、図7(b)に示すように、処理後の画像データの記憶領域51に設定された、リングバッファAの記憶領域52から次の中間データ(15ライン)を画素数変換部46に供給し、画素数変換部46からの拡大処理された画像データ(30ライン:第1ベルトの後半)を、処理後の画像データの記憶領域51(0x0002A300〜)に格納する。このとき、入力ベルトは15ラインなので、入力したライン数LNd=30になる。   Next, the image data transfer unit 47 determines whether or not all the processes have been completed (step S44). If the processes have not been completed (NO in step S44), the process returns to step S32 to perform the above-described processes. repeat. Also in this case, since the ring buffer change signal is disabled, as shown in FIG. 7B, the image data transfer unit 47 sets the ring buffer A in the storage area 51 for the processed image data. The next intermediate data (15 lines) is supplied from the storage area 52 to the pixel number conversion unit 46, and the enlarged image data (30 lines: the second half of the first belt) from the pixel number conversion unit 46 is processed. The image data is stored in a storage area 51 (0x0002A300-). At this time, since the input belt has 15 lines, the number of input lines LNd = 30.

以下、同様にして、画像データ転送部47は、図7(c)に示すように、処理後の画像データの記憶領域51に設定された、リングバッファAの記憶領域52から次の中間データ(15ライン:第2ベルトの前半)を画素数変換部46に供給し、画素数変換部46からの拡大処理された画像データ(30ライン:第2ベルトの前半)を、処理後の画像データの記憶領域51(0x0002EE00〜)に格納する。このとき、入力ベルトは15ラインなので、入力したライン数LNd=45になる。   Thereafter, similarly, as shown in FIG. 7C, the image data transfer unit 47 sets the next intermediate data (from the storage area 52 of the ring buffer A set in the storage area 51 of the processed image data to the next intermediate data ( 15 lines: the first half of the second belt) is supplied to the pixel number conversion unit 46, and the enlarged image data (30 lines: the first half of the second belt) from the pixel number conversion unit 46 is converted into the processed image data. Store in the storage area 51 (0x0002EE00-). At this time, since the input belt has 15 lines, the number of input lines LNd = 45.

さらに、画像データ転送部47は、図7(d)に示すように、処理後の画像データの記憶領域51に設定された、リングバッファAの記憶領域52から次の中間データ(15ライン:第2ベルトの後半)を画素数変換部46に供給し、画素数変換部46からの拡大処理された画像データ(30ライン:第2ベルトの後半)を、処理後の画像データの記憶領域51(0x0002EE00〜)に格納する。このとき、入力ベルトは15ラインなので、入力したライン数LNd=60になる。   Further, as shown in FIG. 7D, the image data transfer unit 47 sets the next intermediate data (15th line: 15th line) from the storage area 52 of the ring buffer A set in the storage area 51 of the processed image data. 2nd half of the belt) is supplied to the pixel number conversion unit 46, and the enlarged image data (30 lines: second half of the second belt) from the pixel number conversion unit 46 is stored in the image data storage area 51 ( 0x0002EE00-). At this time, since the input belt has 15 lines, the input line number LNd = 60.

なお、各画像データ転送部45、47は、非同期で動作しているため、上述した処理の間に、リングバッファ変更信号がイネーブルになるが、画像データ転送部45の変更ライン数LNcは60ラインであるため、LNd<LNcとなり、リングバッファの変更は行われない。   Since the image data transfer units 45 and 47 operate asynchronously, the ring buffer change signal is enabled during the above-described processing, but the change line number LNc of the image data transfer unit 45 is 60 lines. Therefore, LNd <LNc, and the ring buffer is not changed.

そして、図7(d)に示す段階、すなわち、第2ベルトの後半に対する処理が終了した時点で、入力したライン数LNd=60になり、LNd<LNcでなくなるので(ステップS36のNO)、リングバッファBを使用するように切り替える(ステップS38)。リングバッファBの開始アドレスは、入力される元画像の先頭アドレスになるため、0x00000000になる。次に、画像データ転送部47は、リングバッファBから中間データを入力して画素数変換部46に供給し、画素数変換部46からの画像データを処理後の画像データの記憶領域51に格納し、入力したライン数LNdを算出する(ステップS42)。   Then, at the stage shown in FIG. 7D, that is, when the processing for the second half of the second belt is completed, the input line number LNd = 60 and LNd <LNc is not satisfied (NO in step S36). Switching to use the buffer B (step S38). The start address of the ring buffer B is 0x00000000 because it is the start address of the input original image. Next, the image data transfer unit 47 receives the intermediate data from the ring buffer B, supplies the intermediate data to the pixel number conversion unit 46, and stores the image data from the pixel number conversion unit 46 in the image data storage area 51 after processing. Then, the input line number LNd is calculated (step S42).

具体的には、画像データ転送部47は、図8(a)に示すように、元画像データの記憶領域50に設定された、リングバッファBの記憶領域53(0x00000000)から次の中間データ(15ライン:第3ベルトの前半)を画素数変換部46に供給し、画素数変換部46からの拡大処理された画像データ(30ライン:第3ベルトの前半)を、処理後の画像データの記憶領域51に格納する。このとき、入力ベルトは15ラインなので、入力したライン数LNd=75になる。   Specifically, as shown in FIG. 8A, the image data transfer unit 47 sets the next intermediate data (0x00000000) from the storage area 53 (0x00000000) of the ring buffer B set in the storage area 50 of the original image data. 15 lines: the first half of the third belt) is supplied to the pixel number conversion unit 46, and the enlarged image data (30 lines: the first half of the third belt) from the pixel number conversion unit 46 is converted into the processed image data. Store in the storage area 51. At this time, since the input belt has 15 lines, the number of input lines LNd = 75.

次に、画像データ転送部47は、この場合も、リングバッファ変更信号はイネーブルであり、LNd>LNcであるので、画像データ転送部47は、図8(b)に示すように、元画像データの記憶領域50に設定された、リングバッファBの記憶領域53から次の中間データ(15ライン:第3ベルトの後半)を画素数変換部46に供給し、画素数変換部46からの拡大処理された画像データ(30ライン:第3ベルトの後半)を、処理後の画像データの記憶領域51に格納する。このとき、入力ベルトは15ラインなので、入力したライン数LNd=90になる。   Next, the image data transfer unit 47 also has the ring buffer change signal enabled and LNd> LNc in this case, so that the image data transfer unit 47 returns the original image data as shown in FIG. The next intermediate data (15th line: second half of the third belt) is supplied from the storage area 53 of the ring buffer B set in the storage area 50 to the pixel number conversion unit 46, and the enlargement process from the pixel number conversion unit 46 The processed image data (30 lines: the second half of the third belt) is stored in the storage area 51 of the processed image data. At this time, since the input belt has 15 lines, the number of input lines LNd = 90.

以下、同様にして、画像データ転送部47は、図8(c)に示すように、元画像データの記憶領域50に設定された、リングバッファBの記憶領域53から次の中間データ(15ライン:第3ベルトの前半)を画素数変換部46に供給し、画素数変換部46からの拡大処理された画像データ(30ライン:第4ベルトの前半)を、処理後の画像データの記憶領域51に格納する。このとき、入力ベルトは15ラインなので、入力したライン数LNd=105になる。   Thereafter, in the same manner, the image data transfer unit 47 sets the next intermediate data (15 lines) from the storage area 53 of the ring buffer B set in the storage area 50 of the original image data, as shown in FIG. : The first half of the third belt) is supplied to the pixel number conversion unit 46, and the enlarged image data from the pixel number conversion unit 46 (30 lines: the first half of the fourth belt) is stored in the storage area for the processed image data. 51. At this time, since the input belt has 15 lines, the number of input lines LNd = 105.

さらに、画像データ転送部47は、図8(d)に示すように、元画像データの記憶領域50に設定された、リングバッファBの記憶領域53から次の中間データ(15ライン:第4ベルトの後半)を画素数変換部46に供給し、画素数変換部46からの拡大処理された画像データ(30ライン:第4ベルトの後半)を、処理後の画像データの記憶領域51に格納する。このとき、入力ベルトは15ラインなので、入力したライン数LNd=120になる。   Further, as shown in FIG. 8D, the image data transfer unit 47 starts the next intermediate data (15th line: fourth belt) from the storage area 53 of the ring buffer B set in the storage area 50 of the original image data. ) Is supplied to the pixel number conversion unit 46, and the enlarged image data (30 lines: the second half of the fourth belt) from the pixel number conversion unit 46 is stored in the storage area 51 of the processed image data. . At this time, since the input belt has 15 lines, the number of input lines LNd = 120.

その後、画像データ転送部47は、元画像データの記憶領域50に設定された、リングバッファBから中間データを読出して画素数変換部46に供給するとともに、画素数変換部46からの画像データを、処理後の画像データの記憶領域51に格納するという処理を最終ベルトまで繰り返す。そして、全てに対して処理が終了すると(ステップS44のYES)、当該処理を終了する。   Thereafter, the image data transfer unit 47 reads the intermediate data from the ring buffer B set in the storage area 50 of the original image data, supplies the intermediate data to the pixel number conversion unit 46, and receives the image data from the pixel number conversion unit 46. The process of storing the processed image data in the storage area 51 is repeated until the final belt. Then, when the process is completed for all (YES in step S44), the process is terminated.

上述した実施形態によれば、使用する前の元画像データの記憶領域50の読み出し済みの利用可能領域、及び処理済みの画像データの記憶領域51の未使用領域に、RAM32の利用状況に応じてリングバッファに用いる記憶領域を確保するようにしたので、入出力画像データの記憶領域とは別に必要であったリングバッファ専用の記憶領域が不要となり、メモリを有効利用することができる。   According to the above-described embodiment, the usable area that has been read in the storage area 50 of the original image data before use and the unused area in the storage area 51 of the processed image data according to the usage status of the RAM 32. Since the storage area used for the ring buffer is secured, a storage area dedicated to the ring buffer, which is necessary separately from the storage area for the input / output image data, becomes unnecessary, and the memory can be used effectively.

また、本実施形態によれば、RAM32の利用状況に基づく所定のタイミングで、処理済みの画像データの記憶領域51の未格納である記憶領域に確保したリングバッファAから、元画像データの記憶領域50の読み出し済みの画像データが格納されていた記憶領域に確保したリングバッファBへと切り替えるようにしたので、画像処理によるメモリ使用に支障をきたすことなく、リングバッファ専用の記憶領域を不要とし、メモリを有効利用することができる。   In addition, according to the present embodiment, the storage area of the original image data from the ring buffer A secured in the storage area that is not stored in the storage area 51 of the processed image data at a predetermined timing based on the usage status of the RAM 32. Since the switching to the ring buffer B secured in the storage area in which 50 read image data has been stored is made, there is no need for a dedicated storage area for the ring buffer without hindering memory use by image processing, Memory can be used effectively.

また、本実施形態によれば、元画像データの記憶領域50における空き領域のサイズが、画像処理で必要とする作業領域のサイズ以上になるまでは、処理後の画像データ51の記憶領域に確保したリングバッファAを作業領域として用い、元画像データの記憶領域50における空き領域のサイズが、画像処理で必要とする作業領域のサイズ以上になった後の所定タイミングで、元画像データの記憶領域50に確保したリングバッファBへと切り替えるようにしたので、画像処理によるメモリ使用に支障をきたすことなく、リングバッファ専用の記憶領域を不要とし、メモリを有効利用することができる。   Further, according to the present embodiment, until the size of the empty area in the storage area 50 of the original image data is equal to or larger than the size of the work area required for the image processing, it is secured in the storage area of the processed image data 51. The storage area for the original image data is used at a predetermined timing after the size of the empty area in the storage area 50 for the original image data becomes equal to or larger than the size of the work area required for image processing. Since the switching to the ring buffer B secured to 50 is performed, a memory area dedicated to the ring buffer is not required and the memory can be used effectively without causing any trouble in using the memory by image processing.

また、本実施形態によれば、元画像データの記憶領域50における空き領域のサイズが、画像処理で必要とする作業領域のサイズ以上になった後、処理後の画像データ51の記憶領域に確保したリングバッファAのサイズが画像処理で必要とする作業領域のサイズ未満になるまでの間の所定タイミングで、画像処理を行うための作業領域を、元画像データの記憶領域50における空き領域へと切り替えるようにしたので、画像処理によるメモリ使用に支障をきたすことなく、リングバッファ専用の記憶領域を不要とし、メモリを有効利用することができる。   Further, according to the present embodiment, after the size of the free area in the storage area 50 of the original image data becomes equal to or larger than the size of the work area required for the image processing, it is secured in the storage area of the processed image data 51. The work area for performing image processing is changed to a free area in the storage area 50 of the original image data at a predetermined timing until the size of the ring buffer A becomes smaller than the size of the work area required for image processing. Since switching is performed, a memory area dedicated to the ring buffer is not required and the memory can be effectively used without causing any trouble in using the memory by image processing.

また、本実施形態によれば、元画像データの記憶領域50における空き領域のサイズが、画像処理で必要とする作業領域のサイズ以上になったタイミングで、画像処理を行うための作業領域を、元画像データの記憶領域50における空き領域へと切り替えるようにしたので、画像処理によるメモリ使用に支障をきたすことなく、リングバッファ専用の記憶領域を不要とし、メモリを有効利用することができる。   In addition, according to the present embodiment, the work area for performing image processing at the timing when the size of the free area in the storage area 50 of the original image data is equal to or larger than the size of the work area required for image processing, Since switching to a free area in the storage area 50 of the original image data is performed, a memory area dedicated to the ring buffer is not required and the memory can be used effectively without causing any trouble in using the memory by image processing.

また、本実施形態によれば、画像変換部43と画像補正部44による画像処理後の中間データを一時的に格納する作業領域として、処理後の画像データの記憶領域51に確保したリングバッファAと元画像データの記憶領域50に確保したリングバッファBとを用いるようにしたので、画像処理によるメモリ使用に支障をきたすことなく、リングバッファ専用の記憶領域を不要とし、メモリを有効利用することができる。   Further, according to the present embodiment, the ring buffer A secured in the storage area 51 of the processed image data is used as a work area for temporarily storing intermediate data after the image processing by the image conversion unit 43 and the image correction unit 44. And the ring buffer B secured in the storage area 50 of the original image data are used, so that a memory area dedicated to the ring buffer is not required and the memory is effectively used without hindering the memory use by the image processing. Can do.

なお、本実施形態において、画像データ転送部45、47の処理内容の違いにより双方に処理速度に違いがあると、画像データ転送部45の処理が待ち合わず、画像データ転送部47に対する中間データの準備が遅れる可能性がある。本実施形態では、リングバッファA、Bの容量を調整することで、画像データ転送部45、47の処理速度の違いを吸収することが可能である。但し、何らかの理由で双方の処理速度の違いを吸収できない場合には、画像データ転送部47による処理(リングバッファA、Bからのデータの読み込み)を待機させる必要が生じる。このような場合には、例えば、画像データ転送部45によるベルト単位での処理が終了する度に(リングバッファA、Bに格納した後)、終了した旨を画像データ転送部47に通知するようにしてもよい。画像データ転送部47は、画像データ転送部45からあるベルトに対する処理が終了した旨の通知を受信すると、処理が終了したベルトに対する処理を実行すればよい。あるいは、画像データ転送部45、47の処理進捗状況を管理する管理手段を別途設け、該管理手段で画像データ転送部45、及び画像転送部47による処理の進捗程度を調整するようにしてもよい。   In this embodiment, if there is a difference in processing speed due to the difference in processing contents of the image data transfer units 45 and 47, the processing of the image data transfer unit 45 does not wait, and intermediate data for the image data transfer unit 47 is lost. There is a possibility that the preparation of will be delayed. In the present embodiment, it is possible to absorb the difference in processing speed between the image data transfer units 45 and 47 by adjusting the capacities of the ring buffers A and B. However, if the difference in processing speed between the two cannot be absorbed for some reason, it is necessary to wait for processing by the image data transfer unit 47 (reading of data from the ring buffers A and B). In such a case, for example, every time the processing in units of belts by the image data transfer unit 45 ends (after being stored in the ring buffers A and B), the image data transfer unit 47 is notified of the end. It may be. When the image data transfer unit 47 receives notification from the image data transfer unit 45 that processing for a certain belt has been completed, the image data transfer unit 47 may perform processing for the belt for which processing has been completed. Alternatively, a management unit that manages the processing progress of the image data transfer units 45 and 47 may be provided separately, and the management unit may adjust the progress of processing by the image data transfer unit 45 and the image transfer unit 47. .

以上、この発明のいくつかの実施形態について説明したが、この発明は、これらに限定されるものではなく、特許請求の範囲に記載された発明とその均等の範囲を含むものである。
以下に、本願出願の特許請求の範囲に記載された発明を付記する。
As mentioned above, although several embodiment of this invention was described, this invention is not limited to these, The invention described in the claim, and its equal range are included.
Below, the invention described in the claims of the present application is appended.

(付記1)
付記1に記載の発明は、少なくとも、元画像データを記憶する第1の領域と前記元画像に対する画像処理後の画像データを記憶する第2の領域とを有する記憶手段と、所定の画像処理を施す画像処理手段と、前記記憶手段の第1の領域に格納されている元画像データを、所定の分割単位で逐次読み出して前記画像処理手段に供給し、前記画像処理手段によって画像処理された画像データを前記記憶手段の第2の領域に逐次格納する過程で、前記画像処理手段による所定の画像処理のための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域と前記第1の領域内の読み出し済みの画像データが格納されていた領域とに、前記記憶手段の利用状況に基づいて確保する画像データ転送手段とを備えることを特徴とする画像処理装置である。
(Appendix 1)
The invention according to appendix 1 includes at least storage means having a first area for storing original image data and a second area for storing image data after image processing for the original image, and predetermined image processing. The image processing means to be applied and the original image data stored in the first area of the storage means are sequentially read in predetermined division units and supplied to the image processing means, and the image processed by the image processing means In the process of sequentially storing data in the second area of the storage means, the work area for the predetermined image processing by the image processing means is not stored in the processed image data in the second area. And image data transfer means for securing the area and the area where the read image data in the first area is stored based on the usage status of the storage means. It is a device.

(付記2)
付記2に記載の発明は、前記画像データ転送手段は、前記所定の画像処理を行うための作業領域を、前記記憶手段の利用状況に基づく所定のタイミングで、前記第2の領域内の処理済みの画像データが未格納である領域から、前記第1の領域内の読み出し済みの画像データが格納されていた領域へと切り替えることを特徴とする付記1に記載の画像処理装置である。
(Appendix 2)
According to the second aspect of the present invention, the image data transfer means has processed a work area for performing the predetermined image processing in the second area at a predetermined timing based on a usage status of the storage means. The image processing apparatus according to appendix 1, wherein the image processing apparatus switches from an area in which the image data is not stored to an area in which the read image data in the first area is stored.

(付記3)
付記3に記載の発明は、前記画像データ転送手段は、前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になるまでの間、前記所定の画像処理を行うための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域に確保し、前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になった後の所定タイミングで、前記所定の画像処理を行うための作業領域を、前記第1の領域内の読み出し済みの画像データが格納されていた領域へと切り替えることを特徴とする付記2に記載の画像処理装置である。
(Appendix 3)
According to the third aspect of the present invention, in the image data transfer means, the size of the area where the read image data in the first area is stored is larger than the size of the work area required for the predetermined image processing. In the meantime, a work area for performing the predetermined image processing is secured in an area in which the processed image data in the second area is not stored, and the work area has been read out in the first area. A work area for performing the predetermined image processing at a predetermined timing after the size of the area in which the image data is stored is equal to or larger than the size of the work area required for the predetermined image processing. The image processing apparatus according to appendix 2, wherein the image processing apparatus switches to an area in which read image data in one area is stored.

(付記4)
付記4に記載の発明は、前記画像データ転送手段は、前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になった後、前記第2の領域内の処理済みの画像データが未格納である領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ未満になるまでの間の所定タイミングで、前記所定の画像処理を行うための作業領域を、前記第1の領域内の読み出し済みの画像データが格納されていた領域へと切り替えることを特徴とする付記3に記載の画像処理装置である。
(Appendix 4)
In the invention according to attachment 4, the image data transfer means is configured such that the size of the area in which the read image data in the first area is stored is larger than the size of the work area required for the predetermined image processing. After that, at a predetermined timing until the size of the area in which the processed image data in the second area is not stored becomes smaller than the size of the work area required for the predetermined image processing, The image processing apparatus according to appendix 3, wherein a work area for performing the predetermined image processing is switched to an area in which the read image data in the first area is stored.

(付記5)
付記5に記載の発明は、前記画像データ転送手段は、前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になったタイミングで、前記所定の画像処理を行うための作業領域を、前記第1の領域内の読み出し済みの画像データが格納されていた領域へと切り替えることを特徴とする付記4に記載の画像処理装置である。
(Appendix 5)
In the invention according to attachment 5, the image data transfer means is configured such that the size of the area in which the read image data in the first area is stored is equal to or larger than the size of the work area required for the predetermined image processing. The supplementary note 4 is characterized in that the work area for performing the predetermined image processing is switched to the area in the first area in which the read image data has been stored at the timing when An image processing apparatus.

(付記6)
付記6に記載の発明は、前記画像処理手段は、前記第1の領域に格納されている元画像データに対して所定の分割単位で第1の画像処理を行う第1の画像処理手段と、この第1の画像処理手段によって前記第1の画像処理が施された後の画像データに対して所定の分割単位で第2の画像処理を行う第2の画像処理手段とを備え、前記作業領域は、前記第1の画像処理手段による第1の画像処理結果を一時的に格納する作業領域であることを特徴とする付記1乃至5のいずれかに記載の画像処理装置である。
(Appendix 6)
The invention according to appendix 6, wherein the image processing means performs first image processing on the original image data stored in the first area in a predetermined division unit; A second image processing unit that performs second image processing on a predetermined division unit on the image data that has been subjected to the first image processing by the first image processing unit; The image processing apparatus according to any one of appendices 1 to 5, wherein the image processing apparatus is a work area for temporarily storing the first image processing result by the first image processing means.

(付記7)
付記7に記載の発明は、メモリ内の第1の領域に格納されている元画像データを、所定の分割単位で逐次読み出すステップと、前記所定の分割単位で逐次読み出される元画像データに対して所定の画像処理を施すステップと、前記所定の画像処理のための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域と前記第1の領域内の読み出し済みの画像データが格納されていた領域とに、前記メモリの利用状況に基づいて確保するステップと、前記所定の画像処理が施された画像データを、前記作業領域を介して前記メモリの第2の領域に逐次格納するステップとを含むことを特徴とする画像処理方法である。
(Appendix 7)
The invention according to appendix 7 includes a step of sequentially reading the original image data stored in the first area in the memory in a predetermined division unit, and the original image data sequentially read in the predetermined division unit. Performing a predetermined image processing; a work area for the predetermined image processing; an area in which the processed image data in the second area is not stored; and a read area in the first area. Securing the image data in the area where the image data is stored based on the use status of the memory, and the image data on which the predetermined image processing has been performed, the second area of the memory via the work area The image processing method is characterized in that it includes a step of sequentially storing data in the image processing method.

(付記8)
付記8に記載の発明は、コンピュータに、メモリ内の第1の領域に格納されている元画像データを、所定の分割単位で逐次読み出す機能、前記所定の分割単位で逐次読み出される元画像データに対して所定の画像処理を施す機能、前記所定の画像処理のための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域と前記第1の領域内の読み出し済みの画像データが格納されていた領域とに、前記メモリの利用状況に基づいて確保する機能、前記所定の画像処理が施された画像データを、前記作業領域を介して前記メモリの第2の領域に逐次格納する機能を実行させることを特徴とするプログラムである。
(Appendix 8)
The invention according to appendix 8 includes a function of sequentially reading original image data stored in a first area in a memory in a predetermined division unit into a computer, and to original image data sequentially read in the predetermined division unit. A function for performing predetermined image processing on the area, a work area for the predetermined image processing, an area in which the processed image data in the second area is not stored, and a read in the first area A function for securing the image data on the basis of the usage status of the memory and the image data subjected to the predetermined image processing are stored in the second area of the memory via the work area. It is a program characterized by causing a function to be stored sequentially.

30 CPU
31 ASIC
32 RAM
33 CCD
34 ROM
35 LCD
36 キーボード
37 電源部
40 DMAC
41 メモリ制御部
42 CCD制御部
43 画像変換部
44 画像補正部
45 画像データ転送部
46 画素数変換部
47 画像データ転送部
48 キーボード制御部
49 LCD制御部
50 元画像データの記憶領域
51 処理後の画像データの記憶領域
52 リングバッファAの記憶領域
53 リングバッファBの記憶領域
30 CPU
31 ASIC
32 RAM
33 CCD
34 ROM
35 LCD
36 Keyboard 37 Power supply 40 DMAC
41 Memory control unit 42 CCD control unit 43 Image conversion unit 44 Image correction unit 45 Image data transfer unit 46 Pixel number conversion unit 47 Image data transfer unit 48 Keyboard control unit 49 LCD control unit 50 Original image data storage area 51 After processing Image data storage area 52 Ring buffer A storage area 53 Ring buffer B storage area

Claims (8)

少なくとも、元画像データを記憶する第1の領域と前記元画像に対する画像処理後の画像データを記憶する第2の領域とを有する記憶手段と、
所定の画像処理を施す画像処理手段と、
前記記憶手段の第1の領域に格納されている元画像データを、所定の分割単位で逐次読み出して前記画像処理手段に供給し、前記画像処理手段によって画像処理された画像データを前記記憶手段の第2の領域に逐次格納する過程で、前記画像処理手段による所定の画像処理のための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域と前記第1の領域内の読み出し済みの画像データが格納されていた領域とに、前記記憶手段の利用状況に基づいて確保する画像データ転送手段と
を備え、
前記画像データ転送手段は、前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になるまでの間、前記所定の画像処理を行うための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域に確保し、前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になった後の所定タイミングで、前記所定の画像処理を行うための作業領域を、前記第1の領域内の読み出し済みの画像データが格納されていた領域へと切り替える
ことを特徴とする画像処理装置。
Storage means having at least a first area for storing original image data and a second area for storing image data after image processing on the original image;
Image processing means for performing predetermined image processing;
The original image data stored in the first area of the storage means is sequentially read out in a predetermined division unit, supplied to the image processing means, and the image data processed by the image processing means is stored in the storage means. In the process of sequentially storing in the second area, a work area for predetermined image processing by the image processing means is defined as an area in which processed image data in the second area is not stored and the first area. Image data transfer means for securing the read image data in the area to the area where the read image data is stored, based on the use status of the storage means;
With
The image data transfer unit is configured to wait until the size of the area in which the read image data in the first area is stored is equal to or larger than the size of the work area required for the predetermined image processing. A work area for performing the image processing is secured in an area in which the processed image data in the second area is not stored, and the read image data in the first area is stored At a predetermined timing after the size of the area becomes equal to or larger than the size of the work area required for the predetermined image processing, a work area for performing the predetermined image processing is read in the first area. An image processing apparatus that switches to an area in which image data has been stored .
前記画像データ転送手段は、
前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になった後、前記第2の領域内の処理済みの画像データが未格納である領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ未満になるまでの間の所定タイミングで、前記所定の画像処理を行うための作業領域を、前記第1の領域内の読み出し済みの画像データが格納されていた領域へと切り替える
ことを特徴とする請求項1に記載の画像処理装置。
The image data transfer means
After the size of the area in which the read image data in the first area is stored exceeds the size of the work area required for the predetermined image processing, the processed area in the second area is processed. The work area for performing the predetermined image processing at a predetermined timing until the size of the area in which image data is not stored becomes smaller than the size of the work area required for the predetermined image processing is the first area. The image processing apparatus according to claim 1 , wherein the image processing apparatus switches to an area in which read image data in one area is stored.
前記画像データ転送手段は、
前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になったタイミングで、前記所定の画像処理を行うための作業領域を、前記第1の領域内の読み出し済みの画像データが格納されていた領域へと切り替える
ことを特徴とする請求項2に記載の画像処理装置。
The image data transfer means
For performing the predetermined image processing at a timing when the size of the area in which the read image data in the first area is stored is equal to or larger than the size of the work area required for the predetermined image processing. The image processing apparatus according to claim 2 , wherein the work area is switched to an area in which the read image data in the first area is stored.
少なくとも、元画像データを記憶する第1の領域と前記元画像に対する画像処理後の画像データを記憶する第2の領域とを有する記憶手段と、
所定の画像処理を施す画像処理手段と、
前記記憶手段の第1の領域に格納されている元画像データを、所定の分割単位で逐次読み出して前記画像処理手段に供給し、前記画像処理手段によって画像処理された画像データを前記記憶手段の第2の領域に逐次格納する過程で、前記画像処理手段による所定の画像処理のための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域と前記第1の領域内の読み出し済みの画像データが格納されていた領域とに、前記記憶手段の利用状況に基づいて確保する画像データ転送手段と
を備え、
前記画像処理手段は、前記第1の領域に格納されている元画像データに対して所定の分割単位で第1の画像処理を行い、この第1の画像処理が施された後の画像データに対して所定の分割単位で第2の画像処理を行い、
前記作業領域は、前記第1の画像処理結果を一時的に格納する作業領域である
ことを特徴とする画像処理装置。
Storage means having at least a first area for storing original image data and a second area for storing image data after image processing on the original image;
Image processing means for performing predetermined image processing;
The original image data stored in the first area of the storage means is sequentially read out in a predetermined division unit, supplied to the image processing means, and the image data processed by the image processing means is stored in the storage means. In the process of sequentially storing in the second area, a work area for predetermined image processing by the image processing means is defined as an area in which processed image data in the second area is not stored and the first area. Image data transfer means for securing the read image data in the area to the area where the read image data is stored, based on the use status of the storage means;
With
Wherein the image processing means, said first have rows first image processing on the original image data stored in the region at a predetermined division unit, the image data after the first image processing is performed There line a second image processing at a predetermined division unit relative,
The working area is an image processing apparatus which is a working area for temporarily storing the results of the first image processing.
少なくとも、元画像データを記憶する第1の領域と前記元画像に対する画像処理後の画像データを記憶する第2の領域とを有するメモリ内の第1の領域に格納されている元画像データを、所定の分割単位で逐次読み出すステップと、
前記所定の分割単位で逐次読み出される元画像データに対して所定の画像処理を施すステップと、
前記所定の画像処理のための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域と前記第1の領域内の読み出し済みの画像データが格納されていた領域とに、前記メモリの利用状況に基づいて確保するステップと、
前記所定の画像処理が施された画像データを、前記作業領域を介して前記メモリの第2の領域に逐次格納するステップと
を含み、
前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になるまでの間、前記所定の画像処理を行うための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域に確保し、前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になった後の所定タイミングで、前記所定の画像処理を行うための作業領域を、前記第1の領域内の読み出し済みの画像データが格納されていた領域へと切り替える
ことを特徴とする画像処理方法。
Original image data stored in a first area in a memory having at least a first area for storing original image data and a second area for storing image data after image processing for the original image, Sequentially reading in predetermined division units;
Performing predetermined image processing on original image data sequentially read in the predetermined division unit;
The work area for the predetermined image processing includes an area in which the processed image data in the second area is not stored and an area in which the read image data in the first area is stored. And securing based on the usage status of the memory,
Sequentially storing the image data subjected to the predetermined image processing in the second area of the memory via the work area;
Including
The predetermined image processing is performed until the size of the area in which the read image data in the first area is stored is equal to or larger than the size of the work area required for the predetermined image processing. A work area is secured in an area in which the processed image data in the second area is not stored, and the size of the area in which the read image data in the first area is stored is the predetermined area. The read-out image data in the first area was stored as the work area for performing the predetermined image processing at a predetermined timing after the size of the work area required for the image processing became larger. An image processing method characterized by switching to a region .
コンピュータに、
少なくとも、元画像データを記憶する第1の領域と前記元画像に対する画像処理後の画像データを記憶する第2の領域とを有するメモリ内の第1の領域に格納されている元画像データを、所定の分割単位で逐次読み出す機能、
前記所定の分割単位で逐次読み出される元画像データに対して所定の画像処理を施す機能、
前記所定の画像処理のための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域と前記第1の領域内の読み出し済みの画像データが格納されていた領域とに、前記メモリの利用状況に基づいて確保する機能、
前記所定の画像処理が施された画像データを、前記作業領域を介して前記メモリの第2の領域に逐次格納する機能
を実行させ、
前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になるまでの間、前記所定の画像処理を行うための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域に確保し、前記第1の領域内の読み出し済みの画像データが格納されていた領域のサイズが前記所定の画像処理で必要とする作業領域のサイズ以上になった後の所定タイミングで、前記所定の画像処理を行うための作業領域を、前記第1の領域内の読み出し済みの画像データが格納されていた領域へと切り替える
ことを特徴とするプログラム。
On the computer,
Original image data stored in a first area in a memory having at least a first area for storing original image data and a second area for storing image data after image processing for the original image, A function for sequentially reading in a predetermined division unit,
A function of performing predetermined image processing on the original image data sequentially read in the predetermined division unit;
The work area for the predetermined image processing includes an area in which the processed image data in the second area is not stored and an area in which the read image data in the first area is stored. A function to be secured based on the usage status of the memory,
A function of sequentially storing the image data that has undergone the predetermined image processing in the second area of the memory via the work area
And execute
The predetermined image processing is performed until the size of the area in which the read image data in the first area is stored is equal to or larger than the size of the work area required for the predetermined image processing. A work area is secured in an area in which the processed image data in the second area is not stored, and the size of the area in which the read image data in the first area is stored is the predetermined area. The read-out image data in the first area was stored as the work area for performing the predetermined image processing at a predetermined timing after the size of the work area required for the image processing became larger. A program characterized by switching to an area .
少なくとも、元画像データを記憶する第1の領域と前記元画像に対する画像処理後の画像データを記憶する第2の領域とを有する記憶手段と、所定の画像処理を施す画像処理手段と、を備えた画像処理装置により実行される画像処理方法であって、A storage unit having at least a first region for storing original image data and a second region for storing image data after image processing on the original image; and an image processing unit for performing predetermined image processing. An image processing method executed by the image processing apparatus,
前記記憶手段の第1の領域に格納されている元画像データを、所定の分割単位で逐次読み出して前記画像処理手段に供給し、前記画像処理手段によって画像処理された画像データを前記記憶手段の第2の領域に逐次格納する過程で、前記画像処理手段による所定の画像処理のための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域と前記第1の領域内の読み出し済みの画像データが格納されていた領域とに、前記記憶手段の利用状況に基づいて確保する画像データ転送処理を含み、The original image data stored in the first area of the storage means is sequentially read out in a predetermined division unit, supplied to the image processing means, and the image data processed by the image processing means is stored in the storage means. In the process of sequentially storing in the second area, a work area for predetermined image processing by the image processing means is defined as an area in which processed image data in the second area is not stored and the first area. Including an image data transfer process that secures the read image data in the area based on the usage status of the storage means,
前記画像処理手段は、前記第1の領域に格納されている元画像データに対して所定の分割単位で第1の画像処理を行い、この第1の画像処理が施された後の画像データに対して所定の分割単位で第2の画像処理を行い、The image processing means performs first image processing on the original image data stored in the first area in a predetermined division unit, and applies the image data after the first image processing is performed. On the other hand, the second image processing is performed in a predetermined division unit,
前記作業領域は、前記第1の画像処理の結果を一時的に格納する作業領域であるThe work area is a work area for temporarily storing the result of the first image processing.
ことを特徴とする画像処理方法。An image processing method.
少なくとも、元画像データを記憶する第1の領域と前記元画像に対する画像処理後の画像データを記憶する第2の領域とを有する記憶手段を有する画像処理装置のコンピュータを、A computer of an image processing apparatus having storage means having at least a first area for storing original image data and a second area for storing image data after image processing on the original image;
所定の画像処理を施す画像処理手段、Image processing means for performing predetermined image processing;
前記記憶手段の第1の領域に格納されている元画像データを、所定の分割単位で逐次読み出して前記画像処理手段に供給し、前記画像処理手段によって画像処理された画像データを前記記憶手段の第2の領域に逐次格納する過程で、前記画像処理手段による所定の画像処理のための作業領域を、前記第2の領域内の処理済みの画像データが未格納である領域と前記第1の領域内の読み出し済みの画像データが格納されていた領域とに、前記記憶手段の利用状況に基づいて確保する画像データ転送手段The original image data stored in the first area of the storage means is sequentially read out in a predetermined division unit, supplied to the image processing means, and the image data processed by the image processing means is stored in the storage means. In the process of sequentially storing in the second area, a work area for predetermined image processing by the image processing means is defined as an area in which processed image data in the second area is not stored and the first area. Image data transfer means for securing the read image data in the area to the area where the stored image data is stored based on the use status of the storage means
として機能させ、Function as
前記画像処理手段は、前記第1の領域に格納されている元画像データに対して所定の分割単位で第1の画像処理を行い、この第1の画像処理が施された後の画像データに対して所定の分割単位で第2の画像処理を行い、The image processing means performs first image processing on the original image data stored in the first area in a predetermined division unit, and applies the image data after the first image processing is performed. On the other hand, the second image processing is performed in a predetermined division unit,
前記作業領域は、前記第1の画像処理の結果を一時的に格納する作業領域であるThe work area is a work area for temporarily storing the result of the first image processing.
ことを特徴とするプログラム。A program characterized by that.

JP2012275278A 2012-12-18 2012-12-18 Image processing apparatus, image processing method, and program Expired - Fee Related JP5843168B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012275278A JP5843168B2 (en) 2012-12-18 2012-12-18 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012275278A JP5843168B2 (en) 2012-12-18 2012-12-18 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2014120961A JP2014120961A (en) 2014-06-30
JP5843168B2 true JP5843168B2 (en) 2016-01-13

Family

ID=51175437

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012275278A Expired - Fee Related JP5843168B2 (en) 2012-12-18 2012-12-18 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP5843168B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7006063B2 (en) * 2017-09-14 2022-01-24 カシオ計算機株式会社 Memory control device and memory control method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07319761A (en) * 1994-05-27 1995-12-08 Fuji Xerox Co Ltd Picture processor

Also Published As

Publication number Publication date
JP2014120961A (en) 2014-06-30

Similar Documents

Publication Publication Date Title
JP4692621B2 (en) Information processing apparatus, buffer control method, and computer program
JP5152670B2 (en) Image processing apparatus, image processing method, and program
US8269859B2 (en) Photographing apparatus that performs distortion correction in association with digital and optical zoom, method of controlling the same, and recording medium having recorded thereon computer program to implement the method
JP6006083B2 (en) Imaging apparatus and imaging method
JP2015219592A (en) Image processor, imaging device, and image processing method
JP5843168B2 (en) Image processing apparatus, image processing method, and program
JP2010028758A (en) Image processing apparatus and method, program, and imaging apparatus
JP7332376B2 (en) IMAGING DEVICE, CONTROL METHOD THEREOF, AND PROGRAM
US11122234B2 (en) Image output apparatus, control method thereof and computer-readable storage medium
JP6557451B2 (en) Imaging apparatus, control method therefor, and program
JP5867903B2 (en) Image processing apparatus, image processing method, and program
KR101646673B1 (en) An apparatus and a method for processing image, and a computer-readable medium storing a computer program for performing the method
JP4987800B2 (en) Imaging device
JP6415086B2 (en) Image processing apparatus, image processing method, and program
JP4211572B2 (en) Imaging device
JP2012124678A (en) Imaging apparatus and imaging apparatus control program
US20230336871A1 (en) Imaging element, imaging apparatus, operation method of imaging element, and program
JP2019022031A (en) Imaging apparatus
JP5605761B2 (en) Image processing apparatus, image processing method, and program
JP2005020521A (en) Imaging apparatus and cellular phone equipped with the same imaging apparatus
JP2023077932A (en) Electronic apparatus and control method of the same
JP5665309B2 (en) Imaging device
JP2008035161A (en) Imaging apparatus
JP6045247B2 (en) Image processing apparatus, control method thereof, and control program
JP2008131472A (en) Transfer apparatus, transfer control program, and imaging apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140929

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150805

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150807

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150929

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151105

R150 Certificate of patent or registration of utility model

Ref document number: 5843168

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees