JP2004102904A - Filtering device and filtering method - Google Patents
Filtering device and filtering method Download PDFInfo
- Publication number
- JP2004102904A JP2004102904A JP2002266990A JP2002266990A JP2004102904A JP 2004102904 A JP2004102904 A JP 2004102904A JP 2002266990 A JP2002266990 A JP 2002266990A JP 2002266990 A JP2002266990 A JP 2002266990A JP 2004102904 A JP2004102904 A JP 2004102904A
- Authority
- JP
- Japan
- Prior art keywords
- image
- pixels
- reduced
- filtering
- filtered
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000001914 filtration Methods 0.000 title claims abstract description 35
- 238000000034 method Methods 0.000 title claims description 24
- 230000000694 effects Effects 0.000 description 11
- 239000011159 matrix material Substances 0.000 description 10
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4007—Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
- Picture Signal Circuits (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、デジタル画像処理に関するものである。
【0002】
【従来の技術】
従来デジタルフィルタ処理では、フィルタ効果を顕著にするため、比較的大きなサイズ(例えば30×30マトリックス)のフィルタが使用されている。しかし、このようなフィルタを用いてフィルタ処理を行うと、計算量が膨大であるため、画像処理速度の低下を招く(例えば、特許文献1参照)。
【0003】
一方、画像処理速度を速めるため、小さなサイズ(例えば3×3マトリックス)のフィルタを使用すると、計算量は減少するが、フィルタの参照領域が小さくなり、フィルタ効果、例えばソフトフォーカス効果を充分に発揮させることができない。
【0004】
【特許文献1】
特開平9−251532号公報
【0005】
【発明が解決しようとする課題】
本発明は、上記問題点を鑑みて成されたものであり、画像処理速度が速く、フィルタ効果を充分に発揮することができるようにフィルタ処理することを目的とする。
【0006】
【課題を解決するための手段】
本発明に係るフィルタ処理装置は、原画像の画素数を減少させ縮小画像を得る画像縮小手段と、縮小画像を構成する画素データをフィルタ処理してフィルタ処理画像データを得るフィルタ処理手段と、フィルタ処理画像データに対応するフィルタ処理画像の画素数を原画像の画素数に復元させ復元画像を得る画素数復元手段とを備える。これにより、高速処理でフィルタ効果の高い画像を得ることが可能となる。
【0007】
画像縮小手段は、原画像を複数の領域に分割し領域のそれぞれから1画素を選択すること、または原画像を複数の領域に分割し領域のそれぞれに含まれる複数の画素データの平均値をとることのいずれかにより縮小画像を得ることが好ましい。一方、画素数復元手段は、フィルタ処理画像データを補間することにより復元画像を求めることが好ましい。
【0008】
復元画像を構成する画素データはノイズ除去のためにさらにフィルタ処理されることが好ましい。また、フィルタ処理は、ローパスフィルタ処理であることが好ましい。これにより、ぼかし効果の高い画像が高速で得ることができる。また、縮小画像の画素数は複数段階に設定可能であることが好ましい。これにより、目的に応じてフィルタ効果を調整することが可能である。
【0009】
本発明に係るフィルタ処理方法は、原画像の画素数を減少させ縮小画像を得る画像縮小ステップと、縮小画像を構成する画素データをフィルタ処理してフィルタ処理画像データを得るフィルタ処理ステップと、フィルタ処理画像データに対応するフィルタ処理画像の画素数を原画像の画素数に復元させ復元画像を得る画素数復元ステップとを備える。
【0010】
【発明の実施の形態】
以下、本発明の実施形態について添付図面を参照して説明する。
【0011】
図1は本発明の一実施形態におけるフィルタ処理の流れ図である。本実施形態において、フィルタ処理はローパスフィルタ処理である。原画像41は、例えばデジタルカメラによって得られた画像データに対応する画像である。
【0012】
本実施形態において、原画像41は2048×1536画素の画像であり、画素数を減少することにより、例えば320×240画素の縮小画像42に変換される。ここで、画素数の減少は、例えば、バイリニア方式、すなわち、原画像41を複数の領域に分割しそれぞれの領域に含まれる複数の画素データの平均値を縮小画像の1画素データとすることにより行なわれる。また、画素数の縮小は、例えば、原画像41を複数の領域に分割し領域のそれぞれから1画素を選択して縮小画像の1画素とすることにより行われる。なお、複数の領域のそれぞれから1画素選択して縮小画像の1画素を得る際には、いわゆるバイキュービック方式と言われる周囲の画素情報より補間することを行っても良い。
【0013】
縮小画像42の各々の画素データには公知の3×3マトリックスのローパスフィルタ処理が所定回数施され、フィルタ処理画像43の画素データであるフィルタ処理画像データが得られる。フィルタ処理画像43は、輪郭がはっきりしないぼけた320×240画素の画像である。
【0014】
次に、フィルタ処理画像43の画素数は原画像41の画素数に復元され、フィルタ処理画像43は2048×1536画素の復元画像44となる。ここで、復元画像44は、例えば、フィルタ処理画像データを補間することにより求められる。その後、復元画像44の画素データは、ノイズを除去するために、さらにローパスフィルタ処理が所定回数施され、処理済画像データ45が得られる。
【0015】
ここで、ローパスフィルタ処理が、画像の画素数が減少させられてから行われるのは、次に述べるように、同一のマトリックス(例えば3×3)を使用しても、画素数が多い画像においてローパスフィルタ処理を行うよりも効果的に画像をぼかすことが可能だからである。
【0016】
画素数が減少させられた縮小画像42における1画素47は、画素数が減少する前の輝度画像41における数10画素分の領域46に相当する。したがって、画素数を減少させてからローパスフィルタを掛けると、画素数を減少させない場合に比べて、3×3マトリックスに対する参照領域が非常に大きくなる。このため、たとえ3×3マトリックスのように、参照画素数が少ないマトリックスによりローパスフィルタを掛けたとしても、参照画素が非常に大きいマトリックス(例えば数10×数10のマトリックス)によりローパスフィルタを掛けたときと同等のぼかし効果が得られる。また、マトリックスの参照画素は少ないので、処理速度は非常に速い。
【0017】
図2はフィルタ処理のフローチャートを示す。フィルタ処理が開始されると、ステップ300において、縮小画像42における画素数が決定される。ここで、本実施形態においては、縮小画像42における画素数は、予め設定された複数段階から選択されて決定される。例えば、予め設定された複数段階の画素数は640×480、480×320、320×240である。ステップ310では、原画像41の画素数が、ステップ300で決定された画素数に減少させられ縮小画像42が得られる。
【0018】
次に、ステップ320では、縮小画像42を構成する画素データにローパスフィルタ処理が予め設定されている所定回数だけ掛けられ、フィルタ処理画像43が得られる。ステップ330では、フィルタ処理画像43の画素数を原画像と同一の画素数に復元させ、復元画像44が得られる。ステップ340では、その復元画像44にさらにローパスフィルタ処理が予め設定されている所定回数だけ行われる。これらの処理により、フィルタ処理は終了し、ぼかし効果の高い処理済画像データ45が得られる。
【0019】
以上のように、本実施形態におけるフィルタ処理は、画像の画素数を一旦減少させてから画像データにローパスフィルタ処理を施しているので、速い処理速度により、効果的にぼけた画像を得ることが可能である。
【0020】
なお、本実施形態においては、フィルタ処理はローパスフィルタ処理であったが、目的に応じて、他のフィルタ処理により行っても良い。
【0021】
【発明の効果】
以上のように、本発明は、フィルタ処理において、原画像の画素数を減少させてから、フィルタ処理を行うことから、フィルタ効果の高い画像を速い処理速度で得ることができる。
【図面の簡単な説明】
【図1】本発明の一実施形態であるフィルタ処理の流れ図である。
【図2】本発明の一実施形態であるフィルタ処理の処理ルーチンを示すフローチャートである。
【符号の説明】
41 原画像
42 縮小画像
43 フィルタ処理画像
44 復元画像
45 処理済画像データ[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to digital image processing.
[0002]
[Prior art]
Conventionally, in digital filter processing, a filter having a relatively large size (for example, a 30 × 30 matrix) is used in order to make the filter effect remarkable. However, if filter processing is performed using such a filter, the amount of calculation is enormous, which causes a reduction in image processing speed (for example, see Patent Document 1).
[0003]
On the other hand, if a filter having a small size (for example, a 3 × 3 matrix) is used to increase the image processing speed, the amount of calculation is reduced, but the reference area of the filter is reduced, and the filter effect, for example, the soft focus effect is sufficiently exhibited I can't let it.
[0004]
[Patent Document 1]
JP-A-9-251532
[Problems to be solved by the invention]
The present invention has been made in view of the above problems, and has as its object to perform a filtering process so that an image processing speed is high and a filtering effect can be sufficiently exhibited.
[0006]
[Means for Solving the Problems]
A filter processing device according to the present invention includes: an image reduction unit configured to obtain a reduced image by reducing the number of pixels of an original image; a filter processing unit configured to filter pixel data forming the reduced image to obtain filtered image data; A pixel number restoring unit for restoring the number of pixels of the filtered image corresponding to the processed image data to the number of pixels of the original image to obtain a restored image. This makes it possible to obtain an image with a high filtering effect by high-speed processing.
[0007]
The image reducing unit divides the original image into a plurality of regions and selects one pixel from each of the regions, or divides the original image into a plurality of regions and calculates an average value of a plurality of pixel data included in each of the regions. It is preferable to obtain a reduced image by any of the above. On the other hand, it is preferable that the pixel number restoring unit obtains a restored image by interpolating the filtered image data.
[0008]
It is preferable that the pixel data forming the restored image is further filtered to remove noise. Preferably, the filtering is a low-pass filtering. Thereby, an image with a high blurring effect can be obtained at high speed. Further, it is preferable that the number of pixels of the reduced image can be set in a plurality of stages. Thereby, it is possible to adjust the filter effect according to the purpose.
[0009]
A filtering method according to the present invention includes an image reducing step of reducing the number of pixels of an original image to obtain a reduced image; a filtering step of filtering pixel data forming the reduced image to obtain filtered image data; A pixel number restoring step of restoring the number of pixels of the filtered image corresponding to the processed image data to the number of pixels of the original image to obtain a restored image.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.
[0011]
FIG. 1 is a flowchart of a filtering process according to an embodiment of the present invention. In the present embodiment, the filtering is a low-pass filtering. The
[0012]
In the present embodiment, the
[0013]
A known 3 × 3 matrix low-pass filter process is performed on each pixel data of the reduced image 42 a predetermined number of times, and filtered image data that is pixel data of the filtered
[0014]
Next, the number of pixels of the filtered
[0015]
Here, the low-pass filter processing is performed after the number of pixels of the image is reduced, as described below, even in the case of using an identical matrix (for example, 3 × 3), in an image having a large number of pixels. This is because an image can be blurred more effectively than performing low-pass filtering.
[0016]
One
[0017]
FIG. 2 shows a flowchart of the filtering process. When the filtering process is started, in step 300, the number of pixels in the reduced
[0018]
Next, in
[0019]
As described above, in the filter processing according to the present embodiment, the number of pixels of the image is once reduced, and then the low-pass filter processing is performed on the image data. It is possible.
[0020]
In the present embodiment, the filtering process is a low-pass filtering process, but may be performed by another filtering process according to the purpose.
[0021]
【The invention's effect】
As described above, according to the present invention, since the filtering process is performed after the number of pixels of the original image is reduced in the filtering process, an image having a high filtering effect can be obtained at a high processing speed.
[Brief description of the drawings]
FIG. 1 is a flowchart of a filter process according to an embodiment of the present invention.
FIG. 2 is a flowchart illustrating a processing routine of a filter process according to an embodiment of the present invention.
[Explanation of symbols]
41
Claims (7)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002266990A JP2004102904A (en) | 2002-09-12 | 2002-09-12 | Filtering device and filtering method |
US10/657,173 US7274827B2 (en) | 2002-09-12 | 2003-09-09 | Filter process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002266990A JP2004102904A (en) | 2002-09-12 | 2002-09-12 | Filtering device and filtering method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004102904A true JP2004102904A (en) | 2004-04-02 |
Family
ID=32265646
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002266990A Withdrawn JP2004102904A (en) | 2002-09-12 | 2002-09-12 | Filtering device and filtering method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004102904A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006011539A (en) * | 2004-06-22 | 2006-01-12 | Namco Ltd | Program, information storage medium, and image generating system |
JP2007251860A (en) * | 2006-03-20 | 2007-09-27 | Ricoh Co Ltd | Color noise elimination method for image data and imaging apparatus using the same |
JP2008124641A (en) * | 2006-11-09 | 2008-05-29 | Sony Corp | Image processor, image processing method, and program |
WO2009017138A1 (en) * | 2007-07-27 | 2009-02-05 | Ricoh Company, Ltd. | Image processor, image processing method, digital camera, and imaging apparatus |
US8169656B2 (en) | 2006-01-30 | 2012-05-01 | Brother Kogyo Kabushiki Kaisha | Image processing devices and methods for resizing an original image therefor |
US8471929B2 (en) | 2010-02-05 | 2013-06-25 | Canon Kabushiki Kaisha | Imaging apparatus and image processing method |
US9681039B2 (en) | 2014-08-01 | 2017-06-13 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and program for filter processing |
US9779701B2 (en) | 2014-02-05 | 2017-10-03 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and imaging apparatus |
-
2002
- 2002-09-12 JP JP2002266990A patent/JP2004102904A/en not_active Withdrawn
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006011539A (en) * | 2004-06-22 | 2006-01-12 | Namco Ltd | Program, information storage medium, and image generating system |
US8169656B2 (en) | 2006-01-30 | 2012-05-01 | Brother Kogyo Kabushiki Kaisha | Image processing devices and methods for resizing an original image therefor |
JP2007251860A (en) * | 2006-03-20 | 2007-09-27 | Ricoh Co Ltd | Color noise elimination method for image data and imaging apparatus using the same |
JP2008124641A (en) * | 2006-11-09 | 2008-05-29 | Sony Corp | Image processor, image processing method, and program |
WO2009017138A1 (en) * | 2007-07-27 | 2009-02-05 | Ricoh Company, Ltd. | Image processor, image processing method, digital camera, and imaging apparatus |
US8194158B2 (en) | 2007-07-27 | 2012-06-05 | Ricoh Company, Ltd. | Image processor, image processing method, digital camera, and imaging apparatus |
US8471929B2 (en) | 2010-02-05 | 2013-06-25 | Canon Kabushiki Kaisha | Imaging apparatus and image processing method |
US9779701B2 (en) | 2014-02-05 | 2017-10-03 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and imaging apparatus |
US9681039B2 (en) | 2014-08-01 | 2017-06-13 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and program for filter processing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111275626B (en) | Video deblurring method, device and equipment based on ambiguity | |
JP4290193B2 (en) | Image processing device | |
JP3251127B2 (en) | Video data processing method | |
JP2006238032A (en) | Method and device for restoring image | |
JP5541205B2 (en) | Image processing apparatus, imaging apparatus, image processing program, and image processing method | |
JP4217041B2 (en) | Filtering | |
WO2016095541A1 (en) | Image processing method, device, system and computer storage medium | |
CN110782414A (en) | Dark light image denoising method based on dense connection convolution | |
JP2008060814A (en) | Imaging apparatus | |
JP2004102904A (en) | Filtering device and filtering method | |
JP2008160733A (en) | Imaging apparatus, imaging signal processing method, and program | |
CN110689486A (en) | Image processing method, device, equipment and computer storage medium | |
JP2008288947A (en) | Image processing apparatus and program thereof | |
JP2005051379A (en) | Image processing apparatus and method | |
JP2004145615A (en) | Image processor and image processing method | |
JP2007072558A (en) | Image processor and image processing method | |
US8180169B2 (en) | System and method for multi-scale sigma filtering using quadrature mirror filters | |
JP2010081497A (en) | Noise elimination apparatus and noise elimination method | |
JPH0340179A (en) | Image processor | |
JP3106831B2 (en) | Video signal processing device | |
JPH1153534A (en) | Method and device for reparing image | |
JP2004173060A (en) | Noise elimination method, image pickup device, and noise elimination program | |
JP4180782B2 (en) | Image reduction method and apparatus, and recording medium | |
CN111382772A (en) | Image processing method and device and terminal equipment | |
JP4013491B2 (en) | Apparatus, method and program for image processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050707 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20080425 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080507 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080707 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080729 |
|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20080930 |