CN112085651B - Automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction - Google Patents

Automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction Download PDF

Info

Publication number
CN112085651B
CN112085651B CN202011005480.2A CN202011005480A CN112085651B CN 112085651 B CN112085651 B CN 112085651B CN 202011005480 A CN202011005480 A CN 202011005480A CN 112085651 B CN112085651 B CN 112085651B
Authority
CN
China
Prior art keywords
shock wave
image
schlieren
pixel
characteristic
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
CN202011005480.2A
Other languages
Chinese (zh)
Other versions
CN112085651A (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.)
Ultra High Speed Aerodynamics Institute China Aerodynamics Research and Development Center
Original Assignee
Ultra High Speed Aerodynamics Institute China Aerodynamics Research and Development Center
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 Ultra High Speed Aerodynamics Institute China Aerodynamics Research and Development Center filed Critical Ultra High Speed Aerodynamics Institute China Aerodynamics Research and Development Center
Priority to CN202011005480.2A priority Critical patent/CN112085651B/en
Publication of CN112085651A publication Critical patent/CN112085651A/en
Application granted granted Critical
Publication of CN112085651B publication Critical patent/CN112085651B/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
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • 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/10016Video; Image sequence
    • 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/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses an automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction. The method converts the original schlieren or shadow image into 8-bit gray schlieren or shadow image respectively; preprocessing an 8-bit gray shade or shadow image by utilizing background image deduction, image filtering, image enhancement and sub-pixel interpolation in a frequency domain; converting the gray level schlieren or shadow image into a binary schlieren or shadow image by using an adaptive threshold algorithm; detecting all characteristic contours in the binary striae shadow or shadow image by using a contour detection algorithm; and fitting the shock wave characteristic profile by using the pixel vector coordinates of the shock wave characteristic profile according to the shock wave shape characteristics, thereby further reducing the error of shock wave detection. The method can improve the robustness, the automation degree and the precision of the multi-sequence schlieren or shadow image shock wave automatic detection and tracking.

Description

Automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction
Technical Field
The invention belongs to the technical field of aeronautics and astronautics industry aerodynamics, and particularly relates to an automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction.
Background
The schlieren and shadow technology is used as a traditional flow field display means with low cost and high reliability, is an important test method for wind tunnel test and combustion field research in current engineering application, and is also an important tool for aerodynamics research on compressible flow characteristics such as shock waves, shear layers, vortex and the like.
Generally, the schlieren and shadow technique is only used as a qualitative flow field display analysis means. However, with the refinement of the aerodynamic research, in the field of the aerodynamic shock wave research, the unsteady shock wave characteristics such as the shock wave propagation speed, the shock wave oscillation frequency, the shock wave deformation and the like can be quantitatively analyzed based on the multi-sequence image result obtained by the high-speed schlieren or the shadow.
In order to accurately, efficiently and automatically detect, extract and track shock waves from high-speed schlieren or shadow images, a shock wave automatic detection and tracking image processing algorithm needs to be established to process multi-sequence schlieren or shadow sequence images. Some foreign scholars make a lot of beneficial attempts in the field, Estruch et al apply Canny edge extraction algorithm to automatic shock wave tracking detection, and evaluate the unsteady oscillation characteristics of the shock wave in the shock wave boundary layer interference based on multi-sequence schlieren images. Fujimoto et al propose an image processing algorithm based on feature point tracking, which tracks the shock wave position by identifying the feature points on the shock wave shape. The Curvature Scale Space (CSS) technique, a modern tool in the field of computer vision, extracts curvature zero crossings on a curve at varying scales to form a CSS image to describe the shape of an object. Smith et al utilize Curvature Scale Space (CSS) techniques to automatically extract the shock profile. From published data, the shock wave automatic detection and tracking algorithm based on multi-sequence schlieren or shadow images has poor robustness to image brightness change and shock wave shape change, and when different schlieren or shadow images are processed, calculation parameters need to be changed frequently, so that the robustness and the automation degree need to be improved urgently.
Currently, there is a need to develop an automatic shock wave detection and tracking algorithm based on image adaptive threshold and feature extraction.
Disclosure of Invention
The invention aims to solve the technical problem of providing an automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction.
The invention discloses an automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction, which comprises the following steps of:
a. respectively converting the original schlieren or shadow image into an 8-bit gray level schlieren or shadow image;
b. preprocessing an 8-bit gray-scale schlieren or shadow image by utilizing background image deduction, image filtering, image enhancement and sub-pixel interpolation in a frequency domain to obtain a gray-scale schlieren or shadow image;
c. converting the gray level schlieren or shadow image into a binary schlieren or shadow image by using an adaptive threshold algorithm;
d. based on the binary schlieren or shadow image, detecting all characteristic profiles including shock wave characteristic profiles and pseudo shock wave characteristic profiles in the binary schlieren or shadow image by using a profile detection algorithm, coding a serial number for each characteristic profile to obtain a multi-sequence schlieren or shadow image, and storing the pixel vector coordinate position of each characteristic profile;
e. calculating characteristic parameter characteristic values of the perimeter, the pixel number, the gravity center position, the area and the aspect ratio of each characteristic contour according to the pixel vector coordinates of each characteristic contour;
f. selecting criterion characteristic parameters for extracting the shock wave characteristic profile according to the unique characteristics of the shock wave characteristic profile in the sequence schlieren or shadow image, and extracting the shock wave characteristic profile from the pseudo shock wave characteristic profile according to the criterion characteristic parameters;
g. and fitting the shock wave characteristic profile by using the pixel vector coordinates of the shock wave characteristic profile according to the shock wave shape characteristics, thereby further reducing the error of shock wave detection.
Further, the criterion characteristic parameters in step f include aspect ratio and length.
Further, in the step g, a 5 th order polynomial least square fitting is adopted for fitting the shock wave characteristic profile.
The shock wave automatic detection tracking algorithm based on the image adaptive threshold and the feature extraction realizes the conversion from the gray level image to the binary image by adopting the adaptive algorithms with different thresholds aiming at the pixel points at different positions, thereby greatly improving the robustness of the shock wave detection on the image brightness change.
The shock wave automatic detection and tracking algorithm based on the image self-adaptive threshold and the feature extraction can improve the robustness, the automation degree and the precision of the shock wave automatic detection and tracking of the multi-sequence schlieren or shadow image.
Drawings
Fig. 1 is an original shadow image showing a flow field of an open shock tube obtained by an automatic shock detection and tracking algorithm based on image adaptive threshold and feature extraction in embodiment 1;
FIG. 2 is a preprocessed shadow image obtained by the automatic shock wave detection and tracking algorithm based on image adaptive threshold and feature extraction in embodiment 1;
FIG. 3 is a binary shadow image obtained by the adaptive threshold algorithm in the automatic shock wave detection and tracking algorithm based on image adaptive threshold and feature extraction in example 1;
FIG. 4 is a binary shadow image contour detection result obtained by the automatic shock wave detection and tracking algorithm based on image adaptive threshold and feature extraction in embodiment 1;
FIG. 5 is a shock wave feature contour extraction result obtained by the automatic shock wave detection and tracking algorithm based on image adaptive threshold and feature extraction in embodiment 1;
fig. 6 is a shock wave feature contour fitting result obtained by the shock wave automatic detection and tracking algorithm based on image adaptive threshold and feature extraction in embodiment 1.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and examples.
Example 1
In this embodiment, a high-speed shadow technology is used to display an external flow field of a nozzle of an open shock tube, and a shock profile and a position in a shadow image are extracted by using an automatic shock detection and tracking algorithm based on an image adaptive threshold and feature extraction provided by the present invention, and the specific process is as follows:
a. respectively converting the original schlieren or shadow image into an 8-bit gray level schlieren or shadow image;
this embodiment gives the original shadow image as shown in fig. 1, which is a 12-bit grayscale image with a spatial resolution of 320 × 216; for the convenience of subsequent image processing, whether the original schlieren or shadow image is a color image or a gray image, the original schlieren or shadow image is uniformly converted into an 8-bit single-color gray image, and the spatial resolution is kept unchanged.
b. Preprocessing an 8-bit gray-scale schlieren or shadow image by utilizing background image deduction, image filtering, image enhancement and sub-pixel interpolation in a frequency domain to obtain a gray-scale schlieren or shadow image;
and (3) deducting the background image in a frequency domain from the shadow image, interpolating the shadow image into 640 × 532 image space resolution by using a Lanczos subpixel interpolation algorithm, and then sequentially performing 3 × 3 median filtering and 5 × 5 bilateral filtering to obtain the preprocessed shadow image shown in fig. 2.
c. Converting the gray level schlieren or shadow image into a binary schlieren or shadow image by using an adaptive threshold algorithm;
converting the gray image into a binary shadow image, which is usually realized by adopting a fixed threshold algorithm, namely setting a threshold value for the whole gray image, setting the gray value of any pixel point to be higher than the threshold value, and setting the gray value to be 1; otherwise, if the gray value of the pixel point is lower than the threshold, the gray value is set to 0. The fixed threshold algorithm is less robust to brightness variations caused by non-uniform or unstable light sources.
The embodiment adopts the self-adaptive algorithms with different thresholds for different position pixel points to realize the conversion from the gray level image to the binary shadow image, and can greatly improve the robustness of shock wave detection on the brightness change of the image.
For the present embodiment, the method for calculating the threshold of the target pixel (x, y) is as follows: selecting a d multiplied by d rectangular pixel array by taking a pixel (x, y) as a center, setting the average value of the gray values of the pixels corresponding to the pixel array as the threshold value of a target pixel point (x, y), setting the gray value of the pixel (x, y) to be 1 when the gray value of the pixel (x, y) is higher than the average value; on the contrary, if the gray-level value of the pixel (x, y) is lower than the threshold, the gray-level value is set to 0, and the binary shadow image shown in fig. 3 is obtained.
d. Based on the binary schlieren or shadow image, detecting all characteristic profiles including shock wave characteristic profiles and pseudo shock wave characteristic profiles in the binary schlieren or shadow image by using a profile detection algorithm, coding a serial number for each characteristic profile to obtain a multi-sequence schlieren or shadow image, and storing the pixel vector coordinate position of each characteristic profile;
the present embodiment connects the continuous pixels having the same gray value. Each detected feature profile is numbered and the pixel vector coordinate position is stored, and 133 profiles are detected in the embodiment to obtain the binary shadow image profile detection result shown in fig. 4.
e. Calculating characteristic parameter characteristic values of the perimeter, the pixel number, the gravity center position, the area and the aspect ratio of each characteristic contour according to the pixel vector coordinates of each characteristic contour;
in this embodiment, characteristic parameter characteristic values of the perimeter, the number of pixels, the center of gravity position, the area, and the aspect ratio of 133 contours are calculated and detected.
f. Selecting criterion characteristic parameters for extracting the shock wave characteristic profile according to the unique characteristics of the shock wave characteristic profile in the sequence schlieren or shadow image, and extracting the shock wave characteristic profile from the pseudo shock wave characteristic profile according to the criterion characteristic parameters;
in this embodiment, the length is selected as a criterion feature parameter for feature extraction, only the profile with the longest length is retained, and other profiles are removed to obtain the shock wave feature profile extraction result shown in fig. 5.
g. And fitting the shock wave characteristic profile by using the pixel vector coordinates of the shock wave characteristic profile according to the shock wave shape characteristics, thereby further reducing the error of shock wave detection.
In the adaptive thresholding and contour detection, the shape of the detected shock wave is not smooth due to noise. In order to reduce the shock wave detection error, the present embodiment performs 5 th order polynomial least square fitting on the detected shock wave profile to obtain the shock wave characteristic profile fitting result as shown in fig. 6.
Although the embodiments of the present invention have been disclosed above, it is not limited to the applications listed in the description and the embodiments, but it can be applied to various fields suitable for the present invention. Additional modifications and refinements of the present invention will readily occur to those skilled in the art without departing from the principles of the present invention, and therefore the present invention is not limited to the specific details and illustrations shown and described herein without departing from the general concept defined by the claims and their equivalents.

Claims (3)

1. The automatic shock wave detection and tracking algorithm based on the image self-adaptive threshold and the feature extraction is characterized by comprising the following steps of:
a. respectively converting the original schlieren or shadow image into an 8-bit gray level schlieren or shadow image;
b. preprocessing an 8-bit gray-scale schlieren or shadow image by utilizing background image deduction, image filtering, image enhancement and sub-pixel interpolation in a frequency domain to obtain a gray-scale schlieren or shadow image;
c. converting the gray level schlieren or shadow image into a binary schlieren or shadow image by using an adaptive threshold algorithm; adopting self-adaptive algorithms with different thresholds to realize the conversion from the gray level image to the binary image aiming at the pixel points at different positions; the target pixel (x, y) threshold calculation method comprises the following steps: selecting a d multiplied by d rectangular pixel array by taking a pixel (x, y) as a center, setting the average value of the gray values of the pixels corresponding to the pixel array as the threshold value of a target pixel point (x, y), setting the gray value of the pixel (x, y) to be 1 when the gray value of the pixel (x, y) is higher than the average value; on the contrary, if the gray-level value of the pixel (x, y) is lower than the threshold, the gray-level value is set to 0;
d. based on the binary schlieren or shadow image, detecting all characteristic profiles including shock wave characteristic profiles and pseudo shock wave characteristic profiles in the binary schlieren or shadow image by using a profile detection algorithm, coding a serial number for each characteristic profile to obtain a multi-sequence schlieren or shadow image, and storing the pixel vector coordinate position of each characteristic profile;
e. calculating characteristic parameter characteristic values of the perimeter, the pixel number, the gravity center position, the area and the aspect ratio of each characteristic contour according to the pixel vector coordinates of each characteristic contour;
f. selecting criterion characteristic parameters for extracting the shock wave characteristic profile according to the unique characteristics of the shock wave characteristic profile in the sequence schlieren or shadow image, and extracting the shock wave characteristic profile from the pseudo shock wave characteristic profile according to the criterion characteristic parameters;
g. and fitting the shock wave characteristic profile by using the pixel vector coordinates of the shock wave characteristic profile according to the shock wave shape characteristics, thereby further reducing the error of shock wave detection.
2. The automatic shock wave detection and tracking algorithm based on image adaptive threshold and feature extraction as claimed in claim 1, wherein the criterion feature parameters in step f include aspect ratio and length.
3. The automatic shock wave detection and tracking algorithm based on image adaptive threshold and feature extraction as claimed in claim 1, wherein the step g of fitting the shock wave feature profile adopts 5 th order polynomial least square fitting.
CN202011005480.2A 2020-09-23 2020-09-23 Automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction Active CN112085651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011005480.2A CN112085651B (en) 2020-09-23 2020-09-23 Automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011005480.2A CN112085651B (en) 2020-09-23 2020-09-23 Automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction

Publications (2)

Publication Number Publication Date
CN112085651A CN112085651A (en) 2020-12-15
CN112085651B true CN112085651B (en) 2021-06-29

Family

ID=73738767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011005480.2A Active CN112085651B (en) 2020-09-23 2020-09-23 Automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction

Country Status (1)

Country Link
CN (1) CN112085651B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113870237B (en) * 2021-10-09 2024-03-08 西北工业大学 Composite material image shadow detection method based on horizontal diffusion
CN116572078B (en) * 2023-07-14 2023-10-17 中国空气动力研究与发展中心高速空气动力研究所 Method for detecting abrasion of turning tool
CN116958514B (en) * 2023-09-20 2023-12-05 中国空气动力研究与发展中心高速空气动力研究所 Sub-pixel positioning method for shock wave position of optical image
CN117232395B (en) * 2023-11-14 2024-01-23 中国空气动力研究与发展中心高速空气动力研究所 Automatic recognition method for shock wave position of pressure sensitive paint image

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682278B (en) * 2016-12-06 2019-11-08 西安交通大学 Supersonic flow field prediction accuracy decision maker and method based on image procossing
CN110263595B (en) * 2019-06-25 2023-02-17 北京慧眼智行科技有限公司 Two-dimensional code detection method and device

Also Published As

Publication number Publication date
CN112085651A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN112085651B (en) Automatic shock wave detection and tracking algorithm based on image self-adaptive threshold and feature extraction
CN110866924B (en) Line structured light center line extraction method and storage medium
CN110148130B (en) Method and device for detecting part defects
CN109242853B (en) PCB defect intelligent detection method based on image processing
CN112651968B (en) Wood board deformation and pit detection method based on depth information
CN114219805B (en) Intelligent detection method for glass defects
CN109540925B (en) Complex ceramic tile surface defect detection method based on difference method and local variance measurement operator
CN110866943B (en) Fish position tracking method for water quality monitoring
CN107944354B (en) Vehicle detection method based on deep learning
CN111354047B (en) Computer vision-based camera module positioning method and system
CN106875430B (en) Single moving target tracking method and device based on fixed form under dynamic background
CN117218122B (en) Watch shell quality detection method based on image data
CN112270658A (en) Elevator steel wire rope detection method based on machine vision
CN114881965A (en) Wood board joint detection method based on artificial intelligence and image processing
CN116883408B (en) Integrating instrument shell defect detection method based on artificial intelligence
CN114863492A (en) Method and device for repairing low-quality fingerprint image
CN113780423A (en) Single-stage target detection neural network based on multi-scale fusion and industrial product surface defect detection model
CN117036737A (en) Feature extraction and matching method based on information entropy, GMS and LC significant detection
CN117036348B (en) Metal fatigue crack detection method based on image processing and crack recognition model
CN113052794A (en) Image definition recognition method based on edge features
CN111178111A (en) Two-dimensional code detection method, electronic device, storage medium and system
CN116740375A (en) Image feature extraction method, system and medium
CN115797327A (en) Defect detection method and device, terminal device and storage medium
CN100371944C (en) Greyscale image partition method based on light distribution character of reflection or penetrance
CN110751687A (en) Apple size grading method based on computer vision minimum and maximum circles

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