JP2003274178A - Image processing method and image processor - Google Patents

Image processing method and image processor

Info

Publication number
JP2003274178A
JP2003274178A JP2002074352A JP2002074352A JP2003274178A JP 2003274178 A JP2003274178 A JP 2003274178A JP 2002074352 A JP2002074352 A JP 2002074352A JP 2002074352 A JP2002074352 A JP 2002074352A JP 2003274178 A JP2003274178 A JP 2003274178A
Authority
JP
Japan
Prior art keywords
storage means
stored
predetermined
image
image processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002074352A
Other languages
Japanese (ja)
Inventor
Masatoshi Matsudaira
正年 松平
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2002074352A priority Critical patent/JP2003274178A/en
Publication of JP2003274178A publication Critical patent/JP2003274178A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Color, Gradation (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To efficiently perform image processing such as gamma correction by effectively utilizing the computer resources such as a memory and a CPU. <P>SOLUTION: When gamma correction is instructed, whether a gamma correction table corresponding to a designated gamma value is registered in an effective gamma correction table is determined (S1 and 2). If a gamma correction table already prepared can be utilized, the registered gamma correction table is used to perform gamma correction (S3 and 4). Unless the gamma correction table of the designated gamma value is registered, a correction table for the instructed gamma value is newly prepared and registered in the effective gamma correction table (S5 to S9). This can prevent the same gamma correction table from being overlappedly generated even in the case of continuously processing a plurality of images. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、ガンマ補
正等を行う画像処理方法及び画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and an image processing apparatus for performing gamma correction, for example.

【0002】[0002]

【従来の技術】例えば、ディジタルカメラやスキャナ、
ディスプレイ、プリンタ等の画像処理機器は、それぞれ
固有のガンマ値を有する。ガンマ値とは、画像の階調の
応答特性を示す尺度であり、ガンマ補正を行うことによ
り、入力された画像の階調と出力される画像の階調との
関係が正比例し、予定された階調で画像を出力させるこ
とができる。
2. Description of the Related Art For example, digital cameras and scanners,
Image processing devices such as displays and printers each have a unique gamma value. The gamma value is a scale showing the response characteristic of the gradation of the image, and by performing the gamma correction, the relationship between the gradation of the input image and the gradation of the output image is directly proportional and is planned. Images can be output with gradation.

【0003】ガンマ補正は、複雑な計算を伴うため、予
め計算して作成しておいたガンマ補正テーブルを用いて
行うことが多い。そこで、従来は、例えば、初期化を行
う際等に、処理すべき各画像毎に、それぞれのガンマ値
に応じたガンマ補正テーブルを作成している。
Since gamma correction involves complicated calculations, it is often performed using a gamma correction table that has been calculated and created in advance. Therefore, conventionally, for example, when performing initialization, a gamma correction table corresponding to each gamma value is created for each image to be processed.

【0004】ここで、同種の製品であっても機種やメー
カーが異なれば、そのガンマ値も相違する場合が多い
が、同一機種によって生成された画像は、共通のガンマ
値を有している場合が多い。例えば、ディジタルカメラ
を例に挙げると、ガンマ値は各カメラメーカー毎に相違
するが、同一機種の又は同一メーカーのディジタルカメ
ラにより撮影された画像の場合、ガンマ値は変化しな
い。
Here, even if the products of the same type are different in model and manufacturer, the gamma values thereof are often different, but the images generated by the same model have a common gamma value. There are many. For example, taking a digital camera as an example, the gamma value differs for each camera maker, but in the case of images taken by digital cameras of the same model or of the same maker, the gamma value does not change.

【0005】[0005]

【発明が解決しようとする課題】上述の通り、従来技術
では、各画像毎にそれぞれガンマ補正テーブルを生成す
るため、各テーブルを保持するためにそれぞれ記憶領域
を必要とし、メモリ消費量が増大する。また、同一のガ
ンマ補正テーブルを複数生成するため、テーブル生成処
理に無駄が多く、CPUの負担も増大するという問題が
ある。
As described above, in the prior art, since the gamma correction table is generated for each image, a storage area is required to hold each table, and the memory consumption increases. . Further, since a plurality of the same gamma correction tables are generated, there is a problem that the table generation process is wasteful and the load on the CPU increases.

【0006】本発明は、上記のような課題に鑑みなされ
たもので、その目的は、限られたコンピュータ資源を有
効に利用して、画像処理を効率的に行うことができる画
像処理方法及び画像処理装置を提供することにある。
The present invention has been made in view of the above problems, and an object thereof is an image processing method and an image which can efficiently perform image processing by effectively utilizing limited computer resources. It is to provide a processing device.

【0007】[0007]

【課題を解決するための手段】上記目的達成のため、本
発明に係る画像処理方法は、画像に関連づけられる所定
の属性情報に基づいた所定のテーブルを用いることによ
り、入力画像を処理するものであって、第1〜第6ステ
ップを含んでいる。
To achieve the above object, an image processing method according to the present invention processes an input image by using a predetermined table based on predetermined attribute information associated with the image. Yes, it includes the first to sixth steps.

【0008】第1ステップは、所定の属性情報に基づい
て、記憶手段に記憶されたテーブルを利用できるか否か
判定する。第2ステップは、記憶手段に記憶されたテー
ブルを利用できる場合は、当該テーブルにポインタをセ
ットする。第3ステップは、記憶手段に記憶されたテー
ブルを利用できない場合は、所定の属性情報に応じたテ
ーブルを新たに生成し、該新たなテーブルにポインタを
セットする。第4ステップは、生成されたテーブルを記
憶手段に記憶させる。第5ステップは、ポインタがセッ
トされたテーブルを用いて所定の画像処理を行う。第6
ステップは、所定のタイミングで、記憶手段に記憶され
たテーブルを削除して記憶領域を解放させる。
In the first step, it is determined whether the table stored in the storage means can be used, based on the predetermined attribute information. In the second step, when the table stored in the storage means can be used, a pointer is set in the table. In the third step, if the table stored in the storage means cannot be used, a table is newly generated according to the predetermined attribute information and the pointer is set in the new table. The fourth step stores the generated table in the storage means. In the fifth step, predetermined image processing is performed using the table in which the pointer is set. Sixth
The step deletes the table stored in the storage unit to release the storage area at a predetermined timing.

【0009】ここで、「所定の属性情報」としては、例
えば、ガンマ値を挙げることができる。また、「所定の
テーブル」としては、例えば、ガンマ補正テーブルを挙
げることができる。
Here, the "predetermined attribute information" can be, for example, a gamma value. Further, as the “predetermined table”, for example, a gamma correction table can be cited.

【0010】画像には所定の属性情報が関連づけられて
おり、この属性情報に基づいた所定のテーブルを利用し
て画像を処理する。ある画像を処理するのに必要なテー
ブルがまだ作成されてない場合は、属性情報に基づいて
テーブルを新たに生成し、記憶手段に記憶させておく。
このようにして、各属性情報毎に所定のテーブルが生成
されていき、記憶手段に記憶される。既に作成されてい
るテーブルを利用できる場合は、記憶手段に記憶された
テーブルを用いて画像を処理する。そして、所定のタイ
ミングが到来すると、記憶手段に記憶された各テーブル
は削除され、記憶領域が解放される。
Predetermined attribute information is associated with the image, and the image is processed using a predetermined table based on the attribute information. If the table necessary for processing a certain image has not been created yet, a new table is created based on the attribute information and stored in the storage means.
In this way, a predetermined table is generated for each piece of attribute information and stored in the storage means. If the already created table can be used, the image is processed using the table stored in the storage means. Then, when a predetermined timing arrives, each table stored in the storage means is deleted and the storage area is released.

【0011】これにより、同一のテーブルが重複して生
成されるのを防止できるため、メモリ資源を効率的に使
用することができる。また、生成済みのテーブルを他の
画像の処理にも用いることができるため、新たにテーブ
ルを生成する手間を省き、CPUの処理負担を軽減する
ことができる。
As a result, it is possible to prevent the same table from being duplicated, so that the memory resources can be used efficiently. Further, since the generated table can be used for processing other images, it is possible to save the trouble of newly generating the table and reduce the processing load on the CPU.

【0012】本発明の一態様では、ページ単位で、記憶
手段に記憶されたテーブルを削除して記憶領域を解放す
る。
In one aspect of the present invention, the table stored in the storage means is deleted page by page to release the storage area.

【0013】即ち、あるページに複数の画像が含まれて
いる場合、同一のページ内に存在する画像については、
各画像毎にテーブルを生成するのではなく、各属性情報
毎に1つだけテーブルを生成して記憶手段に記憶させ、
ページの処理が終了したときに、記憶手段内のテーブル
を消去して記憶領域を解放する。
That is, when a page contains a plurality of images, the images existing in the same page are
Instead of generating a table for each image, generate only one table for each attribute information and store it in the storage means.
When the page processing is completed, the table in the storage means is erased and the storage area is released.

【0014】本発明の他の態様では、画像が記録されて
いる記録媒体単位で、記憶手段に記憶されたテーブルを
削除して記憶領域を解放する。
In another aspect of the present invention, the storage area is released by deleting the table stored in the storage means for each recording medium in which an image is recorded.

【0015】即ち、記録媒体単位で、属性情報に応じた
テーブルを生成して記憶し、記録媒体が交換されたよう
な場合には、記憶手段をリセットする。
That is, a table corresponding to the attribute information is generated and stored for each recording medium, and when the recording medium is replaced, the storage means is reset.

【0016】本発明の他の観点に従えば、画像に関連づ
けられる所定の属性情報に基づいた所定のテーブルを用
いることにより、入力画像を処理する画像処理装置であ
って、テーブルを記憶する記憶手段と、記憶手段に記憶
されているテーブルを管理する管理手段と、管理手段に
より指定されたテーブルを用いて所定の画像処理を行う
画像処理手段と、を備え、管理手段は、所定の属性情報
に基づいて、記憶手段に記憶されたテーブルを利用でき
るか否かを判定する判定手段と、記憶手段に記憶された
テーブルを利用できない場合は、所定の属性情報に応じ
たテーブルを新たに生成するテーブル生成手段と、記憶
手段に記憶されたテーブルを利用できると判定された場
合は、当該テーブルにポインタをセットし、記憶手段に
記憶されたテーブルを利用できない場合は、新たなテー
ブルにポインタをセットして指定する指定手段と、生成
されたテーブルを前記記憶手段に記憶させる登録手段
と、所定のタイミングで、記憶手段に記憶されたテーブ
ルを削除して記憶領域を解放させる記憶領域解放手段と
を含んでなる。
According to another aspect of the present invention, there is provided an image processing apparatus for processing an input image by using a predetermined table based on predetermined attribute information associated with the image, the storage means storing the table. And management means for managing the table stored in the storage means, and image processing means for performing predetermined image processing using the table designated by the management means. Based on the determination means, it is determined whether the table stored in the storage means can be used, and if the table stored in the storage means cannot be used, a table for newly generating a table according to predetermined attribute information is generated. When it is determined that the generation means and the table stored in the storage means can be used, a pointer is set in the table and the table stored in the storage means is set. If cannot be used, a specifying unit that sets a pointer to a new table and specifies it, a registering unit that stores the generated table in the storage unit, and a table that is stored in the storage unit are deleted at a predetermined timing. And a storage area releasing means for releasing the storage area.

【0017】そして、記憶領域解放手段は、ページ単位
で又は入力画像が記録されている記録媒体単位で、記憶
手段に記録されたテーブルを削除して記憶領域を解放す
ることができる。
Then, the storage area releasing means can release the storage area by deleting the table recorded in the storage means in page units or in recording medium units in which the input images are recorded.

【0018】本発明の他の観点に従えば、入力される画
像に所定の画像処理を行って印刷する印刷装置であっ
て、画像に関連づけられる所定の属性情報に基づいたテ
ーブルを記憶する記憶手段と、記憶手段に記憶されてい
るテーブルを管理する管理手段と、管理手段により指定
されたテーブルを用いて所定の画像処理を行う画像処理
手段と、画像処理手段により処理された画像を印刷する
印刷手段と、を備え、管理手段は、所定の属性情報に基
づいて、記憶手段に記憶されたテーブルを利用できるか
否かを判定する判定手段と、記憶手段に記憶されたテー
ブルを利用できない場合は、所定の属性情報に応じたテ
ーブルを新たに生成するテーブル生成手段と、記憶手段
に記憶されたテーブルを利用できると判定された場合
は、当該テーブルにポインタをセットし、記憶手段に記
憶されたテーブルを利用できない場合は、新たなテーブ
ルにポインタをセットして指定する指定手段と、生成さ
れたテーブルを記憶手段に記憶させる登録手段と、所定
のタイミングで、記憶手段に記憶されたテーブルを削除
して記憶領域を解放させる記憶領域解放手段とを含んで
なる。
According to another aspect of the present invention, there is provided a printing device for performing a predetermined image processing on an input image and printing the image, and a storage means for storing a table based on predetermined attribute information associated with the image. Management means for managing the table stored in the storage means, image processing means for performing predetermined image processing using the table designated by the management means, and printing for printing the image processed by the image processing means. And a management unit that determines whether or not the table stored in the storage unit can be used based on the predetermined attribute information, and a management unit in the case where the table stored in the storage unit cannot be used. , If it is determined that the table stored in the storage means and the table generating means for newly generating the table according to the predetermined attribute information can be used, the table is stored in the table. Setting table and the table stored in the storage means cannot be used, a specifying means for setting a pointer to a new table and designating, a registration means for storing the generated table in the storage means, and a predetermined timing The storage area releasing means for releasing the storage area by deleting the table stored in the storage means.

【0019】本発明は、コンピュータプログラムとして
把握することもできる。プログラムは、例えば、CD-ROM
やハードディスク、メモリ等の各種記録媒体に記録して
頒布可能であるほか、通信ネットワークを介して配信す
ることもできる。
The present invention can be understood as a computer program. The program is, for example, a CD-ROM
It can be distributed by being recorded on various recording media such as a hard disk and a memory, and can be distributed via a communication network.

【0020】[0020]

【発明の実施の形態】以下、図1〜図5に基づき、本発
明の実施の形態を説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to FIGS.

【0021】1.第1の実施の形態 図1〜図4は本発明の第1の実施の形態に係る画像処理
装置をプリンタに適用した場合の構成を示すブロック図
である。
1. First Embodiment FIGS. 1 to 4 are block diagrams showing a configuration in the case where the image processing apparatus according to the first embodiment of the present invention is applied to a printer.

【0022】本プリンタは、それぞれ後述するように、
画像処理制御部10,PCカード20,印刷制御部30
及びプリントエンジン40から大略構成されている。本
プリンタは、パーソナルコンピュータ等のホストコンピ
ュータを介さずに印刷を行うことができるという、いわ
ゆるダイレクト印刷が可能となっている。但し、本発明
はダイレクト印刷可能なプリンタに限定されない。
This printer, as will be described later, respectively,
Image processing control unit 10, PC card 20, print control unit 30
And a print engine 40. This printer is capable of so-called direct printing, which enables printing without using a host computer such as a personal computer. However, the present invention is not limited to a printer capable of direct printing.

【0023】画像処理制御部10は、CPU11,制御
ROM12,システムRAM13,LCDコントローラ
14,PCカードコントローラ16,パラレルインター
フェース(I/F)19等からなり、これらは内部バス
18によって相互に接続されている。画像処理制御部1
0は、PCカード20から画像データを読み出し、この
読み出した画像データに所定の画像処理を行って、印刷
制御部30に出力するものである。所定の画像処理とし
ては、例えば、ガンマ補正、拡大処理、縮小処理、色変
換処理等を挙げることができる。
The image processing controller 10 comprises a CPU 11, a control ROM 12, a system RAM 13, an LCD controller 14, a PC card controller 16, a parallel interface (I / F) 19, etc., which are interconnected by an internal bus 18. There is. Image processing control unit 1
0 is for reading image data from the PC card 20, performing predetermined image processing on the read image data, and outputting the image data to the print control unit 30. Examples of the predetermined image processing include gamma correction, enlargement processing, reduction processing, and color conversion processing.

【0024】なお、PCカード20は、PCカードスロ
ット17に挿入され、接触式でデータの読込み及び書込
みがされるようになっているが、本発明はこれに限定さ
れない。例えば、PCカード20に無線通信機能が備わ
っている場合は、無線データ通信により、データの読出
しや書込みを行うこともできる。また、PCカード20
は、画像記録媒体の一例であって、本発明はこれに限定
されない。例えば、撮影機能を備えた携帯電話等から有
線で又は無線で画像データを画像処理制御部10に送信
するようにしてもよい。
The PC card 20 is inserted into the PC card slot 17 so that data can be read and written by a contact method, but the present invention is not limited to this. For example, when the PC card 20 has a wireless communication function, it is possible to read and write data by wireless data communication. Also, the PC card 20
Is an example of an image recording medium, and the present invention is not limited to this. For example, image data may be transmitted to the image processing control unit 10 in a wired or wireless manner from a mobile phone or the like having a photographing function.

【0025】CPU11は、制御ROM12に記憶され
たプログラムに基づいて各種のデータ処理を行う。処理
中の画像データや処理結果等はシステムRAM13の所
定領域に格納される。LCD(Liquid Crystal Displa
y)15は、マンマシンインターフェースであり、例え
ば、用紙残量や印刷状況等のプリンタステータスを表示
したり、ユーザへのメッセージを表示する。また、LC
D15にタッチパネル等の入力手段を設け、ユーザから
の指示等を受け付けることもできる。
The CPU 11 performs various data processing based on the program stored in the control ROM 12. The image data being processed, the processing result, and the like are stored in a predetermined area of the system RAM 13. LCD (Liquid Crystal Displa
y) 15 is a man-machine interface, which displays the printer status such as the remaining amount of paper and the printing status, and displays a message to the user. Also, LC
It is also possible to provide an input means such as a touch panel on the D15 and receive an instruction or the like from the user.

【0026】PCカード20は、携帯式の画像データ記
録媒体であり、PCカードスロット17に着脱可能に取
り付けることができる。PCカード20は、例えば、デ
ィジタルカメラやスキャナ装置あるいは撮影機能付きの
携帯電話や携帯情報端末等の画像入力装置に取り付ける
ことができ、これら画像入力装置によって取り込まれた
画像データを記憶する。ユーザは、印刷したい画像デー
タが記録されたPCカード20をPCカードスロット1
7に装着する。PCカードコントローラ16は、CPU
11からの命令により、PCカード20内の画像データ
にアクセスし、画像データをシステムRAM13に転送
させる。
The PC card 20 is a portable image data recording medium and can be removably attached to the PC card slot 17. The PC card 20 can be attached to, for example, an image input device such as a digital camera, a scanner device, a mobile phone with a photographing function or a portable information terminal, and stores image data captured by these image input devices. The user inserts the PC card 20 in which the image data to be printed is recorded into the PC card slot 1
Attach to 7. PC card controller 16 is a CPU
The command from 11 accesses the image data in the PC card 20 and transfers the image data to the system RAM 13.

【0027】印刷制御部30は、画像処理制御部10か
ら入力された印刷データに基づいて、プリントエンジン
40の作動を制御することにより、所定の印刷を行わせ
るものである。印刷制御部30と画像処理制御部10と
は、各I/F19,35を結ぶパラレル通信ケーブル2
1により接続されており、双方向のデータ通信が可能と
なっている。ここで、印刷制御部30と画像処理制御部
10とは、例えば、複合機(例えば、印刷機能とスキャ
ナ機能を備えたもの)やプリンタの内部に収容して設け
ることもできるし、あるいは、印刷制御部30のみをプ
リンタ内部に収め、画像処理制御部10はホストコンピ
ュータ等の外部装置内に形成することもできる。
The print control unit 30 controls the operation of the print engine 40 based on the print data input from the image processing control unit 10 to perform predetermined printing. The print control unit 30 and the image processing control unit 10 include a parallel communication cable 2 that connects the I / Fs 19 and 35.
They are connected by 1 and bidirectional data communication is possible. Here, the print control unit 30 and the image processing control unit 10 may be housed and provided inside, for example, a multi-function peripheral (for example, one having a print function and a scanner function) or a printer. It is also possible to store only the control unit 30 inside the printer and form the image processing control unit 10 inside an external device such as a host computer.

【0028】印刷制御部30は、CPU31,制御RO
M32,システムRAM33,エンジンコントローラ3
4からなり、これらCPU31等は内部バス36により
相互に接続されている。CPU31は、制御ROMに格
納されているプログラムに基づいて、システムRAMを
利用しながら各種のデータ処理を行い、印刷用のイメー
ジデータを生成する。エンジンコントローラ34は、プ
リントエンジン40の作動を制御することにより、印刷
用イメージデータに基づいた印刷を行わせるようになっ
ている。プリントエンジン40としては、例えば、各色
(シアン、マゼンタ、イエロー、ブラック)毎に多数の
ノズルを備え、各ノズルからインク滴を吐出可能なイン
クジェット式プリントエンジンを採用することができ
る。
The print control unit 30 includes a CPU 31 and a control RO.
M32, system RAM33, engine controller 3
The CPU 31 and the like are connected to each other by an internal bus 36. The CPU 31 performs various data processing while utilizing the system RAM based on the program stored in the control ROM to generate image data for printing. The engine controller 34 controls the operation of the print engine 40 to perform printing based on the printing image data. As the print engine 40, for example, an inkjet print engine that has a large number of nozzles for each color (cyan, magenta, yellow, black) and can eject ink droplets from each nozzle can be adopted.

【0029】次に、図2〜図4に基づいて、ガンマ補正
処理等を説明する。
Next, the gamma correction process and the like will be described with reference to FIGS.

【0030】図2は、ガンマ補正テーブル及びテーブル
の管理方法を概略的に示す説明図である。図2(a)に
示すように、ガンマ補正テーブルは、入力画像の階調x
と出力画像の階調yとの関係を補正するもので、出力画
像のガンマ値が1となるように作成される。
FIG. 2 is an explanatory view schematically showing a gamma correction table and a method of managing the table. As shown in FIG. 2A, the gamma correction table is used for the gradation x of the input image.
And the gradation y of the output image are corrected, and are created so that the gamma value of the output image becomes 1.

【0031】図2(b)に示すように、ガンマ補正テー
ブル51は、例えば、γ=−1.4、γ=−1.8、γ=−2.
2、γ=1.4、γ=1.8、γ=2.2のように、各ガンマ値毎
にそれぞれ作成されるもので、作成された各ガンマ補正
テーブル51は、有効ガンマ補正テーブル50により管
理されている。即ち、有効ガンマ補正テーブル50は、
既に作成された各ガンマ補正テーブル51の格納先アド
レスやガンマ値等を対応づけて管理している。有効ガン
マ補正テーブル50を参照することにより、処理すべき
画像のガンマ値に応じたガンマ補正テーブルが存在する
か否かを知ることができる。
As shown in FIG. 2B, the gamma correction table 51 has, for example, γ = −1.4, γ = −1.8, γ = −2.
2, gamma = 1.4, gamma = 1.8, gamma = 2.2, etc. are created for each gamma value, and the created gamma correction tables 51 are managed by the effective gamma correction table 50. That is, the effective gamma correction table 50 is
The storage destination address and gamma value of each gamma correction table 51 already created are managed in association with each other. By referring to the effective gamma correction table 50, it is possible to know whether or not there is a gamma correction table corresponding to the gamma value of the image to be processed.

【0032】図3は、各画像のガンマ処理に際して、ガ
ンマ補正テーブルを確保するための処理を示すフローチ
ャートである。以下、ステップを「S」と略記する。
FIG. 3 is a flow chart showing a process for ensuring a gamma correction table in the gamma process of each image. Hereinafter, the step is abbreviated as “S”.

【0033】まず、処理対象の画像について、ガンマ補
正の指定がされているか否かを判定する(S1)。ガン
マ補正をすべしとの指示がされている場合は、指定され
たガンマ値で有効ガンマ補正テーブル50を検索するこ
とにより(S2)、指定されたガンマ値に対応するガン
マ補正テーブル51が既に作成されているか否かを判断
する(S3)。
First, it is determined whether or not gamma correction has been designated for the image to be processed (S1). If it is instructed to perform gamma correction, by searching the effective gamma correction table 50 with the specified gamma value (S2), the gamma correction table 51 corresponding to the specified gamma value is already created. It is determined whether it has been done (S3).

【0034】プリンタに電源を投入したときの初期化時
点では、有効ガンマ補正テーブル50内にガンマ補正テ
ーブルは登録されていないため、S3では「NO」と判
定され、S5〜S9のテーブル新規作成処理に移る。ま
ず、指定されたガンマ値に対応する新たなガンマ補正テ
ーブルを作成するための領域を確保し(S5)、領域を
確保できた場合は(S6:YES)、ガンマ値に応じたガンマ
補正テーブルを作成する(S7)。そして、ガンマ補正
に用いるテーブルを特定するためのポインタを、この新
たに作成したガンマ補正テーブルのアドレスにセットし
(S8)、有効ガンマ補正テーブル50に、新たに作成
されたガンマ補正テーブルのアドレス及びガンマ値を登
録する(S9)。このように、S5〜S9によって、ガ
ンマ値毎に重複なくガンマ補正テーブル51がそれぞれ
生成され、有効ガンマ補正テーブル50に登録される。
Since the gamma correction table is not registered in the effective gamma correction table 50 at the time of initialization when the printer is powered on, it is determined to be "NO" in S3, and the table new creation processing in S5 to S9. Move on to. First, an area for creating a new gamma correction table corresponding to the specified gamma value is secured (S5), and if the area can be secured (S6: YES), the gamma correction table corresponding to the gamma value is set. Create (S7). Then, a pointer for specifying the table used for gamma correction is set to the address of this newly created gamma correction table (S8), and the address of the newly created gamma correction table and the effective gamma correction table 50 are set. Register the gamma value (S9). In this way, through S5 to S9, the gamma correction table 51 is generated for each gamma value without duplication, and is registered in the effective gamma correction table 50.

【0035】既にガンマ補正された画像と同一のガンマ
値を有する画像を処理する場合は、有効ガンマ補正テー
ブル50内に登録されているガンマ補正テーブルにポイ
ンタをセットして、その補正テーブルを使用する(S3:Y
ES、S4)。従って、もしも全ての画像が同一のガンマ
値に関連づけられている場合は、最初に作成されたガン
マ補正テーブルを用いて全ての画像をガンマ補正するこ
とになる。なお、ガンマ補正の指定がされていない場合
(S1:NO)又は新たなガンマ補正テーブルを作成するた
めの記憶領域を確保できない場合(S6:NO)は、予め登
録されているデフォルトテーブルにポインタがセットさ
れる。
When processing an image having the same gamma value as the already gamma-corrected image, the pointer is set in the gamma correction table registered in the effective gamma correction table 50 and the correction table is used. (S3: Y
ES, S4). Therefore, if all the images are associated with the same gamma value, all the images are gamma-corrected using the gamma correction table created first. If the gamma correction is not specified (S1: NO) or the storage area for creating a new gamma correction table cannot be secured (S6: NO), the pointer is stored in the default table registered in advance. Set.

【0036】次に、図4は、作成されて登録されたガン
マ補正テーブルを消去して記憶領域を解放する処理を示
すフローチャートである。
Next, FIG. 4 is a flow chart showing the processing for erasing the created and registered gamma correction table and releasing the storage area.

【0037】本処理は、ページ単位で行われる。1ペー
ジの印刷が終了すると(S21:YES)、有効ガンマ補正テ
ーブル50を検索し(S22)、有効ガンマ補正テーブ
ル50内にガンマ補正テーブルが登録されているか否か
を判定する(S23)。
This processing is performed in page units. When printing of one page is completed (S21: YES), the effective gamma correction table 50 is searched (S22), and it is determined whether or not the gamma correction table is registered in the effective gamma correction table 50 (S23).

【0038】有効ガンマ補正テーブル50にガンマ補正
テーブルが登録されている場合は(S23:YES)、登録さ
れたガンマ補正テーブルを消去して記憶領域を解放し
(S24)、有効ガンマ補正テーブルから登録を抹消す
る(S25)。
When the gamma correction table is registered in the effective gamma correction table 50 (S23: YES), the registered gamma correction table is erased to release the storage area (S24) and registered from the effective gamma correction table. Is erased (S25).

【0039】このように、本実施形態によれば、各画像
毎に機械的にガンマ補正テーブルを作成するのではな
く、ガンマ値毎に補正テーブルを作成するため、複数の
画像を連続的にガンマ補正する場合でも、同一のガンマ
補正テーブルが重複して生成されるのを防止することが
でき、メモリ資源を有効に使用することができる。ま
た、有効ガンマ補正テーブル50に登録されたガンマ補
正テーブルを、同一のガンマ値に対応づけられた他の画
像にも用いるため、ガンマ補正テーブルを生成する手間
がいらず、CPUの処理負担を軽減することができる。
As described above, according to the present embodiment, a gamma correction table is not created mechanically for each image, but a correction table is created for each gamma value. Even in the case of correction, it is possible to prevent the same gamma correction table from being generated in duplicate, and it is possible to effectively use memory resources. Further, since the gamma correction table registered in the effective gamma correction table 50 is used for other images associated with the same gamma value, there is no need to generate the gamma correction table and the processing load on the CPU is reduced. can do.

【0040】2.第2の実施の形態 次に、図5に基づいて、本発明の第2の実施の形態を説
明する。図5は、有効ガンマ補正テーブルに登録された
ガンマ補正テーブルを解放する処理を示すフローチャー
トである。
2. Second Embodiment Next, a second embodiment of the present invention will be described based on FIG. FIG. 5 is a flowchart showing a process of releasing the gamma correction table registered in the effective gamma correction table.

【0041】本処理の特徴は、記録媒体毎に行われる点
にある(S31)。即ち、PCカード20がPCカード
スロット17に抜き差しされたときに、有効ガンマ補正
テーブル50の登録内容を消去するようになっている。
The feature of this processing is that it is performed for each recording medium (S31). That is, when the PC card 20 is inserted into or removed from the PC card slot 17, the registered contents of the effective gamma correction table 50 are erased.

【0042】同一のPCカード20に複数機種のディジ
タルカメラで撮像した画像が混在して記録される場合は
少ないと考えられるため、本実施形態によっても前記第
1の実施形態と同様の効果を得ることができる。
Since it is considered that there are few cases where the images taken by a plurality of digital cameras are recorded together in the same PC card 20, this embodiment can also obtain the same effect as that of the first embodiment. be able to.

【0043】なお、当業者であれば、前記各実施の形態
に記載された本発明の要旨の範囲内で種々の追加、変
更、組合せ等が可能である。例えば、ガンマ補正以外の
他の画像処理に適用することもできる。また、1ページ
単位でテーブルを解放するのではなく、印刷ジョブ単位
でテーブルを解放するようにしてもよい。
Those skilled in the art can make various additions, changes, combinations and the like within the scope of the gist of the present invention described in each of the above embodiments. For example, it can be applied to image processing other than gamma correction. Further, instead of releasing the table for each page, the table may be released for each print job.

【0044】[0044]

【発明の効果】以上説明した通り、本発明に係る画像処
理方法及び画像処理装置によれば、メモリやCPU等の
コンピュータ資源を有効に利用して効率よく画像処理を
行うことができる。
As described above, according to the image processing method and the image processing apparatus of the present invention, it is possible to effectively utilize computer resources such as a memory and a CPU to perform image processing efficiently.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施の形態に係る画像処理装置が適用
されたプリンタの概略構造を示すブロック図である。
FIG. 1 is a block diagram showing a schematic structure of a printer to which an image processing apparatus according to an embodiment of the present invention is applied.

【図2】ガンマ補正テーブル及びその管理方法を示す説
明図である。
FIG. 2 is an explanatory diagram showing a gamma correction table and its management method.

【図3】ガンマ補正に使用するためのガンマ補正テーブ
ルを確保するための処理を示すフローチャートである。
FIG. 3 is a flowchart showing processing for securing a gamma correction table to be used for gamma correction.

【図4】有効ガンマ補正テーブルに登録されたガンマ補
正テーブルを消去して記憶領域を解放する処理を示すフ
ローチャートである。
FIG. 4 is a flowchart showing a process of erasing a gamma correction table registered in an effective gamma correction table to release a storage area.

【図5】本発明の第2の実施の形態に係り、ガンマ補正
テーブルの解放処理を示すフローチャートである。
FIG. 5 is a flowchart showing a gamma correction table releasing process according to the second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 画像処理制御部 11 CPU 12 制御ROM 13 システムRAM 16 PCカードコントローラ 17 PCカードスロット 20 PCカード 30 印刷制御部 31 CPU 32 制御ROM 33 システムRAM 34 エンジンコントローラ 40 プリントエンジン 50 有効ガンマ補正テーブル 51 ガンマ補正テーブル 1 Image processing controller 11 CPU 12 Control ROM 13 System RAM 16 PC card controller 17 PC card slot 20 PC card 30 Print control unit 31 CPU 32 control ROM 33 system RAM 34 Engine Controller 40 print engine 50 Effective gamma correction table 51 Gamma correction table

フロントページの続き Fターム(参考) 2C187 BF42 FB12 GB04 2C262 AB19 AB20 AC11 BA09 BA10 BC01 CA13 CA15 CA16 GA14 GA15 5B057 CA02 CA08 CA12 CA16 CB02 CB08 CB12 CB16 CC01 CE11 CH07 CH08 5C077 LL04 MP01 PP15 PQ12 PQ23 TT02 Continued front page    F term (reference) 2C187 BF42 FB12 GB04                 2C262 AB19 AB20 AC11 BA09 BA10                       BC01 CA13 CA15 CA16 GA14                       GA15                 5B057 CA02 CA08 CA12 CA16 CB02                       CB08 CB12 CB16 CC01 CE11                       CH07 CH08                 5C077 LL04 MP01 PP15 PQ12 PQ23                       TT02

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 画像に関連づけられる所定の属性情報に
基づいた所定のテーブルを用いることにより、入力画像
を処理する画像処理方法であって、 前記所定の属性情報に基づいて、記憶手段に記憶された
テーブルを利用できるか否か判定する第1ステップと、 前記記憶手段に記憶されたテーブルを利用できる場合
は、当該テーブルにポインタをセットする第2ステップ
と、 前記記憶手段に記憶されたテーブルを利用できない場合
は、前記所定の属性情報に応じたテーブルを新たに生成
し、該新たなテーブルにポインタをセットする第3ステ
ップと、 前記生成されたテーブルを前記記憶手段に記憶させる第
4ステップと、 前記ポインタがセットされたテーブルを用いて所定の画
像処理を行う第5ステップと、 所定のタイミングで、前記記憶手段に記憶されたテーブ
ルを削除して記憶領域を解放する第6ステップと、を含
んでなることを特徴とする画像処理方法。
1. An image processing method for processing an input image by using a predetermined table based on predetermined attribute information associated with an image, which is stored in a storage means based on the predetermined attribute information. A first step of determining whether or not the table stored in the storage means can be used, a second step of setting a pointer in the table if the table stored in the storage means is available, and a table stored in the storage means. If not available, a third step of newly generating a table according to the predetermined attribute information and setting a pointer in the new table; and a fourth step of storing the generated table in the storage means. A fifth step of performing a predetermined image processing using the table in which the pointer is set, and a storage step at a predetermined timing. A sixth step of deleting a table stored in a row to release a storage area, and an image processing method.
【請求項2】 前記第6ステップは、ページ単位で、前
記記憶手段に記憶されたテーブルを削除して記憶領域を
解放するものである請求項1に記載の画像処理方法。
2. The image processing method according to claim 1, wherein the sixth step deletes the storage area by deleting the table stored in the storage unit in page units.
【請求項3】 前記第6ステップは、前記画像が記録さ
れている記録媒体単位で、前記記憶手段に記憶されたテ
ーブルを削除して記憶領域を解放するものである請求項
1に記載の画像処理方法。
3. The image according to claim 1, wherein in the sixth step, the storage area is released by deleting the table stored in the storage means in units of recording media on which the image is recorded. Processing method.
【請求項4】 前記所定の属性情報とはガンマ値であ
り、前記所定のテーブルとはガンマ補正テーブルである
請求項1〜請求項3のいずれかに記載の画像処理方法。
4. The image processing method according to claim 1, wherein the predetermined attribute information is a gamma value, and the predetermined table is a gamma correction table.
【請求項5】 画像に関連づけられる所定の属性情報に
基づいた所定のテーブルを用いることにより、入力画像
を処理する画像処理装置であって、 テーブルを記憶する記憶手段と、 前記記憶手段に記憶されているテーブルを管理する管理
手段と、 前記管理手段により指定されたテーブルを用いて所定の
画像処理を行う画像処理手段と、を備え、 前記管理手段は、 前記所定の属性情報に基づいて、記憶手段に記憶された
テーブルを利用できるか否かを判定する判定手段と、 前記記憶手段に記憶されたテーブルを利用できない場合
は、前記所定の属性情報に応じたテーブルを新たに生成
するテーブル生成手段と、 前記記憶手段に記憶されたテーブルを利用できると判定
された場合は、当該テーブルにポインタをセットし、前
記記憶手段に記憶されたテーブルを利用できない場合
は、前記新たなテーブルにポインタをセットして指定す
る指定手段と、 前記生成されたテーブルを前記記憶手段に記憶させる登
録手段と、 所定のタイミングで、前記記憶手段に記憶されたテーブ
ルを削除して記憶領域を解放させる記憶領域解放手段と
を含んでなる、ことを特徴とする画像処理装置。
5. An image processing apparatus for processing an input image by using a predetermined table based on predetermined attribute information associated with an image, the storage means storing the table, and the storage means stored in the storage means. Management means for managing the table, and an image processing means for performing predetermined image processing using the table designated by the management means, wherein the management means stores the information based on the predetermined attribute information. Determination means for determining whether or not the table stored in the storage means can be used, and table generation means for newly generating a table according to the predetermined attribute information when the table stored in the storage means cannot be used When it is determined that the table stored in the storage means can be used, a pointer is set in the table and stored in the storage means. When the created table cannot be used, a specifying unit that sets and specifies a pointer in the new table, a registering unit that stores the created table in the storage unit, and a storage unit that stores the created table at a predetermined timing. An image processing apparatus comprising: a storage area releasing unit that deletes a stored table to release a storage area.
【請求項6】 記憶領域解放手段は、ページ単位で又は
前記入力画像が記録されている記録媒体単位で、記憶手
段に記録されたテーブルを削除して記憶領域を解放する
ものである請求項5に記載の画像処理装置。
6. The storage area releasing means releases the storage area by deleting the table recorded in the storage means in page units or in recording medium units in which the input image is recorded. The image processing device according to item 1.
【請求項7】 入力される画像に所定の画像処理を行っ
て印刷する印刷装置であって、 画像に関連づけられる所定の属性情報に基づいたテーブ
ルを記憶する記憶手段と、 前記記憶手段に記憶されているテーブルを管理する管理
手段と、 前記管理手段により指定されたテーブルを用いて所定の
画像処理を行う画像処理手段と、 前記画像処理手段により処理された画像を印刷する印刷
手段と、を備え、 前記管理手段は、 前記所定の属性情報に基づいて、記憶手段に記憶された
テーブルを利用できるか否かを判定する判定手段と、 前記記憶手段に記憶されたテーブルを利用できない場合
は、前記所定の属性情報に応じたテーブルを新たに生成
するテーブル生成手段と、 前記記憶手段に記憶されたテーブルを利用できると判定
された場合は、当該テーブルにポインタをセットし、前
記記憶手段に記憶されたテーブルを利用できない場合
は、前記新たなテーブルにポインタをセットして指定す
る指定手段と、 前記生成されたテーブルを前記記憶手段に記憶させる登
録手段と、 所定のタイミングで、前記記憶手段に記憶されたテーブ
ルを削除して記憶領域を解放させる記憶領域解放手段と
を含んでなる、ことを特徴とする印刷装置。
7. A printing device, which prints an input image by performing predetermined image processing, comprising: storage means for storing a table based on predetermined attribute information associated with the image; and storage means stored in the storage means. Management means for managing the table, an image processing means for performing a predetermined image processing using the table designated by the management means, and a printing means for printing the image processed by the image processing means. The managing means determines, based on the predetermined attribute information, whether or not the table stored in the storage means can be used, and if the table stored in the storage means cannot be used, If it is determined that the table stored in the storage unit and the table generation unit that newly generates the table according to the predetermined attribute information can be used, A pointer stored in the storage means and the table stored in the storage means cannot be used, a designating means for setting the pointer in the new table and designating, and a registration for storing the generated table in the storage means A printing apparatus comprising: a means and a storage area releasing means for releasing a storage area by deleting a table stored in the storage means at a predetermined timing.
【請求項8】 画像に関連づけられる所定の属性情報に
基づいた所定のテーブルを用いることにより、入力画像
を処理するプログラムであって、 前記所定の属性情報に基づいて、記憶手段に記憶された
テーブルを利用できるか否か判定する機能と、 前記記憶手段に記憶されたテーブルを利用できる場合
は、当該テーブルにポインタをセットする機能と、 前記記憶手段に記憶されたテーブルを利用できない場合
は、前記所定の属性情報に応じたテーブルを新たに生成
し、該新たなテーブルにポインタをセットする機能と、 前記生成されたテーブルを前記記憶手段に記憶させる機
能と、 前記ポインタがセットされたテーブルを用いて所定の画
像処理を行う機能と、 所定のタイミングで、前記記憶手段に記憶されたテーブ
ルを削除して記憶領域を解放する機能と、をコンピュー
タ上に実現させるプログラム。
8. A program for processing an input image by using a predetermined table based on predetermined attribute information associated with an image, the table stored in a storage means based on the predetermined attribute information. A function of determining whether or not the table stored in the storage unit can be used, a function of setting a pointer in the table, and a table stored in the storage unit when the table stored in the storage unit cannot be used. A function of newly generating a table according to predetermined attribute information and setting a pointer in the new table, a function of storing the generated table in the storage means, and a table in which the pointer is set are used. Function to perform predetermined image processing, and delete the table stored in the storage means at a predetermined timing to save the storage area. A program that realizes the function to be released on a computer.
JP2002074352A 2002-03-18 2002-03-18 Image processing method and image processor Pending JP2003274178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002074352A JP2003274178A (en) 2002-03-18 2002-03-18 Image processing method and image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002074352A JP2003274178A (en) 2002-03-18 2002-03-18 Image processing method and image processor

Publications (1)

Publication Number Publication Date
JP2003274178A true JP2003274178A (en) 2003-09-26

Family

ID=29203774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002074352A Pending JP2003274178A (en) 2002-03-18 2002-03-18 Image processing method and image processor

Country Status (1)

Country Link
JP (1) JP2003274178A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005104526A1 (en) * 2004-04-22 2005-11-03 Sony Corporation Image processing device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005104526A1 (en) * 2004-04-22 2005-11-03 Sony Corporation Image processing device
EP1744541A1 (en) * 2004-04-22 2007-01-17 Sony Corporation Image processing device
EP1744541A4 (en) * 2004-04-22 2010-09-22 Sony Corp Image processing device
KR101120206B1 (en) * 2004-04-22 2012-03-16 소니 주식회사 Image processing device
US8538174B2 (en) 2004-04-22 2013-09-17 Sony Corporation Image processing device

Similar Documents

Publication Publication Date Title
JPH11215358A (en) Image processing unit, its conrol method and image processing system
JP4968888B2 (en) Printing system, imaging apparatus, control method therefor, program, and storage medium
JP2002240402A (en) Printer and printing method for image and associated information
JP2003274178A (en) Image processing method and image processor
JP2003141501A (en) Image processing apparatus, method for controlling display part thereof, program, and storage medium
US20070216913A1 (en) Image forming system, image forming apparatus, and image forming method
JP2003260847A (en) Printer and setting method for printing subject
JP3478696B2 (en) Image processing apparatus and control method thereof
JP4269285B2 (en) Image forming system and image processing apparatus used therefor
JP3912952B2 (en) Image reproducing apparatus and method
CN102087660B (en) Document management apparatus
JP2003256170A (en) System provided with multiple device communicatively connected in master-slave relationship
JP4135081B2 (en) Image data processing system
JP3536904B2 (en) Printer, print system
JP2004266456A (en) Image data processing system and image storage device
JP2002135560A (en) Printer, image data processing apparatus, image print system, image data processing method and storage medium
JP2000235464A (en) Printing system and its control method
JPH0584986A (en) Image forming device
JP5241933B2 (en) Imaging apparatus and control method thereof, printing system, program, and storage medium
JP2003259274A (en) System provided with data source device and data utilizing device connected by communication
JP2020131659A (en) Print device, information processing method and program
JP3952502B2 (en) Image data processing system and image storage device
JP2002358174A (en) Print job management system
JP2004078300A (en) Recording device, recording system, and recording method
JP2004266450A (en) Image data processing system and image storage device