JP2003123069A - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JP2003123069A JP2003123069A JP2001317631A JP2001317631A JP2003123069A JP 2003123069 A JP2003123069 A JP 2003123069A JP 2001317631 A JP2001317631 A JP 2001317631A JP 2001317631 A JP2001317631 A JP 2001317631A JP 2003123069 A JP2003123069 A JP 2003123069A
- Authority
- JP
- Japan
- Prior art keywords
- input
- image
- image data
- flip
- flop
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
(57)【要約】
【課題】 コントラスト補正の画像処理速度を向上する
ことを目的とする。
【解決手段】 入力画像の画像データを設定データ変換
条件より変換して前記入力画像のコントラスト補正を行
う画像処理方法において、入力画像の画像データを夫々
複数画素を有する複数のブロックに分割し、各ブロック
を代表する画像データに基づいて前記設定データ変換条
件を求める。従って、処理対象となる画素数が減じられ
て、処理速度を向上させることができる。
(57) [Summary] [PROBLEMS] To improve the image processing speed of contrast correction. In an image processing method for converting image data of an input image based on a set data conversion condition and correcting the contrast of the input image, the image data of the input image is divided into a plurality of blocks each having a plurality of pixels. The setting data conversion condition is obtained based on image data representing a block. Therefore, the number of pixels to be processed is reduced, and the processing speed can be improved.
Description
【発明の詳細な説明】
【0001】
【発明の属する技術分野】本発明は、入力画像の画像デ
ータを設定データ変換条件より変換して前記入力画像の
コントラスト補正を行う画像処理方法に関する。
【0002】
【従来の技術】従来、入力画像のコントラスト補正は、
入力画像の全ての画素の画像データに基づいて、例えば
ヒストグラム平坦化等の手法によってコントラスト補正
をするための設定データ変換条件を求めていた。
【0003】
【発明が解決しようとする課題】しかしながら、上記従
来構成では、種々の画像入力デバイスの高品質化に伴っ
て処理すべき画素数が増大し、画像処理の処理速度が著
しく低下してしまうようになった。本発明は、かかる実
情に鑑みてなされたものであって、その目的は、コント
ラスト補正の画像処理速度を向上することを目的とす
る。
【0004】
【課題を解決するための手段】請求項1記載の発明で
は、入力画像の画像データを設定データ変換条件より変
換して前記入力画像のコントラスト補正を行う画像処理
方法において、入力画像の画像データを夫々複数画素を
有する複数のブロックに分割し、各ブロックを代表する
画像データに基づいて前記設定データ変換条件を求め
る。従って、処理対象となる画素数が減じられて、処理
速度を向上させることができる。
【0005】
【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。本実施の形態の写真プリントシス
テムDPは、いわゆるデジタルミニラボ機として知られ
ているものであり、図4に外観を示すように、現像処理
済みの写真フィルム1(以下、単に「フィルム1」と略
称する)やメモリーカード,MOあるいはCD−R等か
ら写真プリントを作製するための画像データを入力する
画像入力装置IRと、画像入力装置IRにて入力した画
像データを印画紙2に露光処理する露光・現像装置EP
とから構成されている。
【0006】〔画像入力装置IRの概略構成〕画像入力
装置IRには、図3に概略的に示すように、フィルム1
の駒画像を読み取るフィルムスキャナ3と、メモリーリ
ーダ,MOドライブ及びCD−Rドライブ等を備えた外
部入出力装置4と、汎用小型コンピュータシステムにて
構成されてフィルムスキャナ3や外部入出力装置4の制
御のほか写真プリントシステムDP全体の管理を実行す
る主制御装置6とが備えられ、更に、主制御装置6に
は、仕上がりプリント画像をシミュレートしたシミュレ
ート画像や各種の制御用の情報を表示するモニタ6a
と、露光条件の手動設定等や制御情報の入力操作をする
ための操作卓6bとが接続されている。
【0007】フィルムスキャナ3は、ハロゲンランプ1
0と、ハロゲンランプ10から出射した光の色バランス
を調整するための調光フィルタ11と、調光フィルタ1
1を通過した光を均等に混色するミラートンネル12
と、搬送機構13aや図示を省略するフィルムマスク等
が備えられてフィルム1を所定の読取り位置に位置させ
るフィルムマスクユニット13と、フィルム1の駒画像
を光電変換するためのCCDラインセンサユニット14
と、フィルム1の画像をCCDラインセンサユニット1
4上に結像させるためのレンズ15と、光路を90度屈
曲させるためのミラー16と、CCDラインセンサユニ
ット14の出力信号を増幅及びA/D変換等する処理回
路17と、フィルムスキャナ3全体の制御を行う読取制
御装置18とが設けられている。
【0008】CCDラインセンサユニット14は、約5
000個のCCD素子をフィルム1の幅方向に配列した
CCDラインセンサを3列に並べて備えており、各CC
Dラインセンサの受光面には夫々赤色、緑色、青色のカ
ラーフィルタが形成されて、フィルム1の駒画像を色分
解して検出する。読取制御装置18は、主制御装置6か
らの読取指令に基づいて、フィルムマスクユニット13
にセットされたフィルム1の搬送移動を開始させると共
に、処理回路17から出力されるそのフィルム1の駒画
像の画像データを主制御装置6へ出力する。
【0009】図1に示すように、主制御装置6には、フ
ィルムスキャナ3から入力された画像データをモザイク
処理するモザイク処理部40と、モザイク処理部40を
制御するモザイク処理制御部44と、各種の画像処理を
行う画像処理部42と、画像処理部42にて処理された
画像データを記憶する出力画像メモリ43とが備えら
れ、フィルムスキャナ3から入力された画像データを写
真プリントの作製に適した画像に画像処理して出力画像
メモリ43に記憶する。出力画像メモリ43に記憶され
た画像データは、必要に応じて操作者の指示入力により
濃度補正等を行った後に露光・現像装置EPで露光処理
するための露光用画像データに変換して出力される。
【0010】画像処理部42では、濃度補正,シャープ
ネス補正及びコントラスト補正等の補正処理が行われ、
そのために、濃度補正部50,シャープネス補正部51
及びコントラスト補正部52等が後述のようにソフトウ
ェアで構成されている。これらのうち、コントラスト補
正部52は、いわゆるヒストグラム平坦化によってコン
トラストの補正処理を実行するのであるが、全ての画素
の画像データによってヒストグラムを作製するのではな
く、処理するデータ数を減じてヒストグラムを作製す
る。すなわち、モザイク処理部40にて、フィルムスキ
ャナ3から入力された画像を縦横に複数のブロックに分
割し、各ブロック毎に、そのブロックに属する画素を代
表する画像データ(具体的には、平均データ)を求める
モザイク処理を行い、モザイク処理後の画像データによ
ってヒストグラムを作製することで、演算処理の高速化
を図っている。
【0011】モザイク処理部40には、図1に示すよう
に、各ブロックを代表する画像データを求めるモザイク
処理の主要部を実行するモザイク生成部60と、モザイ
ク生成部60の処理過程において画像データを一時的に
保存する中間バッファ61及びモザイクバッファ62
と、フィルムスキャナ3から入力された画像データを一
時的に保持するFIFOメモリ63と、フィルムスキャ
ナ3から入力されたオリジナルの画像データとモザイク
生成部60にてモザイク処理された画像データとの両方
を記憶する入力画像メモリ64とが主要部として備えら
れている。このうち、モザイク生成部60は論理回路
(より具体的にはPLD)にて構成されてハードウェア
にてモザイク処理が実行され、画像処理部42はDSP
にて構成されてソフトウェアにて上記各種の画像処理が
実行される。
【0012】モザイク処理部40の動作と、モザイク処
理部40での処理結果を利用したコントラスト補正との
概略を説明すると、フィルムスキャナ3から受け取って
FIFOメモリ63に記憶されている画像データは、入
力画像メモリ64へ送られると共にモザイク生成部60
へ順次送られ、モザイク生成部60にてモザイク処理が
なされた画像データはモザイクバッファ62に順次記憶
され、更に、モザイクバッファ62の画像データが入力
画像メモリ64へ送られて記憶される。画像処理部42
は、入力画像メモリ64に記憶されている画像データの
うちのモザイク処理された画像データを順次読取って濃
度ヒストグラムを作製し、その濃度ヒストグラムの分布
の偏りを修正する画像データ変換用データを作製してデ
ータ変換テーブル41へ書込む。その後、コントラスト
補正部52の処理として、入力画像メモリ64に記憶さ
れているモザイク処理のなされていないオリジナルの画
像データに対して、データ変換テーブル41の情報に基
づいてコントラスト変換処理を実行する。
【0013】モザイク生成部60の内部構成は、モザイ
ク処理がパイプライン化されており、図2に示すよう
に、1つのブロック内の行要素の画像データの平均を求
める第1処理部70と、第1処理部70での処理結果に
対して列要素の画像データの平均を求める第2処理部7
1とが備えられている。第1処理部70には、各画素の
画像データを順次受け取る第1フリップフロップF1
と、入力画像データの加算値を一時的に保持する第2フ
リップフロップF2と、第1フリップフロップF1の出
力と第2フリップフロップF2の出力とを加算する第1
加算器AD1と、第1加算器AD1の出力を一時的に保
持する第3フリップフロップF3と、第3フリップフロ
ップF3の出力をそのブロックの画素列数で除算する第
1除算器DV1とが備えられている。
【0014】第2処理部71には、第1処理部70の出
力を受け取る第4フリップフロップF4と、各ブロック
の加算値を一時的に保持する第5フリップフロップF5
と、第4フリップフロップF4の出力と第5フリップフ
ロップF5の出力とを加算する第2加算器AD2と、第
2加算器AD2の出力を一時的に保持する第6フリップ
フロップF6と、第6フリップフロップF6の出力をそ
のブロックの画素行数で除算する第2除算器DV2と、
第2除算器DV2の出力を一時的に保持する第7フリッ
プフロップF7とが備えられている。尚、図2では図示
を省略しているが、第1〜第7フリップフロップには同
一のクロック信号が入力されており、各フリップフロッ
プは同期動作する。又、各フリップフロップは、画像デ
ータのビット数に相当する個数が並列して備えられ並列
レジスタを構成している。
【0015】上記第1処理部70及び第2処理部71で
パイプライン処理させるためにモザイク処理制御部44
が備えられており、モザイク処理制御部44はモザイク
生成部60に対して制御信号を出力する。この制御信号
は、処理対象の画素のブロック内での位置情報を示すフ
ラグであり、「FstPx」,「LstPx」,「Fs
tLn」及び「LstLn」の4種類が存在する。各フ
ラグの値は画素毎に割り当てられており、その内容を、
画像の画素並びを12画素×9画素に簡略化して示す図
5〜図8によって説明する。以下の説明では、3行3列
の画素によって1つのブロックを構成してモザイク化す
る場合を例にとって説明する。
【0016】先ず、図5の「FstPx」は、各ブロッ
クの左端の列の画素のみを「H」レベルとし、他の画素
を「L」レベルとしている。図6の「LstPx」は、
各ブロックの右端の列の画素のみを「H」レベルとし、
他の画素を「L」レベルとしている。図7の「FstL
n」は、各ブロックの上端の行の画素のみを「H」レベ
ルとし、他の画素を「L」レベルとしている。図8の
「LstLn」は、各ブロックの下端の行の画素のみを
「H」レベルとし、他の画素を「L」レベルとしてい
る。一方、モザイク生成部60には、これら各フラグの
信号を受け取って論理回路の作動を制御する第1〜第5
制御論理回路72,73,74,75,76が備えられ
ており、モザイク処理制御部44は、各画素の「Fst
Px」,「LstPx」,「FstLn」及び「Lst
Ln」のフラグを、その画素の画像データが第1フリッ
プフロップF1に入力されるのと同じタイミングで第1
制御論理回路72へ出力する。更に、モザイク処理制御
部44から第1制御論理回路72へは、第1フリップフ
ロップF1に入力される画像データの有効期間に「H」
レベルとなる「Valid」信号が出力される。
【0017】以下、モザイク生成部60の概略動作を説
明する。尚、以下においては正論理で説明する。画像デ
ータは、ラスタ走査と同様の順序で第1フリップフロッ
プF1に順次送り込まれ、左上隅の画素の画像データか
ら順次第1フリップフロップF1に入力される。画像デ
ータが入力されたときは、同時に、その画素の上記各フ
ラグの信号及び「Valid」信号も第1制御論理回路
72へ入力される。第1制御論理回路72では、「Fs
tPx」と「Valid」とをANDゲートに入力し、
それの出力を第2フリップフロップF2のクリア入力へ
出力しているので、各ブロックの各行において最初の画
素の画像データが第1フリップフロップF1へ入力され
たときのみ第2フリップフロップF2の出力がリセット
される。
【0018】第1フリップフロップF1の出力と第2フ
リップフロップF2の出力とを加算した第1加算器AD
1の出力は、第2フリップフロップF2へ入力されてい
るので、第1フリップフロップF1に順次画像データが
入力されるに伴って、それらのデータを加算して行くこ
とになる。第1加算器AD1の出力は、第3フリップフ
ロップF3へ入力されるのであるが、第3フリップフロ
ップF3は、第1加算器AD1が各ブロックの1行分の
画素の画像データの加算を完了してその完了結果を出力
するまで第1加算器AD1の出力を保持しないようにし
てある。
【0019】すなわち、第1制御論理回路72は、入力
された上記各フラグの信号及び「Valid」信号を、
第1フリップフロップF1にデータが入力されてから第
1加算器AD1の出力にそれの影響が現れるまでの遅延
時間に相当する時間だけ遅延回路にて遅延させた後に第
2制御論理回路73へ出力しており、更に、第2制御論
理回路73は、第1制御論理回路72から入力した「L
stPx」と「Valid」とをANDゲートに入力
し、それの出力を第3フリップフロップF3のラッチ・
イネーブル端子へ出力しているので、各ブロックの各行
において最後の画素の画像データが第1加算器AD1に
て加算されて、その出力が確定したときのみ、クロック
端子に入力されたクロック信号によって第1加算器AD
1の出力が第3フリップフロップF3に保持される。第
3フリップフロップF3の出力は第1除算器DV1に入
力され、各ブロックの画素の列数にて除算されて、各ブ
ロックの各行における画像データの平均値が求められ
る。このために、第1除算器DV1には各ブロックの画
素の列数データが入力されている。第1除算器DV1の
出力は、第4フリップフロップF4にて保持される。
【0020】第2制御論理回路73は、第1制御論理回
路72から入力された上記各フラグの信号及び「Val
id」信号を、第3フリップフロップF3にデータが入
力されてから第1除算器DV1の出力にそれの影響が現
れるまでの遅延時間に相当する時間だけ遅延回路にて遅
延させた後に第3制御論理回路74へ出力しており、第
3制御論理回路74は、入力された「LstPx」と
「Valid」との論理積から、何れかのブロックの何
れかの行の画素の画像データの平均値が第4フリップフ
ロップF4に保持されたことを識別し、それに伴って、
その第4フリップフロップF4に保持されるデータが各
ブロックの上端の行の平均値であれば、第5フリップフ
ロップF5の出力をリセットする。すなわち、第3制御
論理回路74では、「FstLn」と「Valid」と
をANDゲートに入力し、それの出力を第5フリップフ
ロップF5のクリア入力へ出力しているので、各ブロッ
クの上端の行の画素の画像データの平均値が第4フリッ
プフロップF4へ入力されたときのみ第5フリップフロ
ップF5の出力がリセットされる。
【0021】一方、第4フリップフロップF4に保持さ
れるデータが各ブロックの上端の行以外の行の平均値で
あるときは、中間バッファ61から画像データを読取っ
て第5フリップフロップF5へ入力させる。中間バッフ
ァ61は、画像データがラスタ走査と同様の順序で入力
される関係上、第2加算器AD2においてあるブロック
のある行の平均値を加算すると、そのブロックの次の行
の平均値を加算する前に、他のブロックについて加算処
理を行うことになることから、各ブロックの各行の平均
値を加算して行く途中のデータを一時的に記憶保持させ
ておくためのものである。
【0022】第3制御論理回路74には、行方向の各ブ
ロック毎のデータを記憶する記憶アドレスを指定するた
めのカウンタを備えており、入力された「LstPx」
と「Valid」との論理積のパルスをカウントするこ
とによりアドレスを順次インクリメントすると共に、行
方向のブロック数に相当するカウント値をカウントする
に伴ってカウント値をリセットしている。これによっ
て、第4フリップフロップF4が第1処理部70から新
たなデータを受け取るのと同期して中間バッファ61の
アドレスを変更し、且つ、次に同じブロックのデータを
受け取るときには前回と同じアドレスが指定されるよう
になっている。従って、あるブロックのある行の画像デ
ータの平均値が入力されたときは、第2加算器AD2に
よって、それまでのそのブロックについての積算値と加
算されて、第6フリップフロップF6へ出力される。
【0023】第6フリップフロップF6は、第2加算器
AD2がブロックの1行の画像データの平均値の加算を
完了してその完了結果を出力すると、第2加算器AD2
の出力を保持する。すなわち、第3制御論理回路74
は、入力された上記各フラグの信号及び「Valid」
信号を、第4フリップフロップF4にデータが入力され
てから第2加算器AD2の出力にそれの影響が現れるま
での遅延時間に相当する時間だけ遅延回路にて遅延させ
た後に第4制御論理回路75へ出力しており、更に、第
4制御論理回路75は、第3制御論理回路74から入力
した「LstPx」と「Valid」とをANDゲート
に入力し、それの出力を第6フリップフロップF6のラ
ッチ・イネーブル端子へ出力しているので、第1除算器
DV1から入力された画像データの行要素の平均値につ
いての加算が完了すると、その値を第6フリップフロッ
プF6に保持する。第4制御論理回路75は、更に、第
3制御論理回路74から受け取った信号が、「Vali
d」及び「LstPx」が「H」レベルで且つ「Lst
Ln」が「L」レベルの状態であるときのみ、中間バッ
ファ61に入力データの書込みを指示し、あるブロック
の計算途中の加算値である第6フリップフロップF6の
出力が中間バッファ61に記憶される。
【0024】第6フリップフロップF6の出力は第2除
算器DV2に入力され、各ブロックの画素の行数にて除
算されて、各ブロックの下端の行の画像データの平均値
が第7フリップフロップF7に入力されたときは、その
ブロックの全ての画素の画像データの平均値が出力され
る。このために、第2除算器DV2には各ブロックの画
素の行数データが入力されている。第7フリップフロッ
プF7は、第2除算器DV2が各ブロックの全ての画素
の画像データの平均値を出力しているときに、その出力
値を保持する。
【0025】すなわち、第4制御論理回路75は、入力
された上記各フラグの信号及び「Valid」信号を、
第6フリップフロップF6にデータが入力されてから第
2除算器DV2の出力にそれの影響が現れるまでの遅延
時間に相当する時間だけ遅延回路にて遅延させた後に第
5制御論理回路76へ出力しており、更に、第5制御論
理回路76は、第4制御論理回路75から入力した「L
stPx」と「LstLn」と「Valid」とをAN
Dゲートに入力し、それの出力を第7フリップフロップ
F7のラッチ・イネーブル端子へ出力しているので、第
2除算器DV2が各ブロックの全ての画素の画像データ
の平均値を出力しているときに、第7フリップフロップ
F7がその出力値を保持する。第5制御論理回路76
は、更に、上記の第7フリップフロップF7のデータ保
持と同期してモザイクバッファ62に入力データの書込
みを指示して、第7フリップフロップF7の出力データ
を記憶させる。
【0026】〔露光・現像装置EPの概略構成〕露光・
現像装置EPは、筐体内部に、PLZTプリントヘッド
20aを備えた露光ユニット20と、露光ユニット20
を制御する露光制御装置21と、露光ユニット20にて
露光された印画紙2を現像処理する現像処理部22と、
現像処理部22内の印画紙搬送系の制御や現像処理液の
管理を行う現像制御装置23と、露光・現像装置EP全
体を制御するプリンタ制御装置24と、筐体上面に配置
された印画紙マガジン8から引き出された印画紙2を多
数の搬送ローラ25等にて現像処理部22へ搬送する印
画紙搬送系PTとが設けられている。
【0027】露光・現像装置EPの筐体外部には、現像
処理部22にて現像処理及び乾燥処理された印画紙2を
オーダ毎に分類するためのソータ26と、排出口22a
から排出された印画紙2をソータ26へ搬送するコンベ
ア27とが設けられているほか、各種の制御情報を指示
入力するための操作卓29や各種の制御情報を表示する
ためのモニタ30も備えられている。更に、印画紙搬送
系PTの搬送経路の途中には、印画紙マガジン8から引
き出された長尺の印画紙2を設定プリントサイズに切断
するカッタ28が備えられている。
【0028】〔写真プリントの作製動作〕次に、上記構
成の写真プリントシステムDPによる写真プリントの作
製動作を概略的に説明する。操作者がフィルム1の駒画
像について写真プリントの作製を指示入力したときは、
主制御装置6は、フィルムスキャナ3に対してフィルム
1の読み取りを指令し、読取制御装置18からそのフィ
ルム1の画像データを順次受取って、上述のような画像
処理を施した後に出力画像メモリ43に記録する。一
方、操作者がメモリーカード,MOあるいはCD−R等
の記録媒体に記録された画像データについて写真プリン
トの作製を指示入力したときは、主制御装置6は、外部
入出力装置4の該当するドライブに画像データの読み取
りを指令し、そのドライブから画像データを順次受取っ
て、メモリに記録する。
【0029】主制御装置6は、上記のようにして入力さ
れた画像データに基づいて、その画像データによってプ
リントを作製した場合に得られるであろうシミュレート
画像を図示を省略する画像処理回路にて演算して求め、
それをモニタ6aに表示する。操作者は、このモニタ6
a上のシミュレート画像を観察して、適正な画像が得ら
れていなければ、操作卓6bから露光条件の修正入力操
作を行う。主制御装置6の画像処理回路は、入力された
画像データとその修正入力とに従って予め設定された演
算条件で赤色、緑色、青色毎の露光用画像データを生成
する。
【0030】この露光用画像データは、露光・現像装置
EPのプリンタ制御装置24に送られ、プリンタ制御装
置24に備えられているメモリに記憶される。プリンタ
制御装置24は、印画紙搬送系PTから得られる印画紙
2の搬送情報に基づいて、印画紙2の前端が所定の露光
開始位置まで搬送されて来たことを検知すると、露光制
御装置21に対して露光作動の開始を指令すると共に、
露光ユニット20の露光処理スピードに対応した速度で
露光用画像データを露光制御装置21へ順次送信する。
露光制御装置21は、受け取った露光用画像データに基
づいてPLZTプリントヘッド20aの各光シャッタを
作動させて印画紙2にプリント画像の潜像を形成する。
露光ユニット20にて露光処理された印画紙2は、印画
紙搬送系PTにて現像処理部22へ搬送されて、各現像
処理タンクを順次通過することにより現像され、現像処
理された印画紙2は、更に乾燥処理された後に排出口2
2aからコンベア27上に排出され、ソータ26にてオ
ーダー毎にまとめられる。Description: BACKGROUND OF THE INVENTION [0001] 1. Field of the Invention [0002] The present invention relates to an image processing method for converting image data of an input image based on a set data conversion condition and correcting the contrast of the input image. 2. Description of the Related Art Conventionally, contrast correction of an input image is performed by
Based on the image data of all the pixels of the input image, setting data conversion conditions for performing contrast correction by a technique such as histogram flattening have been obtained. [0003] However, in the above-described conventional configuration, the number of pixels to be processed increases with the improvement in the quality of various image input devices, and the processing speed of image processing decreases significantly. Came to be. The present invention has been made in view of such circumstances, and an object thereof is to improve the image processing speed of contrast correction. According to a first aspect of the present invention, there is provided an image processing method for converting image data of an input image based on a set data conversion condition and correcting the contrast of the input image. The image data is divided into a plurality of blocks each having a plurality of pixels, and the setting data conversion condition is obtained based on the image data representing each block. Therefore, the number of pixels to be processed is reduced, and the processing speed can be improved. Embodiments of the present invention will be described below with reference to the drawings. The photographic print system DP according to the present embodiment is known as a so-called digital mini-lab machine, and as shown in FIG. 4, a developed photographic film 1 (hereinafter simply referred to as “film 1”). ), An image input device IR for inputting image data for producing a photographic print from a memory card, MO or CD-R, etc., and an exposure process for exposing the image data input by the image input device IR to photographic paper 2.・ Developing device EP
It is composed of [Schematic Configuration of Image Input Apparatus IR] As shown schematically in FIG.
, An external input / output device 4 having a memory reader, an MO drive, a CD-R drive, etc., and a general-purpose small computer system. A main controller 6 is provided for executing the control of the entire photo print system DP in addition to the control. The main controller 6 further displays a simulated image simulating the finished print image and various control information. Monitor 6a
And an operation console 6b for performing manual setting of exposure conditions and inputting control information. The film scanner 3 includes a halogen lamp 1
0, a light control filter 11 for adjusting the color balance of light emitted from the halogen lamp 10, and a light control filter 1
Mirror tunnel 12 that evenly mixes light passing through 1
A film mask unit 13 provided with a transport mechanism 13a and a film mask (not shown) for positioning the film 1 at a predetermined reading position, and a CCD line sensor unit 14 for photoelectrically converting a frame image of the film 1
And the image of the film 1 is transferred to the CCD line sensor unit 1
A lens 15 for forming an image on the optical path 4, a mirror 16 for bending the optical path by 90 degrees, a processing circuit 17 for amplifying and A / D converting an output signal of the CCD line sensor unit 14, and the entire film scanner 3 And a reading control device 18 for controlling the reading operation. The CCD line sensor unit 14 has about 5
CCD line sensors in which 000 CCD elements are arranged in the width direction of the film 1 are arranged in three rows.
Red, green, and blue color filters are formed on the light receiving surface of the D-line sensor, respectively, and the frame image of the film 1 is color-separated and detected. The reading control device 18 is configured to read the film mask unit 13 based on a reading command from the main control device 6.
The transport movement of the film 1 set in the camera 1 is started, and the image data of the frame image of the film 1 output from the processing circuit 17 is output to the main controller 6. As shown in FIG. 1, the main controller 6 includes a mosaic processing section 40 for mosaic processing the image data input from the film scanner 3, a mosaic processing control section 44 for controlling the mosaic processing section 40, An image processing unit 42 for performing various types of image processing and an output image memory 43 for storing image data processed by the image processing unit 42 are provided. The image data input from the film scanner 3 is used for producing a photographic print. The image is processed into a suitable image and stored in the output image memory 43. The image data stored in the output image memory 43 is converted into exposure image data for exposure processing by the exposure / developing apparatus EP after performing density correction and the like according to an instruction input by an operator as necessary. You. The image processing unit 42 performs correction processing such as density correction, sharpness correction, and contrast correction.
Therefore, the density correction unit 50 and the sharpness correction unit 51
The contrast correction unit 52 and the like are configured by software as described later. Among these, the contrast correction unit 52 executes the contrast correction processing by so-called histogram flattening. However, instead of creating a histogram based on image data of all pixels, the contrast correction unit 52 reduces the number of data to be processed and generates a histogram. Make it. That is, the mosaic processing unit 40 divides the image input from the film scanner 3 into a plurality of blocks vertically and horizontally, and, for each block, image data representing pixels belonging to the block (specifically, average data ) Is performed, and a histogram is created from the image data after the mosaic processing, thereby speeding up the arithmetic processing. As shown in FIG. 1, the mosaic processing section 40 executes a main part of the mosaic processing for obtaining image data representative of each block. Buffer 61 and mosaic buffer 62 for temporarily storing
And a FIFO memory 63 for temporarily storing image data input from the film scanner 3, and both the original image data input from the film scanner 3 and the image data mosaiced by the mosaic generator 60. An input image memory 64 for storing is provided as a main part. Among them, the mosaic generation unit 60 is configured by a logic circuit (more specifically, a PLD) and performs mosaic processing by hardware.
The above-described various image processes are executed by software. The outline of the operation of the mosaic processing unit 40 and the contrast correction using the processing result of the mosaic processing unit 40 will be described. Image data received from the film scanner 3 and stored in the FIFO memory 63 is input data. It is sent to the image memory 64 and the mosaic generator 60
The image data subjected to the mosaic processing by the mosaic generation unit 60 is sequentially stored in the mosaic buffer 62, and the image data in the mosaic buffer 62 is transmitted to the input image memory 64 and stored. Image processing unit 42
Prepares a density histogram by sequentially reading the mosaic-processed image data of the image data stored in the input image memory 64, and generates image data conversion data for correcting the bias of the distribution of the density histogram. To the data conversion table 41. Thereafter, as a process of the contrast correction unit 52, a contrast conversion process is performed on the original image data, which has not been subjected to the mosaic process, stored in the input image memory 64 based on the information of the data conversion table 41. The internal configuration of the mosaic generation unit 60 is a mosaic processing pipelined, and as shown in FIG. 2, a first processing unit 70 for calculating the average of the image data of the row elements in one block. Second processing unit 7 for calculating the average of the image data of the column elements with respect to the processing result in first processing unit 70
1 is provided. The first processing unit 70 includes a first flip-flop F1 that sequentially receives image data of each pixel.
And a second flip-flop F2 for temporarily holding the added value of the input image data, and a first flip-flop F2 for adding the output of the first flip-flop F1 and the output of the second flip-flop F2.
An adder AD1, a third flip-flop F3 that temporarily holds the output of the first adder AD1, and a first divider DV1 that divides the output of the third flip-flop F3 by the number of pixel columns of the block are provided. Has been. The second processing unit 71 includes a fourth flip-flop F4 for receiving the output of the first processing unit 70, and a fifth flip-flop F5 for temporarily storing the added value of each block.
A second adder AD2 that adds the output of the fourth flip-flop F4 and the output of the fifth flip-flop F5, a sixth flip-flop F6 that temporarily holds the output of the second adder AD2, A second divider DV2 for dividing the output of the flip-flop F6 by the number of pixel rows of the block;
A seventh flip-flop F7 for temporarily holding the output of the second divider DV2. Although not shown in FIG. 2, the same clock signal is input to the first to seventh flip-flops, and the flip-flops operate synchronously. Each flip-flop is provided in parallel with a number corresponding to the number of bits of the image data to constitute a parallel register. The first processing unit 70 and the second processing unit 71 perform a mosaic processing control unit 44 for pipeline processing.
The mosaic processing control unit 44 outputs a control signal to the mosaic generation unit 60. The control signal is a flag indicating position information of the pixel to be processed in the block, and includes “FstPx”, “LstPx”, and “FsPx”.
There are four types, “tLn” and “LstLn”. The value of each flag is assigned to each pixel, and the contents are
This will be described with reference to FIGS. 5 to 8 which show a simplified arrangement of pixels of an image to 12 pixels × 9 pixels. In the following description, a case will be described as an example in which one block is configured by pixels in three rows and three columns to form a mosaic. First, in "FstPx" in FIG. 5, only the pixels in the leftmost column of each block are at "H" level, and the other pixels are at "L" level. “LstPx” in FIG.
Only the pixels in the rightmost column of each block are set to “H” level,
Other pixels are at the “L” level. “FstL” in FIG.
In “n”, only the pixels in the top row of each block are at “H” level, and the other pixels are at “L” level. In “LstLn” in FIG. 8, only the pixels in the lower row of each block are at the “H” level, and the other pixels are at the “L” level. On the other hand, the mosaic generation section 60 receives the signals of these flags and controls the first to fifth signals for controlling the operation of the logic circuit.
The control logic circuits 72, 73, 74, 75, and 76 are provided. The mosaic processing control unit 44 controls the “Fst
Px "," LstPx "," FstLn "and" Lst
Ln ”at the same timing as when the image data of the pixel is input to the first flip-flop F1.
Output to the control logic circuit 72. Further, the mosaic processing control unit 44 supplies “H” to the first control logic circuit 72 during the valid period of the image data input to the first flip-flop F1.
A “Valid” signal which becomes a level is output. The general operation of the mosaic generator 60 will be described below. In the following, description will be made in the positive logic. The image data is sequentially sent to the first flip-flop F1 in the same order as the raster scanning, and is sequentially input to the first flip-flop F1 from the image data of the pixel at the upper left corner. When the image data is input, at the same time, the signal of each flag of the pixel and the “Valid” signal are also input to the first control logic circuit 72. In the first control logic circuit 72, “Fs
tPx ”and“ Valid ”are input to an AND gate,
Since the output is output to the clear input of the second flip-flop F2, the output of the second flip-flop F2 is output only when the image data of the first pixel in each row of each block is input to the first flip-flop F1. Reset. A first adder AD that adds the output of the first flip-flop F1 and the output of the second flip-flop F2
Since the output of 1 is input to the second flip-flop F2, the data is added as the image data is input to the first flip-flop F1 sequentially. The output of the first adder AD1 is input to the third flip-flop F3. The third flip-flop F3 completes the addition of the image data of the pixels of one row in each block by the first adder AD1. Then, the output of the first adder AD1 is not held until the completion result is output. That is, the first control logic circuit 72 converts the input signal of each flag and the “Valid” signal into
The data is input to the first flip-flop F1 and then delayed by a delay circuit corresponding to a delay time from the input of the data to the output of the first adder AD1 until the effect thereof appears, and then output to the second control logic circuit 73. Further, the second control logic circuit 73 outputs “L” input from the first control logic circuit 72.
stPx ”and“ Valid ”are input to an AND gate, and the output thereof is latched by a third flip-flop F3.
Since the image data is output to the enable terminal, the image data of the last pixel in each row of each block is added by the first adder AD1, and only when the output is determined, is the output of the first adder AD1 determined by the clock signal input to the clock terminal. 1 adder AD
1 is held in the third flip-flop F3. The output of the third flip-flop F3 is input to the first divider DV1, where it is divided by the number of columns of pixels in each block to obtain an average value of image data in each row of each block. For this purpose, the first divider DV1 is supplied with the column number data of the pixels of each block. The output of the first divider DV1 is held in the fourth flip-flop F4. The second control logic circuit 73 outputs the signal of each of the flags input from the first control logic circuit 72 and “Val
After the signal "id" is delayed by a delay circuit for a time corresponding to a delay time from when the data is input to the third flip-flop F3 to when the output of the first divider DV1 has its influence, the third control is performed. The third control logic circuit 74 outputs the average value of the image data of the pixels in any row of any block from the logical product of the input “LstPx” and “Valid”. Is held in the fourth flip-flop F4, and accordingly,
If the data held in the fourth flip-flop F4 is the average value of the upper row of each block, the output of the fifth flip-flop F5 is reset. That is, in the third control logic circuit 74, “FstLn” and “Valid” are input to the AND gate, and the output thereof is output to the clear input of the fifth flip-flop F5. The output of the fifth flip-flop F5 is reset only when the average value of the image data of the pixel is input to the fourth flip-flop F4. On the other hand, when the data held in the fourth flip-flop F4 is the average value of the rows other than the top row of each block, the image data is read from the intermediate buffer 61 and input to the fifth flip-flop F5. . Since the intermediate buffer 61 adds the average value of a certain row in a certain block in the second adder AD2 because the image data is input in the same order as the raster scanning, the intermediate buffer 61 adds the average value of the next row of the block. Before the addition, the addition process is performed for other blocks, so that the data in the middle of adding the average value of each row of each block is temporarily stored and held. The third control logic circuit 74 includes a counter for designating a storage address for storing data for each block in the row direction. The input "LstPx"
The address is sequentially incremented by counting the pulse of the logical product of the data and "Valid", and the count value is reset as the count value corresponding to the number of blocks in the row direction is counted. Accordingly, the address of the intermediate buffer 61 is changed in synchronization with the reception of new data from the first processing unit 70 by the fourth flip-flop F4, and the next time the data of the same block is received, the same address as the previous time is used. Is to be specified. Therefore, when the average value of the image data of a certain row in a certain block is input, the second adder AD2 adds the integrated value to the previous block and outputs the sum to the sixth flip-flop F6. . When the second adder AD2 completes the addition of the average value of the image data of one row of the block and outputs the completion result, the sixth flip-flop F6 outputs the second adder AD2.
Hold the output of That is, the third control logic circuit 74
Indicates the input signal of each flag and “Valid”
The signal is delayed by a delay circuit for a time corresponding to a delay time from when data is input to the fourth flip-flop F4 to when the signal appears on the output of the second adder AD2, and then the fourth control logic circuit 75, and the fourth control logic circuit 75 further inputs “LstPx” and “Valid” input from the third control logic circuit 74 to the AND gate, and outputs the output thereof to the sixth flip-flop F6. When the addition of the average value of the row elements of the image data input from the first divider DV1 is completed, the value is held in the sixth flip-flop F6. The fourth control logic circuit 75 further determines that the signal received from the third control logic circuit 74 is “Vali”
d ”and“ LstPx ”are“ H ”level and“ LstPx ”
Only when “Ln” is at the “L” level, writing of input data is instructed to the intermediate buffer 61, and the output of the sixth flip-flop F 6, which is the added value during the calculation of a certain block, is stored in the intermediate buffer 61. You. The output of the sixth flip-flop F6 is input to the second divider DV2, where the output is divided by the number of rows of pixels in each block, and the average value of the image data in the lower row of each block is calculated by the seventh flip-flop. When input to F7, the average value of the image data of all the pixels of the block is output. For this purpose, the row number data of the pixels of each block is input to the second divider DV2. The seventh flip-flop F7 holds the output value when the second divider DV2 outputs the average value of the image data of all the pixels in each block. That is, the fourth control logic circuit 75 converts the input signal of each flag and the “Valid” signal into
The delay is delayed by a delay circuit corresponding to a delay time from when data is input to the sixth flip-flop F6 to when its effect appears on the output of the second divider DV2, and then output to the fifth control logic circuit 76 Further, the fifth control logic circuit 76 outputs “L” input from the fourth control logic circuit 75.
stPx ”,“ LstLn ”and“ Valid ”
The second divider DV2 outputs the average value of the image data of all the pixels in each block because the signal is input to the D gate and its output is output to the latch enable terminal of the seventh flip-flop F7. At this time, the seventh flip-flop F7 holds the output value. Fifth control logic circuit 76
Further instructs the mosaic buffer 62 to write the input data in synchronization with the data holding of the seventh flip-flop F7, and stores the output data of the seventh flip-flop F7. [Schematic Configuration of Exposure / Developing Apparatus EP]
The developing device EP includes an exposure unit 20 having a PLZT print head 20a inside a housing, and an exposure unit 20.
An exposure control device 21 for controlling the exposure, a developing processing unit 22 for developing the photographic paper 2 exposed by the exposure unit 20,
A development control device 23 for controlling the photographic paper transport system in the development processing section 22 and managing the development processing liquid; a printer control device 24 for controlling the entire exposure / development device EP; A photographic paper transport system PT for transporting the photographic paper 2 pulled out of the magazine 8 to the development processing unit 22 by a large number of transport rollers 25 and the like is provided. Outside the housing of the exposure / developing apparatus EP, a sorter 26 for classifying the photographic paper 2 developed and dried by the development processing section 22 for each order, and a discharge port 22a
A conveyor 27 for transporting the photographic paper 2 discharged from the printer to a sorter 26 is provided. An operation console 29 for inputting various control information and a monitor 30 for displaying various control information are also provided. Has been. Further, a cutter 28 for cutting the long photographic paper 2 drawn from the photographic paper magazine 8 into a set print size is provided in the middle of the transport path of the photographic paper transport system PT. [Photo Print Production Operation] Next, the operation of producing a photo print by the photo print system DP having the above configuration will be schematically described. When the operator instructs to make a photographic print for the frame image of the film 1,
The main controller 6 instructs the film scanner 3 to read the film 1, sequentially receives the image data of the film 1 from the reading controller 18, performs the above-described image processing, and then performs the output image memory 43. To record. On the other hand, when the operator gives an instruction to make a photographic print for image data recorded on a recording medium such as a memory card, MO, or CD-R, the main controller 6 sends the corresponding drive of the external input / output device 4 to the corresponding drive. To read the image data, sequentially receive the image data from the drive, and record it in the memory. Based on the image data input as described above, the main controller 6 converts a simulated image, which may be obtained when a print is made with the image data, into an image processing circuit (not shown). To calculate
It is displayed on the monitor 6a. The operator operates this monitor 6
Observing the simulated image on “a”, if an appropriate image is not obtained, a correction input operation of the exposure condition is performed from the console 6b. The image processing circuit of the main control unit 6 generates exposure image data for each of red, green, and blue under predetermined calculation conditions according to the input image data and its correction input. The exposure image data is sent to the printer control device 24 of the exposure / developing device EP, and is stored in a memory provided in the printer control device 24. When the printer control device 24 detects that the front end of the photographic paper 2 has been transported to the predetermined exposure start position based on the transport information of the photographic paper 2 obtained from the photographic paper transport system PT, the exposure control device 21 Command the start of the exposure operation to
The image data for exposure is sequentially transmitted to the exposure control device 21 at a speed corresponding to the exposure processing speed of the exposure unit 20.
The exposure control device 21 operates each optical shutter of the PLZT print head 20a based on the received exposure image data to form a latent image of a print image on the printing paper 2.
The photographic paper 2 exposed by the exposure unit 20 is transported to the developing section 22 by the photographic paper transporting system PT, and is developed by sequentially passing through the developing tanks. Is the outlet 2 after further drying treatment
It is discharged from 2a onto a conveyor 27 and is sorted by a sorter 26 for each order.
【図面の簡単な説明】
【図1】本発明の実施の形態にかかる要部ブロック構成
図
【図2】本発明の実施の形態にかかるモザイク生成部の
ブロック構成図
【図3】本発明の実施の形態にかかる写真プリントシス
テムのブロック構成図
【図4】本発明の実施の形態にかかる写真プリントシス
テムの外観斜視図
【図5】本発明の実施の形態にかかるフラグの説明図
【図6】本発明の実施の形態にかかるフラグの説明図
【図7】本発明の実施の形態にかかるフラグの説明図
【図8】本発明の実施の形態にかかるフラグの説明図
【符号の説明】
52 コントラスト補正部
60 モザイク生成部BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a main part according to an embodiment of the present invention. FIG. 2 is a block diagram of a mosaic generating unit according to an embodiment of the present invention. FIG. 4 is a block diagram of a photo print system according to the embodiment; FIG. 4 is an external perspective view of the photo print system according to the embodiment of the present invention; FIG. 5 is an explanatory diagram of flags according to the embodiment of the present invention; FIG. 7 is an explanatory diagram of a flag according to an embodiment of the present invention. FIG. 7 is an explanatory diagram of a flag according to an embodiment of the present invention. FIG. 8 is an explanatory diagram of a flag according to an embodiment of the present invention. 52 Contrast correction unit 60 Mosaic generation unit
Claims (1)
条件より変換して前記入力画像のコントラスト補正を行
う画像処理方法であって、 入力画像の画像データを夫々複数画素を有する複数のブ
ロックに分割し、各ブロックを代表する画像データに基
づいて前記設定データ変換条件を求める画像処理方法。1. An image processing method for converting image data of an input image based on a set data conversion condition and correcting the contrast of the input image, wherein the image data of the input image is divided into a plurality of pixels. An image processing method for dividing the data into a plurality of blocks and obtaining the setting data conversion condition based on image data representing each block.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001317631A JP2003123069A (en) | 2001-10-16 | 2001-10-16 | Image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001317631A JP2003123069A (en) | 2001-10-16 | 2001-10-16 | Image processing method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2003123069A true JP2003123069A (en) | 2003-04-25 |
Family
ID=19135467
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001317631A Withdrawn JP2003123069A (en) | 2001-10-16 | 2001-10-16 | Image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2003123069A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007510841A (en) * | 2003-11-07 | 2007-04-26 | プジョー・シトロエン・オトモビル・ソシエテ・アノニム | A system that supports the regeneration of decontamination means built into the exhaust line of a diesel engine in a vehicle |
| JP2007510840A (en) * | 2003-11-07 | 2007-04-26 | プジョー・シトロエン・オトモビル・ソシエテ・アノニム | System providing regeneration support for decontamination means built into the exhaust line of a vehicle diesel engine |
-
2001
- 2001-10-16 JP JP2001317631A patent/JP2003123069A/en not_active Withdrawn
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007510841A (en) * | 2003-11-07 | 2007-04-26 | プジョー・シトロエン・オトモビル・ソシエテ・アノニム | A system that supports the regeneration of decontamination means built into the exhaust line of a diesel engine in a vehicle |
| JP2007510840A (en) * | 2003-11-07 | 2007-04-26 | プジョー・シトロエン・オトモビル・ソシエテ・アノニム | System providing regeneration support for decontamination means built into the exhaust line of a vehicle diesel engine |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6748109B1 (en) | Digital laboratory system for processing photographic images | |
| US7013052B1 (en) | Image processing apparatus | |
| JP2001358928A (en) | Image correction device | |
| CN100367756C (en) | Photographic image processing device | |
| EP1528508B1 (en) | Image processing method and apparatus for image resizing | |
| CN1322736C (en) | Method of determining image correction and image processing apparatus using the method | |
| JP2003123069A (en) | Image processing method | |
| CN100390663C (en) | Digital exposure photo processing device | |
| JP3559451B2 (en) | Image processing method and image processing apparatus | |
| JP3750751B2 (en) | Digital photo printer | |
| JPH06311425A (en) | Image correcting device | |
| JP3896589B2 (en) | Image processing device | |
| JP3769748B2 (en) | Photo printing device | |
| JP3793989B2 (en) | Image printing device | |
| JP3702692B2 (en) | Print creation method and print creation apparatus | |
| JP4264070B2 (en) | Image forming method and image forming apparatus | |
| JP4470172B2 (en) | Image processing device | |
| JP2001312015A (en) | Index print and method for forming the same | |
| JP3806930B2 (en) | Image processing device | |
| JP2002209090A (en) | Test print generating method and photo image print method employing it | |
| JP2002044442A (en) | Shading correction method and image processing apparatus using the same | |
| JP2001194238A (en) | Color conversion table creation method and creation device | |
| JP2001157070A (en) | Image processing device | |
| JP3382247B2 (en) | Image processing system | |
| JP2004297173A (en) | Image processing apparatus and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20050104 |