JP2003242501A - Image processing apparatus and method, image forming apparatus, and computer-readable program - Google Patents

Image processing apparatus and method, image forming apparatus, and computer-readable program

Info

Publication number
JP2003242501A
JP2003242501A JP2002042900A JP2002042900A JP2003242501A JP 2003242501 A JP2003242501 A JP 2003242501A JP 2002042900 A JP2002042900 A JP 2002042900A JP 2002042900 A JP2002042900 A JP 2002042900A JP 2003242501 A JP2003242501 A JP 2003242501A
Authority
JP
Japan
Prior art keywords
size
noise removal
filter
image
noise
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002042900A
Other languages
Japanese (ja)
Inventor
Masatoshi Matsudaira
正年 松平
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 JP2002042900A priority Critical patent/JP2003242501A/en
Publication of JP2003242501A publication Critical patent/JP2003242501A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

(57)【要約】 【課題】 暗電流ノイズ等について、ノイズ除去する際
の処理量を抑制しつつ、効果的にノイズ除去を行うこと
ができる画像処理技術を提供する。 【解決手段】 輝度情報とノイズ除去フィルタのサイズ
との対応関係を記憶する記憶手段と、画像データの各画
素に対し、前記対応関係を参照して該画素の輝度情報に
対応するサイズを選択し、前記選択したサイズのノイズ
除去フィルタを用いてノイズ除去処理を実行する手段と
を備える。前記対応関係は、より低輝度を示す輝度情報
ほど、より大きいサイズに対応するように定めておく。
(57) [Problem] To provide an image processing technique capable of effectively removing noise from dark current noise while suppressing the processing amount at the time of noise removal. SOLUTION: Storage means for storing a correspondence relationship between luminance information and a size of a noise removal filter, and for each pixel of image data, selecting a size corresponding to the luminance information of the pixel by referring to the correspondence relationship. Means for performing a noise removal process using the noise removal filter of the selected size. The correspondence is determined so that luminance information indicating lower luminance corresponds to a larger size.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、画像データのノイ
ズを除去するための画像処理技術に関し、特にプリンタ
等の画像形成装置において実行する場合に適したノイズ
除去技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing technique for removing noise from image data, and more particularly to a noise removing technique suitable for execution in an image forming apparatus such as a printer.

【0002】[0002]

【従来の技術】近年、デジタルカメラ等の急速な普及、
プリンタの低価格化に伴い、デジタルカメラ等で撮影し
た画像を自宅等のプリンタで印刷して楽しむユーザが増
えてきている。このような場合、従来はパソコン等を介
して印刷を行うのが一般的であったが、最近では、パソ
コン等を介することなく、デジタルカメラ等(又はその
記録用フラッシュメモリ)から画像を直接読み出して印
刷できるプリンタ(以下、「ダイレクトプリンタ」と呼
ぶ。)も登場し始めている。
2. Description of the Related Art In recent years, the rapid spread of digital cameras and the like,
Along with the price reduction of printers, the number of users who enjoy printing images taken with a digital camera or the like on a printer at home is increasing. In such a case, printing was generally performed via a personal computer in the past, but recently, images are directly read from a digital camera (or its flash memory for recording) without using a personal computer. Printers that can print by using a printer (hereinafter, referred to as "direct printer") have begun to appear.

【0003】[0003]

【発明が解決しようとする課題】デジタルカメラ等で画
像を撮影する場合、イメージセンサの特性に起因する画
像劣化が問題となる。
When an image is taken with a digital camera or the like, image deterioration due to the characteristics of the image sensor poses a problem.

【0004】例えば、デジタルカメラ等に用いられてい
るCCDやCMOS等のイメージセンサは、受光素子に
光が当たっていない状態においても熱によって電荷が生
じるという特性があり、かかる電荷は暗電流ノイズ(熱
ノイズ)と呼ばれる画質劣化の原因となる。特に、低価
格なデジタルカメラではCMOSイメージセンサが用い
られている場合が多く、CMOSイメージセンサーはC
CDに比べて一般的に感度が低いため、暗電流ノイズに
よる画質劣化の影響も受けやすい傾向がある。
For example, an image sensor such as CCD or CMOS used in a digital camera or the like has a characteristic that electric charges are generated by heat even when the light receiving element is not exposed to light, and such electric charges are dark current noise ( This causes deterioration of image quality called thermal noise). In particular, CMOS image sensors are often used in low-priced digital cameras, and CMOS image sensors are C
Since the sensitivity is generally lower than that of a CD, it tends to be easily affected by image quality deterioration due to dark current noise.

【0005】このような画像劣化が生じている場合にお
いて、その画像を品質良く印刷する(画像を形成する)
ためには、適切なフィルタを用いてノイズ除去処理を適
用することが重要である。
When such image deterioration has occurred, the image is printed with high quality (an image is formed).
In order to do so, it is important to apply noise removal processing using an appropriate filter.

【0006】ここで、ホスト装置を介して印刷する場合
であれば、処理能力の高いホスト装置において上記のよ
うな画像処理を高速に行うことができるが、ダイレクト
プリンタの場合は、プリンタ自身がこれらの画像処理を
行う必要がある。
Here, in the case of printing through the host device, the above-mentioned image processing can be performed at high speed in the host device having a high processing capacity, but in the case of the direct printer, the printer itself executes these processes. It is necessary to perform the image processing of.

【0007】しかし、一般にプリンタに搭載されるCP
Uは、パソコン等に比べて処理能力が低く、更にキャッ
シュも少なくかつメモリアクセスも遅いため、繰り返し
画素値を参照して演算する必要があるフィルタリング処
理を単純に適用してノイズ除去を行う構成としたので
は、印刷速度が大幅に落ちてしまうという問題が生じ
る。
However, a CP that is generally installed in a printer
U has a lower processing capacity than a personal computer, has less cache, and is slow in memory access. Therefore, U is simply configured to perform filtering processing that needs to refer to pixel values to perform noise removal. If so, there arises a problem that the printing speed is significantly reduced.

【0008】そこで、本発明では、ノイズ除去する際の
処理量を抑制しつつ、効果的にノイズ除去を行うことが
できる画像処理技術を提供し、かかる画像処理技術を利
用して、印刷速度を不要に落とすことなく、高画質の印
刷を実行することができるプリンタ等の画像形成装置を
提供することを目的とする。
In view of this, the present invention provides an image processing technique capable of effectively removing noise while suppressing the processing amount when removing noise, and using such image processing technique, the printing speed is improved. An object of the present invention is to provide an image forming apparatus such as a printer that can perform high-quality printing without dropping it unnecessarily.

【0009】[0009]

【課題を解決するための手段】本発明の画像処理装置
は、輝度情報とノイズ除去フィルタのサイズとの対応関
係を記憶する記憶手段と、画像データの各画素に対し、
前記対応関係を参照して該画素の輝度情報に対応するサ
イズを選択し、前記選択したサイズのノイズ除去フィル
タを用いてノイズ除去処理を実行する手段と、を備える
ことを特徴とする。
An image processing apparatus according to the present invention comprises a storage unit for storing a correspondence relationship between luminance information and a size of a noise removal filter, and a pixel for each pixel of image data.
A unit for selecting a size corresponding to the luminance information of the pixel with reference to the correspondence relationship and executing a noise removal process using the noise removal filter of the selected size.

【0010】前記対応関係は、より低輝度を示す輝度情
報ほど、より大きいサイズに対応するように定められて
いることが望ましい。
It is desirable that the correspondence relation is determined so that the luminance information indicating lower luminance corresponds to a larger size.

【0011】本発明の画像形成装置は、請求項1又は2
記載の画像処理装置を備えることを特徴とする。
The image forming apparatus of the present invention is the image forming apparatus according to claim 1 or 2.
The image processing device described above is provided.

【0012】本発明の画像処理方法は、画像データの各
画素に対し、該画素の輝度情報が低輝度を示す場合はフ
ィルタサイズの大きいノイズ除去フィルタを用い、高輝
度を示す場合はフィルタサイズの小さいノイズ除去フィ
ルタを用いて、ノイズ除去処理を実行することを特徴と
する。
According to the image processing method of the present invention, for each pixel of image data, a noise removal filter having a large filter size is used when the luminance information of the pixel indicates low luminance, and a noise removal filter having a large filter size is used when indicating high luminance. It is characterized in that the noise removal processing is executed using a small noise removal filter.

【0013】本発明の画像処理方法は、コンピュータに
より実施することができるが、そのためのコンピュータ
プログラムは、CD−ROM、磁気ディスク、半導体メ
モリ及び通信ネットワークなどの各種の媒体を通じてコ
ンピュータにインストールまたはロードすることができ
る。
The image processing method of the present invention can be implemented by a computer, and a computer program therefor is installed or loaded in the computer through various media such as a CD-ROM, a magnetic disk, a semiconductor memory and a communication network. be able to.

【0014】[0014]

【発明の実施の形態】(第1の実施形態)図面を参照し
て本発明の第1の実施の形態を説明する。図1は、本実
施形態のプリンタ1のハードウェア構成を表すブロック
図である。
BEST MODE FOR CARRYING OUT THE INVENTION (First Embodiment) A first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the hardware configuration of the printer 1 of this embodiment.

【0015】プリンタ1は、用紙をプリンタ内に供給す
る給紙機構10、印字を行う印刷エンジン11、及び用
紙をプリンタ機外に排出する排紙機構12等により構成
される動力機構部2を備える。印刷エンジン11は、紙
送機構、キャリッジ機構、印刷ヘッドなどを含んで構成
される。
The printer 1 is provided with a power supply mechanism section 2 including a paper feed mechanism 10 for feeding paper into the printer, a print engine 11 for printing, and a paper ejection mechanism 12 for ejecting paper out of the printer. . The print engine 11 includes a paper feeding mechanism, a carriage mechanism, a print head, and the like.

【0016】これら動力機構部2を制御し印刷動作を行
わせるのは、CPU(プロセッサ)13、ROM14、
RAM15、LCDパネル及びLCDコントローラ1
6、PCカードスロット及びPCカードコントローラ1
7、通信インタフェース18等からなるプリンタ制御部
3である。CPU13は、内部バスを介して各手段14
〜18にアクセス可能に構成されており、ホスト装置か
ら通信インタフェース18を介して送られてくる印刷ジ
ョブに従い、動力機構部2を制御して実際に印刷動作を
行なわせる。なお、動力機構部2が独立してCPUを備
えていてもよく、その場合は、動力機構部2のCPU
が、パラレルインタフェース等を介してCPU13と通
信を行い、印刷エンジン11を制御して印刷動作を行わ
せることになる。
It is the CPU (processor) 13, the ROM 14 and the ROM 14 that control the power mechanism section 2 to perform the printing operation.
RAM15, LCD panel and LCD controller 1
6, PC card slot and PC card controller 1
7, a printer control unit 3 including a communication interface 18 and the like. The CPU 13 uses various means 14 via the internal bus.
To 18 are accessible, and the power mechanism unit 2 is controlled according to the print job sent from the host device via the communication interface 18 to actually perform the printing operation. Note that the power mechanism unit 2 may independently include a CPU, and in that case, the CPU of the power mechanism unit 2
However, it communicates with the CPU 13 via a parallel interface or the like to control the print engine 11 to perform the printing operation.

【0017】動力機構部2、プリンタ制御部部3の構成
・動作は原則として従来のプリンタ装置の構成・動作と
同様である。ただし、本プリンタ1は、ホスト装置を介
さずにプリンタ単体で印刷を行う機能を備えており、例
えば、PCカードスロット等17を介して外部メモリか
らJPEGファイル等の画像圧縮データを読み出し、伸
長処理や後述するノイズ除去処理等を行って印刷を行う
ことができるように構成されている(以下、かかる印刷
形態を「ダイレクト印刷」と呼ぶ)。
The structure and operation of the power mechanism unit 2 and the printer control unit 3 are basically the same as the structure and operation of the conventional printer device. However, the printer 1 has a function of performing printing by the printer alone without using the host device. For example, the image compression data such as a JPEG file is read from the external memory through the PC card slot 17 or the like, and the expansion processing is performed. It is configured so that printing can be performed by performing noise removal processing described later or the like (hereinafter, this printing mode is referred to as “direct printing”).

【0018】図2に、ダイレクト印刷を実現するため
の、プリンタ制御部3における機能構成図を示す。図に
示すように、プリンタ制御部3は、フィルタサイズ記憶
手段20、パネルIF手段21、PCカードIF手段2
2、伸長手段23、ノイズ除去手段24、印刷データ生
成手段25等を備えて構成される。上記の各手段は、メ
モリに格納されるプログラムをCPU13が実行するこ
とにより機能的に実現される。
FIG. 2 is a functional block diagram of the printer control unit 3 for realizing direct printing. As shown in the figure, the printer control unit 3 includes a filter size storage unit 20, a panel IF unit 21, and a PC card IF unit 2.
2, a decompression unit 23, a noise removal unit 24, a print data generation unit 25, and the like. Each of the above means is functionally realized by the CPU 13 executing a program stored in the memory.

【0019】フィルタサイズ記憶手段20は、輝度情報
とノイズ除去フィルタのサイズとの対応関係を記憶して
いる。輝度情報は、典型的には輝度値であり、例えば0
〜255の値をとる。ただし、後述するようにRGB色
空間のG値等を輝度情報として用いることもできる。フ
ィルタのサイズは、典型的には縦横の要素数により特定
される。
The filter size storage means 20 stores the correspondence between the brightness information and the size of the noise removal filter. The brightness information is typically a brightness value, for example, 0
It takes a value of ~ 255. However, as will be described later, a G value or the like in the RGB color space can be used as the brightness information. The size of the filter is typically specified by the number of vertical and horizontal elements.

【0020】輝度情報とノイズ除去フィルタのサイズと
の対応関係は、より低輝度を示す輝度情報ほど、より大
きいサイズに対応するように定められている。前記対応
関係の例を図3に示す。図に示す例では、低輝度を示す
輝度情報(0≦輝度情報Y<16)は大きいフィルタサ
イズ(7×7サイズ)に対応し、中輝度を示す輝度情報
(16≦輝度情報Y<32)は次に大きいフィルタサイ
ズ(5×5サイズ)に対応し、高輝度を示す輝度情報
(32≦輝度情報Y)は小さいフィルタサイズ(3×3
サイズ)に対応している。
The correspondence relationship between the brightness information and the size of the noise removal filter is determined so that the brightness information indicating lower brightness corresponds to a larger size. An example of the correspondence relationship is shown in FIG. In the example shown in the figure, luminance information indicating low luminance (0 ≦ luminance information Y <16) corresponds to a large filter size (7 × 7 size), and luminance information indicating medium luminance (16 ≦ luminance information Y <32). Corresponds to the next largest filter size (5 × 5 size), and the luminance information (32 ≦ luminance information Y) indicating high luminance is the smaller filter size (3 × 3).
Size).

【0021】なお、この例からもわかるように、本実施
形態において、高輝度、低輝度という言葉は相対的な位
置付けを示す言葉として用いており、「高輝度(低輝
度)を示す輝度情報」は必ずしも絶対値として高い(低
い)輝度情報のみを指し示すものではない。
As can be seen from this example, in the present embodiment, the terms high brightness and low brightness are used as words indicating relative positioning, and "brightness information indicating high brightness (low brightness)". Does not necessarily indicate only high (low) brightness information as an absolute value.

【0022】パネルIF手段21は、LCDや操作キー
などから構成されるLCDパネル及びLCDコントロー
ラ16を介して、ユーザからプリンタ1に対するコマン
ドを受け付るとともに、ユーザに対して印刷ステータス
等を出力する。ユーザから受け付けるコマンドとして
は、例えば、上述のダイレクト印刷の実行を要求するコ
マンド(ダイレクト印刷コマンド)などが考えられる。
The panel IF means 21 receives commands from the user to the printer 1 via the LCD panel composed of an LCD and operation keys and the LCD controller 16, and outputs the print status and the like to the user. . The command received from the user may be, for example, a command (direct print command) requesting execution of the above-described direct printing.

【0023】PCカードIF手段22は、PCカードス
ロット及びPCカードコントローラ18を介して、PC
カードアダプターに装着された外部メモリ(例えば、コ
ンパクトフラッシュ(登録商標)、スマートメディア等
のフラッシュメモリ)に対し、データの読出し/書込み
を行う。
The PC card IF means 22 is a PC card through the PC card slot and the PC card controller 18.
Data is read / written from / to an external memory (for example, a flash memory such as CompactFlash (registered trademark) or smart media) mounted on the card adapter.

【0024】伸長手段23は、画像圧縮データに対して
伸長処理を施し、画像データを復元する。伸長処理は圧
縮方式に対応した周知の処理を用いることができる。例
えば、画像圧縮データがJPEGファイルである場合、
8×8ブロックごとに、AC成分についてHuffman符号
の復号、ランレングス圧縮の復号を行い、DC成分と一
緒に逆量子化を行って周波数分布を算出し、かかる周波
数分布にインバースDCTを行うことにより、画像デー
タを復元する。
The decompression means 23 decompresses the compressed image data to restore the image data. A well-known process corresponding to the compression method can be used for the decompression process. For example, when the compressed image data is a JPEG file,
For each 8 × 8 block, Huffman code decoding and run-length compression decoding are performed on the AC component, inverse quantization is performed with the DC component to calculate the frequency distribution, and inverse DCT is performed on the frequency distribution. , Restore image data.

【0025】ノイズ除去手段24は、復元された画像デ
ータに対し、ノイズ除去処理を施す。かかるノイズ除去
処理については、後述するダイレクト印刷の説明におい
て併せて説明する。
The noise removing means 24 performs noise removing processing on the restored image data. Such noise removal processing will be described together with the description of direct printing described later.

【0026】印刷データ生成手段25は、画像データに
対し、印刷動作において通常行われる所定の画像処理
(例えば、色変換処理、誤差拡散法等のディザ処理な
ど)を施し、印刷データを生成する。
The print data generating means 25 subjects the image data to predetermined image processing (for example, color conversion processing, dither processing such as error diffusion method, etc.) which is usually performed in the printing operation, and generates print data.

【0027】(ダイレクト印刷)ダイレクト印刷を行う
場合、プリンタ1において、印刷速度を落とさないよう
に処理量を抑制しつつ、ノイズ除去処理を行う必要があ
る。
(Direct Printing) When performing direct printing, it is necessary for the printer 1 to perform noise removal processing while suppressing the processing amount so as not to reduce the printing speed.

【0028】ここで、暗電流ノイズ等は輝度を増加させ
る方向に付加されるノイズであるため、明るい領域では
目立ちにくい一方、暗い領域では目立ちやすいという性
質がある。
Here, since dark current noise or the like is noise added in the direction of increasing the brightness, it has a property that it is not easily noticeable in a bright region, but is easily noticeable in a dark region.

【0029】そこで、本発明では、明るい領域ではノイ
ズ除去の程度を押さえることにより処理量を抑制して高
速にノイズ除去を行い、暗い領域ではノイズ除去の程度
を強くして丁寧にノイズ除去を行うように、処理を構成
する。
Therefore, in the present invention, the processing amount is suppressed by suppressing the degree of noise removal in a bright area to perform high-speed noise removal, and the degree of noise removal is strengthened in a dark area to perform careful noise removal. The process is configured as follows.

【0030】以下、図4に示すフローチャートを参照し
て、ダイレクト印刷処理について説明する。なお、各ス
テップは処理内容に矛盾を生じない範囲で任意に順番を
変更して実行することができる。
The direct printing process will be described below with reference to the flowchart shown in FIG. It should be noted that each step can be executed by arbitrarily changing the order as long as the processing content does not conflict.

【0031】ダイレクト印刷は、パネルIF手段21に
おいてユーザからダイレクト印刷コマンドを受け付けた
場合に、その処理を開始する。このとき、外部メモリに
画像圧縮データが複数記憶されている場合は、例えばそ
れらのファイル名をLCDパネル等16にリスト表示
し、その中からユーザに所望のものを選択させる。
The direct printing starts its processing when the panel IF means 21 receives a direct printing command from the user. At this time, when a plurality of compressed image data are stored in the external memory, for example, those file names are displayed in a list on the LCD panel etc. 16 and the user is allowed to select a desired one.

【0032】PCカードIF手段22は、PCカードス
ロット等18を介して外部メモリを参照し、前記選択し
た画像圧縮データを取得する(S100)。画像圧縮デ
ータがJPEGファイルである場合、ブロック単位、又
はブロックライン単位など、部分的に取得してもよい。
The PC card IF means 22 refers to the external memory via the PC card slot 18 or the like to obtain the selected image compressed data (S100). When the compressed image data is a JPEG file, it may be partially acquired in block units or block line units.

【0033】次に、伸長手段23は、前記取得した画像
圧縮データに対し伸長処理を施し、画像データ(又はそ
の一部)を復元する(S101)。なお、S100にお
いて非圧縮の画像データを取得した場合は、伸長処理は
省略される。
Next, the decompression means 23 decompresses the acquired image compressed data to restore the image data (or a part thereof) (S101). If uncompressed image data is acquired in S100, the decompression process is omitted.

【0034】次に、ノイズ除去手段24は、復元された
画像データ(又はその一部)に対し、以下のノイズ除去
処理を施す(S102〜S119)。
Next, the noise removing means 24 performs the following noise removing processing on the restored image data (or a part thereof) (S102 to S119).

【0035】まず、ノイズ除去手段24は、画像データ
を走査し、処理対象となる画素の輝度情報Yを求める
(S102)。ここで、復元された画像データがYCC
色空間により表わされている場合、該画素の輝度値を輝
度情報Yとして求める。一方、復元された画像データが
RGB色空間により表わされている場合、例えばY=
0.299R+0.587G+0.114Bにより輝度
情報Yを求めるか、又はG値の値を輝度情報Yとして求
める。G値は他の成分より輝度値との相関が大きいと考
えられるからである。
First, the noise removing means 24 scans the image data to obtain the luminance information Y of the pixel to be processed (S102). Here, the restored image data is YCC
When represented by the color space, the brightness value of the pixel is obtained as the brightness information Y. On the other hand, when the restored image data is represented in the RGB color space, for example, Y =
The brightness information Y is calculated by 0.299R + 0.587G + 0.114B, or the value of the G value is calculated as the brightness information Y. This is because the G value is considered to have a greater correlation with the brightness value than the other components.

【0036】次に、ノイズ除去手段24は、輝度情報Y
について、低輝度(0≦Y<16)、中輝度(16≦Y
<32)、高輝度(32≦Y)のうち、いずれに該当す
るかを判定する(S103)。
Next, the noise removing means 24 determines the luminance information Y.
For low brightness (0 ≦ Y <16) and medium brightness (16 ≦ Y
It is determined which of <32) and high brightness (32 ≦ Y) corresponds (S103).

【0037】輝度情報Yが高輝度に該当する場合、ノイ
ズ除去手段24は、フィルタ記憶手段20を参照して、
高輝度を示す輝度情報に対応するフィルタサイズを選択
する(S104)。図3に示す例ではフィルタサイズ3
×3が選択される。
When the luminance information Y corresponds to high luminance, the noise removing means 24 refers to the filter storing means 20,
A filter size corresponding to brightness information indicating high brightness is selected (S104). In the example shown in FIG. 3, the filter size is 3
× 3 is selected.

【0038】次に、ノイズ除去手段24は、該画素を中
心とした前記選択したサイズ(3×3サイズ)内の画像
データについて、最大輝度情報Ymax、最小輝度情報
Yminを求める(S105)。
Next, the noise removing means 24 obtains the maximum luminance information Ymax and the minimum luminance information Ymin for the image data within the selected size (3 × 3 size) centered on the pixel (S105).

【0039】そして、(Ymax−Ymin)と所定閾
値θ(例えば16)とを比較する(S106)。
Then, (Ymax-Ymin) is compared with a predetermined threshold value θ (for example, 16) (S106).

【0040】(Ymax−Ymin)<θとなる場合
は、ノイズ除去手段24は、前記選択したサイズ(3×
3サイズ)のローパスフィルタを用いて、処理対象画素
の輝度値又はRGB値に対してフィルタリング処理(コ
ンボリューション演算)を実行する(S107)。な
お、ローパスフィルタとしては、単純な移動平均フィル
タのほか、フィルタの中央に周囲より大きな重みを与え
る構成としたものや、要素値を円形状に配したものな
ど、設計に応じて種々の構成のローパスフィルタを用い
ることができる。
When (Ymax-Ymin) <θ, the noise removing means 24 determines that the selected size (3 ×
A filtering process (convolution operation) is performed on the luminance value or the RGB value of the pixel to be processed using a low-pass filter of 3 sizes) (S107). As the low-pass filter, in addition to a simple moving average filter, there are various configurations according to the design, such as a configuration in which the weight of the center of the filter is larger than that of the surroundings, and element values are arranged in a circular shape. A low pass filter can be used.

【0041】一方、(Ymax−Ymin)≧θとなる
場合は、ノイズ除去手段24は、前記選択したサイズ
(3×3サイズ)のメディアンフィルタを用いて、処理
対象画素の輝度値又はRGB値に対してフィルタリング
処理を実行する(S108)。フィルタサイズ内の輝度
振幅が大きい場合は、メディアンフィルタによってノイ
ズ除去を行う方がより質感を持たせることができるから
である。
On the other hand, when (Ymax-Ymin) ≧ θ, the noise removing means 24 uses the median filter of the selected size (3 × 3 size) to determine the brightness value or RGB value of the pixel to be processed. The filtering process is executed on the other hand (S108). This is because when the brightness amplitude within the filter size is large, it is possible to give more texture by removing noise with the median filter.

【0042】輝度情報Yが中輝度に該当する場合、ノイ
ズ除去手段24は、フィルタ記憶手段20を参照して、
中輝度を示す輝度情報に対応するフィルタのサイズを選
択する(S109)。図3に示す例ではフィルタサイズ
5×5が選択される。
When the luminance information Y corresponds to medium luminance, the noise removing means 24 refers to the filter storing means 20,
The size of the filter corresponding to the brightness information indicating medium brightness is selected (S109). In the example shown in FIG. 3, the filter size 5 × 5 is selected.

【0043】次に、ノイズ除去手段24は、該画素を中
心とした前記選択したサイズ(5×5サイズ)内の画像
データについて、最大輝度情報Ymax、最小輝度情報
Yminを求める(S110)。
Next, the noise removing means 24 obtains the maximum luminance information Ymax and the minimum luminance information Ymin for the image data within the selected size (5 × 5 size) centered on the pixel (S110).

【0044】そして、(Ymax−Ymin)と所定閾
値θ(例えば16)とを比較する(S111)。
Then, (Ymax-Ymin) is compared with a predetermined threshold value θ (for example, 16) (S111).

【0045】(Ymax−Ymin)<θとなる場合
は、ノイズ除去手段24は、前記選択したサイズ(5×
5サイズ)のローパスフィルタを用いて同様にフィルタ
リング処理を実行する(S112)。
When (Ymax-Ymin) <θ, the noise removing means 24 determines that the selected size (5 ×
Filtering processing is similarly performed using a low-pass filter of size 5 (S112).

【0046】一方、(Ymax−Ymin)≧θとなる
場合は、ノイズ除去手段24は、前記選択したサイズ
(5×5サイズ)のメディアンフィルタを用いて同様に
フィルタリング処理を実行する(S113)。
On the other hand, when (Ymax-Ymin) ≧ θ, the noise removing means 24 similarly executes the filtering process using the median filter of the selected size (5 × 5 size) (S113).

【0047】輝度情報Yが低輝度に該当する場合、ノイ
ズ除去手段24は、フィルタ記憶手段20を参照して、
低輝度を示す輝度情報に対応するフィルタのサイズを選
択する(S114)。図3に示す例ではフィルタサイズ
7×7が選択される。
When the luminance information Y corresponds to low luminance, the noise removing means 24 refers to the filter storing means 20,
The size of the filter corresponding to the brightness information indicating low brightness is selected (S114). In the example shown in FIG. 3, the filter size 7 × 7 is selected.

【0048】次に、ノイズ除去手段24は、該画素を中
心とした前記選択したサイズ(7×7サイズ)内の画像
データについて、最大輝度情報Ymax、最小輝度情報
Yminを求める(S115)。
Next, the noise removing means 24 finds the maximum luminance information Ymax and the minimum luminance information Ymin for the image data within the selected size (7 × 7 size) centered on the pixel (S115).

【0049】そして、(Ymax−Ymin)と所定閾
値θ(例えば16)とを比較する(S116)。
Then, (Ymax-Ymin) is compared with a predetermined threshold value θ (for example, 16) (S116).

【0050】(Ymax−Ymin)<θとなる場合
は、ノイズ除去手段24は、前記選択したサイズ(7×
7サイズ)のローパスフィルタを用いて同様にフィルタ
リング処理を実行する(S117)。
When (Ymax-Ymin) <θ, the noise removing means 24 determines that the selected size (7 ×
Similarly, filtering processing is executed using a low-pass filter of 7 sizes (S117).

【0051】一方、(Ymax−Ymin)≧θとなる
場合は、ノイズ除去手段24は、前記選択したサイズ
(7×7サイズ)のメディアンフィルタを用いて同様に
フィルタリング処理を実行する(S118)。
On the other hand, when (Ymax-Ymin) ≧ θ, the noise removing means 24 similarly executes the filtering process using the median filter of the selected size (7 × 7 size) (S118).

【0052】ノイズ除去手段24は、上記処理を画像デ
ータの各画素について終了するまで繰り返し行う(S1
19)。
The noise removing means 24 repeats the above processing until it finishes for each pixel of the image data (S1).
19).

【0053】印刷データ生成手段25は、ノイズ除去処
理が施された画像データに対し、印刷動作において通常
行われる所定の画像処理を施し、印刷データを生成する
(S120)。
The print data generating means 25 performs predetermined image processing that is usually performed in the printing operation on the image data that has been subjected to the noise removal processing, and generates print data (S120).

【0054】最後に、このようにして生成された印刷デ
ータは、プリンタ制御部3によって印刷エンジン11へ
送られ、動力機構部2において印刷が実行される(S1
21)。
Finally, the print data generated in this way is sent to the print engine 11 by the printer control unit 3 and printing is executed in the power mechanism unit 2 (S1).
21).

【0055】なお、S100において画像圧縮データを
部分的に取得する場合は、画像圧縮データ全てについて
処理が終了するまで、S101からS120までを繰り
返すことになる。またこの場合、逐次生成された印刷デ
ータを逐次印刷エンジン11へ送り、印刷データの生成
と並行して印刷を実行するように構成してもよい。
When the image compression data is partially acquired in S100, S101 to S120 are repeated until the processing is completed for all the image compression data. Further, in this case, the sequentially generated print data may be sequentially sent to the print engine 11, and printing may be executed in parallel with the generation of the print data.

【0056】このように、各画素の輝度情報に基づいて
フィルタサイズを適応的に選択して、すなわち、低輝度
画素に対しては大きいフィルタサイズを、高輝度画素に
対して小さいフィルタサイズを選択してノイズ除去処理
を行うように構成しているため、ノイズが目立ちやすい
暗い領域では大きいサイズのフィルタに基づき確実にノ
イズを除去して高画質化を図ることができる一方、ノイ
ズが目立ちにくい明るい領域では小さいサイズのフィル
タに基づき高速にノイズ除去を行うことが可能となる。
その結果、画像全体として処理量を抑制しつつ効果的に
ノイズ除去を行うことができ、印刷速度を不要に落とす
ことなく高画質の印刷を実行することができる。
In this way, the filter size is adaptively selected based on the brightness information of each pixel, that is, the large filter size is selected for the low brightness pixel and the small filter size is selected for the high brightness pixel. Since it is configured to perform noise removal processing in a dark area where noise is easily noticeable, noise can be reliably removed based on a large-sized filter to achieve high image quality, while bright noise that is less noticeable In the region, it is possible to perform noise removal at high speed based on a small size filter.
As a result, it is possible to effectively remove noise while suppressing the processing amount of the entire image, and it is possible to execute high-quality printing without unnecessarily reducing the printing speed.

【0057】(その他)本発明は上記実施形態に限定さ
れることなく、種々に変形して適用することが可能であ
る。
(Others) The present invention is not limited to the above embodiment, but can be variously modified and applied.

【0058】例えば、輝度情報とフィルタサイズとの対
応関係を固定的に組み込んでノイズ除去処理を構成して
もよい。例えば、ダイレクト印刷処理フローのS10
4、S109、S114において、高輝度の場合は3×
3サイズ、中輝度の場合は5×5サイズ、低輝度の場合
は7×7サイズを、固定的に選択するように処理を構成
する。この場合、ノイズ除去処理プログラム自体が前記
対応関係を内包的に含むこととなり、ノイズ除去処理プ
ログラムを記憶する記憶手段が「輝度情報とノイズ除去
フィルタのサイズとの対応関係を記憶する記憶手段」に
該当することになる。
For example, the noise removal processing may be configured by fixedly incorporating the correspondence relationship between the brightness information and the filter size. For example, S10 of the direct print processing flow
4, in S109, S114, 3 × in case of high brightness
The processing is configured to fixedly select 3 sizes, 5 × 5 size for medium brightness, and 7 × 7 size for low brightness. In this case, the noise removal processing program itself includes the correspondence relation internally, and the storage means for storing the noise removal processing program becomes the "storage means for storing the correspondence relation between the luminance information and the size of the noise removal filter". It will be applicable.

【0059】また例えば、フィルタサイズ記憶手段20
について、輝度情報に対応づけてフィルタサイズ及びフ
ィルタ要素値を記憶する構成としてもよい。この場合、
輝度情報に応じて各要素の重みや配置を異ならせること
でノイズ除去の強弱を変えることも考えられる。
Further, for example, the filter size storage means 20
With respect to, the filter size and the filter element value may be stored in association with the luminance information. in this case,
It is also conceivable to change the strength of noise removal by changing the weight and arrangement of each element according to the luminance information.

【0060】また例えば、上記実施形態では、PCカー
ドスロット等を経由して画像圧縮データを取得する構成
としているが、ホスト装置や所定のサーバから通信イン
タフェースを介して画像圧縮データや非圧縮の画像デー
タを受け取る構成としてもよい。また、デジタルカメラ
等の電子機器をUSB等のケーブルで当該プリンタに接
続し、電子機器に記憶されている画像圧縮データ等を直
接読み出すように構成してもよい。
Further, for example, in the above embodiment, the image compressed data is acquired via the PC card slot or the like, but the image compressed data or the uncompressed image is acquired from the host device or a predetermined server via the communication interface. It may be configured to receive data. Further, an electronic device such as a digital camera may be connected to the printer with a cable such as a USB, and the image compression data or the like stored in the electronic device may be directly read.

【0061】また例えば、上記実施形態では、ホスト装
置から送られてくる印刷ジョブに基づき印刷する機能を
備える構成としているが、かかる機能を有さず、ダイレ
クト印刷機能のみ備える構成としてもよい。
Further, for example, in the above-described embodiment, the function of printing based on the print job sent from the host device is provided, but it is also possible not to have such a function and only have the direct printing function.

【0062】最後に、本発明の画像処理技術はプリンタ
以外の装置、例えばパソコンやデジタルカメラ等の装置
においても適用可能である。また、本発明の画像形成装
置は、例えばインクジェットプリンタ、レーザプリン
タ、ラベルプリンタ等の一般的にプリンタと呼ばれる機
器のほか、画像形成機能を備えた種々の情報処理装置
(コピー機、ファックス、ハンディターミナルなど)に
対しても適用できる。また、その利用形態はホームユー
スに限られるものではなく、例えばコンビニエンススト
ア等にプリンタ等を設置し、ユーザが外部メモリや電子
機器を持参して、その場で印刷を行うといった利用形態
も考えられる。
Finally, the image processing technique of the present invention can be applied to devices other than printers, for example, devices such as personal computers and digital cameras. Further, the image forming apparatus of the present invention is not only a device generally called a printer such as an inkjet printer, a laser printer, a label printer, etc., but also various information processing apparatuses (copiers, fax machines, handy terminals) having an image forming function. Etc.) Further, the usage form is not limited to home use, and for example, a usage form is possible in which a printer or the like is installed in a convenience store or the like, and a user brings an external memory or an electronic device to perform printing on the spot. .

【0063】[0063]

【発明の効果】本発明によれば、各画素の輝度情報に基
づいてフィルタサイズを適応的に選択してノイズ除去処
理を実行するように構成しているため、ノイズ除去する
際の処理量を抑制しつつ効果的にノイズ除去を行うこと
ができ、印刷速度を不要に落とすことなく高画質の印刷
を実行することができる。
According to the present invention, since the filter size is adaptively selected on the basis of the luminance information of each pixel to execute the noise removal processing, the processing amount at the time of noise removal can be reduced. Noise can be effectively removed while suppressing, and high-quality printing can be performed without unnecessarily reducing the printing speed.

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

【図1】 本発明の第1の実施形態におけるプリンタの
ハードウェア構成を示すブロック図である。
FIG. 1 is a block diagram showing a hardware configuration of a printer according to a first embodiment of the present invention.

【図2】 第1の実施形態におけるプリンタ制御部の機
能構成図を示すブロック図である。
FIG. 2 is a block diagram illustrating a functional configuration diagram of a printer control unit according to the first embodiment.

【図3】 輝度情報とノイズ除去フィルタのサイズとの
対応関係を説明するための図である。
FIG. 3 is a diagram for explaining a correspondence relationship between luminance information and a size of a noise removal filter.

【図4】 ダイレクト印刷処理及びノイズ除去処理の流
れを示すフローチャートである。
FIG. 4 is a flowchart showing a flow of direct printing processing and noise removal processing.

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

1 プリンタ 2 動力機構部 3 プリンタ制御部 10 給紙機構 11 印刷エンジン 12 排紙機構 13 CPU 14 ROM 15 RAM 16 LCDパネル及びLCDコントローラ 17 PCカードスロット及びPCカードコントローラ 18 通信インターフェース 20 フィルタサイズ記憶手段 21 パネルIF手段 22 PCカードIF手段 23 伸長手段 24 ノイズ除去手段 25 印刷データ生成手段 1 printer 2 power mechanism 3 Printer control unit 10 paper feed mechanism 11 Print engine 12 Paper ejection mechanism 13 CPU 14 ROM 15 RAM 16 LCD panel and LCD controller 17 PC card slot and PC card controller 18 Communication interface 20 Filter size storage means 21 panel IF means 22 PC card IF means 23 Extension means 24 Noise removal means 25 Print data generating means

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 AA11 BA02 CA08 CA12 CA16 CB08 CB12 CB16 CC01 CE02 CE06 CH09 5C021 PA34 PA38 PA53 PA58 PA78 RB03 RB08 YA01 5C077 LL02 PP01 PP02 PP43 PP68 PQ08 PQ12 TT02    ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 5B057 AA11 BA02 CA08 CA12 CA16                       CB08 CB12 CB16 CC01 CE02                       CE06 CH09                 5C021 PA34 PA38 PA53 PA58 PA78                       RB03 RB08 YA01                 5C077 LL02 PP01 PP02 PP43 PP68                       PQ08 PQ12 TT02

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 輝度情報とノイズ除去フィルタのサイズ
との対応関係を記憶する記憶手段と、 画像データの各画素に対し、前記対応関係を参照して該
画素の輝度情報に対応するサイズを選択し、前記選択し
たサイズのノイズ除去フィルタを用いてノイズ除去処理
を実行する手段と、を備えることを特徴とする画像処理
装置。
1. A storage unit for storing a correspondence relationship between brightness information and a size of a noise removal filter, and for each pixel of image data, a size corresponding to the brightness information of the pixel is selected with reference to the correspondence relationship. And a means for executing noise removal processing using the noise removal filter of the selected size.
【請求項2】 前記対応関係は、より低輝度を示す輝度
情報ほど、より大きいサイズに対応するように定められ
ていることを特徴とする請求項1記載の画像処理装置。
2. The image processing apparatus according to claim 1, wherein the correspondence relationship is determined such that the luminance information indicating lower luminance corresponds to a larger size.
【請求項3】 請求項1又は2記載の画像処理装置を備
えることを特徴とする画像形成装置。
3. An image forming apparatus comprising the image processing apparatus according to claim 1.
【請求項4】 画像データの各画素に対し、該画素の輝
度情報が低輝度を示す場合はフィルタサイズの大きいノ
イズ除去フィルタを用い、高輝度を示す場合はフィルタ
サイズの小さいノイズ除去フィルタを用いて、ノイズ除
去処理を実行することを特徴とする画像処理方法。
4. For each pixel of image data, a noise removal filter with a large filter size is used when the brightness information of the pixel indicates low brightness, and a noise removal filter with a small filter size is used when the brightness information of the pixel indicates high brightness. And an image processing method for performing noise removal processing.
【請求項5】 請求項4記載の画像処理方法をコンピュ
ータで実行させるためのプログラム。
5. A program for causing a computer to execute the image processing method according to claim 4.
JP2002042900A 2002-02-20 2002-02-20 Image processing apparatus and method, image forming apparatus, and computer-readable program Pending JP2003242501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002042900A JP2003242501A (en) 2002-02-20 2002-02-20 Image processing apparatus and method, image forming apparatus, and computer-readable program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002042900A JP2003242501A (en) 2002-02-20 2002-02-20 Image processing apparatus and method, image forming apparatus, and computer-readable program

Publications (1)

Publication Number Publication Date
JP2003242501A true JP2003242501A (en) 2003-08-29

Family

ID=27782858

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002042900A Pending JP2003242501A (en) 2002-02-20 2002-02-20 Image processing apparatus and method, image forming apparatus, and computer-readable program

Country Status (1)

Country Link
JP (1) JP2003242501A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007050110A (en) * 2005-08-18 2007-03-01 Pentax Corp Image processing apparatus and electronic endoscope apparatus
JP2007201541A (en) * 2006-01-23 2007-08-09 Ricoh Co Ltd Image processing apparatus, imaging apparatus, image processing method, and image processing program
JP2012134661A (en) * 2010-12-20 2012-07-12 Samsung Yokohama Research Institute Co Ltd Image processing device, program, and image processing method
JP2013219744A (en) * 2012-03-16 2013-10-24 Fujitsu Ltd Image synthesis device and computer program for image synthesis
JP2018089387A (en) * 2017-12-28 2018-06-14 Hoya株式会社 Endoscope processor and endoscope system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007050110A (en) * 2005-08-18 2007-03-01 Pentax Corp Image processing apparatus and electronic endoscope apparatus
JP2007201541A (en) * 2006-01-23 2007-08-09 Ricoh Co Ltd Image processing apparatus, imaging apparatus, image processing method, and image processing program
US8014627B2 (en) 2006-01-23 2011-09-06 Ricoh Company Image processing apparatus, imaging apparatus, image processing method, and computer program product
JP2012134661A (en) * 2010-12-20 2012-07-12 Samsung Yokohama Research Institute Co Ltd Image processing device, program, and image processing method
JP2013219744A (en) * 2012-03-16 2013-10-24 Fujitsu Ltd Image synthesis device and computer program for image synthesis
JP2018089387A (en) * 2017-12-28 2018-06-14 Hoya株式会社 Endoscope processor and endoscope system

Similar Documents

Publication Publication Date Title
JP4011933B2 (en) Image processing apparatus and method
US7564487B2 (en) Digital camera and control method for generating an image file using feature extraction data
US8064721B2 (en) Method and apparatus for removing noise from a digital image
JP5003443B2 (en) Image processing apparatus, image forming apparatus, image processing method, and program
CN102318330B (en) Image processing system for processing digital images and image processing method for processing digital images
JP2006025139A (en) Image processing apparatus, image processing method, and program
JP4503241B2 (en) Image scanning processing system, image scanning processing method, and master file selection method including scanned image encoded data
JP2003242501A (en) Image processing apparatus and method, image forming apparatus, and computer-readable program
JP4156419B2 (en) Image processing method, apparatus, and program
US20200193113A1 (en) Image output device, image output method, and output image data production method
JP4136825B2 (en) Image processing apparatus, image processing method, computer-readable storage medium storing program, and program
JP2001016452A (en) Image processor, image reader loading the same. image forming device and image processing method
JP2003141532A (en) Image processing apparatus and method, printer, and storage medium storing computer readable program
JP2009124576A (en) Image processing apparatus and control method thereof
US8837848B2 (en) Image processing device and image processing method
US8537413B2 (en) Image processing apparatus, image processing method, and computer-readable storage medium
JP5891721B2 (en) Image processing apparatus and image processing method
JP4281242B2 (en) Image processing apparatus and method, printer apparatus having the image processing apparatus, and storage medium storing computer-readable program
JP5110861B2 (en) Image processing apparatus, image processing method, and program
JP2009230598A (en) Image determination device, image determination method, and image determination program
JP2009218809A (en) Image processing apparatus, method, and program
JP2020096307A (en) Image output device, image output method, and image output program
JP2005318130A (en) Image processing apparatus, imaging apparatus, printing apparatus, data storage method, program, and recording medium
JP4748525B2 (en) Method and printing apparatus for outputting an image
JP2005005890A (en) Image processing apparatus and method, printer, and computer-readable program