JP2010062879A - Device, method and program for processing image - Google Patents
Device, method and program for processing image Download PDFInfo
- Publication number
- JP2010062879A JP2010062879A JP2008226554A JP2008226554A JP2010062879A JP 2010062879 A JP2010062879 A JP 2010062879A JP 2008226554 A JP2008226554 A JP 2008226554A JP 2008226554 A JP2008226554 A JP 2008226554A JP 2010062879 A JP2010062879 A JP 2010062879A
- Authority
- JP
- Japan
- Prior art keywords
- reduction
- image
- processing
- magnification
- pixels
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title abstract description 13
- 230000009467 reduction Effects 0.000 claims abstract description 339
- 238000011946 reduction process Methods 0.000 claims abstract description 65
- 238000003672 processing method Methods 0.000 claims description 9
- 230000015556 catabolic process Effects 0.000 abstract 1
- 238000006731 degradation reaction Methods 0.000 abstract 1
- 238000013500 data storage Methods 0.000 description 21
- 238000005070 sampling Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 5
- 230000006866 deterioration Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、複数の画素からなる画像の縮小あるいは解像度変換を行う画像処理装置、方法およびプログラムに関する。 The present invention relates to an image processing apparatus, method, and program for performing reduction or resolution conversion of an image composed of a plurality of pixels.
従来から、二次元平面上に配置された複数の画素によって構成される原画像に対して縮小処理を行う画像処理装置が知られている(例えば、特許文献1参照。)。この画像処理装置では、入力された原画像の画像データに対して、X方向およびY方向のそれぞれ毎に縮小処理が行われる。具体的には、この縮小処理は、X方向あるいはY方向に沿って隣接する4個の画素の画素値を用いた補間演算により行われる。
ところで、上述した特許文献1に記載された従来技術では、X方向あるいはY方向に沿った4画素の画素値を用いて補間演算を行っているため、1/4よりも小さい任意倍率の縮小を行うことができないという問題があった。また、X方向およびY方向に並んだ複数の画素に対して縮小倍率に応じた間引きを行うことにより、1/4よりも小さい倍率の縮小を行うことは可能であるが、このような間引きを行うと、間引きによって削除される画素数の原画像に占める割合が多くなって画質が極端に悪化するという問題があった。
By the way, in the conventional technique described in
本発明は、このような点に鑑みて創作されたものであり、その目的は、任意倍率の縮小が可能であって、画質の悪化を抑えることができる画像処理装置、方法およびプログラムを提供することにある。 The present invention was created in view of the above points, and an object of the present invention is to provide an image processing apparatus, method, and program capable of reducing an arbitrary magnification and suppressing deterioration in image quality. There is.
上述した課題を解決するために、本発明の画像処理装置は、第1の方向とこの第1の方向とは非平行な第2の方向のそれぞれに沿って等間隔に配置された複数の画素からなる第1の画像の入力を行う画像入力手段と、第1および第2の方向のそれぞれに沿って固定縮小倍率で画像の縮小を行う際に用いる二次元縮小フィルタのデータを格納する縮小フィルタ格納手段と、縮小フィルタ格納手段に格納されたデータに基づいて、第1の画像に対して二次元縮小フィルタを用いた縮小処理を1回あるいは複数回繰り返して行う第1の縮小処理手段と、第1の縮小処理手段によって縮小処理された後の第2の画像に対して、固定縮小倍率よりも大きい調整縮小倍率で縮小処理を行って第3の画像を出力する第2の縮小処理手段とを備えている。 In order to solve the above-described problem, an image processing apparatus according to the present invention includes a plurality of pixels arranged at equal intervals along each of a first direction and a second direction that is non-parallel to the first direction. And a reduction filter for storing data of a two-dimensional reduction filter used when the image is reduced at a fixed reduction magnification along each of the first and second directions. A first reduction processing unit that repeatedly performs a reduction process using a two-dimensional reduction filter on the first image one or more times based on data stored in the storage unit and the reduction filter storage unit; Second reduction processing means for reducing the second image after the reduction processing by the first reduction processing means at an adjustment reduction magnification larger than the fixed reduction magnification and outputting a third image; It has.
本発明の画像処理方法は、第1の方向とこの第1の方向とは非平行な第2の方向のそれぞれに沿って等間隔に配置された複数の画素からなる第1の画像の入力を行う画像入力ステップと、第1および第2の方向のそれぞれに沿って固定縮小倍率で画像の縮小を行う際に用いる二次元縮小フィルタのデータを縮小フィルタ格納手段から読み出して、第1の画像に対して二次元縮小フィルタを用いた縮小処理を1回あるいは複数回繰り返して行う第1の縮小処理ステップと、第1の縮小処理ステップにおいて縮小処理された後の第2の画像に対して、固定縮小倍率よりも大きい調整縮小倍率で縮小処理を行って第3の画像を出力する第2の縮小処理ステップとを有している。 The image processing method of the present invention is configured to input a first image composed of a plurality of pixels arranged at equal intervals along each of a first direction and a second direction that is not parallel to the first direction. The image input step to be performed and the data of the two-dimensional reduction filter used for reducing the image at a fixed reduction magnification along each of the first and second directions are read from the reduction filter storage means, and the first image is obtained. On the other hand, the first reduction processing step in which the reduction processing using the two-dimensional reduction filter is repeated once or a plurality of times, and the second image after the reduction processing in the first reduction processing step are fixed. And a second reduction process step of performing a reduction process at an adjustment reduction ratio larger than the reduction ratio and outputting a third image.
本発明の画像処理プログラムは、コンピュータを、第1の方向とこの第1の方向とは非平行な第2の方向のそれぞれに沿って等間隔に配置された複数の画素からなる第1の画像の入力を行う画像入力手段と、第1および第2の方向のそれぞれに沿って固定縮小倍率で画像の縮小を行う際に用いる二次元縮小フィルタのデータを格納する縮小フィルタ格納手段と、縮小フィルタ格納手段に格納されたデータに基づいて、第1の画像に対して二次元縮小フィルタを用いた縮小処理を1回あるいは複数回繰り返して行う第1の縮小処理手段と、第1の縮小処理手段によって縮小処理された後の第2の画像に対して、固定縮小倍率よりも大きい調整縮小倍率で縮小処理を行って第3の画像を出力する第2の縮小処理手段として機能させる。 An image processing program according to the present invention is a first image composed of a plurality of pixels arranged at equal intervals along each of a first direction and a second direction that is non-parallel to the first direction. An image input means for inputting the image, a reduction filter storage means for storing data of a two-dimensional reduction filter used when the image is reduced at a fixed reduction magnification along each of the first and second directions, and a reduction filter A first reduction processing means for performing a reduction process using a two-dimensional reduction filter on the first image one or more times based on data stored in the storage means; and a first reduction processing means The second image that has been subjected to the reduction process is subjected to a reduction process at an adjustment reduction ratio larger than the fixed reduction ratio, and functions as a second reduction processing unit that outputs a third image.
固定縮小倍率の二次元縮小フィルタによる1回あるいは複数回の縮小処理と調整縮小倍率の1回の縮小処理とを組み合わせることにより、1/4よりも小さい任意縮小倍率の縮小処理が可能となる。また、縮小処理を複数回に分けて行うことにより、各画素の情報を縮小処理後の各画素の情報に含ませることができるため、画質の悪化を抑えることができる。さらに、係数が固定の縮小フィルタを繰り返し用いることで、処理内容を単純化することができる。 By combining one or more reduction processes using a two-dimensional reduction filter with a fixed reduction ratio and one reduction process with an adjustment reduction ratio, a reduction process with an arbitrary reduction ratio smaller than 1/4 can be performed. Further, by performing the reduction process in a plurality of times, information on each pixel can be included in the information on each pixel after the reduction process, so that deterioration in image quality can be suppressed. Furthermore, the processing content can be simplified by repeatedly using a reduction filter with a fixed coefficient.
また、上述した第1の画像と第3の画像に基づいて、第1の縮小処理手段による縮小処理の回数を設定する縮小回数設定手段をさらに備えることが望ましい。具体的には、固定縮小倍率をA、第1の画像を第3の画像に縮小する際の縮小倍率をB、第1の縮小処理手段による縮小処理の回数をN、第2の縮小処理手段による縮小処理の調整縮小倍率をCとしたときに、縮小回数設定手段は、B=AN×C、かつ、A<C<1を満たすNの値を設定する。 Further, it is desirable to further include a reduction number setting means for setting the number of times of reduction processing by the first reduction processing means based on the first image and the third image described above. Specifically, the fixed reduction ratio is A, the reduction ratio when the first image is reduced to the third image is B, the number of times of reduction processing by the first reduction processing means is N, and the second reduction processing means When the adjustment reduction magnification of the reduction process is set to C, the reduction number setting means sets B = A N × C and N value satisfying A <C <1.
あるいは、上述した第1の画像と第3の画像に基づいて、第1の縮小処理ステップにおける縮小処理の回数を設定する縮小回数設定ステップをさらに有することが望ましい。具体的には、固定縮小倍率をA、第1の画像を第3の画像に縮小する際の縮小倍率をB、第1の縮小処理手段による縮小処理の回数をN、第2の縮小処理手段による縮小処理の調整縮小倍率をCとしたときに、縮小回数設定ステップでは、B=AN×C、かつ、A<C<1を満たすNの値を設定する。 Alternatively, it is desirable to further include a reduction number setting step for setting the number of times of reduction processing in the first reduction processing step based on the first image and the third image described above. Specifically, the fixed reduction ratio is A, the reduction ratio when the first image is reduced to the third image is B, the number of times of reduction processing by the first reduction processing means is N, and the second reduction processing means In the reduction count setting step, N = value satisfying B = A N × C and A <C <1 is set, where C is the adjustment reduction magnification of the reduction process according to the above.
これにより、縮小処理前後の画像の大きさや解像度に対応する適切な縮小回数を設定することが可能となる。 This makes it possible to set an appropriate number of reductions corresponding to the size and resolution of the image before and after the reduction process.
また、上述した第1の画像と第3の画像に基づいて、第2の縮小処理手段による縮小処理の調整縮小倍率を設定する調整縮小倍率設定手段をさらに備えることが望ましい。具体的には、固定縮小倍率をA、第1の画像を第3の画像に縮小する際の縮小倍率をB、第1の縮小処理手段による縮小処理の回数をN、第2の縮小処理手段による縮小処理の調整縮小倍率をCとしたときに、調整縮小倍率設定手段は、B=AN×C、かつ、A<C<1を満たすCの値を設定する。 In addition, it is desirable to further include an adjustment reduction ratio setting unit that sets an adjustment reduction ratio of the reduction process performed by the second reduction processing unit based on the first image and the third image described above. Specifically, the fixed reduction ratio is A, the reduction ratio when the first image is reduced to the third image is B, the number of times of reduction processing by the first reduction processing means is N, and the second reduction processing means When the adjustment reduction magnification of the reduction process according to the above is C, the adjustment reduction magnification setting means sets a value of C that satisfies B = A N × C and A <C <1.
あるいは、上述した第1の画像と第3の画像に基づいて、第2の縮小処理ステップにおける縮小処理の調整縮小倍率を設定する調整縮小倍率設定ステップをさらに有することが望ましい。具体的には、固定縮小倍率をA、第1の画像を第3の画像に縮小する際の縮小倍率をB、第1の縮小処理ステップにおける縮小処理の回数をN、第2の縮小処理ステップにおける縮小処理の調整縮小倍率をCとしたときに、調整縮小倍率設定ステップでは、B=AN×C、かつ、A<C<1を満たすCの値を設定する。 Alternatively, it is desirable to further include an adjustment reduction magnification setting step for setting an adjustment reduction magnification of the reduction processing in the second reduction processing step based on the first image and the third image described above. Specifically, the fixed reduction ratio is A, the reduction ratio when the first image is reduced to the third image is B, the number of reduction processes in the first reduction process step is N, and the second reduction process step. In the adjustment reduction magnification setting step, a value of C satisfying B = A N × C and A <C <1 is set.
これにより、縮小処理前後の画像の大きさや解像度に対応する適切な調整縮小倍率を設定することが可能となる。 As a result, it is possible to set an appropriate adjustment reduction ratio corresponding to the size and resolution of the image before and after the reduction process.
また、上述した第1の画像の画素数と第3の画像の画素数とに基づいてBの値を設定する総合縮小倍率設定手段をさらに備えることが望ましい。あるいは、第1の画像の画素数と第3の画像の画素数とに基づいて前記Bの値を設定する総合縮小倍率設定ステップをさらに有することが望ましい。これにより、入力される第1の画像に適した縮小倍率を設定することが可能となる。 In addition, it is desirable to further include an overall reduction ratio setting unit that sets the value of B based on the number of pixels of the first image and the number of pixels of the third image. Alternatively, it is desirable to further include an overall reduction ratio setting step for setting the value B based on the number of pixels of the first image and the number of pixels of the third image. Thereby, it is possible to set a reduction ratio suitable for the input first image.
また、上述した第1および第2の方向は、互いに直交していることが望ましい。これにより、水平および垂直に画素が並んだ最も汎用されている画像に対して、任意倍率で画質の悪化が少ない縮小処理を行うことができる。 The first and second directions described above are preferably orthogonal to each other. Thereby, it is possible to perform reduction processing with little deterioration in image quality at an arbitrary magnification for the most widely used image in which pixels are arranged horizontally and vertically.
また、上述した固定縮小倍率は1/2であることが望ましい。これにより、固定縮小倍率を用いた縮小処理をさらに単純化することができる。 Further, it is desirable that the above-described fixed reduction ratio is 1/2. Thereby, the reduction process using the fixed reduction ratio can be further simplified.
また、上述した二次元縮小フィルタは、4×4画素の各画素値に所定の係数を乗算した値を加算して得られる値を、新たな画素の画素値とすることが望ましい。具体的には、4×4画素の各画素の画素値に乗算する値を、配置の順にw11、w12、w13、w14、w21、w22、w23、w24、w31、w32、w33、w34、w41、w42、w43、w44、としたときに、w11=w14=w41=w44=−1/16、w22=w23=w32=w33=9/16、それ以外を0としている。 In the above-described two-dimensional reduction filter, it is desirable that a value obtained by adding a value obtained by multiplying each pixel value of 4 × 4 pixels by a predetermined coefficient is a pixel value of a new pixel. Specifically, the value multiplied by the pixel value of each pixel of 4 × 4 pixels is w11, w12, w13, w14, w21, w22, w23, w24, w31, w32, w33, w34, w41, in the order of arrangement. When w42, w43, and w44, w11 = w14 = w41 = w44 = −1 / 16, w22 = w23 = w32 = w33 = 9/16, and the others are set to 0.
以下、本発明を適用した一実施形態の画像処理装置について、図面に基づいて詳細に説明する。 Hereinafter, an image processing apparatus according to an embodiment to which the present invention is applied will be described in detail with reference to the drawings.
図1は、一実施形態の画像処理装置の構成を示す図である。図1に示すように、本実施形態の画像処理装置は、画像入力部10、入力画像データ格納部12、総合縮小倍率設定部14、縮小フィルタ処理部20、縮小フィルタ格納部22、縮小回数設定部24、中間画像データ格納部26、補間関数処理部30、補間関数格納部32、調整縮小倍率設定部34、縮小画像データ格納部36、表示処理部40、表示装置42を含んで構成されている。
FIG. 1 is a diagram illustrating a configuration of an image processing apparatus according to an embodiment. As shown in FIG. 1, the image processing apparatus according to the present embodiment includes an
画像入力部10は、所定の解像度の画像データを取り込むためのものである。この画像データは、第1の方向とこの第1の方向とは非平行な第2の方向のそれぞれに沿って等間隔に配置された複数の画素からなる画像(第1の画像)に対応するものである。例えば、第1の方向が水平軸(x軸)に沿った向き(水平方向)に、第2の方向が垂直軸(y軸)に沿った向き(垂直方向)にそれぞれ設定されている。互いに直交する水平軸および垂直軸に沿って配置された複数の画素によって構成された画像に対応する画像データが画像入力部10を用いて入力される。
The
具体的には、紙原稿に描かれた画像を所定の解像度で光学的に読み取るスキャナを画像入力部10として用いることができる。あるいは、CDやDVD等の挿抜可能な記憶媒体に記録された画像データを取り込む場合には、これらの記憶媒体のドライブ装置(読み取り装置)を画像入力部10として用いることができる。半導体メモリやハードディスク装置に記録された画像データを取り込む場合には、これらを接続する入出力インタフェースを画像入力部10として用いることができる。また、インターネットやその他のネットワーク、あるいは電話回線等を介した通信によって画像データを取り込む場合には、回線の種類等に応じた通信装置を画像入力部10として用いることができる。また、放送による配信によって画像データを取り込む場合には、放送の形態に応じた受信装置を画像入力部10として用いることができる。
Specifically, a scanner that optically reads an image drawn on a paper document with a predetermined resolution can be used as the
入力画像データ格納部12は、画像入力部10によって取り込まれた画像データを格納する。総合縮小倍率設定部14は、画像入力部10によって取り込まれた画像(第1の画像)とこの画像を縮小した後の最終的な画像(第3の画像)に基づいて、総合縮小倍率Bの値を設定する。具体的には、第1の画像と第3の画像の各画像サイズ(画素数)が決まっている場合には、これらの画素数の比が「総合縮小倍率」として設定される。
The input image
縮小フィルタ処理部20は、画像入力部10によって取り込まれて入力画像データ格納部12に格納された画像データに対して二次元縮小フィルタを用いた縮小処理を1回あるいは複数回繰り返す。
The reduction
縮小フィルタ格納部22は、第1および第2の方向(水平方向および垂直方向)のそれぞれに沿って固定縮小倍率Aで画像の縮小を行う際に用いる二次元縮小フィルタのデータを格納する。このデータが読み出されて縮小フィルタ処理部20による縮小処理が行われる。固定縮小倍率Aの縮小処理の具体例については後述する。
The reduction
縮小回数設定部24は、画像入力部10によって取り込まれた画像(第1の画像)とこの画像を縮小した後の最終的な画像(第3の画像)に基づいて、縮小フィルタ処理部20による縮小処理の回数Nを設定する。例えば、総合縮小倍率Bに基づいて、縮小処理の回数Nが決定される。
The reduction
中間画像データ格納部26は、縮小フィルタ処理部20によって縮小処理が行われた後の画像(第2の画像)の画像データを格納する。
The intermediate image
補間関数処理部30は、縮小フィルタ処理部20によって縮小処理された後の第2の画像に対して、上述した固定縮小倍率Aよりも大きい調整縮小倍率Cで縮小処理を行い、この縮小処理で得られた画像(第3の画像)の画像データを出力する。
The interpolation
補間関数格納部32は、補間関数処理部30による縮小処理で用いられる補間関数のデータを格納する。このデータが読み出されて補間関数処理部30による補間処理が行われ、第2の画像よりも画素数が少ない第3の画像が生成される。
The interpolation
調整縮小倍率設定部34は、画像入力部10によって取り込まれた画像(第1の画像)とこの画像を縮小した後の最終的な画像(第3の画像)に基づいて、補間関数処理部30による縮小処理の調整縮小倍率Cを設定する。例えば、総合縮小倍率Bに基づいて調整縮小倍率Cが決定される。
The adjustment reduction
具体的には、固定縮小倍率をA、第1の画像を第3の画像に縮小する際の総合縮小倍率をB、縮小フィルタ処理部20による縮小処理の回数をN、補間関数処理部30による縮小処理の調整縮小倍率をCとしたときに、縮小回数設定部24は、B=AN×C、かつ、A<C<1を満たすNの値を設定する。また、調整縮小倍率設定部34は、B=AN×C、かつ、A<C<1を満たすCの値を設定する。
Specifically, the fixed reduction ratio is A, the total reduction ratio when the first image is reduced to the third image is B, the number of times of reduction processing by the reduction
縮小画像データ格納部36は、補間関数処理部30によって縮小処理が行われた後の画像(第3の画像)の画像データを格納する。
The reduced image
表示処理部40は、補間関数処理部30によって縮小処理された後の縮小画像データを縮小画像データ格納部36から読み出し、画像入力部10によって取り込まれた画像を総合縮小倍率Bで縮小した後の画像を表示装置42の画面上に表示する。なお、この表示動作と並行して、あるいは表示動作に代えて、縮小後の画像をプリンタを用いて印刷したり、インターネットや電話回線、無線回線等を介して他の機器に送信したりしてもよい。
The
上述した画像入力部10が画像入力手段に、縮小フィルタ格納部22が縮小フィルタ格納手段に、縮小フィルタ処理部20が第1の縮小処理手段に、補間関数処理部30が第2の縮小処理手段に、縮小回数設定部24が縮小回数設定手段に、調整縮小倍率設定部34が調整縮小倍率設定手段に、総合縮小倍率設定部14が総合縮小倍率設定手段にそれぞれ対応する。
The
また、上述した画像入力部10によって行われる操作が画像入力ステップの動作に、縮小フィルタ処理部20により行われる動作が第1の縮小処理ステップの動作に、補間関数処理部30により行われる動作が第2の縮小処理ステップの動作に、縮小回数設定部24により行われる動作が縮小回数設定ステップの動作に、調整縮小倍率設定部34により行われる動作が調整縮小倍率設定ステップの動作に、総合縮小倍率設定部14により行われる動作が総合縮小倍率設定ステップの動作にそれぞれ対応する。
The operation performed by the
また、上述した画像処理装置は、CPU、ROM、RAM等を備えたコンピュータの構成によって実現することができる。この場合に、入力画像データ格納部12、縮小フィルタ格納部22、中間画像データ格納部26、補間関数格納部32、縮小画像データ格納部36はハードディスク装置や半導体メモリによって構成することが可能である。総合縮小倍率設定部14、縮小フィルタ処理部20、縮小回数設定部24、補間関数処理部30、調整縮小倍率設定部34は、ROMやRAMあるいはハードディスク装置等に格納された所定の画像処理プログラムをCPUで実行することにより実現することができる。
Further, the above-described image processing apparatus can be realized by a computer configuration including a CPU, a ROM, a RAM, and the like. In this case, the input image
本実施形態の画像処理装置はこのような構成を有しており、次に画像処理装置による画像縮小処理の具体的な内容について説明する。図2は、本実施形態の画像処理装置による画像縮小処理の動作手順を示す流れ図である。画像入力部10を用いて画像データの入力が行われ(ステップ200)、入力画像データ格納部12に格納される(ステップ201)。次に、総合縮小倍率設定部14は、入力画像と縮小後の画像の各画像サイズに基づいて総合縮小倍率Bを決定する(ステップ202)。縮小回数設定部24は、総合縮小倍率設定部14によって決定された総合縮小倍率Bに基づいて、縮小フィルタ処理部20によって行われる縮小処理の繰り返し回数Nを決定する(ステップ203)。
The image processing apparatus according to the present embodiment has such a configuration. Next, specific contents of the image reduction process performed by the image processing apparatus will be described. FIG. 2 is a flowchart showing an operation procedure of image reduction processing by the image processing apparatus of this embodiment. Image data is input using the image input unit 10 (step 200) and stored in the input image data storage unit 12 (step 201). Next, the total reduction
次に、縮小フィルタ処理部20は、縮小フィルタ格納部22に格納された二次元縮小フィルタを読み出して、入力画像データ格納部12に格納された入力画像データに対して、縮小回数設定部24によって決定された縮小回数Nを繰り返し回数とした縮小処理を行う(ステップ204)。N回の縮小処理によって最終的に得られた中間画像データは中間画像データ格納部26に格納される(ステップ205)。
Next, the reduction
図3は、縮小フィルタ処理部20によって行われる縮小処理の具体例を示す説明図である。図4は、縮小フィルタ処理部20による縮小処理後の画像を示す説明図である。図3において、○は縮小処理の対象となる原画像の各画素を示している。また、図3および図4において、×は縮小処理によって得られる画像の各画素を示している。
FIG. 3 is an explanatory diagram illustrating a specific example of the reduction process performed by the reduction
本実施形態では、縮小フィルタ処理部20による1回の縮小処理によって水平方向および垂直方向の画素数が1/2になる。また、縮小処理は、4×4画素の各画素値を成分に有する4×4の二次元縮小フィルタを用いて行われる。具体的には、図3に示す画素wに着目すると、この画素wの画素値が、点線で囲まれたその周囲の4×4画素(合計16画素)の各画素値を用いて計算される。但し、本実施形態では、16画素全ての画素値が用いられるのではなく、図3においてa、b、c、d、e、f、g、hで示される8画素の画素値のみが用いられて画素wの画素値が計算される。
In the present embodiment, the number of pixels in the horizontal direction and the vertical direction is halved by a single reduction process by the reduction
具体的には、二次元縮小フィルタのフィルタ係数は以下のようになる。 Specifically, the filter coefficients of the two-dimensional reduction filter are as follows.
4個のが画素a、b、c、dのそれぞれに対応するフィルタ係数が9/16に設定され、他の4個の画素e、f、g、hのそれぞれに対応するフィルタ係数が−1/16に設定されている。また、それ以外の8画素のついては、フィルタ係数が0に設定されている。 The filter coefficients corresponding to the four pixels a, b, c, and d are set to 9/16, and the filter coefficients corresponding to the other four pixels e, f, g, and h are set to −1. / 16 is set. The filter coefficient is set to 0 for the other 8 pixels.
すなわち、図3の点線で囲まれた4×4画素の各画素の画素値に乗算する値を、左上の画素から配置の順にw11、w12、w13、w14、w21、w22、w23、w24、w31、w32、w33、w34、w41、w42、w43、w44とすると、w11=w14=w41=w44=−1/16、w22=w23=w32=w33=9/16となる。また、それ以外のw12、w13、w21、w24、w31、w34、w42、w43は全て0となる
図5は、これらのフィルタ係数の設定方法の説明図であり、本実施形態で用いられる標本化関数(補間関数)が示されている。図5に示す標本化関数φ(t)は、以下の式で示される区分多項式であり、補間位置を中心に左右2画素(補間方向に沿って補間対象画素の両側に存在する2画素(合計4画素))の画素値を用いて補間対象画素wの画素値を算出することができる。
That is, the value multiplied by the pixel value of each of the 4 × 4 pixels surrounded by the dotted line in FIG. 3 is w11, w12, w13, w14, w21, w22, w23, w24, w31 in the order of arrangement from the upper left pixel. , W32, w33, w34, w41, w42, w43, w44, w11 = w14 = w41 = w44 = −1 / 16, w22 = w23 = w32 = w33 = 9/16. In addition, other w12, w13, w21, w24, w31, w34, w42, and w43 are all 0. FIG. 5 is an explanatory diagram of these filter coefficient setting methods, and is used in this embodiment. A function (interpolation function) is shown. The sampling function φ (t) shown in FIG. 5 is a piecewise polynomial expressed by the following equation, and has two pixels on the left and right of the interpolation position in the center (two pixels (total) The pixel value of the interpolation target pixel w can be calculated using the pixel value of 4 pixels)).
φ(t)=−1.75|t|2+1.0 (|t|≦0.5)
1.25|t|2−3.0|t|+1.75 (0.5<|t|≦1.0)
0.75|t|2−2.0|t|+1.25 (1.0<|t|≦1.5)
−0.25|t|2+|t|−1.0 (1.5<|t|≦2.0)
0 (2.0<|t|)
・・・(1)
本実施形態では、図3に示す画素wの水平方向および垂直方向には他の画素は存在せず、斜め45°方向に8個の画素a、b、c、d、e、f、g、hが存在する。このため、これら8個の画素を用いて中心の画素wの画素値を計算している。
φ (t) = − 1.75 | t | 2 +1.0 (| t | ≦ 0.5)
1.25 | t | 2 −3.0 | t | +1.75 (0.5 <| t | ≦ 1.0)
0.75 | t | 2 −2.0 | t | +1.25 (1.0 <| t | ≦ 1.5)
−0.25 | t | 2 + | t | −1.0 (1.5 <| t | ≦ 2.0)
0 (2.0 <| t |)
... (1)
In the present embodiment, there are no other pixels in the horizontal and vertical directions of the pixel w shown in FIG. 3, and eight pixels a, b, c, d, e, f, g, h exists. For this reason, the pixel value of the center pixel w is calculated using these eight pixels.
ところで、斜め45°方向に沿った画素間隔(例えば画素dと画素hの距離)を1とすると、画素wから画素a、b、c、dまでの距離は0.5となる。この距離に対応する標本化関数の値は上記の式にt=0.5を代入して求めることができ、その値は9/16となる。また、画素wから画素e、f、g、hまでの距離は1.5となる。この距離に対応する標本化関数の値は上記の式にt=1.5を代入して求めることができ、その値は−1/16となる。数1に示した二次元縮小フィルタのフィルタ係数がこのようにして決められている。
By the way, if the pixel interval along the oblique 45 ° direction (for example, the distance between the pixel d and the pixel h) is 1, the distance from the pixel w to the pixels a, b, c, and d is 0.5. The value of the sampling function corresponding to this distance can be obtained by substituting t = 0.5 into the above equation, and the value is 9/16. Further, the distance from the pixel w to the pixels e, f, g, and h is 1.5. The value of the sampling function corresponding to this distance can be obtained by substituting t = 1.5 into the above equation, and the value is −1/16. The filter coefficient of the two-dimensional reduction filter shown in
この二次元縮小フィルタを用いることにより、画素wの画素値wは、上述した8個の画素a、b、c、d、e、f、g、hの各画素値a、b、c、d、e、f、g、hを用いて、以下の式で示される計算式で求められる。 By using this two-dimensional reduction filter, the pixel value w of the pixel w becomes the pixel values a, b, c, d of the eight pixels a, b, c, d, e, f, g, h described above. , E, f, g, and h are used to calculate the following formula.
w=(a+b+c+d)×9/16−(e+f+g+h)/16
このようにして、例えば、図3に示す12×12画素の画像が、図4に示す6×6画素の画像に縮小される。ステップ204では、このような縮小倍率1/2の縮小処理がN回繰り返される。
w = (a + b + c + d) × 9 / 16− (e + f + g + h) / 16
In this way, for example, the 12 × 12 pixel image shown in FIG. 3 is reduced to the 6 × 6 pixel image shown in FIG. In
次に、調整縮小倍率設定部34は、総合縮小倍率設定部14によって決定された総合縮小倍率Bに基づいて、補間関数処理部30によって行われる縮小処理の倍率である調整縮小倍率Cを決定する(ステップ206)。
Next, the adjustment reduction
次に、補間関数処理部30は、補間関数格納部32に格納された補間関数データを読み出して、中間画像データ格納部26に格納された中間画像データに対して、調整縮小倍率設定部34によって決定された調整縮小倍率Cの縮小処理を行う(ステップ207)。この縮小処理によって得られた縮小画像データは縮小画像データ格納部36に格納される(ステップ208)。
Next, the interpolation
ステップ207で行われる縮小処理の倍率である調整縮小倍率Cは、ステップ204における固定縮小倍率によるN回の縮小処理によって目的とする画像が得られなかった場合に行われるものである。したがって、B=ANの関係を満たす場合には、ステップ207による縮小処理は省略される。
The adjustment reduction magnification C, which is the magnification of the reduction processing performed in
また、調整縮小倍率Cによる縮小処理は、ステップ204の縮小処理のように二次元縮小フィルタを用いて行うのではなく、補間関数格納部32に格納された補間関数データで特定される標本化関数を用いて水平方向および垂直方向に沿って別々に行われる。本実施形態では、補間関数処理部30による縮小処理は、図5に示した標本化関数を用いて行われる。
In addition, the reduction process using the adjustment reduction ratio C is not performed using a two-dimensional reduction filter as in the reduction process in
図6および図7は、補間関数処理部30によって行われる縮小処理の説明図である。上述したように、固定縮小倍率Aを1/2とすると、調整縮小倍率Cは1/2と1の間の値に設定される。図6および図7では、□は縮小前の各画素を、☆は縮小後の各画素を、△は縮小後の画素を求めるために用いられる中間画素をそれぞれ示している。縮小前の画素の水平および垂直の間隔に比べて、縮小後の画素の間隔の方が間隔が広くなって画素数が少なくなる。
6 and 7 are explanatory diagrams of the reduction process performed by the interpolation
いま、縮小後の画素pの画素値pを算出する場合を考える。例えば、(1)最初にこの画素pと垂直方向の位置が同じ4つの中間画素h1、h2、h3、h4の各画素値h1、h2、h3、h4を求め(図6)、(2)次にこれらの各画素値h1、h2、h3、h4に基づいて画素値pを算出する(図7)。 Consider a case where the pixel value p of the reduced pixel p is calculated. For example, (1) First, pixel values h1, h2, h3, h4 of four intermediate pixels h1, h2, h3, h4 having the same position in the vertical direction as the pixel p are obtained (FIG. 6), (2) next The pixel value p is calculated based on these pixel values h1, h2, h3, and h4 (FIG. 7).
中間画素h1の画素値h1の算出は、この中間画素h1の上下2画素a01、a05、a09、a13と(1)式で示される標本化関数(図5)を用いて行われる。具体的には、画素a01〜a16の水平方向および垂直方向の間隔を1とし、中間画素h1から画素a01、a05、a09、a13までの距離をt1、t2、t3、t4とすると、中間画素h1の画素値h1は、
h1=a01×φ(t1)+a05×φ(t2)
+a09×φ(t3)+a13×φ(t4)
となる。他の中間画素h2、h3、h4の各画素値についても同様である。
The calculation of the pixel value h1 of the intermediate pixel h1 is performed using the upper and lower two pixels a01, a05, a09, and a13 of the intermediate pixel h1 and the sampling function (FIG. 5) represented by equation (1). Specifically, when the horizontal and vertical intervals of the pixels a01 to a16 are 1, and the distances from the intermediate pixel h1 to the pixels a01, a05, a09, and a13 are t1, t2, t3, and t4, the intermediate pixel h1 The pixel value h1 of
h1 = a01 × φ (t1) + a05 × φ (t2)
+ A09 × φ (t3) + a13 × φ (t4)
It becomes. The same applies to the pixel values of the other intermediate pixels h2, h3, and h4.
次に、これらの4つの中間画素h1〜h4の各画素値と(1)式で示される標本化関数を用いて、同様の方法で画素pの画素値pが求められる。また、☆で示された他の画素についても同様の方法で画素値が求められる。このようにして求められた各画素の画素値(縮小画像データ)が縮小画像データ格納部36に格納される。
Next, using the pixel values of these four intermediate pixels h1 to h4 and the sampling function represented by the expression (1), the pixel value p of the pixel p is obtained by the same method. In addition, pixel values of other pixels indicated by ☆ are obtained in the same manner. The pixel value (reduced image data) of each pixel obtained in this way is stored in the reduced image
次に、表示処理部40は、縮小画像データ格納部36に格納された縮小画像データを読み出し、画像入力部10によって取り込まれた画像を総合縮小倍率Bで縮小した後の縮小画像を表示装置42の画面上に表示する(ステップ209)。
Next, the
このように、本実施形態の画像処理装置では、固定縮小倍率Aの二次元縮小フィルタによる1回あるいは複数回の縮小処理と調整縮小倍率Cの1回の縮小処理とを組み合わせることにより、1/4よりも小さい任意縮小倍率の縮小処理が可能となる。また、縮小処理を複数回に分けて行うことにより、各画素の情報を縮小処理後の各画素の情報に含ませることができるため、画質の悪化を抑えることができる。さらに、係数が固定の縮小フィルタを繰り返し用いることで、処理内容を単純化することができる。特に、固定縮小倍率Aを1/2とすることにより、固定縮小倍率の縮小処理をさらに単純化することができる。 As described above, in the image processing apparatus according to the present embodiment, by combining one or more reduction processes using the two-dimensional reduction filter with the fixed reduction ratio A and one reduction process with the adjustment reduction ratio C, 1 / Reduction processing with an arbitrary reduction ratio smaller than 4 is possible. Further, by performing the reduction process in a plurality of times, information on each pixel can be included in the information on each pixel after the reduction process, so that deterioration in image quality can be suppressed. Furthermore, the processing content can be simplified by repeatedly using a reduction filter with a fixed coefficient. In particular, by reducing the fixed reduction ratio A to 1/2, the reduction process of the fixed reduction ratio can be further simplified.
なお、本発明は上記実施形態に限定されるものではなく、本発明の要旨の範囲内で種々の変形実施が可能である。例えば、上述した実施形態では、第1の方向を水平方向、第2の方向を垂直方向として、これらの方向に沿って規則正しく配置された各画素からなる入力画像に対して縮小処理を行う場合を説明したが、第1の方向と第2の方向は互いに直交する水平方向および垂直方向以外の方向でであってもよい。 In addition, this invention is not limited to the said embodiment, A various deformation | transformation implementation is possible within the range of the summary of this invention. For example, in the above-described embodiment, the first direction is the horizontal direction and the second direction is the vertical direction, and the reduction process is performed on the input image composed of the pixels regularly arranged along these directions. Although described, the first direction and the second direction may be directions other than the horizontal direction and the vertical direction orthogonal to each other.
また、ステップ207の縮小処理(調整縮小倍率Cの縮小処理)を、図6および図7に示すように、最初に水平方向に並んだ4つの中間画素の画素値を求め、次にこれら4つの中間画素の画素値から最終的な画素の画素値を求めるようにしたが、反対に、最初に垂直方向に並んだ4つの中間画素の画素値を求め、次にこれら4つの中間画素の画素値から最終的な画素の画素値を求めるようにしてもよい。 Further, as shown in FIGS. 6 and 7, the reduction process of step 207 (reduction process of the adjustment reduction magnification C) first obtains the pixel values of the four intermediate pixels arranged in the horizontal direction, and then determines these four values. The pixel value of the final pixel is obtained from the pixel value of the intermediate pixel. Conversely, the pixel values of four intermediate pixels arranged in the vertical direction are first obtained, and then the pixel values of these four intermediate pixels are obtained. From this, the final pixel value of the pixel may be obtained.
また、上述したした実施形態では、ステップ204、207の両方の縮小処理を図5および(1)式で示した標本化関数を用いて行う場合について説明したが、その他の標本化関数を用いるようにしてもよい。また、ステップ204の縮小処理で用いる二次元縮小フィルタを得るために用いられる標本化関数と、ステップ207の縮小処理に用いる標本化関数を異ならせるようにしてもよい。
In the above-described embodiment, the case has been described in which the reduction processing in both
また、上述した実施形態では、固定縮小倍率Aを1/2としたが固定縮小倍率Aを1/2以外の値としてもよい。また、二次元縮小フィルタを用いた縮小処理では、着目画素wの周囲の4×4画素(16画素)の画素値(正確にはその中の8画素の画素値)を考慮して画素値を算出したが、4×4画素以外の範囲の各画素値を考慮して着目画素wの画素値を算出するようにしてもよい。 In the above-described embodiment, the fixed reduction magnification A is set to ½, but the fixed reduction magnification A may be set to a value other than ½. In the reduction process using the two-dimensional reduction filter, the pixel value is determined in consideration of the pixel value of 4 × 4 pixels (16 pixels) around the pixel of interest w (more precisely, the pixel value of 8 pixels therein). Although calculated, the pixel value of the pixel of interest w may be calculated in consideration of each pixel value in a range other than 4 × 4 pixels.
10 画像入力部
12 入力画像データ格納部
14 総合縮小倍率設定部
20 縮小フィルタ処理部
22 縮小フィルタ格納部
24 縮小回数設定部
26 中間画像データ格納部
30 補間関数処理部
32 補間関数格納部
34 調整縮小倍率設定部
36 縮小画像データ格納部
40 表示処理部
42 表示装置
DESCRIPTION OF
Claims (30)
前記第1および第2の方向のそれぞれに沿って固定縮小倍率で画像の縮小を行う際に用いる二次元縮小フィルタのデータを格納する縮小フィルタ格納手段と、
前記縮小フィルタ格納手段に格納されたデータに基づいて、前記第1の画像に対して前記二次元縮小フィルタを用いた縮小処理を1回あるいは複数回繰り返して行う第1の縮小処理手段と、
前記第1の縮小処理手段によって縮小処理された後の第2の画像に対して、前記固定縮小倍率よりも大きい調整縮小倍率で縮小処理を行って第3の画像を出力する第2の縮小処理手段と、
を備えることを特徴とする画像処理装置。 An image input means for inputting a first image composed of a plurality of pixels arranged at equal intervals along each of a first direction and a second direction that is non-parallel to the first direction;
Reduction filter storage means for storing data of a two-dimensional reduction filter used when performing image reduction at a fixed reduction magnification along each of the first and second directions;
First reduction processing means for performing reduction processing using the two-dimensional reduction filter on the first image one or more times based on data stored in the reduction filter storage means;
Second reduction processing for outputting a third image by performing reduction processing at an adjustment reduction magnification larger than the fixed reduction magnification for the second image after reduction processing by the first reduction processing means Means,
An image processing apparatus comprising:
前記第1の画像と前記第3の画像に基づいて、前記第1の縮小処理手段による縮小処理の回数を設定する縮小回数設定手段をさらに備えることを特徴とする画像処理装置。 In claim 1,
An image processing apparatus, further comprising: a reduction number setting unit that sets the number of times of reduction processing by the first reduction processing unit based on the first image and the third image.
前記固定縮小倍率をA、前記第1の画像を前記第3の画像に縮小する際の縮小倍率をB、前記第1の縮小処理手段による縮小処理の回数をN、前記第2の縮小処理手段による縮小処理の調整縮小倍率をCとしたときに、
前記縮小回数設定手段は、B=AN×C、かつ、A<C<1を満たす前記Nの値を設定することを特徴とする画像処理装置。 In claim 2,
The fixed reduction magnification is A, the reduction magnification when the first image is reduced to the third image is B, the number of times of reduction processing by the first reduction processing means is N, and the second reduction processing means. When the adjustment reduction ratio of reduction processing by C is C,
The image processing apparatus, wherein the reduction count setting means sets the value of N satisfying B = A N × C and A <C <1.
前記第1の画像と前記第3の画像に基づいて、前記第2の縮小処理手段による縮小処理の調整縮小倍率を設定する調整縮小倍率設定手段をさらに備えることを特徴とする画像処理装置。 In claim 1,
An image processing apparatus, further comprising: an adjustment reduction ratio setting unit that sets an adjustment reduction ratio of a reduction process by the second reduction processing unit based on the first image and the third image.
前記固定縮小倍率をA、前記第1の画像を前記第3の画像に縮小する際の縮小倍率をB、前記第1の縮小処理手段による縮小処理の回数をN、前記第2の縮小処理手段による縮小処理の調整縮小倍率をCとしたときに、
前記調整縮小倍率設定手段は、B=AN×C、かつ、A<C<1を満たす前記Cの値を設定することを特徴とする画像処理装置。 In claim 4,
The fixed reduction magnification is A, the reduction magnification when the first image is reduced to the third image is B, the number of times of reduction processing by the first reduction processing means is N, and the second reduction processing means. When the adjustment reduction ratio of reduction processing by C is C,
The image processing apparatus, wherein the adjustment reduction magnification setting means sets the value of C satisfying B = A N × C and A <C <1.
前記第1の画像の画素数と前記第3の画像の画素数とに基づいて前記Bの値を設定する総合縮小倍率設定手段をさらに備えることを特徴とする画像処理装置。 In claim 3 or 5,
An image processing apparatus, further comprising: an overall reduction ratio setting unit that sets the value of B based on the number of pixels of the first image and the number of pixels of the third image.
前記第1および第2の方向は、互いに直交していることを特徴とする画像処理装置。 In any one of Claims 1-6,
The image processing apparatus, wherein the first and second directions are orthogonal to each other.
前記固定縮小倍率は1/2であることを特徴とする画像処理装置。 In any one of Claims 1-6,
The image processing apparatus according to claim 1, wherein the fixed reduction magnification is 1/2.
前記二次元縮小フィルタは、4×4画素の各画素値に所定の係数を乗算した値を加算して得られる値を、新たな画素の画素値とすることを特徴とする画像処理装置。 In any one of Claims 1-6,
The image processing apparatus, wherein the two-dimensional reduction filter uses a value obtained by adding a value obtained by multiplying each pixel value of 4 × 4 pixels by a predetermined coefficient as a pixel value of a new pixel.
前記4×4画素の各画素の画素値に乗算する値を、配置の順にw11、w12、w13、w14、w21、w22、w23、w24、w31、w32、w33、w34、w41、w42、w43、w44、としたときに、w11=w14=w41=w44=−1/16、w22=w23=w32=w33=9/16、それ以外を0とすることを特徴とする画像処理装置。 In claim 9,
The value multiplied by the pixel value of each pixel of the 4 × 4 pixels is w11, w12, w13, w14, w21, w22, w23, w24, w31, w32, w33, w34, w41, w42, w43, in the order of arrangement. An image processing apparatus characterized in that when w44, w11 = w14 = w41 = w44 = -1 / 16, w22 = w23 = w32 = w33 = 9/16, and the others are set to 0.
前記第1および第2の方向のそれぞれに沿って固定縮小倍率で画像の縮小を行う際に用いる二次元縮小フィルタのデータを縮小フィルタ格納手段から読み出して、前記第1の画像に対して前記二次元縮小フィルタを用いた縮小処理を1回あるいは複数回繰り返して行う第1の縮小処理ステップと、
前記第1の縮小処理ステップにおいて縮小処理された後の第2の画像に対して、前記固定縮小倍率よりも大きい調整縮小倍率で縮小処理を行って第3の画像を出力する第2の縮小処理ステップと、
を有することを特徴とする画像処理方法。 An image input step for inputting a first image composed of a plurality of pixels arranged at equal intervals along each of a first direction and a second direction that is non-parallel to the first direction;
Data of a two-dimensional reduction filter used when reducing the image at a fixed reduction magnification along each of the first and second directions is read from the reduction filter storage means, and the second image is read from the first image. A first reduction processing step in which reduction processing using a dimension reduction filter is repeated once or a plurality of times;
Second reduction processing for outputting a third image by performing reduction processing with an adjustment reduction magnification larger than the fixed reduction magnification on the second image after the reduction processing in the first reduction processing step Steps,
An image processing method comprising:
前記第1の画像と前記第3の画像に基づいて、前記第1の縮小処理ステップにおける縮小処理の回数を設定する縮小回数設定ステップをさらに有することを特徴とする画像処理方法。 In claim 11,
An image processing method, further comprising: a reduction count setting step for setting the number of times of reduction processing in the first reduction processing step based on the first image and the third image.
前記固定縮小倍率をA、前記第1の画像を前記第3の画像に縮小する際の縮小倍率をB、前記第1の縮小処理手段による縮小処理の回数をN、前記第2の縮小処理手段による縮小処理の調整縮小倍率をCとしたときに、
前記縮小回数設定ステップでは、B=AN×C、かつ、A<C<1を満たす前記Nの値を設定することを特徴とする画像処理方法。 In claim 12,
The fixed reduction magnification is A, the reduction magnification when the first image is reduced to the third image is B, the number of times of reduction processing by the first reduction processing means is N, and the second reduction processing means. When the adjustment reduction ratio of reduction processing by C is C,
In the reduction count setting step, the N value satisfying B = A N × C and A <C <1 is set.
前記第1の画像と前記第3の画像に基づいて、前記第2の縮小処理ステップにおける縮小処理の調整縮小倍率を設定する調整縮小倍率設定ステップをさらに有することを特徴とする画像処理方法。 In claim 11,
An image processing method, further comprising: an adjustment reduction magnification setting step for setting an adjustment reduction magnification of the reduction processing in the second reduction processing step based on the first image and the third image.
前記固定縮小倍率をA、前記第1の画像を前記第3の画像に縮小する際の縮小倍率をB、前記第1の縮小処理ステップにおける縮小処理の回数をN、前記第2の縮小処理ステップにおける縮小処理の調整縮小倍率をCとしたときに、
前記調整縮小倍率設定ステップでは、B=AN×C、かつ、A<C<1を満たす前記Cの値を設定することを特徴とする画像処理方法。 In claim 14,
The fixed reduction magnification is A, the reduction magnification when the first image is reduced to the third image is B, the number of times of reduction processing in the first reduction processing step is N, and the second reduction processing step. When the adjustment reduction magnification of the reduction processing in C is C,
In the adjustment reduction magnification setting step, the value of C satisfying B = A N × C and A <C <1 is set.
前記第1の画像の画素数と前記第3の画像の画素数とに基づいて前記Bの値を設定する総合縮小倍率設定ステップをさらに有することを特徴とする画像処理方法。 In claim 13 or 15,
An image processing method, further comprising: an overall reduction ratio setting step of setting the value of B based on the number of pixels of the first image and the number of pixels of the third image.
前記第1および第2の方向は、互いに直交していることを特徴とする画像処理方法。 In any one of Claims 11-16,
The image processing method according to claim 1, wherein the first and second directions are orthogonal to each other.
前記固定縮小倍率は1/2であることを特徴とする画像処理方法。 In any one of Claims 11-16,
The image processing method according to claim 1, wherein the fixed reduction magnification is 1/2.
前記二次元縮小フィルタは、4×4画素の各画素値に所定の係数を乗算した値を加算して得られる値を、新たな画素の画素値とすることを特徴とする画像処理方法。 In any one of Claims 11-16,
The image processing method, wherein the two-dimensional reduction filter uses a value obtained by adding a value obtained by multiplying each pixel value of 4 × 4 pixels by a predetermined coefficient as a pixel value of a new pixel.
前記4×4画素の各画素の画素値に乗算する値を、配置の順にw11、w12、w13、w14、w21、w22、w23、w24、w31、w32、w33、w34、w41、w42、w43、w44、としたときに、w11=w14=w41=w44=−1/16、w22=w23=w32=w33=9/16、それ以外を0とすることを特徴とする画像処理方法。 In claim 19,
The value multiplied by the pixel value of each pixel of the 4 × 4 pixels is w11, w12, w13, w14, w21, w22, w23, w24, w31, w32, w33, w34, w41, w42, w43, in the order of arrangement. An image processing method, wherein w11 = w14 = w41 = w44 = -1 / 16, w22 = w23 = w32 = w33 = 9/16, and other values are set to 0 when w44 is assumed.
第1の方向とこの第1の方向とは非平行な第2の方向のそれぞれに沿って等間隔に配置された複数の画素からなる第1の画像の入力を行う画像入力手段と、
前記第1および第2の方向のそれぞれに沿って固定縮小倍率で画像の縮小を行う際に用いる二次元縮小フィルタのデータを格納する縮小フィルタ格納手段と、
前記縮小フィルタ格納手段に格納されたデータに基づいて、前記第1の画像に対して前記二次元縮小フィルタを用いた縮小処理を1回あるいは複数回繰り返して行う第1の縮小処理手段と、
前記第1の縮小処理手段によって縮小処理された後の第2の画像に対して、前記固定縮小倍率よりも大きい調整縮小倍率で縮小処理を行って第3の画像を出力する第2の縮小処理手段と、
して機能させるための画像処理プログラム。 Computer
An image input means for inputting a first image composed of a plurality of pixels arranged at equal intervals along each of a first direction and a second direction that is non-parallel to the first direction;
Reduction filter storage means for storing data of a two-dimensional reduction filter used when performing image reduction at a fixed reduction magnification along each of the first and second directions;
First reduction processing means for performing reduction processing using the two-dimensional reduction filter on the first image one or more times based on data stored in the reduction filter storage means;
Second reduction processing for outputting a third image by performing reduction processing at an adjustment reduction magnification larger than the fixed reduction magnification for the second image after reduction processing by the first reduction processing means Means,
Image processing program to make it function.
コンピュータを、さらに、前記第1の画像と前記第3の画像に基づいて、前記第1の縮小処理手段による縮小処理の回数を設定する縮小回数設定手段として機能させるための画像処理プログラム。 In claim 21,
An image processing program for causing a computer to further function as a reduction number setting means for setting the number of times of reduction processing by the first reduction processing means based on the first image and the third image.
前記固定縮小倍率をA、前記第1の画像を前記第3の画像に縮小する際の縮小倍率をB、前記第1の縮小処理手段による縮小処理の回数をN、前記第2の縮小処理手段による縮小処理の調整縮小倍率をCとしたときに、
前記縮小回数設定手段は、B=AN×C、かつ、A<C<1を満たす前記Nの値を設定することを特徴とする画像処理プログラム。 In claim 22,
The fixed reduction magnification is A, the reduction magnification when the first image is reduced to the third image is B, the number of times of reduction processing by the first reduction processing means is N, and the second reduction processing means. When the adjustment reduction ratio of reduction processing by C is C,
The image processing program characterized in that the reduction number setting means sets the value of N satisfying B = A N × C and A <C <1.
コンピュータを、さらに、前記第1の画像と前記第3の画像に基づいて、前記第2の縮小処理手段による縮小処理の調整縮小倍率を設定する調整縮小倍率設定手段として機能させるための画像処理プログラム。 In claim 21,
An image processing program for causing a computer to further function as an adjustment reduction ratio setting means for setting an adjustment reduction ratio for reduction processing by the second reduction processing means based on the first image and the third image .
前記固定縮小倍率をA、前記第1の画像を前記第3の画像に縮小する際の縮小倍率をB、前記第1の縮小処理手段による縮小処理の回数をN、前記第2の縮小処理手段による縮小処理の調整縮小倍率をCとしたときに、
前記調整縮小倍率設定手段は、B=AN×C、かつ、A<C<1を満たす前記Cの値を設定することを特徴とする画像処理プログラム。 In claim 24,
The fixed reduction magnification is A, the reduction magnification when the first image is reduced to the third image is B, the number of times of reduction processing by the first reduction processing means is N, and the second reduction processing means. When the adjustment reduction ratio of reduction processing by C is C,
The image processing program characterized in that the adjustment reduction magnification setting means sets the value of C that satisfies B = A N × C and A <C <1.
コンピュータを、さらに、前記第1の画像の画素数と前記第3の画像の画素数とに基づいて前記Bの値を設定する総合縮小倍率設定手段として機能させるための画像処理プログラム。 In claim 23 or 25,
An image processing program for causing a computer to further function as an overall reduction ratio setting unit that sets the value of B based on the number of pixels of the first image and the number of pixels of the third image.
前記第1および第2の方向は、互いに直交していることを特徴とする画像処理プログラム。 In any of claims 21 to 26,
An image processing program characterized in that the first and second directions are orthogonal to each other.
前記固定縮小倍率は1/2であることを特徴とする画像処理プログラム。 In any of claims 21 to 26,
An image processing program, wherein the fixed reduction magnification is 1/2.
前記二次元縮小フィルタは、4×4画素の各画素値に所定の係数を乗算した値を加算して得られる値を、新たな画素の画素値とすることを特徴とする画像処理プログラム。 In any of claims 21 to 26,
An image processing program characterized in that the two-dimensional reduction filter uses a value obtained by adding a value obtained by multiplying each pixel value of 4 × 4 pixels by a predetermined coefficient as a pixel value of a new pixel.
前記4×4画素の各画素の画素値に乗算する値を、配置の順にw11、w12、w13、w14、w21、w22、w23、w24、w31、w32、w33、w34、w41、w42、w43、w44、としたときに、w11=w14=w41=w44=−1/16、w22=w23=w32=w33=9/16、それ以外を0とすることを特徴とする画像処理プログラム。 In claim 29,
The value multiplied by the pixel value of each pixel of the 4 × 4 pixels is w11, w12, w13, w14, w21, w22, w23, w24, w31, w32, w33, w34, w41, w42, w43, in the order of arrangement. An image processing program characterized in that when w44, w11 = w14 = w41 = w44 = -1 / 16, w22 = w23 = w32 = w33 = 9/16, and the others are set to 0.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008226554A JP4832487B2 (en) | 2008-09-04 | 2008-09-04 | Image processing apparatus, method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008226554A JP4832487B2 (en) | 2008-09-04 | 2008-09-04 | Image processing apparatus, method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010062879A true JP2010062879A (en) | 2010-03-18 |
JP4832487B2 JP4832487B2 (en) | 2011-12-07 |
Family
ID=42189186
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008226554A Active JP4832487B2 (en) | 2008-09-04 | 2008-09-04 | Image processing apparatus, method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4832487B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012080255A (en) * | 2010-09-30 | 2012-04-19 | Canon Inc | Image processing device and control method of the same |
JP2015041144A (en) * | 2013-08-20 | 2015-03-02 | キヤノン株式会社 | Image processing apparatus, image processing method, and computer program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07111590A (en) * | 1993-10-13 | 1995-04-25 | Konica Corp | Image output controller |
JPH1011571A (en) * | 1996-06-20 | 1998-01-16 | Mitsubishi Electric Corp | Binary picture multi-valuing and reducing processor |
JPH11353473A (en) * | 1998-06-10 | 1999-12-24 | Fluency Kenkyusho:Kk | Image processor |
JP2002094782A (en) * | 2000-09-18 | 2002-03-29 | Canon Inc | Image processing unit and method |
-
2008
- 2008-09-04 JP JP2008226554A patent/JP4832487B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07111590A (en) * | 1993-10-13 | 1995-04-25 | Konica Corp | Image output controller |
JPH1011571A (en) * | 1996-06-20 | 1998-01-16 | Mitsubishi Electric Corp | Binary picture multi-valuing and reducing processor |
JPH11353473A (en) * | 1998-06-10 | 1999-12-24 | Fluency Kenkyusho:Kk | Image processor |
JP2002094782A (en) * | 2000-09-18 | 2002-03-29 | Canon Inc | Image processing unit and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012080255A (en) * | 2010-09-30 | 2012-04-19 | Canon Inc | Image processing device and control method of the same |
JP2015041144A (en) * | 2013-08-20 | 2015-03-02 | キヤノン株式会社 | Image processing apparatus, image processing method, and computer program |
Also Published As
Publication number | Publication date |
---|---|
JP4832487B2 (en) | 2011-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8275218B2 (en) | Forward and backward image resizing method | |
US8311392B2 (en) | Image processing apparatus, image processing method, and storage medium | |
JP4832487B2 (en) | Image processing apparatus, method, and program | |
US20160217553A1 (en) | Image processing device | |
JP5075915B2 (en) | Method and system for scanning and processing images using error diffusion screening techniques | |
JP5482589B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2011040004A (en) | Image processing apparatus and image processing method | |
JP2008306497A (en) | Image processing device, method and program | |
JP2006238188A (en) | Interpolation filter and video signal processing device | |
JP6135937B2 (en) | Image processing method and image processing apparatus | |
JP2011049696A (en) | Image processing device, and image processing method | |
JP2010171624A (en) | Outline correction circuit and interpolation pixel generation circuit | |
JP2015023301A (en) | Image processing method and apparatus | |
JP4930860B2 (en) | Graphic drawing apparatus, antialiasing method and program | |
JP6647394B2 (en) | Image processing apparatus, image processing program, image processing method, image transmission / reception system, and image transmission / reception method | |
JP2017017609A (en) | Image processing device | |
JP4693895B2 (en) | Image processing apparatus and method | |
JP2011024051A (en) | Image processing apparatus and method | |
JP6063471B2 (en) | Page image generation apparatus, operation control method thereof, and operation control program thereof | |
JP2014090272A (en) | Image processing method, image processing apparatus and program | |
JP6326914B2 (en) | Interpolation apparatus and interpolation method | |
JP2012205190A (en) | Image processing apparatus and program | |
JP2010093412A (en) | Image editing apparatus | |
JP2009044426A (en) | Image processor | |
JP4531835B2 (en) | Image processing apparatus and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100825 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100831 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110802 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110902 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110920 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110920 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4832487 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140930 Year of fee payment: 3 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |