JP2005184787A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
JP2005184787A
JP2005184787A JP2004334595A JP2004334595A JP2005184787A JP 2005184787 A JP2005184787 A JP 2005184787A JP 2004334595 A JP2004334595 A JP 2004334595A JP 2004334595 A JP2004334595 A JP 2004334595A JP 2005184787 A JP2005184787 A JP 2005184787A
Authority
JP
Japan
Prior art keywords
value
image processing
histogram
image
threshold value
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
Application number
JP2004334595A
Other languages
Japanese (ja)
Other versions
JP3906221B2 (en
Inventor
Shinichi Takarada
真一 宝田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004334595A priority Critical patent/JP3906221B2/en
Publication of JP2005184787A publication Critical patent/JP2005184787A/en
Application granted granted Critical
Publication of JP3906221B2 publication Critical patent/JP3906221B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing method for acquiring a binary image capable of accurately separating an object from a back ground by using a threshold value after acquiring an adequate threshold value in a partial region of a multi-tone image. <P>SOLUTION: The method includes steps of: producing a histogram of a whole image; dividing the image into partial regions after acquiring a ratio of a reference luminance value in maximum frequency to a reference threshold value; producing the histogram in each of the partial regions; finding a luminance value in the maximum frequency; finding the threshold value in each of the partial regions by multiplying this luminance value by the ratio of the reference luminance value to the reference threshold value; and making binarization in the partial regions using the threshold value. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、画像処理方法において、特に通常のデジタルカメラによる撮影等により得られた多階調をもった画像データを2値の画像データに変更する2値化処理を行う画像処理方法及び画像処理措置に関するものである。   The present invention relates to an image processing method and an image processing method for performing binarization processing for changing image data having multiple gradations obtained by photographing with a normal digital camera into binary image data. It is about measures.

例えばOCR(Optical Character Reader)の前処理としては、紙に書かれた文字をカメラやスキャナなどにより3階調以上の多階調を持った画像データ、即ち濃淡画像として読み取った後、文字領域と背景領域とに分離する2値化処理を行う必要がある。このような場合に、ある一定の閾値を基準として、その閾値より大きな階調値、即ち明るい値を持つ部分を背景となる紙領域として1という値に変換し、その値以下の階調値、即ち暗い値を持つ部分を文字領域として0という値に変換する方法がある。しかしながら、この方法では照明のムラなどにより、背景部分が一部0となって文字領域として認識されてしまい、文字が正確に読み取れないなどの問題があった。   For example, as a pre-process of OCR (Optical Character Reader), a character written on paper is read as image data having multiple gradations of 3 gradations or more by a camera or a scanner, that is, a grayscale image, It is necessary to perform binarization processing that separates the background area. In such a case, with a certain threshold value as a reference, a gradation value larger than the threshold value, that is, a portion having a bright value is converted to a value of 1 as a background paper area, and a gradation value equal to or lower than that value is converted. That is, there is a method of converting a portion having a dark value into a value of 0 as a character area. However, this method has a problem that, due to uneven illumination, the background portion is partially recognized as a character area and cannot be read accurately.

また、このように多階調画像を2値化処理することにより、背景領域から対象画像を分離する方法は、顕微鏡画像から、細菌等の撮影対象を分離して、撮影対象の位置や数等を求めるためにも用いられている。図2は、顕微鏡画像をデジタルカメラで撮影して得られた多階調を持つ元画像201、この元画像201を2値化することで取得したい、目的とする2値画像205、上記元画像201を従来の固定閾値を用いた方法により2値化した結果得られる2値化画像206、をそれぞれ示す図である。   In addition, the method of separating the target image from the background region by binarizing the multi-gradation image in this manner separates the shooting target such as bacteria from the microscope image, and the position and number of the shooting target. It is also used to find FIG. 2 shows an original image 201 having multiple gradations obtained by photographing a microscope image with a digital camera, a target binary image 205 to be obtained by binarizing the original image 201, and the original image FIG. 6 is a diagram showing a binarized image 206 obtained as a result of binarizing 201 by a conventional method using a fixed threshold.

元画像201は1画素あたり256階調をもった多値階調の画像である。この画像では、照明のムラにより紙面右側部分が暗くなっている。この元画像201には細菌202〜204が写っており、これらの位置や数を求めることができるような画像、つまり2値画像205に示すように、細菌と背景とを分離した2値画像を得ることが目的である。しかし、固定の閾値を用いて、上記元画像201を2値化した場合、例えば、閾値に“128”を用いて、元画像201の各画素のうち、“128”より大きいものを白、“128”以下のものを黒に置き換えた場合、得られる画像は、2値化画像206に示すものとなる。   The original image 201 is a multi-value gradation image having 256 gradations per pixel. In this image, the right side of the paper is dark due to uneven illumination. The original image 201 includes bacteria 202 to 204, and an image from which these positions and numbers can be obtained, that is, a binary image in which bacteria and a background are separated as shown in a binary image 205, The purpose is to obtain. However, when the original image 201 is binarized using a fixed threshold value, for example, using “128” as the threshold value, among the pixels of the original image 201, pixels larger than “128” are white, “ When the image of 128 ″ or less is replaced with black, the obtained image is as shown in the binarized image 206.

この2値化画像206においては、細菌203は閾値128以下であり、且つその周辺は閾値128より大きいことから、正常に検出できている。しかしながら、画像の紙面右側部分が暗いため、画像右側では、背景が閾値以下の値となり細菌とともに背景も黒となり、細菌204は背景に埋もれてしまう。逆に、細菌202は照明が強くあたっていることから、閾値より大きな値となり、白くなってしまう。この結果、細菌等の撮影対象を背景から分離して、これらの位置や数を正確に求めることが困難となってしまう。   In the binarized image 206, the bacteria 203 have a threshold value of 128 or less, and the periphery thereof is larger than the threshold value 128, and thus can be normally detected. However, since the right part of the image on the right side of the image is dark, on the right side of the image, the background becomes a value equal to or less than the threshold value, the background becomes black together with the bacteria, and the bacteria 204 are buried in the background. On the contrary, since the bacteria 202 are strongly illuminated, the value becomes larger than the threshold value and becomes white. As a result, it is difficult to accurately determine the positions and numbers of the imaging objects such as bacteria from the background.

このような問題を解決する方法としては、画像を局所領域に分割し、その局所領域の平均値を元に、局所領域ごとの閾値を個別に決定する方法が提案されている(例えば、特許文献1参照)。
特開平5−225392号公報
As a method for solving such a problem, a method has been proposed in which an image is divided into local regions, and a threshold value for each local region is individually determined based on an average value of the local regions (for example, Patent Documents). 1).
JP-A-5-225392

従来の画像処理方法は以上のように構成されており、2値化の際に単一の閾値を用いることによる不具合を解消するために局所領域ごとに閾値を個別に決定する方法が採用されているが、局所領域における輝度の平均値を元に閾値を決定していることから、例えば、同じ明るさで同じ閾値としなければならない場合であっても、背景から分離したい対象物の密度が高い部分では輝度平均値が小さくなることから、閾値が低めに設定されるなど、適正な閾値を得ることができず、目的とする2値化画像を得ることができない可能性があるという問題点を有していた。   The conventional image processing method is configured as described above, and a method of individually determining a threshold value for each local region is adopted in order to eliminate a problem caused by using a single threshold value in binarization. However, since the threshold value is determined based on the average luminance value in the local area, for example, even when the same threshold value must be used with the same brightness, the density of the object to be separated from the background is high. Since the average luminance value is small in the portion, the threshold value is set to a low value. For example, an appropriate threshold value cannot be obtained, and the target binarized image may not be obtained. Had.

本発明は、上記のような問題点を解消するためになされたものであり、多階調画像の局所領域における適正な閾値を求め、この閾値を用いて、背景から対象物を精度よく分離可能な2値化画像を得ることができる画像処理方法、及び画像処理装置を提供することを目的とする。   The present invention has been made to solve the above-described problems. An appropriate threshold value in a local region of a multi-tone image is obtained, and an object can be accurately separated from the background using this threshold value. An object of the present invention is to provide an image processing method and an image processing apparatus capable of obtaining a binary image.

本発明の請求項1に係る画像処理方法は、元画像となる濃淡画像から2値化画像を生成する画像処理方法であって、元画像の全体または一部領域内における階調のヒストグラムを生成するステップと、該ヒストグラムに基づいて第1の参照輝度値、及び2値化の際の閾値となる参照閾値を求め、第1の参照輝度値と参照閾値との比を輝度比として記憶するステップと、元画像の局所領域において局所ヒストグラムを生成するステップと、該局所ヒストグラムに基づいて第2の参照輝度値を求め、第2の参照輝度値と前記輝度比との演算により2値化の閾値を求め、該閾値により元画像の前記局所領域近傍の領域の画像を2値化するステップを含むようにしたものである。   An image processing method according to claim 1 of the present invention is an image processing method for generating a binarized image from a grayscale image that is an original image, and generates a gradation histogram in the whole or a partial region of the original image. And a step of obtaining a first reference luminance value and a reference threshold value which is a threshold value for binarization based on the histogram, and storing a ratio between the first reference luminance value and the reference threshold value as a luminance ratio Generating a local histogram in a local region of the original image; obtaining a second reference luminance value based on the local histogram; and calculating a threshold value for binarization by calculating the second reference luminance value and the luminance ratio And binarizing an image of an area in the vicinity of the local area of the original image based on the threshold value.

また、本発明の請求項2にかかる画像処理方法は、前記画像処理方法において、前記局所ヒストグラムに基づいて求められる前記第2の参照輝度値は、前記第1の参照輝度値と同じ処理により求めるようにしたものである。   Further, in the image processing method according to claim 2 of the present invention, in the image processing method, the second reference luminance value obtained based on the local histogram is obtained by the same processing as the first reference luminance value. It is what I did.

また、本発明の請求項3にかかる画像処理方法は、前記画像処理方法において、前記第1の参照輝度値および第2の参照輝度値は、各ヒストグラムの最大値を示す点における輝度値とするようにしたものである。   In the image processing method according to claim 3 of the present invention, in the image processing method, the first reference luminance value and the second reference luminance value are luminance values at a point indicating the maximum value of each histogram. It is what I did.

また、本発明の請求項4にかかる画像処理方法は、前記画像処理方法において、前記第1の参照輝度値および第2の参照輝度値は、各ヒストグラムにローパスフィルタをかけた後に得られる最大値を示す点における輝度値とするようにしたものである。   In the image processing method according to claim 4 of the present invention, in the image processing method, the first reference luminance value and the second reference luminance value are maximum values obtained after applying a low pass filter to each histogram. The luminance value at a point indicating the is indicated.

また、本発明の請求項5にかかる画像処理方法は、前記画像処理方法において、前記参照閾値を、前記元画像の全体または一部領域内におけるヒストグラムの最大値に隣接する凹部分における輝度値とするようにしたものである。   The image processing method according to claim 5 of the present invention is the image processing method, wherein the reference threshold value is a luminance value in a concave portion adjacent to a maximum value of a histogram in the whole or a partial area of the original image. It is what you do.

また、本発明の請求項6にかかる画像処理方法は、前記画像処理方法において、前記ヒストグラムの最大値に隣接する凹部分が存在しない場合に、前記ヒストグラムの変曲点における輝度値を前記参照閾値とするようにしたものである。   In the image processing method according to claim 6 of the present invention, in the image processing method, when there is no concave portion adjacent to the maximum value of the histogram, the luminance value at the inflection point of the histogram is set as the reference threshold value. It is made to do.

また、本発明の請求項7にかかる画像処理方法は、前記画像処理方法において、前記参照閾値として、前記元画像の全体または一部領域内におけるヒストグラムの最大値に隣接する局所凸部分における輝度値と、このヒストグラムが最大値を示す点における輝度値とを求め、両輝度値の間に含まれる値を用いるようにしたものである。   Further, in the image processing method according to claim 7 of the present invention, in the image processing method, as the reference threshold value, a luminance value in a local convex portion adjacent to a maximum value of a histogram in the whole or a partial region of the original image. And the luminance value at the point where the histogram shows the maximum value, and the value included between the two luminance values is used.

また、本発明の請求項8にかかる画像処理方法は、前記画像処理方法において、前記参照閾値を、前記元画像の全体または一部領域内におけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値とするようにしたものである。   The image processing method according to claim 8 of the present invention is the image processing method according to claim 8, wherein the reference threshold is set to the maximum value in the vicinity of the maximum value of the histogram in the whole or part of the original image. Thus, the luminance value at a position having a predetermined ratio value is used.

また、本発明の請求項9にかかる画像処理方法は、前記画像処理方法において、前記参照閾値を、前記元画像の全体または一部領域内におけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値を求め、前記最大値における輝度値を中心として、前記求めた輝度値と対称となる位置における輝度値とするようにしたものである。   The image processing method according to claim 9 of the present invention is the image processing method according to claim 9, wherein the reference threshold is set to the maximum value in the vicinity of the maximum value of the histogram in the whole or a partial area of the original image. Thus, the luminance value at the position where the ratio value is determined in advance is obtained, and the luminance value at the position symmetrical to the obtained luminance value is centered on the luminance value at the maximum value.

また、本発明の請求項10にかかる画像処理方法は、前記画像処理方法において、前記元画像全体を複数の局所領域に分割して、各局所領域毎に個別に閾値を設け、2値化するようにしたものである。   The image processing method according to claim 10 of the present invention is the image processing method, wherein the entire original image is divided into a plurality of local regions, and a threshold value is individually provided for each local region to binarize. It is what I did.

また、本発明の請求項11にかかる画像処理方法は、前記画像処理方法において、前記画像全体を複数の局所領域に分割して、各局所領域毎に個別に閾値を設け、閾値が近接する局所領域の閾値と比較して予め定めた値よりも大きく異なっている局所領域がある場合には、この局所領域の閾値を、近接する他の局所領域の閾値を用いた演算により再設定するようにしたものである。   An image processing method according to an eleventh aspect of the present invention is the image processing method according to the image processing method, wherein the entire image is divided into a plurality of local regions, a threshold value is individually provided for each local region, and the threshold value is close to the local region. If there is a local region that is significantly different from a predetermined value compared to the threshold value of the region, the threshold value of this local region is reset by calculation using the threshold values of other local regions that are close to each other. It is what.

また、本発明の請求項12にかかる画像処理方法は、前記画像処理方法において、前記輝度比を求める際に、第1の参照輝度値と参照閾値からそれぞれバックグラウンド特性に基づく不要な値を減算するようにしたものである。   According to a twelfth aspect of the present invention, in the image processing method, when the luminance ratio is obtained, unnecessary values based on background characteristics are subtracted from the first reference luminance value and the reference threshold value, respectively. It is what you do.

また、本発明の請求項13にかかる画像処理装置は、元画像となる濃淡画像から2値化画像を生成する画像処理装置であって、前記濃淡画像の多階調の画像データを記憶し、該記憶された画像データの全体または特定の領域を対象画像データとして出力する記憶手段と、前記対象画像データにおける階調のヒストグラムを生成するヒストグラム生成手段と、前記ヒストグラムに基づいて第1の参照輝度値、及び2値化の際の閾値となる参照閾値を求め、該参照閾値と該第1の参照輝度値と該参照閾値との比を参照輝度比として出力する参照輝度比生成手段と、前記対象画像データを複数の局所領域に分割して出力するとともに、前記対象画像データに対する分割情報を出力する画像分割手段と、各局所領域において局所ヒストグラムを生成する局所ヒストグラム生成手段と、前記局所ヒストグラムに基づいて第2の参照輝度値を求める局所領域参照輝度値生成手段と、前記第2の参照輝度値と前記参照輝度比との演算により2値化の閾値を求める閾値生成手段と、前記2値化の閾値により、前記対象画像データを前記分割情報に基づいて前記局所領域毎に2値化し、前記対象画像データの2値化画像を生成する2値化手段と、を備えたことを特徴とするものである。   An image processing apparatus according to a thirteenth aspect of the present invention is an image processing apparatus that generates a binarized image from a grayscale image that is an original image, and stores multi-tone image data of the grayscale image, Storage means for outputting the entire or specific area of the stored image data as target image data, histogram generation means for generating a histogram of gradations in the target image data, and a first reference luminance based on the histogram A reference luminance ratio generating means for obtaining a value and a reference threshold value that is a threshold value in binarization, and outputting a ratio of the reference threshold value, the first reference luminance value, and the reference threshold value as a reference luminance ratio; The target image data is divided into a plurality of local regions for output, and image dividing means for outputting division information for the target image data, and a local histogram is generated in each local region Local histogram generation means, local area reference luminance value generation means for obtaining a second reference luminance value based on the local histogram, and a binarization threshold value by calculation of the second reference luminance value and the reference luminance ratio And binarization for generating a binarized image of the target image data by binarizing the target image data for each of the local regions based on the division information by a threshold generation unit for calculating Means.

また、本発明の請求項14にかかる画像処理装置は、請求項13記載の画像処理装置において、前記ヒストグラム生成手段、及び前記局所ヒストグラム生成手段は、前記第1の参照輝度値及び前記第2の参照輝度値を、同じ処理により求めるものである、ことを特徴とするものである。   An image processing apparatus according to a fourteenth aspect of the present invention is the image processing apparatus according to the thirteenth aspect, wherein the histogram generating means and the local histogram generating means are configured to include the first reference luminance value and the second reference luminance value. The reference luminance value is obtained by the same process.

また、本発明の請求項15にかかる画像処理装置は、請求項14記載の画像処理装置において、前記第1の参照輝度値、及び前記第2の参照輝度値は、各ヒストグラムの最大値を示す点における輝度値である、ことを特徴とするものである。   An image processing apparatus according to claim 15 of the present invention is the image processing apparatus according to claim 14, wherein the first reference luminance value and the second reference luminance value indicate a maximum value of each histogram. It is a luminance value at a point.

また、本発明の請求項16にかかる画像処理装置は、請求項14記載の画像処理装置において、前記第1の参照輝度値、及び前記第2の参照輝度値は、各ヒストグラムにローパスフィルタを施した後に得られる最大値を示す点における輝度値である、ことを特徴とするものである。   The image processing apparatus according to claim 16 of the present invention is the image processing apparatus according to claim 14, wherein the first reference luminance value and the second reference luminance value are subjected to a low-pass filter on each histogram. It is a luminance value at a point indicating the maximum value obtained after the operation.

また、本発明の請求項17にかかる画像処理装置は、請求項13記載の画像処理装置において、前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値に隣接する凹部分における輝度値を前記参照閾値とすることを特徴とするものである。   The image processing device according to claim 17 of the present invention is the image processing device according to claim 13, wherein the reference luminance ratio generation means is a luminance value in a concave portion adjacent to a maximum value of a histogram in the target image data. Is the reference threshold value.

また、本発明の請求項18にかかる画像処理装置は、請求項17記載の画像処理装置において、前記ヒストグラムの最大値に凹部分が存在しない場合には、前記ヒストグラムの変曲点における輝度値を前記参照閾値とする、ことを特徴とするものである。   An image processing apparatus according to claim 18 of the present invention is the image processing apparatus according to claim 17, wherein when there is no concave portion in the maximum value of the histogram, the luminance value at the inflection point of the histogram is set. The reference threshold value is used.

また、本発明の請求項19にかかる画像処理装置は、請求項13記載の画像処理装置において、前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値に隣接する局所凸部分における輝度値と、該ヒストグラムが最大値を示す点における輝度値とを求め、両輝度値の間に含まれる値を前記参照閾値とする、ことを特徴とするものである。   The image processing device according to claim 19 of the present invention is the image processing device according to claim 13, wherein the reference luminance ratio generation means is a luminance in a local convex portion adjacent to a maximum value of a histogram in the target image data. A value and a luminance value at a point where the histogram shows the maximum value are obtained, and a value included between the two luminance values is used as the reference threshold value.

また、本発明の請求項20にかかる画像処理装置は、請求項13記載の画像処理装置において、前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値を前記参照閾値とする、ことを特徴とするものである。   An image processing apparatus according to claim 20 of the present invention is the image processing apparatus according to claim 13, wherein the reference luminance ratio generation means sets the maximum value in the vicinity of the maximum value of the histogram in the target image data. On the other hand, a luminance value at a position having a predetermined ratio value is used as the reference threshold value.

また、本発明の請求項21にかかる画像処理装置は、請求項13記載の画像処理装置において、前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値をリファレンス輝度値とし、前記最大値における輝度値を中心として、前記求めたリファレンス輝度値と対称となる位置における輝度値を前記参照閾値とする、ことを特徴とするものである。   The image processing apparatus according to claim 21 of the present invention is the image processing apparatus according to claim 13, wherein the reference luminance ratio generation means sets the maximum value in the vicinity of the maximum value of the histogram in the target image data. On the other hand, the luminance value at a position where the ratio is a predetermined ratio is set as a reference luminance value, and the luminance value at a position symmetrical to the obtained reference luminance value with the luminance value at the maximum value as the center is set as the reference threshold value. It is characterized by that.

また、本発明の請求項22にかかる画像処理装置は、請求項13記載の画像処理装置において、前記閾値生成手段は、各局所領域の閾値を蓄える閾値メモリと、前記閾値メモリに蓄えられた特定の局所領域の閾値を周囲の局所領域における閾値と比較する閾値比較部と、前記閾値比較部において比較した前記特定の局所領域の閾値が前記周囲の局所領域における閾値に比べて、予め定められた値以上の差を持つ場合には、前記特定の局所領域の閾値を前記周囲の局所領域における閾値の平均値に置き換える閾値判断変更部とを備える、ことを特徴とするものである。   The image processing apparatus according to claim 22 of the present invention is the image processing apparatus according to claim 13, wherein the threshold value generation means stores a threshold value memory for storing a threshold value of each local region, and a specification stored in the threshold value memory. A threshold value comparison unit that compares a threshold value of the local region with a threshold value of the surrounding local region, and a threshold value of the specific local region compared in the threshold value comparison unit is determined in advance compared to a threshold value of the surrounding local region When there is a difference greater than or equal to a value, a threshold value determination changing unit is provided that replaces the threshold value of the specific local region with an average value of the threshold values of the surrounding local regions.

また、本発明の請求項23にかかる画像処理装置は、請求項13記載の画像処理装置において、カメラ内蔵型携帯電話の名刺読み取り装置に用いられたものである、ことを特徴とするものである。   An image processing apparatus according to claim 23 of the present invention is the image processing apparatus according to claim 13, wherein the image processing apparatus is used for a business card reading device of a camera built-in mobile phone. .

本発明の請求項1に係る画像処理方法によれば、元画像となる濃淡画像から2値化画像を生成する画像処理方法であって、元画像の全体または一部領域内における階調のヒストグラムを生成するステップと、該ヒストグラムに基づいて2値化の閾値に相当する参照閾値と第1の参照輝度値とを求め、第1の参照輝度値と参照閾値との比を輝度比として記憶するステップと、元画像の局所領域において局所ヒストグラムを生成するステップと、該局所ヒストグラムに基づいて第2の参照輝度値を求め、第2の参照輝度値と前記輝度比との演算により2値化の閾値を求め、該閾値により元画像の前記局所領域近傍の領域の画像を2値化するステップとを含むものとしたので、画像全体でヒストグラムを作成し、最大頻度における参照輝度値と参照閾値の比を求めた後、画像を局所領域に分割して、各局所領域におけるヒストグラムを作成して、最大頻度における輝度値をもとめ、この値に、参照輝度値と参照閾値の比をかけることにより局所領域における閾値を求め、この閾値を用いて局所領域内の2値化を行うことにより、多階調画像の局所領域における適正な閾値を求め、この閾値を用いて背景から対象物を精度よく分離可能な2値化画像を得ることができる効果がある。   According to the image processing method of the first aspect of the present invention, there is provided an image processing method for generating a binarized image from a grayscale image that is an original image, and a histogram of gradations in the whole or a partial region of the original image And a reference threshold value corresponding to a binarization threshold value and a first reference luminance value are obtained based on the histogram, and a ratio between the first reference luminance value and the reference threshold value is stored as a luminance ratio. A step of generating a local histogram in a local region of the original image, obtaining a second reference luminance value based on the local histogram, and performing binarization by calculating the second reference luminance value and the luminance ratio And a step of binarizing the image of the area near the local area of the original image based on the threshold value. Therefore, a histogram is created for the entire image, and the reference luminance value and reference at the maximum frequency are generated. After determining the value ratio, divide the image into local regions, create a histogram for each local region, determine the luminance value at the maximum frequency, and multiply this value by the ratio between the reference luminance value and the reference threshold value. The threshold value in the local area is obtained by using this threshold value, and the binarization in the local area is performed using this threshold value, thereby obtaining an appropriate threshold value in the local area of the multi-tone image, and using this threshold value, the object is accurately detected from the background. There is an effect that a well-separable binary image can be obtained.

また、本発明の請求項2に係る画像処理方法によれば、請求項1記載の画像処理方法において、前記局所ヒストグラムに基づいて求められる前記第2の参照輝度値は、前記第1の参照輝度値と同じ処理により求めるようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing method of claim 2 of the present invention, in the image processing method of claim 1, the second reference luminance value obtained based on the local histogram is the first reference luminance. Since it is obtained by the same processing as the value, it is possible to obtain an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background.

また、本発明の請求項3に係る画像処理方法によれば、請求項2記載の画像処理方法において、前記第1の参照輝度値、および第2の参照輝度値は、各ヒストグラムの最大値を示す点における輝度値とするようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing method according to claim 3 of the present invention, in the image processing method according to claim 2, the first reference luminance value and the second reference luminance value are maximum values of the respective histograms. Since the luminance value at the indicated point is set, an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background can be obtained.

また、本発明の請求項4に係る画像処理方法によれば、請求項2記載の画像処理方法において、前記第1の参照輝度値、および第2の参照輝度値は、各ヒストグラムにローパスフィルタをかけた後に得られる最大値を示す点における輝度値とするようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing method according to claim 4 of the present invention, in the image processing method according to claim 2, the first reference luminance value and the second reference luminance value are obtained by applying a low pass filter to each histogram. Since the luminance value at the point indicating the maximum value obtained after being applied is set to an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background Can be requested.

また、本発明の請求項5に係る画像処理方法によれば、請求項1記載の画像処理方法において、前記参照閾値を、前記元画像の全体または一部領域内におけるヒストグラムの最大値に隣接する凹部分における輝度値とするようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing method of claim 5 of the present invention, in the image processing method according to claim 1, the reference threshold value is adjacent to a maximum value of a histogram in the whole or a partial area of the original image. Since the luminance value in the concave portion is set, an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background can be obtained.

また、本発明の請求項6に係る画像処理方法によれば、請求項5記載の画像処理方法において、前記ヒストグラムの最大値に隣接する凹部分が存在しない場合に、前記ヒストグラムの変曲点における輝度値を前記参照閾値とするようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to the image processing method of claim 6 of the present invention, in the image processing method of claim 5, when there is no concave portion adjacent to the maximum value of the histogram, the inflection point of the histogram Since the luminance value is set as the reference threshold value, an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background can be obtained.

また、本発明の請求項7に係る画像処理方法によれば、請求項1記載の画像処理方法において、前記参照閾値として、前記元画像の全体または一部領域内におけるヒストグラムの最大値に隣接する局所凸部分における輝度値と、このヒストグラムが最大値を示す点における輝度値とを求め、両輝度値の間に含まれる値を用いるようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing method of claim 7 of the present invention, in the image processing method of claim 1, the reference threshold value is adjacent to a maximum value of a histogram in the whole or a partial area of the original image. Since the luminance value at the local convex portion and the luminance value at the point where this histogram shows the maximum value are obtained and the value included between the two luminance values is used, the object can be accurately separated from the background 2 An appropriate threshold value in a local region of a multi-tone image for obtaining a valued image can be obtained.

また、本発明の請求項8に係る画像処理方法によれば、請求項1記載の画像処理方法において、前記参照閾値を、前記元画像の全体または一部領域内におけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値とするようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing method according to claim 8 of the present invention, in the image processing method according to claim 1, the reference threshold is set in the vicinity of the maximum value of the histogram in the whole or part of the original image. Since the luminance value is set at a position having a predetermined ratio with respect to the maximum value, a multi-tone image for obtaining a binarized image capable of accurately separating the object from the background is provided. An appropriate threshold value in the local region can be obtained.

また、本発明の請求項9に係る画像処理方法によれば、請求項1記載の画像処理方法において、前記参照閾値を、前記元画像の全体または一部領域内におけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値を求め、前記最大値における輝度値を中心として、前記求めた輝度値と対称となる位置における輝度値とするようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   Further, according to an image processing method according to claim 9 of the present invention, in the image processing method according to claim 1, the reference threshold is set in the vicinity of the maximum value of the histogram in the whole or a partial region of the original image. The luminance value at a position where a predetermined ratio is obtained with respect to the maximum value is obtained, and the luminance value at a position symmetrical to the obtained luminance value is centered on the luminance value at the maximum value. Therefore, it is possible to obtain an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background.

また、本発明の請求項10に係る画像処理方法によれば、請求項1記載の画像処理方法において、前記元画像全体を複数の局所領域に分割して、各局所領域毎に個別に閾値を設け、2値化するようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing method according to claim 10 of the present invention, in the image processing method according to claim 1, the entire original image is divided into a plurality of local regions, and a threshold value is individually set for each local region. Since it is provided and binarized, it is possible to obtain an appropriate threshold value in a local region of a multi-tone image for obtaining a binarized image capable of accurately separating an object from the background.

また、本発明の請求項11に係る画像処理方法によれば、請求項10記載の画像処理方法において、前記画像全体を複数の局所領域に分割して、各局所領域毎に個別に閾値を設け、閾値が近接する局所領域の閾値と比較して予め定めた値よりも大きく異なっている局所領域がある場合には、この局所領域の閾値を近接する他の局所領域の閾値を用いた演算により再設定するようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   The image processing method according to claim 11 of the present invention is the image processing method according to claim 10, wherein the entire image is divided into a plurality of local regions, and a threshold is individually set for each local region. If there is a local region whose threshold value is significantly different from a predetermined value compared to the threshold value of the adjacent local region, the threshold value of this local region is calculated by using the threshold value of another local region. Since resetting is performed, it is possible to obtain an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background.

また、本発明の請求項12に係る画像処理方法によれば、請求項1記載の画像処理方法において、前記輝度比を求める際に、第1の参照輝度値と参照閾値からそれぞれバックグラウンド特性に基づく不要な値を減算するようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing method of claim 12 of the present invention, in the image processing method of claim 1, when obtaining the luminance ratio, the background characteristics are respectively obtained from the first reference luminance value and the reference threshold value. Since an unnecessary value based on the subtraction is subtracted, an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background can be obtained.

また、本発明の請求項13にかかる画像処理装置によれば、元画像となる濃淡画像から2値化画像を生成する画像処理装置であって、前記濃淡画像の多階調の画像データを記憶し、該記憶された画像データの全体または特定の領域を対象画像データとして出力する記憶手段と、前記対象画像データにおける階調のヒストグラムを生成するヒストグラム生成手段と、前記ヒストグラムに基づいて参照閾値と第1の参照輝度値とを求め、該参照閾値と該第1の参照輝度値との比を参照輝度比として出力する参照輝度比生成手段と、前記対象画像データを複数の局所領域に分割して出力するとともに、前記対象画像データに対する分割情報を出力する画像分割手段と、各局所領域において局所ヒストグラムを生成する局所ヒストグラム生成手段と、前記局所ヒストグラムに基づいて第2の参照輝度値を求める局所領域参照輝度値生成手段と、前記参照輝度比と前記第2の参照輝度値との演算により2値化の閾値を求める閾値生成手段と、前記2値化の閾値により、前記対象画像データを前記分割情報に基づいて前記局所領域毎に2値化し、前記対象画像データの2値化画像を生成する2値化手段と、を備えたものとしたので、多階調画像の局所領域における適正な閾値を求め、この閾値を用いて、背景から対象物を精度よく分離可能な2値化画像を得ることができる効果がある。   According to the image processing apparatus of the thirteenth aspect of the present invention, there is provided an image processing apparatus that generates a binarized image from a grayscale image that is an original image, and stores multi-tone image data of the grayscale image. Storage means for outputting the entire stored image data or a specific region as target image data, histogram generation means for generating a histogram of gradations in the target image data, and a reference threshold based on the histogram A reference luminance ratio generating unit that obtains a first reference luminance value and outputs a ratio between the reference threshold value and the first reference luminance value as a reference luminance ratio; and divides the target image data into a plurality of local regions. Image division means for outputting division information for the target image data, local histogram generation means for generating a local histogram in each local region, Local area reference luminance value generation means for obtaining a second reference luminance value based on the local histogram; threshold generation means for obtaining a binarization threshold value by calculating the reference luminance ratio and the second reference luminance value; Binarizing means for binarizing the target image data for each of the local regions based on the division information by using the binarization threshold, and generating a binarized image of the target image data. Thus, there is an effect that a proper threshold value in a local region of a multi-tone image is obtained, and a binary image capable of accurately separating an object from the background can be obtained using this threshold value.

また、本発明の請求項14にかかる画像処理装置によれば、請求項13記載の画像処理装置において、前記ヒストグラム生成手段、及び前記局所ヒストグラム生成手段は、前記第1の参照輝度値、及び前記第2の参照輝度値は、同じ処理により求める、ものとしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing apparatus of claim 14 of the present invention, in the image processing apparatus according to claim 13, the histogram generation means and the local histogram generation means include the first reference luminance value, and the Since the second reference luminance value is obtained by the same process, an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background is obtained. be able to.

また、本発明の請求項15にかかる画像処理装置によれば、請求項14記載の画像処理装置において、前記第1の参照輝度値、及び前記第2の参照輝度値は、各ヒストグラムの最大値を示す点における輝度値とするようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing device of claim 15 of the present invention, in the image processing device according to claim 14, the first reference luminance value and the second reference luminance value are maximum values of respective histograms. Therefore, it is possible to obtain an appropriate threshold value in a local region of a multi-tone image for obtaining a binarized image capable of accurately separating an object from the background.

また、本発明の請求項16にかかる画像処理装置によれば、請求項14記載の画像処理装置において、前記第1の参照輝度値、及び前記第2の参照輝度値は、各ヒストグラムにローパスフィルタを施した後に得られる最大値を示す点における輝度値とするようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing device of the sixteenth aspect of the present invention, in the image processing device according to the fourteenth aspect, the first reference luminance value and the second reference luminance value are low-pass filters in each histogram. Since the luminance value at the point indicating the maximum value obtained after the image processing is performed, an appropriate value in the local region of the multi-tone image is obtained in order to obtain a binarized image capable of accurately separating the object from the background. A threshold can be determined.

また、本発明の請求項17にかかる画像処理装置によれば、請求項13記載の画像処理装置において、前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値に隣接する凹部分における輝度値を前記参照閾値とするものとしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing device of claim 17 of the present invention, in the image processing device according to claim 13, the reference luminance ratio generation means is provided for a concave portion adjacent to a maximum value of a histogram in the target image data. Since the luminance value is set as the reference threshold value, an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background can be obtained.

また、本発明の請求項18にかかる画像処理装置によれば、請求項17記載の画像処理装置において、前記ヒストグラムの最大値に凹部分が存在しない場合には、前記ヒストグラムの変曲点における輝度値を前記参照閾値とするようにしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to the image processing device of claim 18 of the present invention, in the image processing device according to claim 17, when there is no concave portion in the maximum value of the histogram, the luminance at the inflection point of the histogram. Since the value is set as the reference threshold value, an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background can be obtained.

また、本発明の請求項19にかかる画像処理装置によれば、請求項13記載の画像処理装置において、前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値に隣接する局所凸部分における輝度値と、該ヒストグラムが最大値を示す点における輝度値とを求め、両輝度値の間に含まれる値を前記参照閾値とするものとしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing device of claim 19 of the present invention, in the image processing device according to claim 13, the reference luminance ratio generation means is a local convex portion adjacent to a maximum value of a histogram in the target image data. Since the luminance value at the point where the histogram shows the maximum value is obtained and the value included between the two luminance values is used as the reference threshold, the object can be accurately separated from the background. An appropriate threshold value in a local region of a multi-tone image for obtaining a binarized image can be obtained.

また、本発明の請求項20にかかる画像処理装置によれば、請求項13記載の画像処理装置において、前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値を前記参照閾値とするものとしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   Further, according to an image processing device of claim 20 of the present invention, in the image processing device according to claim 13, the reference luminance ratio generation means is configured to detect the maximum in the vicinity of a maximum value of a histogram in the target image data. Since the luminance value at a position where the ratio is a predetermined ratio with respect to the value is used as the reference threshold value, a multi-tone image for obtaining a binarized image capable of accurately separating the object from the background An appropriate threshold value in the local region can be obtained.

また、本発明の請求項21にかかる画像処理装置によれば、請求項13記載の画像処理装置において、前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値をリファレンス輝度値とし、該最大値における輝度値を中心として、前記リファレンス輝度値と対称となる位置における輝度値を前記参照閾値とするものとしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   According to an image processing apparatus of claim 21 of the present invention, in the image processing apparatus according to claim 13, the reference luminance ratio generation means is configured to increase the maximum in the vicinity of the maximum value of the histogram in the target image data. The luminance value at a position where the ratio is a predetermined ratio to the value is set as a reference luminance value, and the luminance value at a position symmetrical to the reference luminance value with the luminance value at the maximum value as the center is set as the reference threshold value. Therefore, it is possible to obtain an appropriate threshold value in the local region of the multi-tone image for obtaining a binarized image capable of accurately separating the object from the background.

また、本発明の請求項22にかかる画像処理装置は、請求項13記載の画像処理装置において、前記閾値生成手段は、各局所領域の閾値を蓄える閾値メモリと、前記閾値メモリに蓄えられた特定の局所領域の閾値を周囲の局所領域における閾値と比較する閾値比較部と、前記閾値比較部において比較した前記特定の局所領域の閾値が前記周囲の局所領域における閾値に比べて、予め定められた値以上の差を持つ場合には、前記特定の局所領域の閾値を前記周囲の局所領域における閾値の平均値に置き換える閾値判断変更部とを備えるものとしたので、背景から対象物を精度よく分離可能な2値化画像を得るための、多階調画像の局所領域における適正な閾値を求めることができる。   The image processing apparatus according to claim 22 of the present invention is the image processing apparatus according to claim 13, wherein the threshold value generation means stores a threshold value memory for storing a threshold value of each local region, and a specification stored in the threshold value memory. A threshold value comparison unit that compares a threshold value of the local region with a threshold value of the surrounding local region, and a threshold value of the specific local region compared in the threshold value comparison unit is determined in advance compared to a threshold value of the surrounding local region When there is a difference greater than or equal to the value, the threshold judgment changing unit that replaces the threshold value of the specific local area with the average value of the threshold values in the surrounding local area is provided, so that the object is accurately separated from the background. An appropriate threshold value in a local region of the multi-tone image for obtaining a possible binarized image can be obtained.

また、本発明の請求項23にかかる画像処理装置は、請求項13記載の画像処理装置において、カメラ内蔵型携帯電話の名刺読み取り装置に用いられたものとしたので、内蔵されたカメラにより名刺を撮影し、名刺の文字を読みとって、これをデータベース化する機能を達成することができる。   The image processing apparatus according to claim 23 of the present invention is the image processing apparatus according to claim 13, wherein the image processing apparatus is used for a business card reading device of a camera built-in mobile phone. It is possible to achieve the function of taking a picture, reading the characters of the business card, and making it into a database.

(実施の形態1)
図3は、本発明の実施の形態1に係る画像処理方法の原理を説明するための図であり、3階調以上の多階調の元画像300、即ち濃淡を有する元画像とその各領域におけるヒストグラムとを示すものである。元画像としては、細菌を撮影した画像を用いている。ヒストグラム303は元画像300の局所領域301における輝度値のヒストグラムである。
(Embodiment 1)
FIG. 3 is a diagram for explaining the principle of the image processing method according to the first embodiment of the present invention, and is a multi-gradation original image 300 having three or more gradations, that is, an original image having light and shade and its respective regions. Is a histogram. As the original image, an image of bacteria is used. A histogram 303 is a histogram of luminance values in the local area 301 of the original image 300.

このヒストグラム303は、局所領域301に含まれる全ての画素の輝度値をその頻度で表わしたもので、紙面左に暗い画素、つまり輝度値0、紙面右に明るい画素、つまり輝度値255をとり、それぞれの輝度値を示す画素数を縦軸にとったものである。局所領域301においては、背景の部分が最も広い面積を持つため、ヒストグラム303においては背景の輝度A付近の画素数が最も多くなっている。また、輝度Bの明るさを持つ細菌の部分は小さなピークとして現れる。局所領域301においては、輝度Cを閾値とすることにより、細菌と背景を分離することが可能である。   This histogram 303 represents the luminance values of all the pixels included in the local region 301 by the frequency, and takes a dark pixel on the left side of the paper, that is, a luminance value of 0, and a bright pixel on the right side of the paper, that is, a luminance value of 255. The number of pixels indicating each luminance value is plotted on the vertical axis. In the local region 301, the background portion has the largest area, and therefore, in the histogram 303, the number of pixels near the background luminance A is the largest. In addition, the bacteria portion having the brightness B appears as a small peak. In the local region 301, it is possible to separate the bacteria and the background by using the luminance C as a threshold value.

同様に、ヒストグラム304は元画像300の局所領域302における輝度値のヒストグラムである。局所領域302は局所領域301に比べて全体が暗くなっているため、このヒストグラム304はヒストグラム303に比べると紙面左につまった形状を持っている。局所領域302においても、背景の部分が最も広い面積を持つため、ヒストグラム304においては背景の輝度D付近の画素数が最も多くなっている。また、輝度Eの明るさを持つ細菌の部分は小さなピークとして現れる。局所領域302においては、輝度Fを閾値とすることにより、細菌と背景を分離することが可能である。   Similarly, the histogram 304 is a histogram of luminance values in the local region 302 of the original image 300. Since the entire local area 302 is darker than the local area 301, the histogram 304 has a shape that is jammed to the left of the page as compared with the histogram 303. Also in the local region 302, since the background portion has the largest area, the number of pixels in the vicinity of the luminance D of the background is the largest in the histogram 304. In addition, the portion of bacteria having brightness E appears as a small peak. In the local region 302, it is possible to separate the bacteria and the background by using the brightness F as a threshold value.

ヒストグラム305は元画像300全体の輝度値のヒストグラムである。このヒストグラム305は局所領域301、302をはじめとする全局所領域のヒストグラムを足し合わせたものとなるため、各ピークはなだらかなものとなるが、背景部分の一番画素が多い輝度G部分と、細菌部分の一番画素が多い輝度H部分にそれぞれピークが現われる。輝度Iは背景と細菌部分とを切り分ける輝度ではあるが、この値を画像全体の閾値として2値化した場合は、この値Iがヒストグラム303に示す輝度B以下であることから、局所領域301においては細菌部分を背景として判断してしまうため、正常な処理を行うことができない。   A histogram 305 is a histogram of luminance values of the entire original image 300. Since this histogram 305 is a sum of histograms of all local regions including the local regions 301 and 302, each peak is gentle, but the luminance G portion with the largest number of pixels in the background portion, A peak appears in each of the luminance H portions having the largest number of pixels in the bacterial portion. The luminance I is a luminance that separates the background and the bacterial part. However, when this value is binarized as the threshold value of the entire image, the value I is equal to or lower than the luminance B shown in the histogram 303. Cannot be processed normally because it determines the bacterial part as the background.

このため、局所領域ごとにそれぞれに適した閾値を用いて2値化することで、背景画像から対象物、ここでは細菌、の画像を精度よく分離可能な2値化画像を得るものとするが、その閾値を決定するにあたり、局所領域ごとの物理的な性質について解析する。例えば、与えた光に対して、背景部分は50%の反射率を持ち、細菌部分は10%の反射率をもつものとする。すると局所領域301に与えられた光の強さがXであるものとすると、輝度AはA=0.5X、輝度BはB=0.1Xという関係を持つ。閾値を輝度Aと輝度Bの中央値Cとすると、輝度CはC=(0.5X+0.1X)/2=0.3Xという値を持つこととなる。AとCの関係からXを消去すると、C=0.6Aという関係を持つ。同様に局所領域302における輝度Dと閾値Fの関係についても、F=0.6Dという関係となり、全ての局所領域における閾値は、背景部分の輝度に同じ係数を乗じたものとして与えられる。なお、同様の手法により、局所領域における閾値は細菌部分の輝度に同じ係数を乗じたものによっても求めることは可能であるが、本画像のように背景部分の領域が大きい場合には、背景部分の輝度を最も安定して求めることができるため、背景部分の輝度に係数を乗じて、閾値を求めることとする。   For this reason, binarization is performed using threshold values suitable for each local region, thereby obtaining a binarized image capable of accurately separating an image of an object, here bacteria, from a background image. In determining the threshold, the physical properties of each local region are analyzed. For example, it is assumed that the background portion has a reflectance of 50% and the bacterial portion has a reflectance of 10% with respect to the applied light. Then, assuming that the intensity of light given to the local region 301 is X, the luminance A has a relationship of A = 0.5X and the luminance B has a relationship of B = 0.1X. When the threshold value is the median value C of the luminance A and the luminance B, the luminance C has a value of C = (0.5X + 0.1X) /2=0.3X. If X is eliminated from the relationship between A and C, the relationship C = 0.6A is established. Similarly, the relationship between the luminance D and the threshold value F in the local region 302 is F = 0.6D, and the threshold values in all the local regions are given as the luminance of the background portion multiplied by the same coefficient. Note that the threshold value in the local area can be obtained by the same method by multiplying the brightness of the bacterial part by the same coefficient, but if the background part area is large as in this image, the background part Therefore, the threshold value is obtained by multiplying the luminance of the background portion by a coefficient.

また、乗じる係数は、元画像300全体のヒストグラム305、またはそれに準ずる大きい領域のヒストグラムにおいて、背景となるピーク部分Gと閾値Iとの比をとることにより安定的に求めることができる。   In addition, the coefficient to be multiplied can be stably obtained by taking the ratio of the peak portion G serving as the background and the threshold value I in the histogram 305 of the entire original image 300 or a histogram of a large area equivalent thereto.

以上を踏まえた上で、本実施の形態1に係る画像処理方法による、元画像を2値化する手順を、以下、図1を用いて説明する。図1は本実施の形態1に係る画像処理方法の処理フロー図である。なお、ここでは、1000×1000画素の大きさを持ち、各画素が白黒256階調をもつ細菌の顕微鏡画像(元画像)201(図2参照)を2値化し、2値画像205を得るための処理を行う場合の各ステップについて説明する。   Based on the above, the procedure for binarizing the original image by the image processing method according to the first embodiment will be described below with reference to FIG. FIG. 1 is a processing flowchart of the image processing method according to the first embodiment. Here, in order to obtain a binary image 205 by binarizing a microscopic image (original image) 201 (see FIG. 2) of bacteria having a size of 1000 × 1000 pixels and each pixel having 256 gray scales. Each step when performing the above process will be described.

まず、ステップS101において、画像全体における輝度のヒストグラムを作成する。ここでは画像全体としたが、画像周辺部が暗いなどの場合には、中央部分のみを切り抜いた画像における輝度ヒストグラムでもよい。これらのヒストグラムは、ノイズ等の影響により分布にバラツキがあるため、ステップS102の処理ではヒストグラムにローパスフィルタをかける。実際の処理では、前後5輝度分の頻度の平均値をとることで実現する。   First, in step S101, a luminance histogram for the entire image is created. Here, the entire image is shown, but when the peripheral portion of the image is dark, a luminance histogram in an image obtained by cutting out only the central portion may be used. Since these histograms vary in distribution due to the influence of noise or the like, a low pass filter is applied to the histograms in the process of step S102. In the actual processing, it is realized by taking the average value of the frequencies for the front and rear luminances.

ステップS103では、ローパスフィルタをかけたヒストグラムにおいて、最大頻度を示す輝度値を求める。これを以下、参照輝度値と称する。この値が前述した図3における背景部分の輝度値Gを意味する。ステップS104では、ステップS103で求めた参照輝度値から輝度の低い方向に向かって極小値を示す輝度を探索する。この部分は図3の輝度Iに対応し、2値化のための閾値を意味する。以下、参照閾値と称する。   In step S103, a luminance value indicating the maximum frequency is obtained in the histogram subjected to the low-pass filter. This is hereinafter referred to as a reference luminance value. This value means the luminance value G of the background portion in FIG. In step S104, a search is made for a luminance indicating a minimum value in the direction of decreasing luminance from the reference luminance value obtained in step S103. This portion corresponds to the luminance I in FIG. 3 and means a threshold value for binarization. Hereinafter, this is referred to as a reference threshold.

ステップS105では参照閾値と参照輝度値の比I/Gを求め、これをJとして記憶する。ステップS106では元画像201を100×100画素の局所領域に分割する。局所領域は、縦横10×10個存在することとなる。ステップS107では1つの局所領域の中で輝度ヒストグラムを作成する。ここで、例えば、注目する局所領域を図3の局所領域301であると考えると、ヒストグラム303がつくられることとなる。なお、局所領域が非常に小さい領域として分割された場合には、ノイズに対する精度向上のため、局所領域を中心とする、より広い範囲においてヒストグラムを作成してもよい。   In step S105, the ratio I / G between the reference threshold value and the reference luminance value is obtained and stored as J. In step S106, the original image 201 is divided into local areas of 100 × 100 pixels. There are 10 × 10 local areas in the vertical and horizontal directions. In step S107, a luminance histogram is created in one local area. Here, for example, if the local region of interest is considered to be the local region 301 in FIG. 3, a histogram 303 is generated. When the local region is divided as a very small region, a histogram may be created in a wider range centering on the local region in order to improve accuracy against noise.

ステップS108では、各局所領域のヒストグラムにローパスフィルタをかける。ステップS109では、ローパスフィルタをかけたヒストグラムにおいて、最大頻度を示す輝度値をもとめる。この値が図3における背景部分の輝度値Aに相当する。ステップS110では、局所領域の最大頻度を示す輝度値に前述したJを乗じることにより、その局所領域における閾値を求める。例えば、局所領域301について考えると、輝度値AにJを乗じることにより、局所領域301における閾値を求めることができる。ステップS111では、全ての局所領域についてステップS107からステップS110までの処理を繰り返す。ステップS112では、元画像300の全ての画素に対して、各局所領域ごとに、各局所領域について求めた閾値を用いて2値化を行い、最終の2値画像205を得る。   In step S108, a low pass filter is applied to the histogram of each local region. In step S109, the luminance value indicating the maximum frequency is obtained from the histogram subjected to the low-pass filter. This value corresponds to the luminance value A of the background portion in FIG. In step S110, the threshold value in the local region is obtained by multiplying the luminance value indicating the maximum frequency of the local region by J described above. For example, considering the local region 301, the threshold value in the local region 301 can be obtained by multiplying the luminance value A by J. In step S111, the processing from step S107 to step S110 is repeated for all local regions. In step S112, binarization is performed on all the pixels of the original image 300 using the threshold values obtained for each local region for each local region, and a final binary image 205 is obtained.

なお、ステップS104においては、ステップS103で求めた参照輝度値から輝度の低い方向に向かって極小値を示す輝度を探索し、極小値により参照閾値を求めたが、ヒストグラム305の低輝度側から極大値を探索すると、求めた極大値が細菌の輝度を示すことから、この輝度値と、ステップS103で求めた背景の輝度値との中央値を、参照閾値とすることもできる。   In step S104, the luminance indicating the minimum value is searched from the reference luminance value obtained in step S103 in the direction of decreasing luminance, and the reference threshold value is obtained from the minimum value. When the value is searched for, the obtained maximum value indicates the brightness of the bacterium, so that the median value of this brightness value and the background brightness value obtained in step S103 can be used as the reference threshold value.

なお、以上の方法において、処理ステップ104においては、極小値や極大値を利用して参照閾値を求めたが、画像によっては、これら極大値や極小値が存在しない場合もあり得る。また、上述した処理ステップS110による閾値の算出方法では、細菌の偏在等により、正確な閾値が算出できない場合もある。以下、かかる場合の参照閾値、及び閾値の算出方法の変形例について説明する。   In the above method, in the processing step 104, the reference threshold value is obtained using the local minimum value or the local maximum value. However, depending on the image, the local maximum value or the local minimum value may not exist. In addition, in the threshold value calculation method in the processing step S110 described above, an accurate threshold value may not be calculated due to the uneven distribution of bacteria or the like. Hereinafter, a modified example of the reference threshold value and the threshold value calculation method in such a case will be described.

まず、参照閾値の算出処理の変形例について説明する。
図4は本実施の形態1による画像処理方法における、参照閾値を求める処理の変形例を説明するための図であり、ある画像のヒストグラム400を示したものである。この例では、元画像内で大きく照度が変化することから、背景の輝度分布と細菌の輝度分布とが重なり合い、両者の間に極大値や極小値が存在しないものとなっている。したがって、処理ステップS104において、最大頻度を示す参照輝度値402から輝度の低い方向に向かって極小値を探索した後、探索範囲内に極小値が存在しない場合には、変曲点の輝度を参照閾値403として用いるようにする。
First, a modification of the reference threshold calculation process will be described.
FIG. 4 is a diagram for explaining a modification of the process for obtaining the reference threshold in the image processing method according to the first embodiment, and shows a histogram 400 of an image. In this example, since the illuminance greatly changes in the original image, the luminance distribution of the background and the luminance distribution of the bacteria overlap, and there is no maximum value or minimum value between them. Accordingly, in the processing step S104, after searching for the minimum value from the reference luminance value 402 indicating the maximum frequency in the direction of decreasing luminance, if the minimum value does not exist within the search range, refer to the luminance of the inflection point. The threshold value 403 is used.

また、変曲点は安定して求められない場合もあるため、このような場合における参照閾値を求める別の方法を図5を用いて説明する。図5において、ヒストグラム500の最大頻度501(ヒストグラム上のピーク値)を示す輝度値を参照輝度値504とする。この時の頻度501に対して予め与えた値、例えば40%、の比率以下の頻度502となる輝度を、輝度の低い方向に向かって探索する。その結果求めた輝度を参照閾値503とする。この方法では、ある程度ヒストグラムの形状が分かっている場合には、ノイズの影響をあまり受ける事なく確実に参照閾値を求めることができる。   Further, since the inflection point may not be obtained stably, another method for obtaining the reference threshold in such a case will be described with reference to FIG. In FIG. 5, a luminance value indicating the maximum frequency 501 (peak value on the histogram) of the histogram 500 is set as a reference luminance value 504. A brightness having a frequency 502 equal to or less than a ratio of a value given in advance to the frequency 501 at this time, for example, 40%, is searched for in the direction of decreasing brightness. The luminance obtained as a result is set as a reference threshold value 503. In this method, when the shape of the histogram is known to some extent, the reference threshold value can be obtained reliably without being affected by noise.

なお、上記方法は、最大頻度501の40%の比率以下の値を持つ頻度502となる輝度を低輝度側で求めたが、この点は細菌の数により影響を受けるため、高輝度側を利用して参照閾値を求めることにより、かかる影響を排除することができる。例えば、図6において、ヒストグラム600の最大頻度604(ヒストグラム上のピーク値)を示す輝度値を参照輝度値603とする。この時の頻度604に対して予め与えた値、例えば40%、の比率以下の頻度605となる輝度を、輝度の高い方向に向かって探索する。その結果求めた輝度601に対して、参照輝度603について対称となる位置の輝度を参照閾値602とする。例えば、輝度603が150という値を持ち、輝度値601が180という値を持つ場合、参照閾値602は120となる。   In the above-described method, the luminance with the frequency 502 having a value equal to or less than 40% of the maximum frequency 501 is obtained on the low luminance side, but this point is affected by the number of bacteria, so the high luminance side is used. Thus, the influence can be eliminated by obtaining the reference threshold. For example, in FIG. 6, a luminance value indicating the maximum frequency 604 (peak value on the histogram) of the histogram 600 is set as the reference luminance value 603. A brightness having a frequency 605 equal to or less than a ratio of a value given in advance to the frequency 604 at this time, for example, 40%, is searched for in a higher brightness direction. With respect to the luminance 601 obtained as a result, the luminance at a position symmetric with respect to the reference luminance 603 is set as a reference threshold value 602. For example, when the luminance 603 has a value of 150 and the luminance value 601 has a value of 180, the reference threshold 602 is 120.

次に、局所領域での閾値の算出方法の変形例について示す。処理ステップS110では、ヒストグラムの最大値のみを利用して局所領域の閾値を求めるため、局所領域に細菌が含まれていない場合などにおいても、正確に閾値を求めることができる。しかし、特定の局所領域に細菌が集中してしまい、ヒストグラムの最大値が細菌の領域を示した場合には正常な閾値が求まらない。これを回避するために、図1に示した処理ステップS111の後、局所領域毎の閾値を周囲の局所領域における閾値と比較し、予め定めた値以上の差を持つ局所領域においては、現在の閾値を棄却して、周囲の閾値を補間して新たな閾値を求めることにより、適切な閾値を求めることができる。   Next, a modified example of the threshold value calculation method in the local region will be described. In processing step S110, since the threshold value of the local region is obtained using only the maximum value of the histogram, the threshold value can be obtained accurately even when bacteria are not included in the local region. However, when the bacteria are concentrated in a specific local area and the maximum value of the histogram indicates the area of bacteria, a normal threshold value cannot be obtained. In order to avoid this, after the processing step S111 shown in FIG. 1, the threshold value for each local region is compared with the threshold value in the surrounding local region, and in the local region having a difference greater than a predetermined value, An appropriate threshold value can be obtained by rejecting the threshold value and interpolating surrounding threshold values to obtain a new threshold value.

また、処理ステップS110では、図1の処理ステップS105にて算出した参照閾値と参照輝度値の比I/GであるJを、背景部分の輝度値Aに乗じることにより、局所領域における閾値を求めたが、元画像をCCD等のデバイスで撮影した場合は、輝度値にはCCDの特性に基づく暗電流値が重畳されているため、より正確な閾値を求めるためには、暗電流の影響を除去する必要がある。かかる場合、暗電流により重畳される輝度成分をZとすると、参照閾値と参照輝度値の比はJ=(I−Z)/(G−Z)で求めることができ、局所領域における閾値を、J×(A−Z)+Zにより算出することにより、より正確な閾値を求めることができる。   Further, in the processing step S110, the threshold value in the local region is obtained by multiplying the luminance value A of the background portion by J which is the ratio I / G of the reference threshold value and the reference luminance value calculated in the processing step S105 of FIG. However, when the original image is taken with a device such as a CCD, the dark current value based on the characteristics of the CCD is superimposed on the brightness value. Need to be removed. In such a case, if the luminance component superimposed by the dark current is Z, the ratio between the reference threshold value and the reference luminance value can be obtained by J = (I−Z) / (G−Z). By calculating by J × (A−Z) + Z, a more accurate threshold can be obtained.

以上のように、本実施の形態1による画像処理方法によれば、元画像の全体または一部領域内における階調のヒストグラムを生成し、該ヒストグラムに基づいて2値化の閾値に相当する参照閾値と第1の参照輝度値とを求め、両者の比を輝度比として記憶し、元画像の局所領域において局所ヒストグラムを生成し、該局所ヒストグラムに基づいて第2の参照輝度値を求め、これと前記輝度比との演算により2値化の閾値を求め、該閾値により元画像の局所領域近傍の領域の画像を2値化するようにした。言い換えると、画像全体でヒストグラムを作成し、最大頻度における参照輝度値と参照閾値の比を求めた後、画像を局所領域に分割して、各局所領域におけるヒストグラムを作成して、最大頻度における輝度値をもとめ、この値に、参照輝度値と参照閾値の比をかけることにより局所領域における閾値を求め、この閾値を用いて局所領域内の2値化を行うようにした。これにより、多階調画像の局所領域における適正な閾値を求めることができ、この閾値を用いて背景から対象物を精度よく分離可能な2値化画像を得ることができる。   As described above, according to the image processing method according to the first embodiment, a gradation histogram is generated in the whole or a partial area of the original image, and the reference corresponding to the binarization threshold is based on the histogram. A threshold value and a first reference luminance value are obtained, a ratio between the two is stored as a luminance ratio, a local histogram is generated in a local region of the original image, and a second reference luminance value is obtained based on the local histogram. And a threshold value for binarization by calculating the luminance ratio, and binarizing an image in a region near the local region of the original image using the threshold value. In other words, a histogram is created for the entire image, the ratio between the reference luminance value and the reference threshold value at the maximum frequency is obtained, the image is divided into local regions, a histogram is created for each local region, and the luminance at the maximum frequency is obtained. A threshold value in the local region is obtained by determining the value and multiplying this value by the ratio between the reference luminance value and the reference threshold value, and binarization in the local region is performed using this threshold value. As a result, an appropriate threshold value in the local region of the multi-tone image can be obtained, and a binary image capable of accurately separating the object from the background can be obtained using this threshold value.

(実施の形態2)
図7は本発明の実施の形態1に記載の画像処理方法を実現するための、本実施の形態2による画像処理装置のブロック図である。
(Embodiment 2)
FIG. 7 is a block diagram of an image processing apparatus according to the second embodiment for realizing the image processing method according to the first embodiment of the present invention.

図7において、カメラ700により撮影した画像は、フレームメモリ701に格納される。ここで撮影画像は、1000×1000画素であり、各画素が256階調の白黒画像であるものとする。フレームメモリ701は格納した撮影画像の全領域あるいは撮影画像の一部を画像データとして出力するが、ここではフレームメモリ701の撮影画像全領域を出力するものとする。   In FIG. 7, an image taken by the camera 700 is stored in the frame memory 701. Here, it is assumed that the photographed image is 1000 × 1000 pixels and each pixel is a black and white image having 256 gradations. The frame memory 701 outputs the entire area of the stored captured image or a part of the captured image as image data. Here, it is assumed that the entire captured image area of the frame memory 701 is output.

次に全体ヒストグラム作成部702は、実施の形態1で示したステップS101〜S102に示すように、フレームメモリ701が出力する画像データ全体の輝度ヒストグラムを作成する。   Next, the overall histogram creation unit 702 creates a brightness histogram of the entire image data output from the frame memory 701, as shown in steps S101 to S102 shown in the first embodiment.

参照輝度比作成部703は、実施の形態1のステップS103〜S105に示すように、全体ヒストグラム作成部702で生成された輝度ヒストグラムの最大頻度を示す輝度値を求めてこれを参照輝度値Gとし、また同時に参照輝度値Gから輝度の低い方向に向かって極小値を示す輝度を探索してこれを参照閾値Iとし、参照閾値Iを参照輝度値Gで除算した値Jを参照輝度比として求め出力する。   The reference luminance ratio creating unit 703 obtains a luminance value indicating the maximum frequency of the luminance histogram generated by the overall histogram creating unit 702 as shown in steps S103 to S105 of the first embodiment, and uses this as the reference luminance value G. At the same time, a luminance indicating a minimum value from the reference luminance value G toward a lower luminance direction is searched and used as a reference threshold value I, and a value J obtained by dividing the reference threshold value I by the reference luminance value G is obtained as a reference luminance ratio. Output.

一方、画像分割部704は、実施の形態1のステップS106に示すように、フレームメモリ701が出力する画像データを、例えば縦10個、横10個の局所領域に分割する。この時、1つの小領域は100×100画素の大きさを持つ。そして、フレームメモリ701が出力する画像データをどの大きさで分割したかを表す分割情報を2値化部708に出力する。   On the other hand, the image dividing unit 704 divides the image data output from the frame memory 701 into, for example, 10 local areas and 10 local areas as shown in step S106 of the first embodiment. At this time, one small region has a size of 100 × 100 pixels. Then, division information indicating the size of the image data output from the frame memory 701 is output to the binarization unit 708.

局所ヒストグラム作成部705は、実施の形態1のステップS107〜S108に示すように、画像分割部704が出力する分割された画像データの各局所領域毎に局所ヒストグラムを作成する。   The local histogram creation unit 705 creates a local histogram for each local region of the divided image data output from the image division unit 704, as shown in steps S107 to S108 of the first embodiment.

ピーク輝度検出部706は、実施の形態1のステップS109に示すように、局所ヒストグラム作成部705で生成された局所ヒストグラムの最大頻度を示す輝度値を求め、これを局所領域の背景輝度値Aとして出力する。   As shown in step S109 of the first embodiment, the peak luminance detection unit 706 obtains a luminance value indicating the maximum frequency of the local histogram generated by the local histogram creation unit 705, and uses this as the background luminance value A of the local region. Output.

閾値演算部707は、実施の形態1のステップS110に示すように、参照輝度比生成部703が出力する参照輝度比Jとピーク輝度検出部706が出力する背景輝度値Aを乗算することにより、局所領域における2値化の閾値を求める。   As shown in step S110 of the first embodiment, the threshold calculation unit 707 multiplies the reference luminance ratio J output from the reference luminance ratio generation unit 703 by the background luminance value A output from the peak luminance detection unit 706, A binarization threshold value in the local region is obtained.

2値化部708は、ステップS112に示すように、フレームメモリ701が出力する画像データに対して、画像分割部704からの分割情報に基づいて各局所領域毎に閾値演算部707で求めた閾値を用いた2値化処理を繰り返し行い、最終的にフレームメモリ701が出力する画像データ全体の2値化を行って画像データの2値化画像を出力する。   As shown in step S112, the binarizing unit 708 performs threshold processing on the image data output from the frame memory 701 for each local region based on the division information from the image dividing unit 704. The binarization process using is repeatedly performed, and finally the entire image data output from the frame memory 701 is binarized to output a binarized image of the image data.

なお、閾値演算部707は、各局所領域の閾値を蓄える閾値メモリと、閾値メモリに蓄えられたある局所領域の閾値を周囲の局所領域における閾値と比較する閾値比較部と、閾値比較部において比較した閾値が予め定められた値以上の差を持つ場合には、当該局所領域の閾値を周囲の閾値の平均値に置き換える閾値判断変更部とを備える構成でも良い。   The threshold value calculation unit 707 compares the threshold value memory for storing the threshold value of each local region, the threshold value comparison unit for comparing the threshold value of a certain local region stored in the threshold value memory with the threshold value in the surrounding local region, and the threshold value comparison unit. In the case where the threshold value has a difference greater than or equal to a predetermined value, a configuration may be provided that includes a threshold value determination changing unit that replaces the threshold value of the local region with the average value of the surrounding threshold values.

以下、上述した構成の閾値判断変更部を図9を用いて説明する。図9は閾値メモリに格納された領域別の閾値を示す。901〜935は閾値メモリ内における各領域であり、各々の閾値の値を太文字で示している。網掛けで示した領域913にはごみが入ったことから閾値が「21」という、本来とは異なった値が格納されているものとする。閾値判断変更部においては、全ての領域に対して、注目領域の閾値とその周囲領域の閾値とを比較し、これらが大きく異なっていた場合、例えば、「20」以上異なっていた場合には、注目領域の閾値を周囲領域の閾値の補間により再設定する。例えば、領域902を注目領域とした場合、この領域の閾値は65である。また領域902に接する領域901,911,912,913,903であり、これらの持つ閾値は、それぞれ61,64,67,21,73である。従って、65と、61,64,76,21,73とを比較する。この場合の差は、それぞれ4,1,2,44,8であり、「20」を超えるものは1つだけである。この場合、比較した5つの値のうちの半分以下であるところの1つだけが「20」を超えているだけであることから、領域902の閾値65はこのまま利用することになる。   Hereinafter, the threshold judgment changing unit having the above-described configuration will be described with reference to FIG. FIG. 9 shows threshold values for each region stored in the threshold memory. Reference numerals 901 to 935 denote areas in the threshold memory, and the values of the respective thresholds are indicated by bold characters. It is assumed that a threshold value “21”, which is different from the original value, is stored in the shaded area 913 because dust has entered. In the threshold judgment changing unit, for all the areas, the threshold value of the attention area and the threshold value of the surrounding area are compared, and when these are greatly different, for example, when they are different by “20” or more, The threshold value of the attention area is reset by interpolation of the threshold values of the surrounding area. For example, when the region 902 is set as the attention region, the threshold value of this region is 65. Further, regions 901, 911, 912, 913, and 903 that are in contact with the region 902 have threshold values of 61, 64, 67, 21, and 73, respectively. Therefore, 65 is compared with 61, 64, 76, 21, 73. The differences in this case are 4, 1, 2, 44 and 8, respectively, and only one exceeds “20”. In this case, since only one of the five values compared is less than “20”, the threshold value 65 of the area 902 is used as it is.

一方、領域913を注目領域とした場合、この閾値は21である。また、領域913に接する領域は902,903,904,914,924,923,922,912であり、これらの持つ閾値は、それぞれ65,73,82,82,85,79,75,67である。従って、「21」とこれらの値とを比較する。この場合の差は、それぞれ44,52,61,61,64,58,54,46であり、「20」を超えるものは8つある。この場合、比較した8つの値のうち半分以上であるところの8つが「20」を超えているため、領域913の閾値「21」は補間により再設定する。補間は周囲の閾値の平均値を求めて行う。この場合、(65+73+82+82+85+79+75+67)/8=76であり、領域913の閾値は76に再設定する。   On the other hand, when the region 913 is the region of interest, this threshold is 21. In addition, the areas in contact with the area 913 are 902, 903, 904, 914, 924, 923, 922, and 912, and their threshold values are 65, 73, 82, 82, 85, 79, 75, and 67, respectively. . Therefore, “21” is compared with these values. The differences in this case are 44, 52, 61, 61, 64, 58, 54, and 46, respectively, and there are eight that exceed “20”. In this case, eight of the eight compared values, which are half or more, exceed “20”, so the threshold “21” of the region 913 is reset by interpolation. Interpolation is performed by obtaining an average value of surrounding threshold values. In this case, (65 + 73 + 82 + 82 + 85 + 79 + 75 + 67) / 8 = 76, and the threshold value of the area 913 is reset to 76.

このような構成にすれば、ある局所領域の閾値がごみの混入などによって局所ヒストグラムが変形することにより異常な値になった場合にも、適切な閾値を求める事が出来る。   With such a configuration, an appropriate threshold value can be obtained even when the threshold value of a certain local region becomes an abnormal value due to deformation of the local histogram due to contamination of dust or the like.

次に、本発明の画像処理装置をカメラ内蔵型携帯電話の名刺読み取り機能に応用した例を示す。図8は、本発明の実施の形態2による画像処理装置を内蔵した、名刺読み取り機能付き携帯電話の構成図である。本携帯電話は、内蔵されたカメラにより名刺を撮影し、名刺の文字を読みとって、これをデータベース化する機能を持つものである。   Next, an example in which the image processing apparatus of the present invention is applied to a business card reading function of a camera built-in mobile phone will be described. FIG. 8 is a configuration diagram of a mobile phone with a business card reading function, which incorporates an image processing apparatus according to Embodiment 2 of the present invention. This mobile phone has a function of taking a business card with a built-in camera, reading the characters of the business card, and making it into a database.

図8において、801が携帯電話であり、名刺802を撮影して、文字認識した後、データベースに記憶する。名刺802は携帯電話801に内蔵されたカメラ803により撮影され、画像データとして記憶される。この画像は画像処理装置804において2値化され、背景領域は“1”、文字領域は“0”で表わされる。画像処理装置804により2値化された画像は文字認識部805において文字領域のパターンマッチングが施されて、文字テキストが抽出される。そして、抽出された文字テキストは名刺データベース806に記憶する。   In FIG. 8, reference numeral 801 denotes a mobile phone, which takes a business card 802, recognizes characters, and stores it in a database. A business card 802 is taken by a camera 803 built in the mobile phone 801 and stored as image data. This image is binarized by the image processing apparatus 804, the background area is represented by “1”, and the character area is represented by “0”. The image binarized by the image processing device 804 is subjected to pattern matching of the character area in the character recognition unit 805, and character text is extracted. The extracted character text is stored in the business card database 806.

ここで、カメラ803により撮影された画像は、撮影時の照度ムラなどにより、背景の一部が暗いなど、背景領域や文字領域の明るさが均一でない場合がしばしば生じる。このような場合にも、本発明の画像処理装置804により、背景領域と文字領域を正確に分離することが可能であり、文字認識部805が安定した文字認識処理を行うことが可能となる。   Here, the image captured by the camera 803 often has uneven brightness of the background area and the character area, such as part of the background is dark due to uneven illuminance at the time of shooting. Even in such a case, the image processing apparatus 804 of the present invention can accurately separate the background area and the character area, and the character recognition unit 805 can perform stable character recognition processing.

なお、ここではカメラ内蔵型携帯電話機を例に説明したが、スキャナーやデジタルスチルカメラなど、デジタル画像を撮影することの出来る機器であれば、本発明の画像処理装置を搭載することにより同様の効果を得ることが可能となる。   Here, the camera built-in mobile phone has been described as an example, but the same effect can be obtained by installing the image processing apparatus of the present invention as long as it is a device capable of taking a digital image, such as a scanner or a digital still camera. Can be obtained.

以上のように、本実施の形態2による画像処理装置によれば、実施の形態1による画像処理方法を実施する装置を簡易に構成することができる。   As described above, according to the image processing apparatus according to the second embodiment, an apparatus that performs the image processing method according to the first embodiment can be simply configured.

本発明にかかる画像処理装置は、多階調の画像に対して、背景画像から対象画像を識別するために行われる2値化処理の方法として有用であり、特に、印刷物の文字読み取りの前処理の2値化方法として、また、顕微鏡画像における観察対象の自動カウントを行う際の前処理の2値化方法等の用途に適用できるものである。   INDUSTRIAL APPLICABILITY The image processing apparatus according to the present invention is useful as a binarization processing method performed for identifying a target image from a background image with respect to a multi-tone image, and in particular, a preprocessing for character reading of a printed matter The binarization method can be applied to uses such as a binarization method for preprocessing when automatically counting observation objects in a microscope image.

本発明の実施の形態1における画像処理方法のフローチャートを示す図である。It is a figure which shows the flowchart of the image processing method in Embodiment 1 of this invention. 従来の画像処理方法を説明するための図である。It is a figure for demonstrating the conventional image processing method. 本発明の実施の形態1における画像処理方法を説明するための、元画像と各部分におけるヒストグラム形状を示す図である。It is a figure which shows the histogram shape in the original image and each part for demonstrating the image processing method in Embodiment 1 of this invention. 本発明の実施の形態1における画像処理方法の変形例を説明するための図である。It is a figure for demonstrating the modification of the image processing method in Embodiment 1 of this invention. 本発明の実施の形態1における画像処理方法の変形例を説明するための図である。It is a figure for demonstrating the modification of the image processing method in Embodiment 1 of this invention. 本発明の実施の形態1における画像処理方法の変形例を説明するための図である。It is a figure for demonstrating the modification of the image processing method in Embodiment 1 of this invention. 本発明の実施の形態2における画像処理装置のブロック図である。It is a block diagram of the image processing apparatus in Embodiment 2 of this invention. 本発明の実施の形態2におけるカメラ内蔵型携帯電話の名刺読み取り機能を示すブロック図である。It is a block diagram which shows the business card reading function of the mobile phone with a built-in camera in Embodiment 2 of this invention. 本発明の実施の形態2における閾値判断変更部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the threshold value judgment change part in Embodiment 2 of this invention.

符号の説明Explanation of symbols

201 元画像
202〜204 元画像中の細菌部分
205 目的とする2値画像
206 固定閾値による2値化画像
300 元画像
301〜302 元画像中の局所領域
303 局所領域301におけるヒストグラム
304 局所領域302におけるヒストグラム
305 元画像300全体のヒストグラム
400 元画像のヒストグラム
402 参照輝度
403 参照閾値
500 元画像のヒストグラム
501 ヒストグラム上のピーク値
502 ピーク値の40%レベル
503 参照閾値
504 参照輝度値
600 元画像のヒストグラム
601 ピーク値の40%レベルとなる輝度値
602 参照閾値
603 ヒストグラム上のピーク値となる輝度値
604 ヒストグラム上のピーク値
605 ピーク値の40%レベル
700 カメラ
701 フレームメモリ
702 全体ヒストグラム作成部
703 参照輝度比作成部
704 画像分割部
705 局所ヒストグラム作成部
706 ピーク輝度検出部
707 閾値演算部
708 2値化部
801 カメラ付き携帯電話
802 名刺
803 カメラ
804 画像処理装置
805 文字認識部
806 名刺データベース
201 Original image 202 to 204 Bacteria part in original image 205 Target binary image 206 Binarized image with fixed threshold 300 Original image 301 to 302 Local region in original image 303 Histogram in local region 301 304 In local region 302 Histogram 305 Histogram of the entire original image 400 400 Histogram of the original image 402 Reference brightness 403 Reference threshold value 500 Histogram of the original image 501 Peak value on the histogram 502 40% level of the peak value 503 Reference threshold value 504 Reference brightness value 600 Histogram of the original image 601 Luminance value at 40% level of peak value 602 Reference threshold 603 Luminance value at peak value on histogram 604 Peak value on histogram 605 40% level of peak value 700 Camera 701 Frame Mori 702 Overall histogram creation unit 703 Reference brightness ratio creation unit 704 Image segmentation unit 705 Local histogram creation unit 706 Peak brightness detection unit 707 Threshold calculation unit 708 Binarization unit 801 Mobile phone with camera 802 Business card 803 Camera 804 Image processing device 805 Character Recognition unit 806 Business card database

Claims (23)

元画像となる濃淡画像から2値化画像を生成する画像処理方法であって、
元画像の全体または一部領域内における階調のヒストグラムを生成するステップと、
該ヒストグラムに基づいて第1の参照輝度値、及び2値化の際の閾値となる参照閾値を求め、第1の参照輝度値と参照閾値との比を輝度比として記憶するステップと、
元画像の局所領域において局所ヒストグラムを生成するステップと、
該局所ヒストグラムに基づいて第2の参照輝度値を求め、第2の参照輝度値と前記輝度比との演算により2値化の閾値を求め、該閾値により元画像の前記局所領域近傍の領域の画像を2値化するステップとを含む、ことを特徴とする画像処理方法。
An image processing method for generating a binarized image from a grayscale image as an original image,
Generating a histogram of tones within the entire or partial area of the original image;
Obtaining a first reference luminance value based on the histogram and a reference threshold value that is a threshold value for binarization, and storing a ratio between the first reference luminance value and the reference threshold as a luminance ratio;
Generating a local histogram in a local region of the original image;
A second reference luminance value is obtained based on the local histogram, a threshold value for binarization is obtained by calculating the second reference luminance value and the luminance ratio, and the threshold value of the region near the local region of the original image is obtained by the threshold value. And an image processing method comprising: binarizing the image.
請求項1記載の画像処理方法において、
前記局所ヒストグラムに基づいて求められる前記第2の参照輝度値は、前記第1の参照輝度値と同じ処理により求める、ことを特徴とする画像処理方法。
The image processing method according to claim 1,
The image processing method according to claim 1, wherein the second reference luminance value obtained based on the local histogram is obtained by the same process as the first reference luminance value.
請求項2記載の画像処理方法において、
前記第1の参照輝度値、および第2の参照輝度値は、各ヒストグラムの最大値を示す点における輝度値とする、ことを特徴とする画像処理方法。
The image processing method according to claim 2.
The image processing method according to claim 1, wherein the first reference luminance value and the second reference luminance value are luminance values at a point indicating the maximum value of each histogram.
請求項2記載の画像処理方法において、
前記第1の参照輝度値、および第2の参照輝度値は、各ヒストグラムにローパスフィルタをかけた後に得られる最大値を示す点における輝度値とする、ことを特徴とする画像処理方法。
The image processing method according to claim 2.
The image processing method according to claim 1, wherein the first reference luminance value and the second reference luminance value are luminance values at points indicating maximum values obtained after applying a low-pass filter to each histogram.
請求項1記載の画像処理方法において、
前記参照閾値を、前記元画像の全体または一部領域内におけるヒストグラムの最大値に隣接する凹部分における輝度値とする、ことを特徴とする画像処理方法。
The image processing method according to claim 1,
An image processing method, wherein the reference threshold value is a luminance value in a concave portion adjacent to a maximum value of a histogram in the whole or a partial area of the original image.
請求項5記載の画像処理方法において、
前記ヒストグラムの最大値に隣接する凹部分が存在しない場合に、前記ヒストグラムの変曲点における輝度値を前記参照閾値とする、ことを特徴とする画像処理方法。
The image processing method according to claim 5.
An image processing method, wherein a luminance value at an inflection point of the histogram is used as the reference threshold when there is no concave portion adjacent to the maximum value of the histogram.
請求項1記載の画像処理方法において、
前記参照閾値として、前記元画像の全体または一部領域内におけるヒストグラムの最大値に隣接する局所凸部分における輝度値と、このヒストグラムが最大値を示す点における輝度値とを求め、両輝度値の間に含まれる値を用いる、ことを特徴とする画像処理方法。
The image processing method according to claim 1,
As the reference threshold value, a luminance value at a local convex portion adjacent to the maximum value of the histogram in the whole or a partial area of the original image and a luminance value at a point where the histogram shows the maximum value are obtained, and both luminance values are obtained. An image processing method characterized by using a value included in between.
請求項1記載の画像処理方法において、
前記参照閾値を、前記元画像の全体または一部領域内におけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値とする、ことを特徴とする画像処理方法。
The image processing method according to claim 1,
The reference threshold value is a luminance value at a position that is a value of a predetermined ratio with respect to the maximum value in the vicinity of the maximum value of the histogram in the whole or a partial region of the original image. Image processing method.
請求項1記載の画像処理方法において、
前記参照閾値を、前記元画像の全体または一部領域内におけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値をリファレンス輝度値として求め、前記最大値における輝度値を中心として、前記求めたリファレンス輝度値と対称となる位置における輝度値とする、ことを特徴とする画像処理方法。
The image processing method according to claim 1,
The reference threshold value is obtained as a reference luminance value at a position that is a value of a predetermined ratio with respect to the maximum value in the vicinity of the maximum value of the histogram in the whole or part of the original image, An image processing method characterized in that a luminance value at a position symmetrical to the obtained reference luminance value is centered on a luminance value at a maximum value.
請求項1記載の画像処理方法において、
前記元画像全体を複数の局所領域に分割して、各局所領域毎に個別に閾値を設け、2値化する、ことを特徴とする画像処理方法。
The image processing method according to claim 1,
An image processing method characterized in that the entire original image is divided into a plurality of local areas, and a threshold value is individually provided for each local area to binarize.
請求項10記載の画像処理方法において、
前記画像全体を複数の局所領域に分割して、各局所領域毎に個別に閾値を設け、閾値が近接する局所領域の閾値と比較して予め定めた値よりも大きく異なっている局所領域がある場合には、この局所領域の閾値を、近接する他の局所領域の閾値を用いた演算により再設定する、ことを特徴とする画像処理方法。
The image processing method according to claim 10.
The entire image is divided into a plurality of local regions, and a threshold value is individually set for each local region, and there is a local region whose threshold value is significantly different from a predetermined value compared to a threshold value of a local region in the vicinity. In this case, an image processing method is characterized in that the threshold value of the local region is reset by calculation using a threshold value of another local region adjacent thereto.
請求項1記載の画像処理方法において、
前記輝度比を求める際に、第1の参照輝度値と参照閾値からそれぞれバックグラウンド特性に基づく不要な値を減算する、ことを特徴とする画像処理方法。
The image processing method according to claim 1,
An image processing method characterized by subtracting unnecessary values based on background characteristics from the first reference luminance value and the reference threshold value when obtaining the luminance ratio.
元画像となる濃淡画像から2値化画像を生成する画像処理装置であって、
前記濃淡画像の多階調の画像データを記憶し、該記憶された画像データの全体または特定の領域を対象画像データとして出力する記憶手段と、
前記対象画像データにおける階調のヒストグラムを生成するヒストグラム生成手段と、
前記ヒストグラムに基づいて第1の参照輝度値、及び2値化の際の閾値となる参照閾値を求め、該参照閾値と該第1の参照輝度値と該参照閾値との比を参照輝度比として出力する参照輝度比生成手段と、
前記対象画像データを複数の局所領域に分割して出力するとともに、前記対象画像データに対する分割情報を出力する画像分割手段と、
各局所領域において局所ヒストグラムを生成する局所ヒストグラム生成手段と、
前記局所ヒストグラムに基づいて第2の参照輝度値を求める局所領域参照輝度値生成手段と、
前記第2の参照輝度値と前記参照輝度比との演算により2値化の閾値を求める閾値生成手段と、
前記2値化の閾値により、前記対象画像データを前記分割情報に基づいて前記局所領域毎に2値化し、前記対象画像データの2値化画像を生成する2値化手段と、
を備えたことを特徴とする画像処理装置。
An image processing apparatus that generates a binarized image from a grayscale image that is an original image,
Storage means for storing multi-tone image data of the grayscale image, and outputting the entire stored image data or a specific area as target image data;
A histogram generating means for generating a gradation histogram in the target image data;
Based on the histogram, a first reference luminance value and a reference threshold value that is a threshold value for binarization are obtained, and a ratio between the reference threshold value, the first reference luminance value, and the reference threshold value is used as a reference luminance ratio. A reference luminance ratio generating means for outputting;
The target image data is divided into a plurality of local regions for output, and image division means for outputting division information for the target image data;
Local histogram generating means for generating a local histogram in each local region;
Local area reference luminance value generating means for obtaining a second reference luminance value based on the local histogram;
Threshold generation means for obtaining a binarization threshold by calculating the second reference luminance value and the reference luminance ratio;
Binarization means for binarizing the target image data for each of the local regions based on the division information by using the binarization threshold, and generating a binarized image of the target image data;
An image processing apparatus comprising:
請求項13記載の画像処理装置において、
前記ヒストグラム生成手段、及び前記局所ヒストグラム生成手段は、
前記第1の参照輝度値、及び前記第2の参照輝度値を、同じ処理により求める、ことを特徴とする画像処理装置。
The image processing apparatus according to claim 13.
The histogram generating means and the local histogram generating means are:
The image processing apparatus, wherein the first reference luminance value and the second reference luminance value are obtained by the same process.
請求項14記載の画像処理装置において、
前記第1の参照輝度値、及び前記第2の参照輝度値は、各ヒストグラムの最大値を示す点における輝度値とする、ことを特徴とする画像処理装置。
The image processing apparatus according to claim 14.
The image processing apparatus according to claim 1, wherein the first reference luminance value and the second reference luminance value are luminance values at a point indicating a maximum value of each histogram.
請求項14記載の画像処理装置において、
前記第1の参照輝度値、及び前記第2の参照輝度値は、各ヒストグラムにローパスフィルタを施した後に得られる最大値を示す点における輝度値とする、ことを特徴とする画像処理装置。
The image processing apparatus according to claim 14.
The image processing apparatus according to claim 1, wherein the first reference luminance value and the second reference luminance value are luminance values at points indicating maximum values obtained after applying a low-pass filter to each histogram.
請求項13記載の画像処理装置において、
前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値に隣接する凹部分における輝度値を前記参照閾値とする、ことを特徴とする画像処理装置。
The image processing apparatus according to claim 13.
The image processing apparatus according to claim 1, wherein the reference luminance ratio generation unit uses a luminance value in a concave portion adjacent to a maximum value of a histogram in the target image data as the reference threshold value.
請求項17記載の画像処理装置において、
前記ヒストグラムの最大値に凹部分が存在しない場合には、前記ヒストグラムの変曲点における輝度値を前記参照閾値とする、ことを特徴とする画像処理装置。
The image processing apparatus according to claim 17.
The image processing apparatus according to claim 1, wherein when there is no concave portion in the maximum value of the histogram, a luminance value at an inflection point of the histogram is used as the reference threshold value.
請求項13記載の画像処理装置において、
前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値に隣接する局所凸部分における輝度値と、該ヒストグラムが最大値を示す点における輝度値とを求め、両輝度値の間に含まれる値を前記参照閾値とする、ことを特徴とする画像処理装置。
The image processing apparatus according to claim 13.
The reference luminance ratio generation unit obtains a luminance value at a local convex portion adjacent to the maximum value of the histogram in the target image data and a luminance value at a point where the histogram shows the maximum value, and is included between the two luminance values. An image processing apparatus characterized in that a value to be used is the reference threshold value.
請求項13記載の画像処理装置において、
前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値を前記参照閾値とする、ことを特徴とする画像処理装置。
The image processing apparatus according to claim 13.
The reference luminance ratio generation means uses, as the reference threshold value, a luminance value at a position that is a value of a predetermined ratio with respect to the maximum value in the vicinity of the maximum value of the histogram in the target image data. An image processing apparatus.
請求項13記載の画像処理装置において、
前記参照輝度比生成手段は、前記対象画像データにおけるヒストグラムの最大値の近傍において、該最大値に対して予め定めた比率の値となる位置における輝度値をリファレンス輝度値とし、前記最大値における輝度値を中心として、前記求めたリファレンス輝度値と対称となる位置における輝度値を前記参照閾値とする、ことを特徴とする画像処理装置。
The image processing apparatus according to claim 13.
The reference luminance ratio generation unit uses a luminance value at a position that is a value of a predetermined ratio with respect to the maximum value in the vicinity of the maximum value of the histogram in the target image data as a reference luminance value, and the luminance at the maximum value An image processing apparatus characterized in that a luminance value at a position symmetrical to the obtained reference luminance value with the value as a center is used as the reference threshold value.
請求項13記載の画像処理装置において、
前記閾値生成手段は、
各局所領域の閾値を蓄える閾値メモリと、
前記閾値メモリに蓄えられた特定の局所領域の閾値を周囲の局所領域における閾値と比較する閾値比較部と、
前記閾値比較部において比較した前記特定の局所領域の閾値が前記周囲の局所領域における閾値に比べて、予め定められた値以上の差を持つ場合には、前記特定の局所領域の閾値を前記周囲の局所領域における閾値の平均値に置き換える閾値判断変更部とを備える、ことを特徴とする画像処理装置。
The image processing apparatus according to claim 13.
The threshold generation means includes
A threshold memory for storing threshold values for each local region;
A threshold comparing unit that compares a threshold of a specific local area stored in the threshold memory with a threshold in a surrounding local area;
When the threshold value of the specific local region compared in the threshold value comparison unit has a difference greater than or equal to a predetermined value compared to the threshold value of the surrounding local region, the threshold value of the specific local region is An image processing apparatus comprising: a threshold value determination changing unit that replaces the average value of the threshold values in the local region.
請求項13記載の画像処理装置において、
カメラ内蔵型携帯電話の名刺読み取り装置に用いられたものである、ことを特徴とする画像処理装置。
The image processing apparatus according to claim 13.
An image processing device used for a business card reading device of a camera-equipped mobile phone.
JP2004334595A 2003-11-26 2004-11-18 Image processing method and image processing apparatus Expired - Fee Related JP3906221B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004334595A JP3906221B2 (en) 2003-11-26 2004-11-18 Image processing method and image processing apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003396042 2003-11-26
JP2004334595A JP3906221B2 (en) 2003-11-26 2004-11-18 Image processing method and image processing apparatus

Publications (2)

Publication Number Publication Date
JP2005184787A true JP2005184787A (en) 2005-07-07
JP3906221B2 JP3906221B2 (en) 2007-04-18

Family

ID=34797241

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004334595A Expired - Fee Related JP3906221B2 (en) 2003-11-26 2004-11-18 Image processing method and image processing apparatus

Country Status (1)

Country Link
JP (1) JP3906221B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009058377A (en) * 2007-08-31 2009-03-19 Hitachi Kokusai Electric Inc Inspection apparatus
US8035661B2 (en) 2007-04-03 2011-10-11 Samsung Electronics Co., Ltd. Driving apparatus of display device for gray range extension, display device including the same, and method of driving display device for gray range extension
JP2012113436A (en) * 2010-11-22 2012-06-14 Future Univ-Hakodate Image processing device
US8466141B2 (en) 2005-02-16 2013-06-18 Md Bioalpha Co., Ltd. Pharmaceutical composition for the treatment or prevention of diseases involving obesity, diabetes, metabolic syndrome, neuro-degenerative diseases and mitochondria dysfunction diseases
JP2018165638A (en) * 2017-03-28 2018-10-25 株式会社ミツトヨ Hardness testing machine and program
JP2019082364A (en) * 2017-10-30 2019-05-30 株式会社ミツトヨ Hardness tester and program
JP2021072483A (en) * 2019-10-29 2021-05-06 京セラドキュメントソリューションズ株式会社 Image processing apparatus, image processing method, and image processing program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102448565B1 (en) 2014-12-11 2022-09-29 삼성전자주식회사 User terminal device and Method for controlling the user terminal device thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8466141B2 (en) 2005-02-16 2013-06-18 Md Bioalpha Co., Ltd. Pharmaceutical composition for the treatment or prevention of diseases involving obesity, diabetes, metabolic syndrome, neuro-degenerative diseases and mitochondria dysfunction diseases
US9066922B2 (en) 2005-02-16 2015-06-30 Md Bioalpha Co., Ltd. Pharmaceutical composition for the treatment or prevention of diseases involving obesity, diabetes, metabolic syndrome, neuro-degenerative diseases and mitochondria dysfunction diseases
US8035661B2 (en) 2007-04-03 2011-10-11 Samsung Electronics Co., Ltd. Driving apparatus of display device for gray range extension, display device including the same, and method of driving display device for gray range extension
JP2009058377A (en) * 2007-08-31 2009-03-19 Hitachi Kokusai Electric Inc Inspection apparatus
JP2012113436A (en) * 2010-11-22 2012-06-14 Future Univ-Hakodate Image processing device
JP2018165638A (en) * 2017-03-28 2018-10-25 株式会社ミツトヨ Hardness testing machine and program
JP2019082364A (en) * 2017-10-30 2019-05-30 株式会社ミツトヨ Hardness tester and program
JP6990090B2 (en) 2017-10-30 2022-01-12 株式会社ミツトヨ Hardness tester and program
JP2021072483A (en) * 2019-10-29 2021-05-06 京セラドキュメントソリューションズ株式会社 Image processing apparatus, image processing method, and image processing program
JP7357852B2 (en) 2019-10-29 2023-10-10 京セラドキュメントソリューションズ株式会社 Image processing device, image processing method, and image processing program

Also Published As

Publication number Publication date
JP3906221B2 (en) 2007-04-18

Similar Documents

Publication Publication Date Title
KR101795823B1 (en) Text enhancement of a textual image undergoing optical character recognition
KR100639442B1 (en) Image processing method and image processing apparatus
US10559067B2 (en) Removal of shadows from document images while preserving fidelity of image contents
US8965123B2 (en) System and method for processing image for identifying alphanumeric characters present in a series
JP4680622B2 (en) Classification device
WO2017121018A1 (en) Method and apparatus for processing two-dimensional code image, and terminal and storage medium
CN107784669A (en) A kind of method that hot spot extraction and its barycenter determine
JP2004348733A (en) Method and device for detecting red-eye area in digital image
WO2007095483A2 (en) Detection and removal of blemishes in digital images utilizing original images of defocused scenes
US9171224B2 (en) Method of improving contrast for text extraction and recognition applications
JP2010525486A (en) Image segmentation and image enhancement
JP2001169080A (en) Color picture processing method, color picture processor and recording medium for the same
MXPA02008296A (en) Improved method for image binarization.
CN116503388B (en) Defect detection method, device and storage medium
KR20120111153A (en) Pre- processing method and apparatus for license plate recognition
CN105701491A (en) Method for making fixed-format document image template and application thereof
JPWO2010055558A1 (en) Character area extraction device, imaging device having character area extraction function, and character area extraction program
JP5870745B2 (en) Image processing apparatus, binarization threshold value calculation method, and computer program
JP3906221B2 (en) Image processing method and image processing apparatus
CN112818983B (en) Method for judging character inversion by using picture acquaintance
US20140086473A1 (en) Image processing device, an image processing method and a program to be used to implement the image processing
Celiktutan et al. Blind identification of cellular phone cameras
JP2010186246A (en) Image processing apparatus, method, and program
JP5979008B2 (en) Image processing apparatus, image processing method, and program
Chang et al. An efficient thresholding algorithm for degraded document images based on intelligent block detection

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061215

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070115

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110119

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110119

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120119

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees