CN109671050B - Method for detecting scintillation bad elements of linear detector - Google Patents

Method for detecting scintillation bad elements of linear detector Download PDF

Info

Publication number
CN109671050B
CN109671050B CN201811331618.0A CN201811331618A CN109671050B CN 109671050 B CN109671050 B CN 109671050B CN 201811331618 A CN201811331618 A CN 201811331618A CN 109671050 B CN109671050 B CN 109671050B
Authority
CN
China
Prior art keywords
array
err
scintillation
standard deviation
bad
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.)
Active
Application number
CN201811331618.0A
Other languages
Chinese (zh)
Other versions
CN109671050A (en
Inventor
徐华楠
王凯
孙小亮
李玉岩
刘琼
汪江华
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.)
Luoyang Institute of Electro Optical Equipment AVIC
Original Assignee
Luoyang Institute of Electro Optical Equipment AVIC
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 Luoyang Institute of Electro Optical Equipment AVIC filed Critical Luoyang Institute of Electro Optical Equipment AVIC
Priority to CN201811331618.0A priority Critical patent/CN109671050B/en
Publication of CN109671050A publication Critical patent/CN109671050A/en
Application granted granted Critical
Publication of CN109671050B publication Critical patent/CN109671050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10048Infrared image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

The invention relates to a method for detecting a scintillation bad element of a linear detector, which comprises the steps of performing improved median filtering on standard deviation of frame image data, calculating a difference value of median filtering results of a standard deviation array, marking an ith pixel as a scintillation bad element if the absolute value of ith data in the array is greater than a threshold Th, and otherwise, determining that the ith pixel is not the scintillation bad element. The invention combines the improved median filtering method and the self-adaptive threshold method to realize the scintillation bad element detection of the linear infrared detector. The method is simple in principle, can effectively detect the scintillation bad elements in the linear infrared detector, and reduces the false detection rate.

Description

Method for detecting scintillation bad elements of linear detector
Technical Field
The invention belongs to the technical field of image processing, and relates to a method for detecting a scintillation bad element of a linear detector.
Background
In an infrared imaging system, due to the problems of the device production process, blind pixels and flickering bad pixels often exist in a linear infrared detector, so that bright (dark) stripes (caused by the blind pixels) or alternately bright and dark stripes (caused by the flickering bad pixels) appear in an image along the scanning direction when the system is scanned and imaged, and the overall imaging effect and the subsequent small target detection effect are seriously influenced. Especially, the flicker bad element causes the generated light and dark alternate stripes, and the detection of the small target is greatly influenced. For the detection of bad elements of the linear detector, a time domain method and a window detection method are representative methods. The time domain method has higher detection precision, but cannot be realized in real time; the existing window method mainly detects blind pixels and cannot effectively detect flicker bad pixels. Therefore, a method for detecting a flash bad element is provided to improve the imaging quality of the line array detector.
Disclosure of Invention
Technical problem to be solved
In order to avoid the defects of the prior art, the invention provides a method for detecting scintillation bad elements of a linear detector.
Technical scheme
A method for detecting scintillation bad elements of a linear detector is characterized by comprising the following steps:
step 1: after the system runs, acquiring a frame of image data and putting the frame of image data into a frame memory;
and 2, step: calculating the standard deviation of each line of image data in the frame image data and storing the standard deviation in an array R _ ST [ M ]; wherein M is the number of detector pixels;
and step 3: performing improved Median filtering on the standard deviation array R _ ST [ M ] in the sliding window by using the window with the size of W x 1, and storing a filtering result in the array R _ Median [ M ];
and 4, step 4: calculating the difference value between the standard difference array R _ ST [ M ] and the Median filtering result R _ media [ M ] and storing the difference value in the array ERR [ M ];
and 5: calculating the standard deviation sigma of the array ERR [ M ], multiplying the standard deviation sigma by a set weight value K to obtain a detection threshold Th of the flicker bad element:
sigma=sqrt[∑(ERR(M)-avg)*(ERR(M)-avg)]
avg=∑ERR(M)/M
Th=K*sigma
wherein: avg is the average of the array ERR [ M ];
step 6: and judging the array ERR [ M ] by using a threshold Th, if the absolute value of the ith data in the array ERR [ M ] is greater than the threshold Th, marking the ith pixel as a flicker bad element, and if not, considering that the ith pixel is not the flicker bad element.
The weight K is 2.5-5.
The improved median filtering method: recording W standard difference values in the sliding window as an array ST _ WD [ W ]; removing the maximum value and the minimum value in the array ST _ WD [ W ], and recording the rest W-2 values as an array ST _ TEMP [ W-2]; sorting the values in the array ST _ TEMP [ W-2] and outputting the median value.
Advantageous effects
The invention provides a method for detecting a flicker bad element of a linear detector, which comprises the steps of performing improved median filtering on a standard deviation of frame image data, calculating a difference value of median filtering results of a standard deviation array, marking an ith pixel as the flicker bad element if an absolute value of ith data in the array is greater than a threshold Th, and otherwise, judging that the ith pixel is not the flicker bad element.
The invention combines the improved median filtering method and the self-adaptive threshold method to realize the scintillation bad element detection of the linear infrared detector. The method is simple in principle, can effectively detect the scintillation bad elements in the linear infrared detector, and reduces the false detection rate.
Drawings
FIG. 1 is a flowchart of the procedure of the present invention
Detailed Description
The invention will now be further described with reference to the following examples and drawings:
the specific implementation method comprises the following steps:
(1) After the system operates, acquiring a frame of image data and putting the frame of image data into a frame memory;
(2) The standard deviation of the image data for each line is calculated and stored in the array R _ ST [ M ]. Wherein M is the number of detector pixels;
(3) An improved median filtering is performed on the standard deviation array R _ ST [ M ]. Taking the window size as W x 1, carrying out improved Median filtering on a standard deviation array R _ ST [ M ] in the sliding window, and storing a filtering result in an array R _ Median [ M ];
the improved median filtering method: recording W standard difference values in the sliding window as an array ST _ WD [ W ]; removing the maximum value and the minimum value in the array ST _ WD [ W ], and recording the rest W-2 values as an array ST _ TEMP [ W-2]; sorting the values in the array ST _ TEMP [ W-2] and outputting the median value.
(4) Calculating the difference value between the standard difference array R _ ST [ M ] and the Median filtering result R _ media [ M ] and storing the difference value in the array ERR [ M ];
(5) An adaptive threshold is calculated. Calculating the standard deviation sigma of the array ERR [ M ], and multiplying the standard deviation sigma by a set weight K to obtain a detection threshold Th of the flicker bad element;
sigma=sqrt[∑(ERR(M)-avg)*(ERR(M)-avg)]
avg=∑ERR(M)/M
Th=K*sigma
(6) And judging the array ERR [ M ] by using a threshold Th, if the absolute value of the ith data in the array ERR [ M ] is greater than the threshold Th, marking the ith pixel as a flicker bad element, otherwise, considering that the ith pixel is not the flicker bad element.
Example (b):
for a 480-pixel line-array infrared imaging system, after the infrared system is powered on and operated, an infrared image with 480 × 640 pixels, that is, an infrared image with 480 rows and 640 columns, is obtained. The standard deviation for each row of data for this image is calculated and stored in the array R _ ST [480] (step 2). The array R _ ST [480] is subjected to improved Median filtering by the size of the window 9 × 1, resulting in the array R _ media [480] (step 3). The difference between the arrays R _ ST [480] and R _ Median [480] is calculated to obtain the difference array ERR [480] (step 4). The standard deviation sigma of the array ERR [480] is calculated and then the adaptive threshold is found: th = K sigma, where K =4.35 (step 5). And judging the array ERR [480] by using a threshold Th, if the absolute value of the ith data in the array ERR [480] is greater than the threshold Th, marking the ith pixel as a flicker bad element, otherwise, considering that the ith pixel is not the flicker bad element.

Claims (3)

1. A method for detecting scintillation bad elements of a linear detector is characterized by comprising the following steps:
step 1: after the system operates, acquiring a frame of image data and putting the frame of image data into a frame memory;
and 2, step: calculating the standard deviation of each line of image data in the frame image data and storing the standard deviation in an array R _ ST [ M ]; wherein M is the number of detector pixels;
and step 3: performing improved Median filtering on the standard deviation array R _ ST [ M ] in the sliding window by using the window with the size of W x 1, and storing a filtering result in the array R _ Median [ M ];
and 4, step 4: calculating the difference value between the standard difference array R _ ST [ M ] and the Median filtering result R _ media [ M ] and storing the difference value in the array ERR [ M ];
and 5: calculating the standard deviation sigma of the array ERR [ M ], and multiplying the standard deviation sigma by a set weight K to obtain a detection threshold Th of the flicker bad element:
sigma=sqrt[∑(ERR(M)-avg)*(ERR(M)-avg)]
avg=∑ERR(M)/M
Th=K*sigma
wherein: avg is the average of the array ERR [ M ];
step 6: and judging the array ERR [ M ] by using a threshold Th, if the absolute value of the ith data in the array ERR [ M ] is greater than the threshold Th, marking the ith pixel as a flicker bad element, and if not, considering that the ith pixel is not the flicker bad element.
2. The method for detecting the scintillation bad element of the line array detector as recited in claim 1, wherein: the weight K is 2.5-5.
3. The method for detecting the scintillation bad element of the line array detector as recited in claim 1, wherein: the improved median filtering method: recording W standard difference values in the sliding window as an array ST _ WD [ W ]; removing the maximum value and the minimum value in the array ST _ WD [ W ], and recording the rest W-2 values as an array ST _ TEMP [ W-2]; sorting the numerical values in the array ST _ TEMP [ W-2] and outputting the median value.
CN201811331618.0A 2018-11-09 2018-11-09 Method for detecting scintillation bad elements of linear detector Active CN109671050B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811331618.0A CN109671050B (en) 2018-11-09 2018-11-09 Method for detecting scintillation bad elements of linear detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811331618.0A CN109671050B (en) 2018-11-09 2018-11-09 Method for detecting scintillation bad elements of linear detector

Publications (2)

Publication Number Publication Date
CN109671050A CN109671050A (en) 2019-04-23
CN109671050B true CN109671050B (en) 2022-11-22

Family

ID=66142096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811331618.0A Active CN109671050B (en) 2018-11-09 2018-11-09 Method for detecting scintillation bad elements of linear detector

Country Status (1)

Country Link
CN (1) CN109671050B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110717887A (en) * 2019-09-05 2020-01-21 中国航空工业集团公司洛阳电光设备研究所 Method for detecting bad elements of line-row detector

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100557660B1 (en) * 2004-07-29 2006-03-10 매그나칩 반도체 유한회사 Method for detection of flicker in image signal
CN104330164B (en) * 2014-08-05 2018-03-23 凯迈(洛阳)测控有限公司 The blind pixel detection method and device of infrared focal plane array

Also Published As

Publication number Publication date
CN109671050A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
CN114937055B (en) Image self-adaptive segmentation method and system based on artificial intelligence
CN109870461B (en) Electronic components quality detection system
US8063957B2 (en) Method and apparatus for processing bad pixels
CN111368771A (en) Tunnel fire early warning method and device based on image processing, computer equipment and computer readable storage medium
CN106525245B (en) A kind of detection of quick sequential blind element and bearing calibration based on three Grads threshold
US8437504B2 (en) Imaging system and imaging method
JP2008085753A5 (en)
CN116665080B (en) Unmanned aerial vehicle deteriorated insulator detection method and system based on target recognition
CN111612773B (en) Thermal infrared imager and real-time automatic blind pixel detection processing method
CN112784738A (en) Moving object detection alarm method, device and computer readable storage medium
CN110880184A (en) Method and device for carrying out automatic camera inspection based on optical flow field
CN109671050B (en) Method for detecting scintillation bad elements of linear detector
CA2704037A1 (en) Method for detecting a target
CN110019060B (en) Method and device for automatically synchronizing locomotive video file and operation record file
US20140071298A1 (en) Blemish detection sytem and method
KR101559724B1 (en) Method and Apparatus for Detecting the Bad Pixels in Sensor Array and Concealing the Error
CN112613456A (en) Small target detection method based on multi-frame differential image accumulation
CN117333795A (en) River surface flow velocity measurement method and system based on screening post-treatment
CN111403318A (en) Method and device for detecting state of wafer in process chamber
CN110717887A (en) Method for detecting bad elements of line-row detector
CN110798680B (en) Single-frame no-reference self-adaptive video snowflake noise detection method
CN110211096B (en) Haze image detection method
US20160104269A1 (en) Method and apparatus for determining a detection of a defective object in an image sequence as a misdetection
JP3015325B2 (en) Streak inspection method and device
JP2009010594A (en) Image sensor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant