JP2007078864A - Method for eliminating color unevenness of optical microscope photograph - Google Patents
Method for eliminating color unevenness of optical microscope photograph Download PDFInfo
- Publication number
- JP2007078864A JP2007078864A JP2005264224A JP2005264224A JP2007078864A JP 2007078864 A JP2007078864 A JP 2007078864A JP 2005264224 A JP2005264224 A JP 2005264224A JP 2005264224 A JP2005264224 A JP 2005264224A JP 2007078864 A JP2007078864 A JP 2007078864A
- Authority
- JP
- Japan
- Prior art keywords
- color
- image
- density value
- average
- average density
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Microscoopes, Condenser (AREA)
Abstract
Description
この出願の発明は、カラーレーザ顕微鏡や金属顕微鏡等の光学顕微鏡で撮像した写真の色むら除去方法に関するものである。 The invention of this application relates to a method for removing uneven color in a photograph taken with an optical microscope such as a color laser microscope or a metal microscope.
カラーレーザ顕微鏡や金属顕微鏡等の光学顕微鏡を用い、金属材料等の腐食や割れの形態等を観察する場合、研磨状態の微妙な不具合から光学顕微鏡写真に色むらが発生し、写真の精度が下がることが多々ある。 When using an optical microscope such as a color laser microscope or a metal microscope to observe the form of corrosion or cracking of metal materials, etc., color unevenness occurs in the optical microscope photograph due to subtle defects in the polished state, and the accuracy of the photograph decreases. There are many things.
白黒ないしカラー画像の色むら補正方法としてはシェーディング補正がある。このシェーディング補正は、装置に関連したカラープロファイルを設定しておき、画像に補正をかける手法である(たとえば特許文献1、2)。 There is shading correction as a method for correcting color unevenness in black and white or color images. This shading correction is a method for correcting an image by setting a color profile related to the apparatus (for example, Patent Documents 1 and 2).
しかし、シェーディング補正では、光学顕微鏡が本来有する色むらの補正は可能であるが、上記のような研磨した試料のように研磨状態によって引き起こされる色むら除去は不可能である。 However, in shading correction, it is possible to correct the color unevenness inherent in the optical microscope, but it is impossible to remove the color unevenness caused by the polished state as in the polished sample as described above.
このように、従来の手法では、光学顕微鏡写真に発生する種々の色むらの除去には対応することができなかった。
そこで、この出願の発明は、以上のとおりの事情に鑑みてなされたもので、光学顕微鏡写真に発生する種々の色むらを除去し、高度な画像解析を可能とする光学顕微鏡写真の色むら除去方法を提供することを課題とする。 Therefore, the invention of this application was made in view of the circumstances as described above, and removes various color unevenness occurring in the optical micrograph, and removes the color unevenness of the optical micrograph that enables advanced image analysis. It is an object to provide a method.
この出願の発明は、上記課題を解決するものとして、第1には、光学顕微鏡写真のカラー画像のR、G、Bの各成分画像について、画像全体の色の平均濃度値を求め、X方向の各ラインごとに、濃度レベルが画像全体の色の平均濃度値に対して所定レベル以内の画素について色濃度の平均を求め、着目ラインの色の平均濃度値と画像全体の色の平均濃度値の差分を求め、着目ラインの各画素の色濃度に前記差分を加えることにより、X方向の平坦化処理を行い、次いで、Y方向の各ラインごとに、濃度レベルが画像全体の色の平均濃度値に対して所定レベル以内の画素について色濃度の平均を求め、着目ラインの色の平均濃度値と画像全体の色の平均濃度値の差分を求め、着目ラインの各画素の色濃度に前記差分を加えることにより、Y方向の平坦化処理を行い、平坦化処理されたR、G、Bの各成分画像を元のR、G、Bの各成分画像と置き換えることにより色むらを除去することを特徴とする光学顕微鏡写真の色むら除去方法を提供する。 The invention of this application solves the above-mentioned problem. First, for each of the R, G, and B component images of the color image of the optical micrograph, the average density value of the color of the entire image is obtained, and the X direction For each line, the average of the color density is obtained for pixels whose density level is within a predetermined level with respect to the average density value of the color of the entire image, and the average density value of the color of the target line and the average density value of the color of the entire image are obtained. Is obtained, and the difference is added to the color density of each pixel of the line of interest to perform the flattening process in the X direction. Then, for each line in the Y direction, the density level is the average density of the colors of the entire image. The average of the color density is obtained for pixels within a predetermined level with respect to the value, the difference between the average density value of the color of the target line and the average density value of the color of the entire image is obtained, and the difference is calculated as the color density of each pixel of the target line. By adding Y direction An optical microscope photograph characterized by performing color flattening and removing color unevenness by replacing the flattened R, G, B component images with the original R, G, B component images. A method for removing color unevenness is provided.
また、第2には、上記第1の発明において、光学顕微鏡写真のカラー画像がR,G、B各8ビットの24ビットカラー画像であることを特徴とする光学顕微鏡写真の色むら除去方法を提供する。 According to a second aspect of the present invention, there is provided a method for removing color unevenness in an optical micrograph, wherein the color image of the optical micrograph is a 24-bit color image of 8 bits each for R, G, and B. provide.
さらに、第3には、上記第1又は第2の発明において、カラー画像の特定領域以外にマスクをかけてX方向及びY方向の平坦化処理を行うことを特徴とする光学顕微鏡写真の色
むら除去方法を提供する。
Thirdly, in the first or second invention described above, color unevenness in an optical micrograph, wherein a mask is applied to a specific area of the color image to perform flattening processing in the X direction and the Y direction. A removal method is provided.
この出願の発明によれば、研磨した金属面を撮像した場合のような光学顕微鏡写真に発生する種々の色むらを除去することができ、金属材料等の腐食や割れなどを観察する際に画像解析の精度を上げることが可能となる。 According to the invention of this application, it is possible to remove various color unevenness generated in an optical micrograph as in the case of imaging a polished metal surface, and an image when observing corrosion or cracking of a metal material or the like. It is possible to improve the accuracy of analysis.
この出願の発明は上記のとおりの特徴をもつものであるが、以下にその実施の形態について説明する。 The invention of this application has the features as described above, and an embodiment thereof will be described below.
この出願の発明に係る光学顕微鏡写真の色むら除去方法では、光学顕微鏡写真のカラー画像のR、G、Bの各成分画像について、画像全体の色の平均濃度値を求め、X方向の平坦化処理を行った後、Y方向の平坦化処理を行い、平坦化処理されたR、G、Bの各成分画像を元のR、G、Bの各成分画像と置き換えることにより色むらを除去する。 In the method for removing color unevenness of an optical micrograph according to the invention of this application, for each of the R, G, and B component images of the color image of the optical micrograph, an average density value of the color of the entire image is obtained and flattened in the X direction. After the processing, the Y-direction flattening process is performed, and the unevenness of color is removed by replacing the flattened R, G, and B component images with the original R, G, and B component images. .
X方向の平坦化処理は、X方向の各ラインごとに、濃度レベルが画像全体の色の平均濃度値に対して所定レベル以内の画素について色濃度の平均を求め、着目ラインの色の平均濃度値と画像全体の色の平均濃度値の差分を求め、着目ラインの各画素の色濃度に前記差分を加えることにより行う。 In the flattening process in the X direction, for each line in the X direction, an average color density is obtained for pixels whose density level is within a predetermined level with respect to the average density value of the color of the entire image, and the average density of the color of the line of interest The difference between the value and the average density value of the color of the entire image is obtained, and the difference is added to the color density of each pixel of the line of interest.
Y方向の平坦化処理は、Y方向の各ラインごとに、濃度レベルが画像全体の色の平均濃度値に対して所定レベル以内の画素について色濃度の平均を求め、着目ラインの色の平均濃度値と画像全体の色の平均濃度値の差分を求め、着目ラインの各画素の色濃度に前記差分を加えることにより行う。以下、具体例を示しながら更に詳細に説明する。 In the Y-direction flattening process, for each line in the Y-direction, an average color density is obtained for pixels whose density level is within a predetermined level with respect to the average density value of the colors of the entire image, and the average density of the color of the line of interest The difference between the value and the average density value of the color of the entire image is obtained, and the difference is added to the color density of each pixel of the line of interest. Hereinafter, it demonstrates in detail, showing a specific example.
図1は、この出願の発明の一実施形態に係る光学顕微鏡写真の色むら除去方法の手順を示すフローチャートである。図2は、代表的な色むらのあるカラー光学顕微鏡写真の画像(塩化マグネシウム液滴を付着させて腐食したステンレス鋼)、図3は、図2のR成分画像、図4は、色むらを除去したR成分画像、図5は、R、G、B全成分について色むらを除去した画像を示している。 FIG. 1 is a flowchart showing a procedure of a method for removing color unevenness in an optical micrograph according to an embodiment of the present invention. 2 is an image of a typical color optical micrograph with uneven color (stainless steel corroded by magnesium chloride droplets), FIG. 3 is an R component image of FIG. 2, and FIG. 4 is uneven color. Removed R component image, FIG. 5 shows an image from which color unevenness has been removed for all R, G, and B components.
ここでは、R、G、B各8ビットの24ビットカラー画像に対する色むらを除去する場合を例に述べるが、この出願の発明はこれに限定されない。色むらの除去処理は、24ビットRGB画像を8ビットR、G、B各成分画像に分解でき、且つそれらを24ビットRGB画像に合成できる市販の画像処理ソフトウェアを利用して行うことができる。 Here, a case where color unevenness is removed from a 24-bit color image of 8 bits each for R, G, and B will be described as an example, but the invention of this application is not limited to this. Color unevenness removal processing can be performed using commercially available image processing software that can decompose a 24-bit RGB image into 8-bit R, G, and B component images and synthesize them into a 24-bit RGB image.
まず、光学顕微鏡に付設したCCDカメラ等より撮像した光学顕微鏡写真の24ビットカラーデジタル画像情報を、上記画像処理ソフトウェアを備えたパソコン等の処理装置に入力する(ステップS1)。 First, 24-bit color digital image information of an optical microscope photograph taken by a CCD camera or the like attached to the optical microscope is input to a processing device such as a personal computer equipped with the image processing software (step S1).
次に、カラー画像の研磨面(ある特定な面)以外にマスク(図3の○で囲んだ部分)をかけて、マスクがかかっていない部分について処理対象とする(ステップS2)。この場合、マスクをかけるのは研磨された面の緩やかな色濃度変化の情報のみ取得するためで、マスクをしないで全ての色情報を取り込むと平坦化ができなくなる。 Next, a mask (portion surrounded by a circle in FIG. 3) is applied to the polished surface (a specific surface) of the color image, and a portion not covered with the mask is set as a processing target (step S2). In this case, the mask is applied because only information on a gradual color density change of the polished surface is acquired. If all color information is captured without masking, flattening cannot be performed.
次に、処理対象のカラー画像のR、G、B各成分画像について、それぞれ画像全体の色の平均濃度値を求める(ステップS3)。そして、R、G、B各8ビット成分画像について、X方向の各ラインごとに、濃度レベルが平均濃度値に対して所定レベル以内(たとえば濃度レベルが画素全体の平均濃度値に対して30以内)の画素について色濃度の平均を
求める(ステップS4)。次に、着目ラインの色の平均濃度値と画像全体の色の平均濃度値の差分を求め、着目ラインの各画素の色濃度に前記差分を加える(ステップS5)。以上により、X方向の平坦化処理が行われ、Y方向に対して色むらのない画像が得られる。
Next, for each of the R, G, and B component images of the color image to be processed, the average density value of the color of the entire image is obtained (step S3). For each 8-bit component image of R, G, and B, the density level is within a predetermined level with respect to the average density value for each line in the X direction (for example, the density level is within 30 with respect to the average density value of the entire pixel). ) For the pixels of () is obtained (step S4). Next, a difference between the average density value of the color of the target line and the average density value of the color of the entire image is obtained, and the difference is added to the color density of each pixel of the target line (step S5). As described above, the flattening process in the X direction is performed, and an image having no color unevenness in the Y direction is obtained.
次に、R、G、B各成分画像について、Y方向の各ラインごとに、濃度レベルが平均濃度値に対して所定レベル以内(上記と同様)の画素について色濃度の平均を求める(ステップS6)。そして、着目ラインの色の平均濃度値と画像全体の色の平均濃度値の差分を求め、着目ラインの各画素の色濃度に前記差分を加える(ステップS7)。以上により、Y方向の平坦化処理が行われ、X方向に対して色むらのない画像が得られる。 Next, for each of the R, G, and B component images, for each line in the Y direction, an average color density is obtained for pixels whose density level is within a predetermined level (same as above) with respect to the average density value (step S6). ). Then, the difference between the average density value of the color of the target line and the average density value of the color of the entire image is obtained, and the difference is added to the color density of each pixel of the target line (step S7). As described above, the flattening process in the Y direction is performed, and an image having no color unevenness in the X direction is obtained.
R、G、B各成分画像について、X方向及びY方向の平坦化処理が完了すると、平坦化したR、G、B各成分画像を元のR、G、B各成分画像と置き換える。すると図5に示す、全体として色むらのないカラー画像が得られる(ステップS8)。 When the R, G, and B component images have been flattened in the X and Y directions, the flattened R, G, and B component images are replaced with the original R, G, and B component images. Then, a color image having no color unevenness as a whole as shown in FIG. 5 is obtained (step S8).
なお、上記では省略したが、平坦化処理後のR、G、B各成分画像の平均色濃度を、予め求めておいた元のR、G、B各成分画像の平均色濃度と同じになるように補正することが好ましい。 Although omitted in the above description, the average color density of the R, G, and B component images after the flattening process is the same as the average color density of the original R, G, and B component images obtained in advance. It is preferable to correct so.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005264224A JP4756264B2 (en) | 2005-09-12 | 2005-09-12 | Method for removing uneven color in optical micrographs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005264224A JP4756264B2 (en) | 2005-09-12 | 2005-09-12 | Method for removing uneven color in optical micrographs |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007078864A true JP2007078864A (en) | 2007-03-29 |
JP4756264B2 JP4756264B2 (en) | 2011-08-24 |
Family
ID=37939291
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005264224A Expired - Fee Related JP4756264B2 (en) | 2005-09-12 | 2005-09-12 | Method for removing uneven color in optical micrographs |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4756264B2 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03291093A (en) * | 1990-04-09 | 1991-12-20 | Sony Corp | Picture processor |
JP2001318360A (en) * | 2000-05-10 | 2001-11-16 | Mitsubishi Electric Corp | Projection type liquid crystal display device |
JP2007060354A (en) * | 2005-08-25 | 2007-03-08 | Fuji Xerox Co Ltd | Image processing method and device, image reading device, image forming device, and program |
-
2005
- 2005-09-12 JP JP2005264224A patent/JP4756264B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03291093A (en) * | 1990-04-09 | 1991-12-20 | Sony Corp | Picture processor |
JP2001318360A (en) * | 2000-05-10 | 2001-11-16 | Mitsubishi Electric Corp | Projection type liquid crystal display device |
JP2007060354A (en) * | 2005-08-25 | 2007-03-08 | Fuji Xerox Co Ltd | Image processing method and device, image reading device, image forming device, and program |
Also Published As
Publication number | Publication date |
---|---|
JP4756264B2 (en) | 2011-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4160991B2 (en) | Linear defect detection apparatus and semiconductor substrate manufacturing apparatus, linear defect detection method and semiconductor substrate manufacturing method, computer connected to the detection apparatus or ... | |
EP1296510A3 (en) | System and method for correcting defects in captured images | |
JP2007172397A (en) | Edge gradient detection method, stain defect detection method, edge gradient detection device and stain defect detection device | |
JP2008016029A (en) | Apparatus and method for correcting edge | |
CN1783939A (en) | Ringing reduction apparatus and computer-readable recording medium having ringing reduction program recorded therein | |
JP2007285754A (en) | Flaw detection method and flaw detector | |
JP2007256050A (en) | Degradation degree evaluation method and evaluation device of metallic material surface | |
KR100837459B1 (en) | Image pickup method of display panel and image pickup apparatus of display panel | |
JP4513962B2 (en) | Pseudo defect image creation method and apparatus using the same | |
JP4244046B2 (en) | Image processing method and image processing apparatus | |
JP2008070242A (en) | Noise-removing method and apparatus, unevenness defect inspecting method and apparatus | |
JP4756264B2 (en) | Method for removing uneven color in optical micrographs | |
JP2006196937A (en) | Image processing apparatus and image processing method | |
JP2009033293A (en) | Image processing circuit, semiconductor device, and image processor | |
JP2007049496A (en) | Image processing method and apparatus | |
JP5190619B2 (en) | Inspection method for inspection object and inspection apparatus therefor | |
JP2005063022A (en) | Noise pixel map producing method, device performing the same, program, and photograph printing device | |
JP2006277688A (en) | Apparatus and method for improving image quality, and program therefor | |
JP2005351645A (en) | Surface-damage detecting method, detector therefor and program | |
JP2003346165A (en) | Detection method of work boundary | |
JP6591176B2 (en) | Method for calculating glare evaluation value of protective film and device for calculating glare evaluation value of protective film | |
JP2008035370A (en) | False color evaluating method of digital camera, false color evaluating device of digital camera and false color evaluation program of digital camera | |
JP5024897B2 (en) | Noise removal method, paint inspection method and apparatus | |
JP2006012029A (en) | Conduit image creating method | |
JP6804022B2 (en) | Change degree derivation device, change degree derivation method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080908 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110517 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110518 |
|
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: 20140610 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140610 Year of fee payment: 3 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |