JP2001358983A - Image input device, image recording method, and computer-readable recording medium for storing program to perform the method - Google Patents

Image input device, image recording method, and computer-readable recording medium for storing program to perform the method

Info

Publication number
JP2001358983A
JP2001358983A JP2000179075A JP2000179075A JP2001358983A JP 2001358983 A JP2001358983 A JP 2001358983A JP 2000179075 A JP2000179075 A JP 2000179075A JP 2000179075 A JP2000179075 A JP 2000179075A JP 2001358983 A JP2001358983 A JP 2001358983A
Authority
JP
Japan
Prior art keywords
image
data
color
pixel data
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000179075A
Other languages
Japanese (ja)
Inventor
Tatsutoshi Kitajima
達敏 北島
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2000179075A priority Critical patent/JP2001358983A/en
Publication of JP2001358983A publication Critical patent/JP2001358983A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image input device that can record characters in colors with high image quality. SOLUTION: A binary coding processing section of a companding section 7 of a digital camera shown in Figure 1 discriminates background pixel data and valid pixel data in picked-up image data when a character photographing mode is selected and applies binary coding processing to the valid pixel data by each discriminated color after discriminating each color of the valid pixel data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、画像入力装置、
画像記録方法、およびその方法を実行するためのプログ
ラムを格納したコンピュータが読取可能な記録媒体に関
し、詳細には、文字を撮影するための文字撮影モードを
備えた画像入力装置、画像記録方法、およびその方法を
実行するためのプログラムを格納したコンピュータが読
取可能な記録媒体に関する。
The present invention relates to an image input device,
The present invention relates to an image recording method and a computer-readable recording medium storing a program for executing the method, and more particularly, to an image input apparatus having a character photographing mode for photographing characters, an image recording method, and The present invention relates to a computer-readable recording medium storing a program for executing the method.

【0002】[0002]

【従来の技術】近時、デジタルカメラが普及している。
かかるデジタルカメラでは、レンズを通った画像がCC
D素子によって捕捉され、カメラ内部の回路を通じてメ
モリに書き込まれる。メモリに記録された画像データは
パソコン等に転送される。また、液晶ディスプレイを備
えたデジタルカメラも普及しており、この液晶ディスプ
レイは、撮影時にはファインダとして機能し、撮影後は
メモリに記録されている画像の再生表示用として機能す
る。さらに、文字撮影モードを備えたデジタルカメラも
普及している。かかる文字撮影モードでは、原稿等を撮
影し、原稿中の文字の2値化処理が行われる。
2. Description of the Related Art Recently, digital cameras have become widespread.
In such a digital camera, the image passing through the lens is CC
It is captured by the D element and written to the memory through a circuit inside the camera. The image data recorded in the memory is transferred to a personal computer or the like. In addition, digital cameras equipped with a liquid crystal display have become widespread, and this liquid crystal display functions as a finder at the time of shooting, and functions as a reproduction display of an image recorded in a memory after shooting. Further, digital cameras equipped with a character photographing mode have become widespread. In such a character photographing mode, a document or the like is photographed, and binarization processing of characters in the document is performed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
デジタルカメラにおいては、会議などで例えばホワイト
ボードにBk、R、Bの3色のボールペンなどで記入し
た場合にホワイトボードを自然画モードで撮影した場合
には、文字の解像度が低下する一方、文字2値化モード
で撮影した場合には、輝度信号等が閾値以上の場合は
「黒」、閾値未満の場合は「白」として記録されてしま
い、複数色の文字を各色毎に高画質に記録することがで
きないという問題がある。
However, in a conventional digital camera, when a whiteboard is filled in with a ballpoint pen of three colors Bk, R, and B at a meeting or the like, the whiteboard is photographed in a natural image mode. In this case, while the resolution of the character is reduced, when the image is captured in the character binarization mode, the luminance signal or the like is recorded as “black” when the luminance signal or the like is equal to or more than the threshold, and as “white” when the luminance signal or the like is less than the threshold. However, there is a problem that characters of a plurality of colors cannot be recorded with high image quality for each color.

【0004】本発明は、上記課題に鑑みてなされたもの
であり、複数色の文字を高画質に記録することが可能な
デジタルカメラ、画像記録方法、およびその方法を実行
するためのプログラムを記録したコンピュータが読取可
能な記録媒体を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has a digital camera capable of recording characters of a plurality of colors with high image quality, an image recording method, and a program for executing the method. It is an object of the present invention to provide a computer-readable recording medium.

【0005】[0005]

【課題を解決するための手段】上述した課題を解決し、
目的を達成するため、請求項1にかかる発明は、文字を
撮影するための文字撮影モードを備えたデジタルカメラ
において、被写体を撮像して画像データを出力する撮像
手段と、撮像した画像データのうち、背景画素データと
有効画素データを判別する判別手段と、前記判別手段で
判別された有効画素データの色種別を判定する色種別判
定手段と、判別した色の有効画素データを2値符号化処
理するデータ圧縮手段と、を備えたものである。
Means for Solving the Problems The above-mentioned problems are solved,
In order to achieve the object, an invention according to claim 1 is a digital camera provided with a character photographing mode for photographing characters, wherein an image pickup means for photographing a subject and outputting image data; Determining means for determining background pixel data and valid pixel data; color type determining means for determining a color type of the valid pixel data determined by the determining means; and binary coding processing of the valid pixel data of the determined color And a data compression means.

【0006】上記発明によれば、撮像手段は被写体を撮
像して画像データを出力し、判別手段は撮像した画像デ
ータのうち、背景画素データと有効画素データを判別
し、色種別判別手段は判別された有効画素データの色種
別を判定し、データ圧縮手段は判別した色の有効画素デ
ータを2値符号化処理する。
According to the invention, the image pickup means picks up an image of a subject and outputs image data, the discriminating means discriminates background pixel data and effective pixel data from the picked-up image data, and the color type discriminating means discriminates. The color type of the effective pixel data thus determined is determined, and the data compression unit performs a binary encoding process on the effective pixel data of the determined color.

【0007】また、請求項2にかかる発明は、請求項1
にかかる発明において、さらに、2値符号化処理された
画像データを色毎に記録媒体に記録する記録制御手段を
備えたものである。上記発明によれば、2値符号化処理
された画像データを色毎に記録媒体に記録する。
[0007] The invention according to claim 2 is based on claim 1.
And recording control means for recording, on a recording medium, image data which has been subjected to the binary encoding processing for each color. According to the invention, the image data subjected to the binary encoding processing is recorded on a recording medium for each color.

【0008】また、請求項3にかかる発明は、請求項1
または請求項2にかかる発明において、さらに、前記デ
ータ圧縮手段で2値符号化処理された画像データを復号
化する復号化手段と、前記復号化された画像データに応
じた画像を表示するための表示手段と、前記表示手段で
表示された画像の少なくとも一部の領域を指定する領域
指定手段と、前記領域指定手段で指定された領域内の画
像の色を指定する色指定手段と、前記領域指定手段で指
定された領域内の画像を前記色指定手段で指定された色
のデータに置換する置換手段と、を備えたものである。
[0008] The invention according to claim 3 is based on claim 1.
Alternatively, in the invention according to claim 2, further comprising: decoding means for decoding the image data which has been subjected to the binary encoding processing by the data compression means; and a display means for displaying an image corresponding to the decoded image data. Display means; area designating means for designating at least a partial area of an image displayed on the display means; color designating means for designating a color of an image in the area designated by the area designating means; Replacement means for replacing the image in the area designated by the designation means with data of the color designated by the color designation means.

【0009】上記発明によれば、復号化手段はデータ圧
縮手段で2値符号化処理された画像データを復号化し、
表示手段は復号化された画像データに応じた画像を表示
し、領域指定手段は表示手段で表示された画像の少なく
とも一部の領域を指定し、色指定手段は領域指定手段で
指定された領域内の画像の色を指定し、置換手段は領域
指定手段で指定された領域内の画像を色指定手段で指定
された色のデータに置換する。
According to the invention, the decoding means decodes the image data binary-coded by the data compression means,
The display means displays an image corresponding to the decoded image data, the area designating means designates at least a part of the image displayed by the display means, and the color designating means designates the area designated by the area designating means. The replacement means replaces the image in the area designated by the area designation means with data of the color designated by the color designation means.

【0010】また、請求項4にかかる発明は、被写体を
撮像して画像データを出力する工程と、撮像した画像デ
ータのうち、背景画素データと有効画素データを判別す
る工程と、判別した有効画素データの色種別を判定する
工程と、判別した色毎に有効画素データを2値符号化処
理する工程とを含むものである。
According to a fourth aspect of the present invention, there is provided a method of imaging a subject and outputting image data, a step of determining background pixel data and valid pixel data in the captured image data, The method includes a step of determining a color type of data and a step of performing a binary encoding process on valid pixel data for each determined color.

【0011】上記発明によれば、被写体を撮像して画像
データを出力し、撮像した画像データのうち、背景画素
データと有効画素データを判別し、判別した有効画素デ
ータの色種別を判定し、判別した色毎に有効画素データ
を2値符号化処理する。
According to the above invention, the subject is imaged, image data is output, the background pixel data and the effective pixel data of the imaged image data are determined, and the color type of the determined effective pixel data is determined. The effective pixel data is subjected to a binary encoding process for each discriminated color.

【0012】また、請求項5にかかる発明は、被写体を
撮像して画像データを出力する工程と、撮像した画像デ
ータのうち、背景画素データと有効画素データを判別す
る工程と、判別した有効画素データの色種別を判定する
工程と、判別した色の有効画素データを2値符号化処理
する工程と、2値符号化処理された有効画素データを色
毎に記録媒体に記録する工程とを含むものである。
Further, according to a fifth aspect of the present invention, there is provided a method of imaging a subject and outputting image data, a step of determining background pixel data and valid pixel data in the captured image data, Determining a color type of the data; performing a binary encoding process on the valid pixel data of the determined color; and recording the valid pixel data subjected to the binary encoding process on a recording medium for each color. It is a thing.

【0013】上記発明によれば、被写体を撮像して画像
データを出力し、撮像した画像データのうち、背景画素
データと有効画素データを判別し、判別した有効画素デ
ータの色種別を判定し、判別した色の有効画素データを
2値符号化処理し、2値符号化処理された有効画素デー
タを色毎に記録媒体に記録する。
According to the above invention, the subject is imaged, image data is output, the background pixel data and the effective pixel data are determined from the captured image data, and the color type of the determined effective pixel data is determined. The valid pixel data of the determined color is subjected to binary coding processing, and the valid pixel data subjected to the binary coding processing is recorded on a recording medium for each color.

【0014】また、請求項6にかかる発明は、被写体を
撮像して画像データを出力する工程と、撮像した画像デ
ータのうち、背景画素データと有効画素データを判別す
る工程と、判別した有効画素データの色種別を判定する
工程と、判別した色の有効画素データを2値符号化処理
する工程と、2値符号化処理された画像データを色毎に
記録媒体に記録する工程と、記録媒体に記録されている
2値符号化処理された画像データを復号化する工程と、
復号した画像データに応じた画像を表示手段に表示する
工程と、表示手段で表示された画像の少なくとも一部の
領域を指定する工程と、指定された領域内の画像の色を
指定する工程と、指定された領域内の画像を指定された
色に置換する工程とを含むものである。
According to a sixth aspect of the present invention, there is provided a method of imaging a subject and outputting image data, a step of determining background pixel data and valid pixel data in the captured image data, Determining a color type of the data, performing a binary encoding process on the effective pixel data of the determined color, recording the binary-coded image data on a recording medium for each color, Decoding the binary encoded image data recorded in the
A step of displaying an image corresponding to the decoded image data on the display means, a step of specifying at least a partial area of the image displayed by the display means, and a step of specifying the color of the image in the specified area Replacing the image in the designated area with the designated color.

【0015】上記発明によれば、被写体を撮像して画像
データを出力し、撮像した画像データのうち、背景画素
データと有効画素データを判別し、判別した有効画素デ
ータの色種別を判定し、判別した色の有効画素データを
2値符号化処理し、2値符号化処理された画像データを
色毎に記録媒体に記録し、記録媒体に記録されている2
値符号化処理された画像データを復号化し、復号した画
像データに応じた画像を表示手段に表示し、表示手段で
表示された画像の少なくとも一部の領域を指定し、指定
された領域内の画像の色を指定し、指定された領域内の
画像を指定された色に置換する。
According to the above invention, an image of a subject is picked up, image data is output, background pixel data and valid pixel data are discriminated from the picked-up image data, and the color type of the discriminated valid pixel data is discriminated. The effective pixel data of the discriminated color is subjected to a binary encoding process, and the image data subjected to the binary encoding process is recorded on a recording medium for each color.
Decodes the value-encoded image data, displays an image corresponding to the decoded image data on a display unit, specifies at least a partial area of the image displayed on the display unit, Specifies the color of the image and replaces the image in the specified area with the specified color.

【0016】また、請求項7にかかる発明は、請求項4
〜請求項6のいずれか1つにかかる発明の各工程をコン
ピュータで実行するためのプログラムを記録したもので
ある。上記発明によれば、コンピュータにより記録媒体
に格納されたプログラムを実行することにより、請求項
4〜請求項6のいずれか1つにかかる発明の各工程を実
現する。
The invention according to claim 7 is based on claim 4.
A program for executing each step of the invention according to any one of claims to 6 by a computer is recorded. According to the above invention, each step of the invention according to any one of claims 4 to 6 is realized by executing a program stored in a recording medium by a computer.

【0017】[0017]

【発明の実施の形態】以下に添付図面を参照して、この
発明にかかる画像入力装置および画像記録方法を適用し
たデジタルカメラの好適な実施の形態を詳細に説明す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of a digital camera to which an image input device and an image recording method according to the present invention are applied will be described below in detail with reference to the accompanying drawings.

【0018】図1はこの発明にかかるデジタルカメラの
一実施の形態を示すブロック図である。図1に示すデジ
タルカメラは、レンズ1、オートフォーカスを含むメカ
機構2、CCD3、CDS回路4、A/D変換器5、デ
ジタル信号処理部6、圧縮/伸張部7、DRAM8、メ
モリカード9、LCD10、ドライバ11、SG12、
CPU13、キー操作部14A、タッチパネル操作部1
4B、ストロボ15、マイク16、AMP/FILTE
R17、D/A変換器18、音声データ圧縮/伸張部1
9、A/D変換器20、AMP/FILTER21、お
よびOSD22等により構成されている。
FIG. 1 is a block diagram showing one embodiment of a digital camera according to the present invention. The digital camera shown in FIG. 1 includes a lens 1, a mechanical mechanism 2 including an autofocus, a CCD 3, a CDS circuit 4, an A / D converter 5, a digital signal processing unit 6, a compression / expansion unit 7, a DRAM 8, a memory card 9, LCD 10, driver 11, SG12,
CPU 13, key operation unit 14A, touch panel operation unit 1
4B, strobe 15, microphone 16, AMP / FILTE
R17, D / A converter 18, audio data compression / expansion unit 1
9, an A / D converter 20, an AMP / FILTER 21, an OSD 22, and the like.

【0019】レンズユニットは、レンズ1、オートフォ
ーカス(AF)・絞り・フィルター部を含むメカ機構2
等からなり、メカ構2のメカニカルシャッターは2つの
フィールドの同時露光を行う。CCD(電荷結合素子)
3は、レンズユニットを介して入力した被写体像を電気
信号(アナログ画像データ)に変換する。CDS(相関
2重サンプリング)回路4は、CCD型撮像素子に対す
る低雑音化のための回路である。また、A/D変換器5
は、CDS回路4を介してCCD3から入力したアナロ
グ画像データをデジタル画像データに変換する。すなわ
ち、CCD3の出力信号は、CDS回路4を通じて、A
/D変換器5で最適なサンプリング周波数(例えば、N
TSC信号のサブキャリア周波数の整数倍)にてデジタ
ル信号に変換される。
The lens unit includes a lens 1, a mechanical mechanism 2 including an autofocus (AF), an aperture, and a filter unit.
The mechanical shutter of the mechanical structure 2 performs simultaneous exposure of two fields. CCD (charge coupled device)
Reference numeral 3 converts the subject image input via the lens unit into an electric signal (analog image data). The CDS (correlated double sampling) circuit 4 is a circuit for reducing noise in the CCD type image pickup device. A / D converter 5
Converts analog image data input from the CCD 3 through the CDS circuit 4 into digital image data. That is, the output signal of the CCD 3 is transmitted through the CDS circuit 4 to A
The optimal sampling frequency (for example, N
It is converted into a digital signal at an integer multiple of the subcarrier frequency of the TSC signal).

【0020】また、デジタル信号処理部6は、A/D変
換器5から入力した画像データを補間して、補間した画
像データを色差データと輝度データに分けて(RGB→
YUV変換)、各種処理、補正、及び画像圧縮/伸張の
ためのデータ処理を施す。
The digital signal processing section 6 interpolates the image data input from the A / D converter 5 and divides the interpolated image data into color difference data and luminance data (RGB → RGB).
YUV conversion), various processes, correction, and data processing for image compression / decompression.

【0021】画像圧縮/伸張部7は、2値符号化処理部
と多階調処理部を備えており、入力された画像データの
圧縮処理や入力される圧縮画像データの伸張処理を行
う。2値符号化処理部は、LUT(ルックアップテーブ
ル)を備えており、入力される画像データに対して2値
符号化処理を行い、また、2値符号化処理された圧縮デ
ータを復号化する。また、多階調処理部は、JPEG準
拠の画像圧縮/伸張の一過程である直交変換・逆直交変
換、並びに、JPEG準拠の画像圧縮・伸張の一過程で
あるハフマン符号化・ハフマン複号化等を行う。
The image compression / expansion unit 7 includes a binary encoding processing unit and a multi-tone processing unit, and performs compression processing of input image data and expansion processing of input compressed image data. The binary encoding processing unit includes an LUT (Look Up Table), performs binary encoding on input image data, and decodes compressed data that has been subjected to binary encoding. . The multi-gradation processing unit performs orthogonal transform and inverse orthogonal transform as one process of JPEG-compliant image compression / decompression, and Huffman encoding and Huffman decoding as one process of JPEG-compliant image compression and decompression. And so on.

【0022】マイク16は、電気信号を音声データに変
換する。AMP/FILTER17は、音声データを増
幅するとともに、必要帯域にカットオフする。A/D変
換器18は、入力される音声データを所定帯域の2倍以
上のサンプリング周波数でデジタル音声データに変換す
る。音声データ圧縮/伸張部19はデジタル音声データ
の圧縮・符号化処理/復号処理を行う。D/A変換器2
0はデジタル音声データをアナログ音声データに変換す
る。AMP/FILTER21は、音声データを増幅す
るとともに、必要帯域にカットオフする。
The microphone 16 converts an electric signal into audio data. The AMP / FILTER 17 amplifies the audio data and cuts off the required band. The A / D converter 18 converts the input audio data into digital audio data at a sampling frequency twice or more the predetermined band. The audio data compression / expansion unit 19 performs compression / encoding / decoding of digital audio data. D / A converter 2
0 converts digital audio data into analog audio data. The AMP / FILTER 21 amplifies the audio data and cuts off the required band.

【0023】DRAM8は画像データを一時的に格納す
る。メモリカード9には、圧縮された画像データや圧縮
された音声データが記録される。また、LCD10に
は、メモリカード9に記録されている画像データに応じ
た画像が表示される。また、LCD10には、設定され
ているデジタルカメラの状態、例えば、設定されている
モード表示やエラー表示等が行われる。さらに、LCD
10には、モード選択、機能選択、撮影指示、及びその
他の各種設定を行うためのキー等が表示される。
The DRAM 8 temporarily stores image data. The memory card 9 records compressed image data and compressed audio data. The LCD 10 displays an image corresponding to the image data recorded on the memory card 9. The LCD 10 displays a set digital camera state, for example, a set mode display or an error display. In addition, LCD
Reference numeral 10 denotes keys for performing mode selection, function selection, shooting instructions, and other various settings.

【0024】キー操作部14Aは、モード選択、機能選
択、撮影指示、及びその他の各種設定を外部から行うた
めのボタンを備えている。タッチパネル操作部14B
は、LCD10上に設けられたタッチパネル上で、LC
D10に表示されるモード選択、機能選択、撮影指示、
及びその他の各種設定を行うためのキーを選択して、選
択したキー内容に応じた操作指示をCPU13に与え
る。
The key operation section 14A has buttons for externally performing mode selection, function selection, shooting instructions, and other various settings. Touch panel operation unit 14B
Indicates LC on a touch panel provided on the LCD 10.
Mode selection, function selection, shooting instruction displayed on D10,
Then, a key for performing various other settings is selected, and an operation instruction corresponding to the selected key content is given to the CPU 13.

【0025】CPU13は、キー操作部14Bおよびタ
ッチパネル操作部14Bからの指示、若しくは図示しな
いリモコン等の外部動作指示に応じて、図示しないRO
Mに格納された制御プログラムに従って、デジタルカメ
ラの各部の動作を制御する。例えば、CPU13は、メ
モリカード9への画像データや音声データの記録動作の
制御、メモリカード9に記録されている画像データファ
イルや音声データファイルの再生動作の制御等を行う。
The CPU 13 responds to an instruction from the key operation unit 14B and the touch panel operation unit 14B or an external operation instruction such as a remote control (not shown) in response to an RO (not shown).
The operation of each part of the digital camera is controlled according to the control program stored in M. For example, the CPU 13 controls the recording operation of the image data and the audio data on the memory card 9 and controls the reproduction operation of the image data file and the audio data file recorded on the memory card 9.

【0026】上述したCPU13は、被写体の画像を撮
影して多階調画像をメモリカード9に記録する自然画撮
影モードと、被写体の画像を撮影して2値画像をメモリ
カード9に記録する文字撮影モードと、音声をメモリカ
ード9に記録する音声撮影モードと、メモリカード9に
記録された画像をLCD10に再生する画像再生モード
と、メモリカード9に記録された音声データを再生する
音声再生モード等を備えている。
The above-mentioned CPU 13 is a natural image photographing mode for photographing an image of a subject and recording a multi-tone image on the memory card 9, and a character photographing mode for photographing an image of the subject and recording a binary image on the memory card 9. A photographing mode, a sound photographing mode for recording sound on the memory card 9, an image reproducing mode for reproducing an image recorded on the memory card 9 on the LCD 10, and a sound reproducing mode for reproducing sound data recorded on the memory card 9. Etc. are provided.

【0027】図2は上記CCD3の画素配列の一例を示
す図である。同図は、画素配列がベイヤ配列の場合を示
している。上述したように、デジタル信号処理部6は、
各画素R,G,Bの補間を行う。ここで各画素の補間方
法を説明する。G画素については、上下左右のG画素の
データを使用して欠落G画素の補間を行う。図3は、G
画素の補間を説明するための図である。同図において、
画素Gi+1,jが欠落している場合には、Gi+1,j=(G
i+1,j-1+Gi,j+Gi+2,j+Gi+1,j+1)/4によ
り、画素Gi+1,jのデータを算出する。
FIG. 2 is a diagram showing an example of the pixel arrangement of the CCD 3. As shown in FIG. This figure shows a case where the pixel array is a Bayer array. As described above, the digital signal processing unit 6
The interpolation of each pixel R, G, B is performed. Here, an interpolation method for each pixel will be described. For G pixels, interpolation of missing G pixels is performed using the data of G pixels at the top, bottom, left and right. FIG.
FIG. 4 is a diagram for explaining pixel interpolation. In the figure,
If the pixel Gi + 1, j is missing, Gi + 1, j = (G
The data of the pixel Gi + 1, j is calculated from (i + 1, j-1 + Gi, j + Gi + 2, j + Gi + 1, j + 1) / 4.

【0028】図3は、R画素の補間を説明するための図
である。R画素については、上下のR画素のデータを使
用して欠落R画素の補間を行う。同図において、例え
ば、画素Ri+1,jが欠落している場合には、Ri+1,j=
(Ri+1,j-1+Ri+1,j+1)/2により、画素Ri+1,j
のデータを算出する。
FIG. 3 is a diagram for explaining the interpolation of the R pixel. For the R pixel, interpolation of the missing R pixel is performed using the data of the upper and lower R pixels. In the figure, for example, when the pixel Ri + 1, j is missing, Ri + 1, j =
(Ri + 1, j-1 + Ri + 1, j + 1) / 2, the pixel Ri + 1, j
Is calculated.

【0029】図4は、B画素の補間を説明するための図
である。B画素については、左右のB画素のデータを使
用して欠落B画素の補間を行う。同図において、例え
ば、画素Bi+1,jが欠落している場合には、Bi,j=
(Bi,j-1+Bi,j+1)/2により、画素Bi,jのデー
タを算出する。
FIG. 4 is a diagram for explaining interpolation of B pixels. For B pixels, interpolation of missing B pixels is performed using the data of the left and right B pixels. In the figure, for example, when a pixel Bi + 1, j is missing, Bi, j =
The data of the pixel Bi, j is calculated by (Bi, j-1 + Bi, j + 1) / 2.

【0030】次に、図1のデジタルカメラの画像データ
の記録動作を説明する。まず、自然画撮影モードでの記
録動作を説明する。キー操作部14Aで、自然画撮影モ
ードが選択されて、レリーズキーが押下されると、レン
ズ1を介した被写体像は、CCD3で電気信号(アナロ
グ画像データ)に変換された後、CDS4を経て、A/
D変換器5に入力されアナログ画像データがデジタル画
像データに変換される。変換されたデジタル画像データ
は、デジタル信号処理部6で信号処理(補間やY−UV
変換等)されて、CPUバスを介してDRAM8に格納
される。DRAM8に格納されたデジタル画像データ
は、CPUバスを介して圧縮/伸張部7の多階調圧縮処
理部に入力され、多階調圧縮処理されて、再び、DRA
M8に格納される。圧縮処理が終了すると、CPU13
は、DRAM8に格納されている圧縮処理された画像デ
ータを、CPUバスを介してメモリカード9に所定形態
で画像データファイルとして記録する。
Next, the recording operation of the image data of the digital camera shown in FIG. 1 will be described. First, the recording operation in the natural image shooting mode will be described. When the natural image shooting mode is selected by the key operation unit 14A and the release key is pressed, the subject image via the lens 1 is converted into an electric signal (analog image data) by the CCD 3 and then passed through the CDS 4 , A /
The analog image data input to the D converter 5 is converted into digital image data. The converted digital image data is subjected to signal processing (interpolation, Y-UV
Conversion, etc.) and stored in the DRAM 8 via the CPU bus. The digital image data stored in the DRAM 8 is input to the multi-gradation compression processing section of the compression / expansion section 7 via the CPU bus, subjected to multi-gradation compression processing, and re-input the DRA.
It is stored in M8. When the compression process is completed, the CPU 13
Records the compressed image data stored in the DRAM 8 as an image data file in a predetermined format on the memory card 9 via the CPU bus.

【0031】つづいて、文字撮影モードでの記録動作を
図6〜図9を参照して説明する。図6は文字撮影モード
での記録動作を説明するためのフローチャート、図7は
図6のフローチャートの2値符号化処理を詳細に説明す
るためのフローチャートである。
Next, the recording operation in the character photographing mode will be described with reference to FIGS. FIG. 6 is a flowchart for explaining the recording operation in the character photographing mode, and FIG. 7 is a flowchart for explaining the binary encoding process of the flowchart of FIG. 6 in detail.

【0032】操作部14Aで、文字撮影モードが選択さ
れて(ステップS1)、レリーズキーが押下されると
(ステップS2)、被写体の画像データの取り込みを行
う(ステップS3)。具体的には、レンズ1を介した被
写体像は、CCD3で電気信号(アナログ画像データ)
に変換された後、CDS4を経て、A/D変換器5に入
力されアナログ画像データがデジタル画像データに変換
される。変換されたデジタル画像データは、デジタル信
号処理部6で欠落画素の補間が行われ(ステップS
4)、補間されたデジタル画像データは各色(R、G、
B)毎にDRAM8にフルプレーン展開される。つづい
て、デジタル信号処理部6は、画像データの全画素のY
データを算出する(ステップS5)。具体的には、Yデ
ータは、Yi,j=0.3×Ri,j+0.6×Gi,j+0.
1×Bi,jにより算出される。続いて、圧縮/伸張部7
の2値処理部で2値符号化処理が行われる(ステップS
6)。
When the character photographing mode is selected on the operation unit 14A (step S1) and the release key is pressed (step S2), image data of the subject is captured (step S3). Specifically, the subject image via the lens 1 is converted into an electric signal (analog image data) by the CCD 3.
After that, the analog image data is input to the A / D converter 5 via the CDS 4 and converted into digital image data. In the converted digital image data, interpolation of missing pixels is performed by the digital signal processing unit 6 (step S).
4), the interpolated digital image data is for each color (R, G,
B) Full plane development is performed on the DRAM 8 for each B). Subsequently, the digital signal processing unit 6 determines that the Y
Data is calculated (step S5). Specifically, the Y data is Yi, j = 0.3 × Ri, j + 0.6 × Gi, j + 0.
It is calculated by 1 × Bi, j. Subsequently, the compression / expansion unit 7
Is performed by the binary processing unit (step S)
6).

【0033】具体的には、図7において、圧縮/伸張部
7の2値符号化処理部は、全画素のYデータの平均値×
0.3を閾値として、画像データの各画素のYデータが
閾値以上であるか否かを判定する(ステップS11)。
そして、Yデータが閾値以上である画素を背景画素デー
タ(白データ)として(ステップS12)、ステップS
15に移行する。他方、Yデータが閾値未満である画素
を有効画素データとして(ステップS13)、DRAM
8に展開されたフルプレーンのRGBデータに基づい
て、当該有効画素の色判定を行い(ステップS14)、
ステップS15に移行する。ここでは、色判定として、
BK(黒)、R(赤)、B(青)のいずれであるかを判
定する。通常、文字はBK(黒)、R(赤)、B(青)
で書かれることが多いからである。具体的には、R,
G、Bデータを各8ビット(0〜255値)とした場合
に、図8に示すテーブルを使用して、Rデータが「12
8値」以上、Gデータが「40値」以下、かつBデータ
が「40値」以下の場合には、「R(赤)」と判定し、
Rデータが「40値」以下、Gデータが「40値」以
下、かつBデータが「80値」以上の場合には、「B
(青)」と判定し、さらに、上記以外の場合を「Bk
(黒)」と判定する。
More specifically, in FIG. 7, the binary encoding processing section of the compression / decompression section 7 calculates the average value of the Y data of all the pixels ×
With 0.3 as a threshold, it is determined whether the Y data of each pixel of the image data is equal to or greater than the threshold (step S11).
Then, a pixel whose Y data is equal to or larger than the threshold value is set as background pixel data (white data) (Step S12), and Step S12 is performed.
Move to 15. On the other hand, a pixel whose Y data is smaller than the threshold value is set as effective pixel data (step S13),
8 based on the RGB data of the full plane developed in step 8, the color of the effective pixel is determined (step S 14).
Move to step S15. Here, as the color judgment,
It is determined which of BK (black), R (red) and B (blue). Normally, characters are BK (black), R (red), B (blue)
Because it is often written in. Specifically, R,
When the G data and the B data are each 8 bits (0 to 255 values), the R data is “12” using the table shown in FIG.
If the G data is not less than “40 values” and the B data is not more than “40 values”, the judgment is “R (red)”,
When the R data is equal to or less than “40 value”, the G data is equal to or less than “40 value”, and the B data is equal to or more than “80 value”,
(Blue) ", and in cases other than the above," Bk
(Black). "

【0034】ステップS15では、圧縮/伸張部7の2
値符号化処理部は、図9に示すLUT(ルックアップテ
ーブル)に従い、画素データを、背景(白)は「0」、
黒は「1」、赤は「2」、青は「3」に置換して色2値
化処理を行う。上記処理が全画素が終了するまで繰り返
し実行される(ステップS11〜ステップS16)。
In step S15, the compression / decompression unit 7-2
According to the LUT (look-up table) shown in FIG. 9, the value encoding processing unit converts the pixel data into a background (white) of “0”,
Black is replaced by “1”, red is replaced by “2”, and blue is replaced by “3”, and color binarization processing is performed. The above process is repeatedly executed until all pixels are completed (steps S11 to S16).

【0035】ステップS17では、色2値化処理された
画像データは、圧縮/伸張部7により各色毎に色の有り
無しがランレングス符号化処理され、再び、DRAM8
に格納される。圧縮処理が終了すると、CPU13は、
DRAM8に格納されている圧縮処理された画像データ
を、CPUバスを介してメモリカード9に所定形態で画
像データファイルとして記録する。図10は、文字撮影
モードで記録した画像データファイルのフォーマットの
一例を示している。同図に示すように、各色(Bk、
R、B)毎に2値符号化された圧縮データは各色毎に格
納される。同図に示す画像データファイルは、ヘッダ
と、各圧縮データのデータサイズ、各圧縮データの色情
報、各圧縮データとから構成されている。なお、上述し
たように、各色毎に色の有り無しをランレングス処理す
る代わりに、図9のLUTに従い、白「0」とその他の
出力する色「1」、「2」、「3」をランレングス処理
することにしても良い。
In step S17, the image data subjected to the color binarization processing is subjected to run-length encoding processing for the presence or absence of each color by the compression / decompression unit 7, and again to the DRAM 8
Is stored in When the compression process ends, the CPU 13
The compressed image data stored in the DRAM 8 is recorded as an image data file in a predetermined format on the memory card 9 via the CPU bus. FIG. 10 shows an example of the format of an image data file recorded in the character shooting mode. As shown in the figure, each color (Bk,
The compressed data binary-coded for each of R, B) is stored for each color. The image data file shown in FIG. 3 includes a header, a data size of each compressed data, color information of each compressed data, and each compressed data. As described above, white “0” and other output colors “1”, “2”, and “3” are converted according to the LUT of FIG. Run-length processing may be performed.

【0036】図1のデジタルカメラの画像再生動作を説
明する。まず、自然画撮影モードで撮影された画像デー
タファイルの再生動作を説明する。キー操作部14Aの
操作により画像再生モードが選択され、再生すべきメモ
リカード9の自然画撮影モードで記録された画像データ
ファイルが指定されると、CPU13により、指定され
た画像データファイルの圧縮処理された画像データが読
み出されて、DRAM8に格納される。このDRAM8
に格納された画像データは、CPUバスを介して圧縮/
伸張部7の多階調処理部に入力され、伸張処理されて、
再び、DRAM8に格納される。DRAM8に格納され
た伸張処理された画像データは、CPUバスを介してデ
ジタル信号処理部6に入力され、表示用データに変換さ
れてLCD10に表示される。
An image reproducing operation of the digital camera shown in FIG. 1 will be described. First, the reproduction operation of an image data file photographed in the natural image photographing mode will be described. When the image playback mode is selected by operating the key operation unit 14A and the image data file recorded in the natural image shooting mode of the memory card 9 to be played back is designated, the CPU 13 compresses the designated image data file. The read image data is read and stored in the DRAM 8. This DRAM 8
The image data stored in the CPU is compressed /
The data is input to the multi-gradation processing unit of the expansion unit 7 and expanded,
It is stored in the DRAM 8 again. The decompressed image data stored in the DRAM 8 is input to the digital signal processing unit 6 via the CPU bus, converted into display data, and displayed on the LCD 10.

【0037】つぎに、文字撮影モードで撮影された画像
ファイルの再生動作を図11〜図13を参照して説明す
る。図11は文字撮影モードで撮影された画像ファイル
の再生動作を説明するためのフローチャートである。図
11において、まず、キー操作部14Aの操作により画
像再生モードが選択され、再生すべきメモリカード9の
文字撮影モードで記録された画像データファイルが指定
されると(ステップS21)、CPU13により、指定
された画像データファイルの圧縮処理された画像データ
が読み出されて、DRAM8に格納される。このDRA
M8に格納された画像データは、CPUバスを介して圧
縮/伸張部7の2階調処理部に入力され、伸張処理(復
号化処理)されて(ステップS22)、再び、DRAM
8に格納される。DRAM8に格納された伸張処理され
た画像データは、CPUバスを介してデジタル信号処理
部6に入力され、図12に示すLUTに従って表示用デ
ータ(YUV)に変換される(ステップS23)、図1
2に示すLUTでは、「0(白)」のデータは、Y「2
55」、U「128」、V「128」に変換され、「1
(黒)」のデータは、Y「0」、U「128」、V「1
28」に変換され、「2(赤)」のデータは、Y「17
2」、U「57」、V「255」に変換され、「3
(青)」のデータは、Y「172」、U「255」、V
「102」に変換される。この後、表示用データ(YU
V)がLCD10に表示される(ステップS24)。
Next, the operation of reproducing an image file photographed in the character photographing mode will be described with reference to FIGS. FIG. 11 is a flowchart for explaining a reproducing operation of an image file photographed in the character photographing mode. In FIG. 11, first, the image playback mode is selected by operating the key operation unit 14A, and an image data file recorded in the character shooting mode of the memory card 9 to be played back is designated (step S21). The compressed image data of the specified image data file is read out and stored in the DRAM 8. This DRA
The image data stored in M8 is input to the two-gradation processing unit of the compression / decompression unit 7 via the CPU bus, decompressed (decoded) (step S22), and returned to the DRAM again.
8 is stored. The decompressed image data stored in the DRAM 8 is input to the digital signal processing unit 6 via the CPU bus, and is converted into display data (YUV) according to the LUT shown in FIG. 12 (step S23).
In the LUT shown in FIG. 2, the data of “0 (white)” is Y “2”.
55 ”, U“ 128 ”, V“ 128 ”and“ 1 ”
(Black) ”are Y“ 0 ”, U“ 128 ”, and V“ 1 ”.
28, and the data of “2 (red)” is Y “17”.
2 ”, U“ 57 ”, V“ 255 ”and“ 3 ”
(Blue) ”are Y“ 172 ”, U“ 255 ”, V
Converted to "102". Thereafter, the display data (YU
V) is displayed on the LCD 10 (step S24).

【0038】図13は文字撮影モードで撮影された色2
値画像のLCD10の表示例を示している。文字撮影モ
ードで撮影された画像を色2値画像と称する。図13
(a)に示すように、LCD10には色2値画像が表示
されるとともに、色2値画像を編集するためのキーが表
示される。具体的には、範囲指定を選択するための範囲
指定キー30と、色を選択するための選択キー31(白
を選択するための「白」選択キー31W、黒を選択する
ための「黒」選択キー31Bk、赤を選択するための
「赤」選択キー31R、青を選択するための「青」選択
キー31B)がLCD10の下部に表示される。
FIG. 13 shows a color 2 photographed in the character photographing mode.
3 shows a display example of a value image on the LCD 10. An image photographed in the character photographing mode is called a color binary image. FIG.
As shown in FIG. 1A, a color binary image is displayed on the LCD 10, and keys for editing the color binary image are displayed. Specifically, a range specification key 30 for selecting a range specification, a selection key 31 for selecting a color (a “white” selection key 31W for selecting white, and a “black” key for selecting black) A selection key 31Bk, a “red” selection key 31R for selecting red, and a “blue” selection key 31B for selecting blue are displayed below the LCD 10.

【0039】そして、ユーザーにより、タッチペンでL
CD10上の範囲指定キー30が選択され、さらに、画
像の領域(矩形領域)が指定される(ステップS2
5)。図13(b)に示す例では、A点とB点が指定さ
れて黒画像を囲む矩形の領域REが指定されている。
Then, when the user presses L with a touch pen,
The range designation key 30 on the CD 10 is selected, and furthermore, an image area (rectangular area) is designated (step S2).
5). In the example shown in FIG. 13B, points A and B are specified, and a rectangular area RE surrounding the black image is specified.

【0040】つづいて、ユーザーにより、タッチペンで
LCD10上の色選択SW31で色が選択される(ステ
ップS26)。図13(b)に示す例では、「赤」選択
キー30Rが選択されている。データ信号処理部6は、
DRAM8上で、指定された領域内の有効画像データを
図12に示すLUTに従って、色選択キー31で選択さ
れた色のデータに置換し、置換したデータを表示用デー
タに変換してLCD10の表示を変更する(ステップS
27)。図13(b)に示す例では、図12に示すLU
Tに従って、DRAM8上の指定された領域内の画像
(有効画素データ(黒「1」データ))が、赤「2」の
データに置換され、置換された赤のデータが表示用デー
タ(YUV)に変更されて、図13(c)に示すよう
に、指定された領域RE内の黒画像が赤画像に変更され
る。
Subsequently, a color is selected by the user using the touch pen with the color selection SW 31 on the LCD 10 (step S26). In the example shown in FIG. 13B, the “red” selection key 30R is selected. The data signal processing unit 6
On the DRAM 8, the effective image data in the designated area is replaced with the data of the color selected by the color selection key 31 according to the LUT shown in FIG. 12, and the replaced data is converted into display data and displayed on the LCD 10. (Step S
27). In the example shown in FIG. 13B, the LU shown in FIG.
In accordance with T, the image (effective pixel data (black “1” data)) in the designated area on the DRAM 8 is replaced with red “2” data, and the replaced red data is used as display data (YUV). And the black image in the designated area RE is changed to a red image as shown in FIG.

【0041】以上説明したように、本実施の形態によれ
ば、文字撮影モードでは、2値符号化処理部は、撮像し
た画像データのうち背景画素データと有効画素データを
判別し、有効画素データの色種別を判定した後、判別し
た色毎に有効画素データを2値符号化処理することとし
たので、複数色の文字を高画質に記録することが可能に
なる。また、文字撮影モードでは、2値符号化処理され
た画像データを色毎にメモリカード9に格納することと
したので、特定色の変更や削除が容易となる。
As described above, according to the present embodiment, in the character photographing mode, the binary encoding processing unit determines the background pixel data and the valid pixel data in the captured image data, and After the color type is determined, the effective pixel data is subjected to the binary encoding process for each of the determined colors, so that characters of a plurality of colors can be recorded with high image quality. Further, in the character photographing mode, the image data subjected to the binary encoding processing is stored in the memory card 9 for each color, so that a specific color can be easily changed or deleted.

【0042】さらに、文字撮影モードで撮影された画像
を再生する場合には、2値符号化処理部は、値符号化処
理された画像データを復号化し、LCD10に復号化さ
れた画像データに応じた画像を表示し、タッチパネル上
で表示された画像の少なくとも一部の領域を指定され、
さらに、指定された領域内の画像の色が指定されると、
データ信号処理部4は、指定された領域内の画像を指定
された色のデータに置換することとしたので、文字の色
の編集を行うことができ、操作者の使い勝手が良くな
る。
Further, when reproducing an image photographed in the character photographing mode, the binary encoding processing section decodes the value-encoded image data, and outputs the decoded image data to the LCD 10 according to the decoded image data. Displaying the image, and at least a part of the area of the image displayed on the touch panel is designated,
Furthermore, when the color of the image in the specified area is specified,
Since the data signal processing unit 4 replaces the image in the designated area with the data of the designated color, the color of the character can be edited, and the convenience of the operator is improved.

【0043】上述の実施の形態のデジタルカメラの画像
記録方法は、予め容易されたプログラムをパーソナルコ
ンピュータや、ワークステーション等のコンピュータで
実行することにしても良い。このプログラムは、ハード
ディスク、フロッピー(登録商標)ディスク、CD−R
OM、MO、DVD等のコンピュータが読取可能な記録
媒体から読み出されることによって実行される。また、
このプログラムは、上記記録媒体を介して、また伝送媒
体として、インターネット等のネットワークを介して配
布することができる。
In the image recording method of the digital camera according to the above-described embodiment, the program facilitated in advance may be executed by a computer such as a personal computer or a workstation. This program includes hard disk, floppy (registered trademark) disk, CD-R
It is executed by being read from a computer-readable recording medium such as OM, MO, and DVD. Also,
This program can be distributed via the recording medium and as a transmission medium via a network such as the Internet.

【0044】なお、本発明は、上記した実施の形態に限
定されるものではなく、発明の要旨を変更しない範囲
で、適宜変形して実施可能である。例えば、上記した実
施の形態では、文字撮影モードにおいて二値化する場合
の色を黒、赤、青としているが、本発明はこれに限られ
るものではない。
It should be noted that the present invention is not limited to the above-described embodiment, and can be implemented with appropriate modifications without departing from the spirit of the invention. For example, in the above-described embodiment, the colors for binarization in the character shooting mode are black, red, and blue, but the present invention is not limited to this.

【0045】[0045]

【発明の効果】以上説明したように、請求項1にかかる
画像入力装置によれば、撮像手段は被写体を撮像して画
像データを出力し、判別手段は撮像した画像データのう
ち、背景画素データと有効画素データを判別し、色種別
判別手段は判別された有効画素データの色種別を判定
し、データ圧縮手段は判別した色の有効画素データを2
値符号化処理することとしたので、複数色の文字を高画
質に記録することが可能になる。
As described above, according to the image input apparatus of the first aspect, the image pickup means picks up the object and outputs image data, and the discriminating means outputs the background pixel data of the picked-up image data. And the valid pixel data, the color type determining means determines the color type of the determined valid pixel data, and the data compressing means determines the valid pixel data of the determined color as 2
Since the value encoding process is performed, characters of a plurality of colors can be recorded with high image quality.

【0046】また、請求項2にかかる画像入力装置によ
れば、請求項1にかかる画像入力装置において、記録制
御手段は2値符号化処理された画像データを色毎に記録
媒体に記録することとしたので、請求項1にかかる発明
の効果に加えて、画像の特定色の変更や削除が容易とな
る。
According to the image input apparatus of the present invention, in the image input apparatus of the first aspect, the recording control means records the image data subjected to the binary encoding processing on a recording medium for each color. Therefore, in addition to the effect of the invention according to claim 1, it becomes easy to change or delete a specific color of an image.

【0047】また、請求項3にかかる画像入力装置によ
れば、請求項1または請求項2にかかる画像入力装置に
おいて、復号化手段はデータ圧縮手段で2値符号化処理
された画像データを復号化し、表示手段は復号化された
画像データに応じた画像を表示し、領域指定手段は表示
手段で表示された画像の少なくとも一部の領域を指定
し、色指定手段は領域指定手段で指定された領域内の画
像の色を指定し、置換手段は領域指定手段で指定された
領域内の画像を色指定手段で指定された色のデータに置
換することとしたので、請求項1または請求項2にかか
る発明の効果に加えて、文字の色の編集を行うことがで
き、操作者の使い勝手が良くなる。
According to the image input device of the third aspect, in the image input device of the first or second aspect, the decoding means decodes the image data which has been subjected to the binary encoding processing by the data compression means. The display means displays an image corresponding to the decoded image data, the area specifying means specifies at least a part of the image displayed by the display means, and the color specifying means is specified by the area specifying means. The color of the image in the specified area is specified, and the replacing means replaces the image in the area specified by the area specifying means with data of the color specified by the color specifying means. In addition to the effects of the invention according to the second aspect, the color of the character can be edited, and the usability of the operator is improved.

【0048】また、請求項4にかかる画像記録方法によ
れば、被写体を撮像して画像データを出力し、撮像した
画像データのうち、背景画素データと有効画素データを
判別し、判別した有効画素データの色種別を判定し、判
別した色の有効画素データを2値符号化処理することと
したので、複数色の文字を高画質に記録することが可能
になる。
According to the image recording method of the present invention, an image of a subject is picked up and image data is output, and of the picked-up image data, the background pixel data and the effective pixel data are discriminated, and the discriminated effective pixel is discriminated. Since the color type of the data is determined and the effective pixel data of the determined color is subjected to the binary encoding process, characters of a plurality of colors can be recorded with high image quality.

【0049】また、請求項5にかかる画像記録方法によ
れば、被写体を撮像して画像データを出力し、撮像した
画像データのうち、背景画素データと有効画素データを
判別し、判別した有効画素データの色種別を判定し、判
別した色の有効画素データを2値符号化処理し、2値符
号化処理された有効画素データを色毎に記録媒体に記録
することとしたので、複数色の文字を高画質に記録する
ことができ、また、画像の特定色の変更や削除が容易と
なる。
According to the image recording method of the present invention, an image of a subject is taken and image data is output, and of the taken image data, background pixel data and valid pixel data are discriminated, and the discriminated effective pixel is determined. Since the color type of the data is determined, the effective pixel data of the determined color is subjected to binary coding, and the effective pixel data subjected to the binary coding is recorded on a recording medium for each color. Characters can be recorded with high image quality, and a specific color of an image can be easily changed or deleted.

【0050】また、請求項6にかかる画像記録方法によ
れば、被写体を撮像して画像データを出力し、撮像した
画像データのうち、背景画素データと有効画素データを
判別し、判別した有効画素データの色種別を判定し、判
別した色の有効画素データを2値符号化処理し、2値符
号化処理された画像データを色毎に記録媒体に記録し、
記録媒体に記録されている2値符号化処理された画像デ
ータを復号化し、復号した画像データに応じた画像を表
示手段に表示し、表示手段で表示された画像の少なくと
も一部の領域を指定し、指定された領域内の画像の色を
指定し、指定された領域内の画像を指定された色に置換
することとしたので、複数色の文字を高画質に記録する
ことができ、また、画像の特定色の変更・削除・編集が
容易となる。
Further, according to the image recording method of the present invention, an image of a subject is picked up, image data is output, and background pixel data and effective pixel data are discriminated from the picked-up image data. The color type of the data is determined, the effective pixel data of the determined color is subjected to a binary encoding process, and the image data subjected to the binary encoding process is recorded on a recording medium for each color;
Decoding the binary encoded image data recorded on the recording medium, displaying an image corresponding to the decoded image data on a display unit, and designating at least a partial area of the image displayed on the display unit However, since the color of the image in the specified area is specified and the image in the specified area is replaced with the specified color, characters of a plurality of colors can be recorded with high image quality. This makes it easy to change / delete / edit a specific color of an image.

【0051】また、請求項7にかかる記録媒体によれ
ば、この記録媒体に格納されたプログラムをコンピュー
タにより実行することにより、複数色の文字を高画質に
記録することが可能になる。
According to the recording medium of the present invention, by executing the program stored in the recording medium by a computer, it becomes possible to record a plurality of color characters with high image quality.

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

【図1】この発明に係るデジタルカメラの一実施の形態
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a digital camera according to the present invention.

【図2】図1のCCDの画素配列の一例を示す図であ
る。
FIG. 2 is a diagram illustrating an example of a pixel array of the CCD in FIG. 1;

【図3】G画素の補間を説明するための図である。FIG. 3 is a diagram for explaining interpolation of G pixels.

【図4】R画素の補間を説明するための図である。FIG. 4 is a diagram for explaining interpolation of R pixels.

【図5】B画素の補間を説明するための図である。FIG. 5 is a diagram for explaining interpolation of a B pixel.

【図6】文字撮影モードでの記録動作を説明するための
フローチャートである。
FIG. 6 is a flowchart illustrating a recording operation in a character photographing mode.

【図7】図6のフローチャートの2値符号化処理を詳細
に説明するためのフローチャートである。
FIG. 7 is a flowchart for explaining the binary encoding process of the flowchart of FIG. 6 in detail;

【図8】2値符号化処理部で色判定を行うためのテーブ
ルの一例を示す図である。
FIG. 8 is a diagram illustrating an example of a table for performing color determination in a binary encoding processing unit.

【図9】2値符号化処理部のLUTの一例を示す図であ
る。
FIG. 9 is a diagram illustrating an example of an LUT of a binary encoding processing unit.

【図10】文字撮影モードで記録した画像ファイルのフ
ォーマットの一例を示す図である。
FIG. 10 is a diagram illustrating an example of a format of an image file recorded in a character photographing mode.

【図11】文字撮影モードで撮影された画像ファイルの
再生動作を説明するためのフローチャートである。
FIG. 11 is a flowchart for explaining an operation of reproducing an image file photographed in the character photographing mode.

【図12】データ信号処理部のLUTの一例を示す図で
ある。
FIG. 12 is a diagram illustrating an example of an LUT of a data signal processing unit.

【図13】文字撮影モードで撮影された色2値画像のL
CDの表示例を示す図である。
FIG. 13 shows L of a color binary image photographed in the character photographing mode.
It is a figure showing the example of a display of CD.

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

1 レンズ 2 メカ機構 3 CCD 4 CDS回路 5 A/D変換器 6 デジタル信号処理部 7 圧縮/伸張部 8 DRAM 9 メモリカード 10 LCD 11 ドライバ 12 SG 13 CPU 14A キー操作部 14B タッチパネル操作部 15 ストロボ 16 マイク 17 AMP/FILTER 18 D/A変換器 19 音声データ圧縮/伸張部 20 A/D変換器 21 AMP/FILTER 22 OSD Reference Signs List 1 lens 2 mechanical mechanism 3 CCD 4 CDS circuit 5 A / D converter 6 digital signal processing unit 7 compression / expansion unit 8 DRAM 9 memory card 10 LCD 11 driver 12 SG 13 CPU 14A key operation unit 14B touch panel operation unit 15 strobe 16 Microphone 17 AMP / FILTER 18 D / A converter 19 Audio data compression / expansion unit 20 A / D converter 21 AMP / FILTER 22 OSD

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 文字を撮影するための文字撮影モードを
備えたデジタルカメラにおいて、 被写体を撮像して画像データを出力する撮像手段と、 撮像した画像データのうち、背景画素データと有効画素
データを判別する判別手段と、 前記判別手段で判別された有効画素データの色種別を判
定する色種別判定手段と、 判定した色の有効画素データを2値符号化処理するデー
タ圧縮手段と、 を備えたことを特徴とする画像入力装置。
1. A digital camera provided with a character photographing mode for photographing characters, an image pickup means for picking up an image of a subject and outputting image data, and, among the imaged image data, background pixel data and effective pixel data. Determining means for determining, a color type determining means for determining a color type of the effective pixel data determined by the determining means, and a data compression means for performing a binary encoding process on the valid pixel data of the determined color. An image input device, characterized in that:
【請求項2】 さらに、前記2値符号化処理された画像
データを色毎に記録媒体に記録する記録制御手段を備え
たことを特徴とする請求項1に記載の画像入力装置。
2. The image input device according to claim 1, further comprising a recording control unit that records the binary-coded image data on a recording medium for each color.
【請求項3】 さらに、前記データ圧縮手段で2値符号
化処理された画像データを復号化する復号化手段と、 前記復号化された画像データに応じた画像を表示するた
めの表示手段と、 前記表示手段で表示された画像の少なくとも一部の領域
を指定する領域指定手段と、 前記領域指定手段で指定された領域内の画像の色を指定
する色指定手段と、 前記領域指定手段で指定された領域内の画像を前記色指
定手段で指定された色のデータに置換する置換手段と、 を備えたことを特徴とする請求項1または請求項2に記
載の画像入力装置。
3. A decoding means for decoding the image data which has been subjected to the binary coding by the data compression means, a display means for displaying an image corresponding to the decoded image data, Area specifying means for specifying at least a partial area of the image displayed by the display means; color specifying means for specifying the color of the image in the area specified by the area specifying means; and specifying by the area specifying means The image input device according to claim 1, further comprising: a replacement unit configured to replace an image in the designated area with data of a color designated by the color designation unit.
【請求項4】 被写体を撮像して画像データを出力する
工程と、 撮像した画像データのうち、背景画素データと有効画素
データを判別する工程と、 判別した有効画素データの色種別を判定する工程と、 判定した色の有効画素データを2値符号化処理する工程
と、 を含むことを特徴とする画像記録方法。
4. A step of capturing an object and outputting image data, a step of determining background pixel data and valid pixel data in the captured image data, and a step of determining a color type of the determined valid pixel data And a step of performing a binary encoding process on the effective pixel data of the determined color.
【請求項5】 被写体を撮像して画像データを出力する
工程と、 撮像した画像データのうち、背景画素データと有効画素
データを判別する工程と、 判別した有効画素データの色種別を判定する工程と、 判定した色の有効画素データを2値符号化処理する工程
と、 2値符号化処理された有効画素データを色毎に記録媒体
に記録する工程と、 を含むことを特徴とする画像記録方法。
5. A step of capturing a subject and outputting image data; a step of determining background pixel data and valid pixel data in the captured image data; and a step of determining a color type of the determined valid pixel data. An image recording process comprising: binary coding the effective pixel data of the determined color; and recording the effective pixel data subjected to the binary coding on a recording medium for each color. Method.
【請求項6】 被写体を撮像して画像データを出力する
工程と、 撮像した画像データのうち、背景画素データと有効画素
データを判別する工程と、 判別した有効画素データの色種別を判定する工程と、 判定した色の有効画素データを2値符号化処理する工程
と、 2値符号化処理された画像データを色毎に記録媒体に記
録する工程と、 記録媒体に記録されている2値符号化処理された画像デ
ータを復号化する工程と、 復号した画像データに応じた画像を表示手段に表示する
工程と、 表示手段で表示された画像の少なくとも一部の領域を指
定する工程と、 指定された領域内の画像の色を指定する工程と、 指定された領域内の画像を指定された色に置換する工程
と、 を含むことを特徴とする画像記録方法。
6. A step of capturing an object and outputting image data, a step of determining background pixel data and valid pixel data in the captured image data, and a step of determining a color type of the determined valid pixel data A step of performing a binary encoding process on the effective pixel data of the determined color; a step of recording the binary encoded image data on a recording medium for each color; and a binary code recorded on the recording medium. Decoding the decoded image data; displaying an image corresponding to the decoded image data on a display unit; specifying at least a partial area of the image displayed on the display unit; An image recording method, comprising: specifying a color of an image in a specified area; and replacing an image in the specified area with the specified color.
【請求項7】 請求項4〜請求項6のいずれか1つにか
かる発明の各工程をコンピュータで実行するためのプロ
グラムを記録したことを特徴とするコンピュータが読取
可能な記録媒体。
7. A computer-readable recording medium on which is recorded a program for executing the steps of the invention according to any one of claims 4 to 6 on a computer.
JP2000179075A 2000-06-14 2000-06-14 Image input device, image recording method, and computer-readable recording medium for storing program to perform the method Pending JP2001358983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000179075A JP2001358983A (en) 2000-06-14 2000-06-14 Image input device, image recording method, and computer-readable recording medium for storing program to perform the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000179075A JP2001358983A (en) 2000-06-14 2000-06-14 Image input device, image recording method, and computer-readable recording medium for storing program to perform the method

Publications (1)

Publication Number Publication Date
JP2001358983A true JP2001358983A (en) 2001-12-26

Family

ID=18680402

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000179075A Pending JP2001358983A (en) 2000-06-14 2000-06-14 Image input device, image recording method, and computer-readable recording medium for storing program to perform the method

Country Status (1)

Country Link
JP (1) JP2001358983A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008011289A (en) * 2006-06-30 2008-01-17 Sanyo Electric Co Ltd Digital camera
JP2008172610A (en) * 2007-01-12 2008-07-24 Canon Inc Imaging unit, imaging processing method, and computer program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008011289A (en) * 2006-06-30 2008-01-17 Sanyo Electric Co Ltd Digital camera
JP4703498B2 (en) * 2006-06-30 2011-06-15 三洋電機株式会社 Digital camera
JP2008172610A (en) * 2007-01-12 2008-07-24 Canon Inc Imaging unit, imaging processing method, and computer program
US8094205B2 (en) 2007-01-12 2012-01-10 Canon Kabushiki Kaisha Imaging apparatus, image processing method and computer program for smoothing dynamic range of luminance of an image signal, color conversion process
US8957991B2 (en) 2007-01-12 2015-02-17 Canon Kabushiki Kaisha Imaging apparatus, image processing method and computer program for smoothing dynamic range of luminance of an image signal, color conversion process

Similar Documents

Publication Publication Date Title
KR100722711B1 (en) Imaging device and signal processing method
US8350920B2 (en) Image capturing apparatus, image capturing method, image processing apparatus, image processing method, and program capable of hiding desired character information and restoring the hidden character information
US9894270B2 (en) Image processing apparatus and image processing method for handling a raw image, of a moving image or a still image
JP6242171B2 (en) Image processing apparatus, image processing method, and program
EP2974265B1 (en) Imaging apparatus and imaging apparatus control method
JP6465613B2 (en) Image processing apparatus, imaging apparatus, control method for image processing apparatus, and computer program
JPH114405A (en) Recording method for image data and digital camera
JP2001358983A (en) Image input device, image recording method, and computer-readable recording medium for storing program to perform the method
JP2010124114A (en) Digital camera and image data processing program
JP4387264B2 (en) Imaging apparatus and image generation method thereof
JP4211764B2 (en) Electronic camera, image recording apparatus, image recording method and program
JP5034717B2 (en) Decoding device and decoding method
JP5916984B2 (en) Image processing apparatus, image processing method, and program
JPH0283578A (en) Device and method for image data display
JP2004282305A (en) Image processing system
JP6242172B2 (en) Image processing apparatus, image processing method, and program
JP4355857B2 (en) Movie recording apparatus, file creation method, and program
JP5093395B2 (en) Decoding device and decoding method
JP2001218065A (en) Device and method for processing digital image signal, device and method for recording digital image and data recording medium
JP2006295411A (en) Camera device
JP2012129892A (en) Imaging apparatus, and control method and program for the same
JPH09147095A (en) Image recorder
JP2004072263A (en) Contour enhancement system for digital camera
JP2006180252A (en) Imaging apparatus, and image processor
JP2012124569A (en) Imaging apparatus, control method, and program