JP2001157039A - Resolution converting method - Google Patents

Resolution converting method

Info

Publication number
JP2001157039A
JP2001157039A JP33815299A JP33815299A JP2001157039A JP 2001157039 A JP2001157039 A JP 2001157039A JP 33815299 A JP33815299 A JP 33815299A JP 33815299 A JP33815299 A JP 33815299A JP 2001157039 A JP2001157039 A JP 2001157039A
Authority
JP
Japan
Prior art keywords
resolution
data
dpi
conversion step
resolution conversion
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
Application number
JP33815299A
Other languages
Japanese (ja)
Inventor
Ryuichi Tsuji
龍一 辻
Hisao Sato
比佐夫 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP33815299A priority Critical patent/JP2001157039A/en
Publication of JP2001157039A publication Critical patent/JP2001157039A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a resolution converting method for reducing loads on hardware and for speedily reducing the resolution of inputted image data. SOLUTION: This resolution converting method is constituted of plural steps comprising a resolution conversion step 8a for reducing the resolution of inputted image data [RGB data (Ri, Gi and Bi)]. The reduction in the resolution for the resolution conversion step 8a is attained through addition and an approximate operation using bit shift and the correction of the approximate operation is performed concurrently in a step subsequent to the resolution conversion step 8a together with the other operation.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ハードウェアに対
する負担を少なくして、迅速に画像データの解像度を低
減することのできる解像度変換方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a resolution conversion method capable of rapidly reducing the resolution of image data while reducing the burden on hardware.

【0002】従来スキャナから入力される画像データ
(RGBデータ)を、解像度変換ステップ(低解像度化
ステップ)、γ変換ステップ、RGB変換ステップ、I
RG変換ステップという各ステップを経て解像度の変換
を行なう解像度変換方法が知られている(図5参照)。
例えば、300dpi×300dpiの解像度で入力さ
れたRGBデータ(Ri,Gi,Bi)を50dpi×
50dpiの解像度のIRGデータ(I,Ro,Go)
に解像度を変換する場合、先ず、図4に示すようにX方
向(主走査線方向)Y方向(副走査線方向)とも6ドッ
ト×6ドットの合計36ドットを、低解像度化ステップ
により低解像度化して1ドットとする。具体的には、奇
数番目のライン(Y方向)のRGBデータを捨てて偶数
番目のラインのRGBデータ(3ライン分の18デー
タ)を加算して、この加算値を18で除すことにより平
均値を求め(図5の数式参照)、この平均値(_R,_
G,_B)を低解像度化後の1ドットのRGBデータの
値とする。以下この低解像度化後の1ドットごとにデー
タを処理する。即ち、低解像度化後のRGBデータは、
γ変換ステップにより色歪みが除かれ、RGB変換ステ
ップによりスキャナの特性が補正され、そして、IRG
変換ステップによりRGBデータがIRGデータ(I,
Ro,Go)に変換される。ここで「I」は輝度(Inte
nsity)である。
Conventionally, image data (RGB data) input from a scanner is converted into a resolution conversion step (resolution reduction step), a γ conversion step, an RGB conversion step,
There is known a resolution conversion method for performing resolution conversion through each step called an RG conversion step (see FIG. 5).
For example, RGB data (Ri, Gi, Bi) input at a resolution of 300 dpi × 300 dpi is converted to 50 dpi ×
50 dpi IRG data (I, Ro, Go)
First, as shown in FIG. 4, in the X direction (main scanning line direction) and the Y direction (sub scanning line direction), as shown in FIG. Into one dot. Specifically, the RGB data of the odd-numbered line (Y direction) is discarded, the RGB data of the even-numbered line (18 data for three lines) is added, and the added value is divided by 18 to obtain an average. A value is obtained (see the formula in FIG. 5) and the average value (_R, _
G, _B) are the values of the RGB data of one dot after the resolution reduction. Hereinafter, data is processed for each dot after the resolution reduction. That is, the RGB data after the resolution reduction is
The color distortion is removed by the γ conversion step, the scanner characteristics are corrected by the RGB conversion step, and the IRG
The RGB data is converted to the IRG data (I,
Ro, Go). Here, "I" is the luminance (Inte
nsity).

【0003】なお、RGB変換及びIRG変換は、それ
ぞれ行列計算により行なわれる(図5の数式参照)。
[0003] The RGB conversion and the IRG conversion are each performed by matrix calculation (see the mathematical formula in Fig. 5).

【0004】このように解像度変換されたデータ(I,
Ro,Bo)は、カラー複写機の紙幣認識システム(紙
幣の複写を防止するためのシステム)などに使用され
る。
[0004] The data (I,
Ro, Bo) are used for a bill recognition system (a system for preventing copying of bills) of a color copying machine.

【0005】[0005]

【発明が解決しようとする課題】ところで、前記した解
像度変換方法では、入力されたRGBデータを低解像度
化するため、加算値を18で除すことにより平均値を求
めることが必要になる。しかし、このような割り算を行
なうのはハードウェアに対する負担が大きく、演算に時
間を要する。殊に演算回数が膨大になると、ハードウェ
アに対する負担も極めて大きくなり処理時間が長くなっ
てしまう。処理時間を短縮するには、高性能なCPUを
使用することが考えられるが、コストアップにつながっ
てしまうため好ましくない。
In the above-described resolution conversion method, it is necessary to obtain an average value by dividing the added value by 18 in order to reduce the resolution of the input RGB data. However, performing such a division imposes a heavy burden on hardware and requires a long time for the operation. In particular, when the number of operations is enormous, the load on the hardware becomes extremely large, and the processing time becomes long. In order to shorten the processing time, it is conceivable to use a high-performance CPU, but this is not preferable because it leads to an increase in cost.

【0006】そこで、本発明は、ハードウェアに対する
負担を少なくして、入力された画像データの解像度を迅
速に低減することのできる解像度変換方法を提供するこ
とを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a resolution conversion method capable of rapidly reducing the resolution of input image data while reducing the burden on hardware.

【0007】[0007]

【課題を解決するための手段】上記の課題を解決するた
め、本発明者らは鋭意努力して本発明を完成するに至っ
た。すなわち、本発明の解像度変換方法は、入力された
画像データの解像度を低解像度化する解像度変換ステッ
プを含む複数のステップからなる。そして、前記解像度
変換ステップにおける低解像度化を、加算とビットシフ
トを用いる近似演算で行なうとともに、この近似演算の
補正を、前記解像度変換ステップよりも後のステップに
おいて他の演算と併せて行なうことを特徴とする。
Means for Solving the Problems In order to solve the above problems, the present inventors have diligently made efforts to complete the present invention. That is, the resolution conversion method of the present invention includes a plurality of steps including a resolution conversion step of lowering the resolution of input image data. Then, the resolution reduction in the resolution conversion step is performed by an approximate operation using addition and bit shift, and the correction of the approximate operation is performed together with other operations in a step subsequent to the resolution conversion step. Features.

【0008】この構成によれば、平均値を加算とビット
シフトを用いる近似演算により求めるため、ハードウェ
アに対する負担が少ない。また、近似演算の補正を後段
のステップにおいて、当該ステップで行なう演算処理と
併せて行なうので、ハードウェアに対する負担を増加さ
せることがない。
According to this configuration, the average value is obtained by an approximation operation using addition and bit shift, so that the burden on hardware is small. In addition, since the correction of the approximation calculation is performed in a subsequent step together with the calculation processing performed in the step, the load on the hardware does not increase.

【0009】また、本発明は、前記解像度変換ステッ
プを含む複数のステップが、前記画像データとして入力
されたRGBデータの解像度を低解像度化する解像度変
換ステップ、前記低解像度化したRGBデータをγ変換
するγ変換ステップ、前記γ変換したRGBデータをR
GB変換するRGB変換ステップ、前記RGB変換した
RGBデータをIRG変換するIRG変換ステップを含
んでなると共に、この解像度変換ステップが、前記入
力されたRGBデータの6ドット×6ドットを1ドット
にまとめることにより解像度を300dpi×300d
piから50dpi×50dpiに低解像度化するステ
ップであり、かつ、この解像度変換ステップが、前記
入力されたRGBデータの6ドット×6ドットのマトリ
ックス中、18ドット分のRGBデータを捨てて、残り
の18ドット分のRGBデータを加算し、この加算値を
18で除して平均値を求めることにより低解像度化する
ものである場合は、次のように演算を行なうことを特徴
とする。
Further, in the present invention, the plurality of steps including the resolution conversion step may include a resolution conversion step of reducing the resolution of the RGB data input as the image data, and a gamma conversion of the reduced resolution RGB data. Converting the γ-converted RGB data to R
An RGB conversion step of performing an RGB conversion, and an IRG conversion step of performing an IRG conversion of the RGB converted RGB data, and the resolution conversion step integrates 6 dots × 6 dots of the input RGB data into one dot. 300dpi x 300d
This is a step of lowering the resolution from 50 dpi to 50 dpi × 50 dpi, and this resolution conversion step discards 18-dot RGB data in the 6-dot × 6-dot matrix of the input RGB data, and In the case where the resolution is to be reduced by adding RGB data for 18 dots and dividing the added value by 18 to obtain an average value, the following operation is performed.

【0010】前記近似演算を、前記解像度変換ステップ
において前記加算値に1/6の近似値である(1+1/
4)/8を乗じ、この解像度変換ステップよりも後のス
テップでさらに1/3を乗じることにより行なう。そし
て、前記近似演算の補正を、前記1/3を乗じる際に併
せて行なう。
In the resolution conversion step, the approximate operation is an approximate value of 1/6 (1 + 1 /
4) Multiplying by / 8 and further multiplying by 3 in a step after this resolution conversion step. Then, the approximation calculation is corrected together with the multiplication by 1/3.

【0011】この構成によれば、加算値を18で除すこ
と、つまり加算値に1/18を乗じることは、加算値に
(1/6)×(1/3)を乗じることにより行なう。前
者の1/6を乗じる演算は、解像度変換ステップ(発明
の実施の形態でいう「低解像度化ステップ」)で行な
う。後者の1/3を乗じる演算は、解像度変換ステップ
よりも後のステップで、当該ステップで行なう演算と併
せて行なう。
According to this configuration, dividing the added value by 18, that is, multiplying the added value by 1/18 is performed by multiplying the added value by (1/6) × (1/3). The calculation of multiplying by 1/6 of the former is performed in the resolution conversion step (the "resolution reduction step" in the embodiment of the present invention). The latter operation of multiplying by 1/3 is performed in a step subsequent to the resolution conversion step, together with the operation performed in this step.

【0012】但し、1/6は、その近似値である(1+
1/4)/8を用いる。この(1+1/4)/8は、1
/6よりも小さい1/6の近似値である。この演算によ
ればビットシフトと加算により演算を行なうことができ
る。ちなみに、1/4は右にビットを2つシフトとする
ことにより演算することができ、1/8は右にビットを
3つシフトすることにより演算することができる。ま
た、1/3を乗じる際には近似演算の補正を併せて行な
い、演算回数を減らす。これによりハードウェアに対す
る負担を少なくすると共に、演算時間の短縮が図られ
る。
However, 1/6 is an approximate value thereof (1+
1/4) / 8 is used. This (1 + 1/4) / 8 is 1
This is an approximate value of 1/6 smaller than / 6. According to this operation, the operation can be performed by bit shift and addition. Incidentally, 1/4 can be operated by shifting two bits to the right, and 1/8 can be operated by shifting three bits to the right. In addition, when multiplying by 1/3, the approximation calculation is also corrected to reduce the number of calculations. This reduces the load on the hardware and shortens the calculation time.

【0013】なお、本発明においては、RGB変換ステ
ップとIRG変換ステップを併せて行なうのが好まし
い。さらに、この際に1/3を乗じる演算及び近似演算
の補正も併せて行なうことが好ましい。つまり、演算回
数を減らすため、1/3を乗じる演算、近似演算の
補正(1/6を乗じる代わりに1/6の近似値を乗じた
ことにより必要となる補正)、RGB変換、IRG
変換の4つの演算を1回の線形変換により行なうのが好
ましい(発明の実施の形態でいう「Afin変換」)。
In the present invention, it is preferable to perform the RGB conversion step and the IRG conversion step together. Further, at this time, it is preferable that the calculation of multiplying by 1/3 and the correction of the approximate calculation are also performed together. That is, in order to reduce the number of times of calculation, calculation of multiplying by 1/3, correction of approximation calculation (correction required by multiplying by an approximate value of 1/6 instead of multiplying by 1/6), RGB conversion, IRG
It is preferable that the four operations of conversion be performed by one linear conversion ("Afin conversion" in the embodiment of the invention).

【0014】このようにすることで、ハードウェアに負
担をかけることなく短時間で演算を行なうことができ
る。
By doing so, the operation can be performed in a short time without putting a burden on the hardware.

【0015】そして、本発明は、前記入力されたRGB
データの解像度が600dpi×600dpiである場
合は、前記RGBデータのX方向及びY方向ともに、そ
れぞれ1個おきにデータを捨てて行き、300dpi×
300dpiの解像度のRGBデータに変換した後に前
記解像度変換ステップを行なうことを特徴とする解像度
変換方法である。
Further, the present invention relates to the input RGB
When the resolution of the data is 600 dpi × 600 dpi, every other data in the X and Y directions of the RGB data is discarded, and 300 dpi ×
A resolution conversion method characterized in that the resolution conversion step is performed after conversion into RGB data having a resolution of 300 dpi.

【0016】これによれば、確実に画像を300dpi
×300dpiに低解像度化することができる。低解像
度化後は、通常の300dpi×300dpiの画像と
して取り扱う。
According to this, the image is reliably converted to 300 dpi.
The resolution can be reduced to × 300 dpi. After the resolution is reduced, the image is handled as a normal 300 dpi × 300 dpi image.

【0017】[0017]

【発明の実施の形態】以下、本発明の実施の形態を、図
面を参照して詳細に説明する。本実施の形態では、カラ
ー複写機の紙幣認識システムに、本発明の解像度変換方
法を適用した場合について説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings. In the present embodiment, a case where the resolution conversion method of the present invention is applied to a bill recognition system of a color copying machine will be described.

【0018】≪紙幣認識システムの構成≫先ず、本発明
の実施の形態に係る解像度変換方法が適用される紙幣認
識システムの構成を説明する(図2参照)。
{Configuration of Banknote Recognition System} First, the configuration of a banknote recognition system to which the resolution conversion method according to the embodiment of the present invention is applied will be described (see FIG. 2).

【0019】図2は、紙幣認識システムの構成並びにカ
ラー複写機の概略構成を示すブロック図であるが、紙幣
認識システム1は、ASIC(Application Specific I
ntegrated Circuit)2、SRAM(Static Random Acc
ess Memory)3、MC(Micro Computer)4及びDRA
M(Dynamic Random Access Memory)5を含んで構成さ
れる。カラー複写機は、これに加えてスキャナSC、ホ
ストコンピュータHC、プリンタPRを備える。
FIG. 2 is a block diagram showing a configuration of a bill recognition system and a schematic configuration of a color copier. The bill recognition system 1 is an ASIC (Application Specific I / O).
integrated circuit) 2, SRAM (Static Random Acc)
ess Memory) 3, MC (Micro Computer) 4 and DRA
An M (Dynamic Random Access Memory) 5 is included. The color copier further includes a scanner SC, a host computer HC, and a printer PR.

【0020】ASIC2には、カラー複写機のスキャナ
SCから読み込んだ画像がRGBデータとして入力され
る。そして、ASIC2は、カラースキャナSCが読み
込んだ画像が紙幣であるか否か(読み込んだ画像に紙幣
が含まれるか否か)を判別し、その情報をカラー複写機
のホストコンピュータHCに送信する。ホストコンピュ
ータHCは、読み込んだ画像が紙幣と判断された場合に
は、複写するのを禁止し、読み込んだ画像が紙幣でない
と判断された場合には、カラープリンタPRで、スキャ
ナSCが読み込んだ画像を出力し、カラー複写を行う。
なお、RGBデータは、各画素の赤(Red)、緑(Gree
n)、青(Blue)のデータであり、その解像度は300
dpi×300dpiであり、R、G、Bの各データは
それぞれ8ビットデータである。なお、解像度及びRG
Bデータは、前記した数値に限定されるものではない。
An image read from the scanner SC of the color copying machine is input to the ASIC 2 as RGB data. Then, the ASIC 2 determines whether or not the image read by the color scanner SC is a banknote (whether or not a banknote is included in the read image) and transmits the information to the host computer HC of the color copying machine. The host computer HC prohibits copying when the read image is determined to be a banknote, and when the read image is determined to be not a banknote, the host computer HC uses the color printer PR to execute the image read by the scanner SC. Is output and color copying is performed.
Note that the RGB data includes red (Red) and green (Green) of each pixel.
n), blue data and its resolution is 300
The resolution is 300 dpi, and each data of R, G, and B is 8-bit data. Note that the resolution and RG
The B data is not limited to the numerical values described above.

【0021】ちなみに、本実施の形態では、X方向(主
走査線方向)はスキャナSCで読み込まれる画像の横方
向、Y方向(副走査線方向)は同縦方向とする。
In this embodiment, the X direction (main scanning line direction) is the horizontal direction of an image read by the scanner SC, and the Y direction (sub scanning line direction) is the same vertical direction.

【0022】ASIC2は、ARBITOR6、PIX
_FIFO(First In First Out)7、解像度変換ユニ
ット(以下「RSU」という)8、RSFE_FIFO
9、特徴抽出ユニット(以下「FEU」という)10、
FEPM_FIFO11、パターンマッチングユニット
(以下「PMU」という)12、PMMC_FIFO1
3、MC用インタフェース(以下「MC_IF」とい
う)14、コントロールユニット(以下「CU」とい
う)15及びROM(Read Only Memory)16などから
構成される。
ASIC2 is ARBITOR6, PIX
_FIFO (First In First Out) 7, resolution conversion unit (hereinafter referred to as “RSU”) 8, RSFE_FIFO
9, a feature extraction unit (hereinafter referred to as "FEU") 10,
FEPM_FIFO 11, pattern matching unit (hereinafter referred to as “PMU”) 12, PMMC_FIFO 1
3, an MC interface (hereinafter, referred to as “MC_IF”) 14, a control unit (hereinafter, referred to as “CU”) 15, a ROM (Read Only Memory) 16, and the like.

【0023】ARBITOR6は、SRAM3とRSU
8、FEU10、PMU12、MC_IF14間のアク
セスを調停する。RSU8、FEU10、PMU12又
はMC_IF14から同時にSRAM3にアクセスがあ
った場合、予め設定された優先順位に従ってアクセスさ
せる。
ARBITOR 6 is composed of SRAM 3 and RSU
8, arbitrate access between the FEU 10, the PMU 12, and the MC_IF 14. When the SRAM 3 is simultaneously accessed from the RSU 8, FEU 10, PMU 12, or MC_IF 14, the access is made in accordance with a preset priority.

【0024】PIX_FIFO7は、スキャナSCから
のRGBデータをRSU8に引き渡すFIFOである。
The PIX_FIFO 7 is a FIFO that transfers RGB data from the scanner SC to the RSU 8.

【0025】RSU8は、スキャナSCからのRGBデ
ータを解像度変換、γ変換及びAfin変換し、変換し
たIRGデータをSRAM3に書き込む。解像度変換
は、スキャナSCから入力されたRGBデータの解像度
を300dpi×300dpiから50dpi×50d
piにして、その後の各処理に対する負荷を低減する。
なお、解像度変換後、R、G、Bの各データは、それぞ
れ10ビットデータになる。Afin変換は、RGB変
換、IRG変換及び近似演算の補正などを一回の線形変
換で行う。ちなみに、Afin変換後のIRGデータ
は、各画素の輝度(Intensity)、赤、緑のデータであ
る。また、I、R、Gの各データは、それぞれ8ビット
データである。Afin変換については、後で詳しく説
明する。
The RSU 8 converts the RGB data from the scanner SC into resolution conversion, γ conversion and Afin conversion, and writes the converted IRG data into the SRAM 3. In the resolution conversion, the resolution of the RGB data input from the scanner SC is changed from 300 dpi × 300 dpi to 50 dpi × 50 d.
pi to reduce the load on each subsequent process.
After the resolution conversion, each of the R, G, and B data becomes 10-bit data. In the Afin transformation, the RGB transformation, the IRG transformation, and the correction of the approximation operation are performed by one linear transformation. Incidentally, the IRG data after Afin conversion is luminance (Intensity), red, and green data of each pixel. Each of I, R, and G data is 8-bit data. The Afin transform will be described later in detail.

【0026】RSFE_FIFO9は、RSU8で変換
されたIRGデータをFEU10にコマンドとして引き
渡すFIFOである。なお、IRGデータは、SRAM
3に書き込まれており、FEU10にはアドレスによっ
てSRAM3のIRGデータを引き渡す。
The RSFE_FIFO 9 is a FIFO that transfers the IRG data converted by the RSU 8 to the FEU 10 as a command. The IRG data is stored in the SRAM
3 and the IRG data of the SRAM 3 is delivered to the FEU 10 by the address.

【0027】FEU10は、RSU8で変換されたIR
Gデータからパターンマッチングを行うための特徴量を
抽出し、抽出したデータ(以下「FEデータ」という)
をSRAM3に書き込む。特徴抽出は、40ドット×4
0ドットを1ブロックとし、1ブロック単位に行う。さ
らに、X方向1行を1ユニットとし、X方向に5ドット
ずつずらしながら各ブロック単位に特徴抽出を行う(左
右方向に隣り合う各ブロックは35ドットずつオーバラ
ップした部分を有する)。1ユニットが終わると、Y方
向に5ドットずらして次のユニットの特徴抽出を行なう
(上下方向に隣り合う各ブロックは35ドットずつオー
バラップした部分を有する)。図3は、解像度変換及び
ブロックの概念などを説明する図であるが、300dp
i×300dpiの解像度の入力画像データ(RGBデ
ータ)が(図3上段図)、RSU8において50dpi
×50dpiの低解像度の画像データに変換されると共
に、IRGデータに変換される。そして、40ドット×
40ドットを1ブロックとしてFEU12において特徴
量の抽出が行なわれる(図3下段図)。解像度変換につ
いては、後に説明する。
The FEU 10 converts the IR converted by the RSU 8
A feature amount for performing pattern matching is extracted from the G data, and the extracted data (hereinafter referred to as “FE data”)
Is written to the SRAM3. Feature extraction is 40 dots x 4
The process is performed in units of one block, with 0 dot as one block. Further, one row in the X direction is defined as one unit, and feature extraction is performed for each block while shifting each dot in the X direction by 5 dots (each block adjacent in the left and right direction has a portion overlapping by 35 dots). When one unit is completed, the feature of the next unit is extracted by shifting it by 5 dots in the Y direction (each vertically adjacent block has an overlapped portion of 35 dots). FIG. 3 is a diagram for explaining the concept of resolution conversion and the concept of a block.
Input image data (RGB data) having a resolution of i.times.300 dpi (upper diagram in FIG. 3) is 50 dpi in RSU8.
The image data is converted into low-resolution image data of 50 dpi and also converted to IRG data. And 40 dots x
The feature amount is extracted in the FEU 12 with 40 dots as one block (lower diagram in FIG. 3). The resolution conversion will be described later.

【0028】なお、FEデータは、1ブロック1600
個のI(輝度)データ中の800番目のレベル値(1
個、「メジアン値」という)、I(輝度)データに対し
てX方向とY方向の各2ドットごとの加算データである
代表値(20個×2)、I(輝度)、(R−I)色差、
(G−I)色差のそれぞれのX方向とY方向の2ドット
ごとの加算データの分散値(3個×2)である。
It should be noted that the FE data is composed of one block 1600.
800th level value (1
, “Median value”), I (luminance) data, representative values (20 × 2), I (luminance), (R−I) which are addition data for every two dots in the X and Y directions. )Color difference,
(GI) The variance (3 × 2) of the addition data for each two dots in the X and Y directions of the color difference.

【0029】FEPM_FIFO11は、FEU10で
各ブロックごとに特徴抽出されたFEデータを、パター
ンマッチングを行なうPMU12にコマンドとして引き
渡すFIFOである。なお、FEデータはSRAM3に
書き込まれており、PMU12にはアドレスによってS
RAM3のFEデータを引き渡す。引き渡すデータの単
位は、複数ブロックからなる1バケット単位である。
The FEPM_FIFO 11 is a FIFO that transfers FE data extracted for each block in the FEU 10 to the PMU 12 that performs pattern matching as a command. Note that the FE data is written in the SRAM 3 and the PMU 12 stores the FE data by the address.
The FE data in the RAM 3 is delivered. The unit of data to be transferred is one bucket unit composed of a plurality of blocks.

【0030】PMU12は、FEU10で抽出されたブ
ロックごとのFEデータとSRAM3に記憶されている
紙幣データベースの各紙幣データをパターンマッチング
し、パターンがマッチしたデータがある場合にはマッチ
ングデータ(以下、PMデータと記載する)をSRAM
3に書き込む。なお、パターンマッチングは、FEデー
タ中のメジアン値及び分散値を紙幣データによりスクリ
ーニングを行ない、スクリーニングをパスしたFEデー
タに対してFEデータの代表値で類似度の計算比較を行
なう(類似度が予め定められたしきい値を超えたときに
マッチしたデータがあると判別し、MC4にストラクチ
ャマッチングを行なわせる)。パターンマッチングは、
特徴抽出を行なった1ブロックごとに実施され、ブロッ
クごとに入力画像と紙幣との図柄的な一致不一致を判断
する。
The PMU 12 performs pattern matching between the FE data for each block extracted by the FEU 10 and each banknote data in the banknote database stored in the SRAM 3. SRAM)
Write to 3. In the pattern matching, the median value and the variance value in the FE data are screened by banknote data, and the FE data that has passed the screening is calculated and compared with the representative value of the FE data (the similarity is calculated in advance). When it exceeds a predetermined threshold value, it is determined that there is matched data, and MC4 is subjected to structure matching). Pattern matching is
This is performed for each block in which the feature extraction has been performed, and a pattern match between the input image and the banknote is determined for each block.

【0031】PMMC_FIFO13は、PMU12で
マッチしたPMデータをMC4にコマンドとして引き渡
すFIFOである。なお、PMデータはSRAM3に書
き込まれており、MC4にはアドレスによってSRAM
3のPMデータを引き渡す。
The PMMC_FIFO 13 is a FIFO for transferring PM data matched by the PMU 12 to the MC 4 as a command. The PM data is written in the SRAM3, and the MC4 is stored in the SRAM by an address.
3 PM data is delivered.

【0032】MC_IF14は、SRAM3をMC4が
アクセスするときのインタフェースである。
The MC_IF 14 is an interface for accessing the SRAM 3 by the MC 4.

【0033】CU15は、MC4が各ユニットの設定と
状態の読み出しを行なうためのインタフェース、ROM
16へのアクセス及びホストコンピュータHCとのパラ
レル通信を行なう。なお、CU15は、lbusを通じ
てホストコンピュータHCからのコマンドを受ける。ま
た、ホストコンピュータHCは、リードレジスタ(図示
外)を読むことにより、データやステータスを得る。
The CU 15 is an interface and a ROM for the MC 4 to read the setting and status of each unit.
16 and performs parallel communication with the host computer HC. The CU 15 receives a command from the host computer HC through lbus. The host computer HC obtains data and status by reading a read register (not shown).

【0034】ROM16は、モニタプログラム用のRO
Mである。モニタプログラムは、ホストコンピュータH
Cとの通信、最小限のハードウェアの管理を行なう。紙
幣認識システム1のプログラムは、ホストコンピュータ
HCからモニタプログラムの機能よりダウンロードされ
る。
The ROM 16 stores an RO for the monitor program.
M. The monitor program is executed by the host computer H
Communication with C and management of minimum hardware. The program of the bill recognition system 1 is downloaded from the host computer HC by the function of the monitor program.

【0035】SRAM3は、RSU8からの50dpi
のIRGデータなどをImageBuffer領域(図
示外)で、FEU10からのFEデータをFEBuff
er領域(図示外)で、PMU12からのPMデータを
PMBuffer領域(図示外)で及びPMU12のパ
ターンマッチングに必要な紙幣データベースをData
Base領域で記憶する。
The SRAM 3 stores 50 dpi from the RSU 8.
The FE data from the FEU 10 is stored in the FEBuff in the ImageBuffer area (not shown).
In the er area (not shown), the PM data from the PMU 12 is stored in the PMBuffer area (not shown), and the banknote database required for pattern matching of the PMU 12 is Data.
It is stored in the Base area.

【0036】MC4は、紙幣認識システム1の全体制
御、ホストコンピュータHCとの通信、PMU12のパ
ターンマッチングの結果に対してストラクチャマッチン
グを行なう。ストラクチャマッチングは、PMデータか
ら所定の条件を満たす3個のPMデータを選択し、この
3個のブロックのうちの一つを基点として、他の2つの
ブロック3との間の距離とその間の角度を演算し、記憶
されているストラクチャマッチング用データベースの各
データと比較する。そして、距離と角度が一致した場合
には、スキャナSCから読み込まれた画像が、紙幣に該
当するものと判断する(紙幣が含まれているものと判
断)。
The MC 4 performs overall control of the banknote recognition system 1, communication with the host computer HC, and structure matching on the pattern matching result of the PMU 12. In the structure matching, three pieces of PM data satisfying a predetermined condition are selected from the PM data, and a distance between the other two blocks 3 and an angle between the two blocks 3 are determined based on one of the three blocks. Is calculated and compared with each data of the stored structure matching database. If the distance and the angle match, it is determined that the image read from the scanner SC corresponds to a bill (it is determined that a bill is included).

【0037】DRAM5は、ホストコンピュータHCか
らダウンロードしたプログラムとストラクチャマッチン
グ用データベースを記憶する。また、MC4の作業領域
である。PMU12のパターンマッチングの結果の全リ
ストの作成領域でもある。
The DRAM 5 stores a program downloaded from the host computer HC and a database for structure matching. Also, it is a work area of MC4. This is also an area where all the lists of the results of the pattern matching of the PMU 12 are created.

【0038】≪解像度変換方法≫以上が、本発明の実施
の形態に係る解像度変換方法が適用される紙幣認識シス
テムの概略である。以下、本発明の実施の形態に係る解
像度変換方法について、さらに詳細に説明する。なお、
本発明の実施の形態に係る解像度変換方法は、図2に示
す紙幣認識システム1のRSU8において行なわれる。
{Resolution Conversion Method} The above is an outline of the bill recognition system to which the resolution conversion method according to the embodiment of the present invention is applied. Hereinafter, the resolution conversion method according to the embodiment of the present invention will be described in more detail. In addition,
The resolution conversion method according to the embodiment of the present invention is performed in the RSU 8 of the bill recognition system 1 shown in FIG.

【0039】RSU8では、入力されたRGBデータの
解像度変換が行なわれ、300dpi×300dpiの
解像度のRGBデータが、50dpi×50dpiの解
像度のIRGデータに変換される。解像度変換は、図1
のブロック図に示すように、低解像度化ステップ8a、
γ変換ステップ8b、Afin変換ステップ8cを経て
行なわれる。なお、ここでの解像度変換は、解像度を低
解像度化することに加えて、元のRGBデータ(Ri,
Gi,Bi)をIRGデータ(I,Ro,Go)に変換
することをも意味する。
The RSU 8 converts the resolution of the input RGB data, and converts the RGB data having a resolution of 300 dpi × 300 dpi into IRG data having a resolution of 50 dpi × 50 dpi. Figure 1 shows the resolution conversion.
As shown in the block diagram of FIG.
This is performed through the γ conversion step 8b and the Afin conversion step 8c. Note that the resolution conversion here includes not only lowering the resolution but also the original RGB data (Ri,
Gi, Bi) to IRG data (I, Ro, Go).

【0040】〔低解像度化〕低解像度化ステップ8a
は、入力された300dpi×300dpiの解像度の
RGBデータ(Ri,Gi,Bi)を50dpi×50
dpiのRGBデータ(_R,_G,_B)に低解像度化
する。
[Low-resolution] Low-resolution step 8a
Converts the input RGB data (Ri, Gi, Bi) having a resolution of 300 dpi × 300 dpi to 50 dpi × 50.
The resolution is reduced to dpi RGB data (_R, _G, _B).

【0041】本実施の形態における低解像度化は(図4
参照)、X方向(主走査線方向)Y方向(副走査線方
向)とも6ドット×6ドットの合計36ドットを、低解
像度化ステップ8aにより1ドットとすることにより行
なわれる。具体的には、奇数番目のライン(Y方向)の
RGBデータを捨てて偶数番目のラインのRGBデータ
(3ライン分の18データ)を加算する。そして、それ
ぞれの平均値(_R,_G,_B)を求める。但し、従来
例と異なり、平均値を求める際に加算値を18で除すの
ではなく、1/6の近似値を乗じる(なお、この近似演
算の補正と1/3を乗じる演算は後のAfin変換ステ
ップ8cで行なう)。
In this embodiment, the resolution is reduced (see FIG. 4).
In the X direction (main scanning line direction) and the Y direction (sub scanning line direction), a total of 36 dots of 6 dots × 6 dots are reduced to one dot in the resolution reduction step 8a. Specifically, the RGB data of the odd-numbered line (Y direction) is discarded, and the RGB data of the even-numbered line (18 data for three lines) is added. Then, the respective average values (_R, _G, _B) are obtained. However, unlike the conventional example, when calculating the average value, the added value is not divided by 18, but multiplied by an approximate value of 1/6 (note that the correction of this approximate calculation and the calculation of multiplying by 1/3 will be described later). Afin conversion step 8c).

【0042】低解像度化ステップ8aにおける演算を次
に示す。
The operation in the resolution lowering step 8a is as follows.

【0043】[0043]

【数1】 (Equation 1)

【0044】この(1)〜(3)式における(1+1/4)/
8は、1/6の近似値である。この計算は、ビットシフ
トと1回の加算で演算できる。(1+1/4)/8は1
/6よりも小さい値であるが、このように小さい値を用
いることにより、オーバーフローすることなく演算を行
なうことができる。ちなみに(1)〜(3)式の演算は、それ
ぞれ次のように行なわれる(図4参照)。
In the equations (1) to (3), (1 + /) /
8 is an approximate value of 1/6. This calculation can be performed by a bit shift and one addition. (1 + 1/4) / 8 is 1
Although the value is smaller than / 6, by using such a small value, the operation can be performed without overflow. Incidentally, the operations of the expressions (1) to (3) are performed as follows (see FIG. 4).

【0045】;1番目の1ライン(line#0)6ドット
分の加算値を求めて、これに(1+1/4)を乗じ、さ
らに1/8を乗じる。
An added value for 6 dots of the first line (line # 0) is obtained, multiplied by (1 + /), and further multiplied by 8.

【0046】;2番目の1ライン(line#2)6ドット
分の加算値を求めて、これに(1+1/4)を乗じ、さ
らに1/8を乗じる。この演算値にの演算値を加え
る。
An additional value for 6 dots of the second line (line # 2) is obtained, multiplied by (1 + /), and further multiplied by 8. The calculated value is added to this calculated value.

【0047】;3番目の1ライン(line#4)6ドット
分の加算値を求めて、これに(1+1/4)を乗じ、さ
らに1/8を乗じる。この演算値にの演算値を加え
る。
The sum of 6 dots of the third line (line # 4) is obtained, multiplied by (1 + 1/4), and further multiplied by 1/8. The calculated value is added to this calculated value.

【0048】なお、入力されたRGBデータの解像度が
600dpi×600dpiの場合は、X方向Y方向そ
れぞれ1個おきにデータを捨てて行き、300dpi×
300dpiの解像度のRGBデータとして、その後の
ステップにおける処理を行なう。
When the resolution of the input RGB data is 600 dpi × 600 dpi, the data is discarded every other data in the X direction and Y direction, and 300 dpi × 300 dpi.
The processing in the subsequent steps is performed as RGB data having a resolution of 300 dpi.

【0049】600dpiと300dpiの区別は、コ
マンドレジスタ(ResCmd0)のRX,RYで決ま
る。RXでX方向、RYでY方向が指定され、値が1の
ときは600dpi、値が0のときは300dpiであ
る。つまり、600dpi×300dpiあるいは30
0dpi×600dpiの解像度で入力されたRGBデ
ータを、300dpi×300dpiの解像度に変換す
ることも可能である。このコマンドレジスタの書き込み
により、1画面の入力のための初期化が行なわれ、FE
U10には初期化のコマンド(INIT)が送られ、こ
の後のRGB入力を処理する。1画面のRGBデータの
入力が終わり、次の画面のRGBデータを入力するに
は、このコマンドレジスタを書き初期化する。
The distinction between 600 dpi and 300 dpi is determined by RX and RY of the command register (ResCmd0). The X direction is designated by RX and the Y direction is designated by RY. When the value is 1, the resolution is 600 dpi, and when the value is 0, the resolution is 300 dpi. That is, 600 dpi × 300 dpi or 30 dpi
It is also possible to convert RGB data input at a resolution of 0 dpi × 600 dpi to a resolution of 300 dpi × 300 dpi. By writing this command register, initialization for inputting one screen is performed, and FE
An initialization command (INIT) is sent to U10, and the subsequent RGB input is processed. After the input of the RGB data of one screen is completed, the command register is written and initialized to input the RGB data of the next screen.

【0050】line#0からline#5(図4参
照)までの演算を行なう間の中間結果はSRAM3のI
mageBuffer領域中(図示外)の1Lineを
使う。ImageBuffer領域とのリード・ライト
に要するウェイト時間は、ARBITOR6にリクエス
ト信号を出してから最大3クロックまで許容できるよう
にする。中間結果のRGBデータのビット長さは各10
ビットである。
The intermediate result during the operation from line # 0 to line # 5 (see FIG. 4)
Uses 1 Line in the image buffer area (not shown). The wait time required for reading / writing from / to the ImageBuffer area is set to allow a maximum of three clocks after issuing a request signal to ARBITOR6. The bit length of the intermediate result RGB data is 10
Is a bit.

【0051】解像度変換1ライン分(line#0〜l
ine#5までの演算)が終了すると、次の1ライン分
の解像度変換が行われる。ImageBuffer領域
中の中間結果が入っていたLineには、Afin変換
された最終結果(I,Ro,Go)が入る。
One line of resolution conversion (line # 0 to l
When the operation up to ine # 5 is completed, resolution conversion for the next one line is performed. In the Line where the intermediate result in the ImageBuffer area is stored, the final result (I, Ro, Go) obtained by the Afin conversion is stored.

【0052】なお、入力されたRGBデータ中のX方向
の画素数はPixPerLineで表され、レジスタに
セットされる。PixPerLineは、解像度が30
0dpi×300dpiの場合でも必ずしも6の倍数で
はないことがある。同様に解像度が600dpi×60
0dpiのときも必ずしも12の倍数ではないことがあ
る。なお、端数があるときは、端数部分は変換しないで
捨てる(図4参照)。一方、低解像度化された50dp
i×50dpiのデータ(_R,_G,_G)の主走査線
方向のドット数はDotPerLineで表され、レジ
スタにセットされる。ちなみにレジスタには、入力され
たRGBデータの解像度に応じて次のどちらかがセット
される(Intは整数化を行なう関数である)。 DotPerLine=Int(PixPerLine/6) ←300 DotPerLine=Int(PixPerLine/12) ←600 〔γ変換〕γ変換ステップ8bでは、低解像度化後のR
GBデータ(_R,_G,_B)にガンマ変換を行ない色
歪を除く。γ変換ステップ8bにおける演算を次に示
す。なお、(4)から(6)式におけるべき乗数は(1/1.
8)である。
The number of pixels in the X direction in the input RGB data is represented by PixPerLine and is set in a register. PixPerLine has a resolution of 30
Even in the case of 0 dpi × 300 dpi, it may not always be a multiple of 6. Similarly, the resolution is 600 dpi x 60
Even at 0 dpi, it may not always be a multiple of 12. If there is a fraction, the fraction is discarded without conversion (see FIG. 4). On the other hand, 50dp with reduced resolution
The number of dots in the main scanning line direction of i × 50 dpi data (_R, _G, _G) is represented by DotPerLine and set in a register. Incidentally, one of the following is set in the register in accordance with the resolution of the input RGB data (Int is a function for converting to an integer). DotPerLine = Int (PixPerLine / 6) ← 300 DotPerLine = Int (PixPerLine / 12) ← 600 [γ-conversion] In the γ-conversion step 8b, the R after the resolution reduction is set.
Gamma conversion is performed on the GB data (_R, _G, _B) to remove color distortion. The calculation in the γ conversion step 8b is shown below. Note that the powers in the expressions (4) to (6) are (1/1.
8).

【0053】[0053]

【数2】 (Equation 2)

【0054】〔Afin変換〕Afin変換ステップ8
cでは、RGB変換とIRG変換を併せて行なうが、さ
らに、低解像度化ステップ8aでの近似演算の補正と低
解像度化ステップ8aでは行なわなかった1/3を乗じ
る演算も行なう。本実施形態では、このAfin変換ス
テップ8cにおける演算は、1回の線形変換により行な
う。これにより演算回数を減らすこととができる。な
お、入力データ(Rt,Gt,Bt)は各10ビットで
あり、出力データ(I,Ro,Go)は各8ビットであ
る。
[Afin Conversion] Afin Conversion Step 8
In c, the RGB conversion and the IRG conversion are performed together, but further, the correction of the approximation calculation in the resolution lowering step 8a and the calculation by multiplying by 1/3 which is not performed in the resolution lowering step 8a are also performed. In the present embodiment, the calculation in the Afin conversion step 8c is performed by one linear conversion. As a result, the number of operations can be reduced. The input data (Rt, Gt, Bt) has 10 bits each, and the output data (I, Ro, Go) has 8 bits each.

【0055】Afin変換ステップ8cにおける演算を
次に示す。
The operation in the Afin conversion step 8c is as follows.

【数3】 (Equation 3)

【0056】この(7)式右辺における分数部分は、低解
像度化ステップ8aでは行なわなかった1/3を乗じる
演算と、低解像度化ステップ8aでの近似演算を補正す
るためのものである(図1参照)。これにより、低解像
度化ステップ8aでのRGBデータの加算値(3ライン
18データ分)に、結果として1/18が乗じられるこ
とになる。つまり、(1+1/4)/8に(1/18)
/〔(1+1/4)/8〕を乗じると1/18になる。
The fractional part on the right side of the equation (7) is used for correcting the calculation of multiplying by 1/3 which was not performed in the resolution lowering step 8a and the approximation calculation in the resolution lowering step 8a (FIG. 1). As a result, the sum of the RGB data in the resolution reduction step 8a (18 data for 3 lines) is multiplied by 1/18 as a result. In other words, (1/18) becomes (1 + /) / 8
When multiplied by / [(1 + 1/4) / 8], it becomes 1/18.

【0057】また(7)式右辺における右側の3×3の行
列部分は、RGB変換を行なうためのものである(図1
参照)。このRGB変換によりスキャナSCの特性を補
正する。
The 3 × 3 matrix portion on the right side of the right side of equation (7) is for performing RGB conversion (FIG. 1).
reference). The characteristics of the scanner SC are corrected by the RGB conversion.

【0058】同様に(7)式右辺における左側の3×3の
行列部分は、IRG変換を行なうためのものである(図
1参照)。
Similarly, the 3 × 3 matrix portion on the left side of the right side of equation (7) is for performing IRG conversion (see FIG. 1).

【0059】なお、実際の演算は、ハードウェアに対す
る負担をさらに軽減するため、(7)式ではなく(8)式で行
なう。(8)式におけるCij’は設定レジスタであり、予
め計算値がAfin変換係数レジスタに設定してある
(Cij’は10ビットで2の補数である)。また、(8)
式における1/1024は、Cij’を整数化するための
係数であり、演算結果を10ビットシフトして取り出す
ことに相当する。
Note that the actual calculation is performed not by the expression (7) but by the expression (8) in order to further reduce the load on the hardware. Cij 'in equation (8) is a setting register, and the calculated value is set in the Afin transform coefficient register in advance (Cij' is a 10-bit two's complement number). Also, (8)
1/1024 in the equation is a coefficient for converting Cij 'to an integer, and corresponds to extracting the operation result by shifting it by 10 bits.

【0060】このように構成された解像度変換方法によ
れば、入力されたRGBデータを、ハードウェアに負担
をかけることなく迅速に処理して所定解像度のIRGデ
ータに変換することができる。
According to the resolution conversion method configured as described above, the input RGB data can be processed quickly and converted to IRG data of a predetermined resolution without imposing a burden on hardware.

【0061】以上説明した本発明は、前記した発明の実
施の形態に限定されることなく、本発明の目的及び効果
を奏する範囲において適宜変更実施することができる。
The present invention described above is not limited to the above-described embodiment of the invention, but can be appropriately modified and implemented within the scope of achieving the objects and effects of the present invention.

【0062】例えば、入力されるRGBデータの解像度
が300dpi×300dpiや600dpi×600
dpiに限定されることはない。また、低解像度化後の
解像度が50dpi×50dpiに限定されることはな
い。さらに、低解像度化の手段としても、6ドット×6
ドットのデータを1ドットにまとめることに限定される
こともない。また、本発明の解像度変換方法は、音声デ
ータにも適用することができる。
For example, the resolution of the input RGB data is 300 dpi × 300 dpi or 600 dpi × 600.
It is not limited to dpi. Further, the resolution after the reduction is not limited to 50 dpi × 50 dpi. Furthermore, as a means for lowering the resolution, 6 dots × 6
There is no limitation to combining dot data into one dot. Further, the resolution conversion method of the present invention can also be applied to audio data.

【0063】[0063]

【発明の効果】本発明によれば、演算をビットシフトと
加算を用いることにより行なうのでハードウェアに対す
る負担が少なくなる。また、近似演算の補正を、近似演
算を行なうステップよりも後のステップにおいて、当該
ステップで行なう演算と併せて行なうので、演算回数を
減らすことができる。したがって、さらにハードウェア
に対する負担を少なくすることができる。同時に演算時
間も短くなる。
According to the present invention, since the operation is performed by using the bit shift and the addition, the load on the hardware is reduced. Further, the correction of the approximation calculation is performed in a step subsequent to the step of performing the approximation calculation together with the calculation performed in the step, so that the number of calculations can be reduced. Therefore, the burden on hardware can be further reduced. At the same time, the calculation time is shortened.

【0064】また、入力されたRGBデータの解像度が
300dpi×300dpiでも、600dpi×60
0dpiなどでも、ビットシフトと加算を用いてハード
ウェアに負担をかけることなく、かつ演算回数を減らし
て、確実に50dpi×50dpiのIRGデータに解
像度変換を行なうことができる。
Even if the resolution of the input RGB data is 300 dpi × 300 dpi, 600 dpi × 60
Even at 0 dpi, resolution can be reliably converted to 50 dpi × 50 dpi IRG data by using bit shift and addition without burdening hardware and reducing the number of operations.

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

【図1】 本発明の実施の形態に係る解像度変換方法の
手順を示すブロック図である。
FIG. 1 is a block diagram showing a procedure of a resolution conversion method according to an embodiment of the present invention.

【図2】 本発明の実施の形態に係る解像度変換方法が
適用される紙幣認識システムの構成並びにカラー複写機
の概略構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a bill recognition system to which a resolution conversion method according to an embodiment of the present invention is applied and a schematic configuration of a color copier;

【図3】 図2の紙幣認識システムにおける解像度変換
及びブロックの概念などを説明する図である。
FIG. 3 is a diagram illustrating the concept of resolution conversion and blocks in the bill recognition system of FIG. 2;

【図4】 本発明の実施の形態に係る解像度変換方法に
おける低解像度化を説明する図である(従来例における
低解像度化を説明する図でもある)。
FIG. 4 is a diagram for explaining the resolution reduction in the resolution conversion method according to the embodiment of the present invention (also a diagram for explaining the resolution reduction in the conventional example).

【図5】 従来における解像度変換方法の手順を示すブ
ロック図である。
FIG. 5 is a block diagram showing a procedure of a conventional resolution conversion method.

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

1 紙幣認識システム 8 RSU(解像度変換ユニット) 8a 低解像度化ステップ 8b γ変換ステップ 8c Afin変換ステップ 1 Bill Recognition System 8 RSU (Resolution Conversion Unit) 8a Low Resolution Step 8b γ Conversion Step 8c Afin Conversion Step

フロントページの続き Fターム(参考) 5B057 AA11 AA20 BA02 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC02 CD01 CD05 CE16 CH08 DA17 DC32 5C076 AA22 AA40 BB07 BB14 Continued on the front page F term (reference) 5B057 AA11 AA20 BA02 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC02 CD01 CD05 CE16 CH08 DA17 DC32 5C076 AA22 AA40 BB07 BB14

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力された画像データの解像度を低解
像度化する解像度変換ステップを含む複数のステップか
らなる解像度変換方法であって、 前記解像度変換ステップにおける低解像度化を、加算と
ビットシフトを用いる近似演算で行なうこと、 前記近似演算の補正を、前記解像度変換ステップよりも
後のステップにおいて他の演算と併せて行なうこと、を
特徴とする解像度変換方法。
1. A resolution conversion method comprising a plurality of steps including a resolution conversion step for lowering the resolution of input image data, wherein the resolution conversion step uses addition and bit shift. A resolution conversion method, wherein the correction of the approximate calculation is performed in a step subsequent to the resolution conversion step together with another calculation.
【請求項2】 前記解像度変換ステップを含む複数の
ステップが、前記画像データとして入力されたRGBデ
ータの解像度を低解像度化する解像度変換ステップ、前
記低解像度化したRGBデータをγ変換するγ変換ステ
ップ、前記γ変換したRGBデータをRGB変換するR
GB変換ステップ、前記RGB変換したRGBデータを
IRG変換するIRG変換ステップを含んでなると共
に、 この解像度変換ステップが、前記入力されたRGBデー
タの6ドット×6ドットを1ドットにまとめることによ
り解像度を300dpi×300dpiから50dpi
×50dpiに低解像度化するステップであり、 かつ、この解像度変換ステップが、前記入力されたRG
Bデータの6ドット×6ドットのマトリックス中、18
ドット分のRGBデータを捨てて、残りの18ドット分
のRGBデータを加算し、この加算値を18で除して平
均値を求めることにより前記低解像度化するものである
場合は、 前記近似演算を、前記解像度変換ステップにおいて前記
加算値に1/6の近似値である(1+1/4)/8を乗
じ、この解像度変換ステップよりも後のステップでさら
に1/3を乗じることにより行ない、 前記近似演算の補正を、前記1/3を乗じる際に併せて
行なうこと、を特徴とする請求項1に記載の解像度変換
方法。
2. A plurality of steps including the resolution conversion step include a resolution conversion step of reducing the resolution of the RGB data input as the image data, and a gamma conversion step of gamma converting the reduced resolution RGB data. To convert the γ-converted RGB data to RGB
A GB conversion step, and an IRG conversion step of performing an IRG conversion of the RGB converted RGB data, and the resolution conversion step includes a step of combining the input RGB data of 6 dots × 6 dots into one dot to thereby achieve a resolution. 300 dpi x 300 dpi to 50 dpi
× 50 dpi, and the resolution conversion step is performed by the input RG
In the matrix of 6 dots × 6 dots of B data, 18
If the RGB data for the dots is discarded, the RGB data for the remaining 18 dots is added, and the added value is divided by 18 to obtain an average value, the resolution is reduced. In the resolution conversion step, by multiplying the sum by (1 + 1/4) / 8 which is an approximate value of 1/6 in the resolution conversion step, and further multiplying by 1/3 in a step subsequent to the resolution conversion step. 2. The resolution conversion method according to claim 1, wherein the correction of the approximation operation is performed together with the multiplication by 1/3.
【請求項3】 前記入力されたRGBデータの解像度
が600dpi×600dpiである場合は、前記RG
BデータのX方向及びY方向ともに、それぞれ1個おき
にデータを捨てて行き、300dpi×300dpiの
解像度のRGBデータに変換した後に前記解像度変換ス
テップを行なうこと、を特徴とする請求項2に記載の解
像度変換方法。
3. If the resolution of the inputted RGB data is 600 dpi × 600 dpi, the RGB data
3. The resolution conversion step according to claim 2, wherein in the X direction and the Y direction of the B data, the data is discarded every other data, and the data is converted into RGB data having a resolution of 300 dpi × 300 dpi, and then the resolution conversion step is performed. 4. Resolution conversion method.
JP33815299A 1999-11-29 1999-11-29 Resolution converting method Withdrawn JP2001157039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33815299A JP2001157039A (en) 1999-11-29 1999-11-29 Resolution converting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33815299A JP2001157039A (en) 1999-11-29 1999-11-29 Resolution converting method

Publications (1)

Publication Number Publication Date
JP2001157039A true JP2001157039A (en) 2001-06-08

Family

ID=18315413

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33815299A Withdrawn JP2001157039A (en) 1999-11-29 1999-11-29 Resolution converting method

Country Status (1)

Country Link
JP (1) JP2001157039A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7551796B2 (en) 2004-03-19 2009-06-23 Ricoh Company, Ltd. Image processing apparatus, image data generation and transmission method and image data generation and transmission program
US8237937B2 (en) 2004-06-16 2012-08-07 Ricoh Company, Ltd. Apparatuses, methods, and computer readable medium for processing image data based on property information to enhance usability of the image data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7551796B2 (en) 2004-03-19 2009-06-23 Ricoh Company, Ltd. Image processing apparatus, image data generation and transmission method and image data generation and transmission program
US8237937B2 (en) 2004-06-16 2012-08-07 Ricoh Company, Ltd. Apparatuses, methods, and computer readable medium for processing image data based on property information to enhance usability of the image data
US8711378B2 (en) 2004-06-16 2014-04-29 Ricoh Company, Ltd. Apparatus, method and program for image receipt, processing, conversion, and delivery to and from a plurality of external apparatuses

Similar Documents

Publication Publication Date Title
US8331731B2 (en) Image processing method and image processing apparatus
US5021876A (en) Image processing apparatus with real-time texture processing
US8855438B2 (en) Image processing apparatus, image processing method of image processing apparatus, and program
US8169656B2 (en) Image processing devices and methods for resizing an original image therefor
JP2012049826A (en) Image processing apparatus and image processing method
US20060215929A1 (en) Methods and apparatus for image convolution
US20180082160A1 (en) Image processing apparatus and image processing method
JP2015115837A (en) Control device, image processing apparatus, control method and program
JP2001157039A (en) Resolution converting method
US8144378B2 (en) Image processing device, image processing method, and computer program product
JP2903917B2 (en) Image editing processor
JPH0728996A (en) Method and equipment for correction of close whie color
JP4156194B2 (en) Method for converting first resolution raster digital data to second resolution digital data
US8139898B2 (en) Image process method and apparatus for image enlargement and enhancement
JP2000351242A (en) Image forming apparatus
CN111105356A (en) Image processing method, image processing apparatus, and computer-readable storage medium
JP2004215163A (en) Image interpolation system, image interpolation method, and image interpolation program
JP6157234B2 (en) Image processing apparatus, image processing method, and program
JP2730399B2 (en) Image data reduction device
JP3467753B2 (en) Image processing system, image processing method, and medium recording image processing module
JP2001351068A (en) Device and method for recognizing character, device and method for processing image and computer readable recording medium
JP3054299B2 (en) Image processing apparatus and method
CN117579751A (en) Dual-color printing data organization and portrait identification method
JP2007081939A (en) Data smoothing circuit
JP2003219181A (en) Image processor, image processing method, program and recording medium

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