CN113643194A - Pseudo-color display method for high-gray-scale welding seam negative image - Google Patents

Pseudo-color display method for high-gray-scale welding seam negative image Download PDF

Info

Publication number
CN113643194A
CN113643194A CN202110710209.7A CN202110710209A CN113643194A CN 113643194 A CN113643194 A CN 113643194A CN 202110710209 A CN202110710209 A CN 202110710209A CN 113643194 A CN113643194 A CN 113643194A
Authority
CN
China
Prior art keywords
color
image
gray
scale
pseudo
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
CN202110710209.7A
Other languages
Chinese (zh)
Other versions
CN113643194B (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.)
Shaanxi Xiyu Non Destructive Testing Co
Xian Technological University
Original Assignee
Shaanxi Xiyu Non Destructive Testing Co
Xian Technological University
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 Shaanxi Xiyu Non Destructive Testing Co, Xian Technological University filed Critical Shaanxi Xiyu Non Destructive Testing Co
Priority to CN202110710209.7A priority Critical patent/CN113643194B/en
Publication of CN113643194A publication Critical patent/CN113643194A/en
Application granted granted Critical
Publication of CN113643194B publication Critical patent/CN113643194B/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
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • 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
    • 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/30152Solder

Landscapes

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

Abstract

The invention relates to a pseudo-color display method for a high-gray-scale welding seam negative film image, which solves the problems of loss of details and difficulty in acquiring required information by human eyes during high-gray-scale image display in the prior art, and can achieve the purpose of keeping the image details without losing precision by using a common civil display for display. The invention comprises the following steps: (1) normalizing the image details to 10-bit depth by using a JET chromatogram which can highlight the image details, updating the color distribution sequence, and obtaining a color distribution curve by using drawing software; (2) taking the color contained in the 10-bit JTE chromatogram as a reference value, carrying out proportional calculation with the high gray-scale image to obtain a color multiple and a color compensation value which need to be amplified, removing an overlapped region generated when each stage is close to 255 in numerical value, carrying out piecewise smooth mapping, and completing the reconstruction of a color mapping table; (3) and the appearance quality of the high-gray-scale welding line image after pseudo-color enhancement is improved through color space conversion.

Description

Pseudo-color display method for high-gray-scale welding seam negative image
The technical field is as follows:
the invention belongs to the technical field of image processing, and relates to a high-gray-scale welding seam negative film image pseudo-color display method.
Background art:
quality certification (GB/T26141.2) for non-destructive inspection-radiographic film digitizing systems specifies the requirement for film digitizing quality levels, in bits representing digital resolution. The digital image is divided into DS, DB and DA levels, most of the pictures used in the field of weld defect detection are DS levels at present, and the DS level images are characterized by full detail information, obvious characteristics and at least 12 bit depth.
The higher the gray scale level of the image is, the more the details of the image can be saved, the more the features are obvious, but in the gray scale image containing a large amount of information, if the brightness difference between adjacent pixels is small, the extraction of the required information from the image has great difficulty for human eyes, especially for the weld image with low overall brightness and contrast.
The current mainstream method of the 12-bit high-gray-scale weld image is to use a medical or drawing special display with high price to achieve the purpose of not losing image details, but the cost is high and the price is more than ten thousand yuan.
The invention content is as follows:
the invention aims to provide a pseudo-color display method for a high-gray-scale welding seam negative film image, which solves the problems of loss of details and difficulty in acquiring required information by human eyes during high-gray-scale image display in the prior art, and can achieve the purpose of keeping the image details from losing precision by using a common civil display for display.
In order to achieve the purpose, the invention adopts the technical scheme that: a pseudo-color display method for a high-gray-scale welding seam negative image is characterized by comprising the following steps: the method comprises the following steps:
(1) normalizing the image details to 10-bit depth by using a JET chromatogram which can highlight the image details, updating the color distribution sequence, and obtaining a color distribution curve by using drawing software;
(2) taking the color contained in the 10-bit JTE chromatogram as a reference value, carrying out proportional calculation with the high gray-scale image to obtain a color multiple and a color compensation value which need to be amplified, removing an overlapped region generated when each stage is close to 255 in numerical value, carrying out piecewise smooth mapping, and completing the reconstruction of a color mapping table;
(3) and the appearance quality of the high-gray-scale welding line image after pseudo-color enhancement is improved through color space conversion.
Further, the step (1) comprises the following steps:
s1, normalizing the JET chromatographic image with the depth of 8 bits to be 10 bits deep;
s2, changing the normalized color arrangement sequence of the color spectrums, wherein the changed sequence comprises 6 stages of deep red, positive yellow, positive green, positive cyan, positive blue and deep blue, and the total number of the colors is increased to 1280;
and S3, checking the color spectrum table after updating the color arrangement sequence through drawing software to obtain the functional relation of color distribution.
Further, the step (2) comprises the following steps:
s1, taking different colors contained in a JET chromatogram with the depth of 10 bits as a reference value, and dividing the reference value by 4096 colors with different depths contained in a 12-bit high gray-scale image to obtain a color multiple needing amplification and a color compensation value of each stage;
s2, removing an overlapping area generated when elements in three channels of each stage R, G, B are close to 255 in value;
and S3, carrying out segmented smooth mapping to complete the reconstruction of the color mapping table.
Further, the step (3) comprises the following steps:
s1, converting the RGB color space into HSV color space;
s2, iteratively accessing the image by the pointer, and changing the numerical value of the H channel;
and S3, converting the HSV color space into the RGB color space.
Compared with the prior art, the invention has the following advantages and effects:
1. the algorithm provided by the invention can ensure that the 12-bit high-gray-scale welding line image is displayed without a professional display, and the purpose of keeping the image details without losing the precision can be achieved by using a common civil display for display. Practical tests prove that the method is simple and effective and has practical feasibility.
2. The invention provides a color mapping table reconstruction algorithm for a high-gray-scale welding seam negative image, and solves the problem that details are lost after the high-gray-scale welding seam negative image is colorized, aiming at the problems that the traditional color mapping algorithm, such as a gray-scale color algorithm, a density layering method, a pixel self-changing method and the like, can cause the loss of welding seam defect information, the darkness of the whole image, the blurring of welding bead boundaries and the like after the high-gray-scale welding seam negative image is colorized.
3. The invention is researched from the sense aspect of human, and finds that human eyes are sensitive to green areas. In order to extract corresponding information from the high-gray-scale welding seam negative image containing a large amount of details, the invention utilizes the intuitiveness of the HSV color space to the color display to change the value of an H channel of the HSV color space, so that the colorized high-gray-scale welding seam image is in the sensitive range of human eyes.
Description of the drawings:
FIG. 1 is a block diagram of the algorithm of the present invention.
The specific implementation mode is as follows:
the present invention will be described in detail with reference to specific embodiments. These examples are intended to illustrate the invention and are not intended to limit the scope of the invention. The implementation conditions used in the examples can be further adjusted according to the specific experimental environment, and the implementation conditions not mentioned are generally the conditions in routine experiments.
Referring to fig. 1, the method of the present invention comprises the steps of: firstly, changing a JET chromatogram normalized to 10-bit depth and a color arrangement sequence, and acquiring a color distribution rule by using professional drawing software; secondly, taking different colors contained in the JET chromatogram with the depth of 10 bits as reference values, performing mathematical operation on the reference values and the number of the colors with different depths contained in the 12-bit high gray-scale image to obtain a color multiple relation and a color compensation value, and modifying the reference values on the basis of the color distribution rule of the JET chromatogram with the depth of 10 bits to complete the reconstruction of a color mapping table; and finally, the appearance quality of the picture is improved by changing the value of the H channel by using the characteristic that the HSV space is more visual to the color expression, and the picture is displayed.
The invention relates to a high gray scale welding seam negative film image pseudo color display method which specifically comprises the following steps:
step 1: acquiring a 10-bit chromatographic color distribution curve, which mainly comprises the following steps:
1) normalizing the 8-bit deep JET chromatogram image to 10-bit depth;
2) changing the normalized color arrangement sequence of the color spectrums;
3) checking the chromatographic chart after updating the color arrangement sequence through drawing software to obtain a functional relation of color distribution;
according to the invention, a JET chromatogram capable of effectively highlighting image details is selected, and the JET chromatogram is amplified to 10-bit depth by a normalization method; secondly, changing the color arrangement sequence of the color spectrum, wherein the changed sequence comprises 6 stages of deep red, positive yellow, positive green, positive cyan, positive blue and deep blue, and the total number of the colors is increased to 1280; and finally, acquiring a color mapping rule by using drawing software.
The innovation point of the invention is that the 8-bit to 12-bit deep amplification is not directly selected, but 8-10-12-bit amplification mode is selected, so as to lay a foundation for subsequent color remapping and maximally retain the precision.
Step 2: the method for reconstructing the color mapping table of the high-gray-scale image mainly comprises the following steps:
1) calculating the color multiple to be compensated;
2) calculating color compensation values of the regions;
3) calculating color compensation values of the regions;
4) and (5) segment smooth mapping.
Firstly, taking different colors contained in a JET chromatogram with the depth of 10 bits as reference values, and dividing the reference values by 4096 colors with different depths contained in a 12-bit high gray-scale image to obtain color multiples needing to be amplified and color compensation values of each stage; then, the overlapping regions generated when the elements in three channels of each stage R, G, B are close to 255 in value are removed; and finally, carrying out segmented smooth mapping to complete the reconstruction of the color mapping table.
The innovation point of the invention is that the change value of each pixel is accessed by regional and sectional iteration by using the multiple relation between the 12-bit image and the 10-bit image.
And step 3: the sensory quality is improved, and the main steps comprise:
1) converting the RGB color space into HSV color space;
2) the pointer iteratively accesses the numerical value of the H channel;
3) the HSV color space is converted to an RGB color space.
The high-gray-scale welding line image contains a large amount of information, the difference between adjacent pixels is small, the color of the background is similar to that of the characteristic region, and the extraction of the required information is difficult for human eyes. The sensitive area of human eyes is green, and in order to improve the sensory quality, the sensitivity of human eyes to the background needs to be weakened, and the sensitivity to the welding seam area needs to be improved. Comparing the RGB color space with the HSV color space, the HSV color space is more intuitive in expression of colors and is suitable for relevant work such as background color processing, and the RGB space is suitable for a display system. The image is converted into HSV color space from RGB color space, the H channel of the image is traversed through the pointer, and the color of the welding line area is located in the sensitive area of human eyes by increasing the numerical value of the H channel.
The above embodiments are merely illustrative of the principles and effects of the present invention, and it will be apparent to those skilled in the art that various changes and modifications can be made without departing from the inventive concept of the present invention, and the scope of the present invention is defined by the appended claims.

Claims (4)

1. A pseudo-color display method for a high-gray-scale welding seam negative image is characterized by comprising the following steps: the method comprises the following steps:
(1) normalizing the image details to 10-bit depth by using a JET chromatogram which can highlight the image details, updating the color distribution sequence, and obtaining a color distribution curve by using drawing software;
(2) taking the color contained in the 10-bit JTE chromatogram as a reference value, carrying out proportional calculation with the high gray-scale image to obtain a color multiple and a color compensation value which need to be amplified, removing an overlapped region generated when each stage is close to 255 in numerical value, carrying out piecewise smooth mapping, and completing the reconstruction of a color mapping table;
(3) and the appearance quality of the high-gray-scale welding line image after pseudo-color enhancement is improved through color space conversion.
2. The high gray scale weld seam negative film image pseudo color display method according to claim 1, characterized in that: the step (1) comprises the following steps:
s1, normalizing the JET chromatographic image with the depth of 8 bits to be 10 bits deep;
s2, changing the normalized color arrangement sequence of the color spectrums, wherein the changed sequence comprises 6 stages of deep red, positive yellow, positive green, positive cyan, positive blue and deep blue, and the total number of the colors is increased to 1280;
and S3, checking the color spectrum table after updating the color arrangement sequence through drawing software to obtain the functional relation of color distribution.
3. The high gray scale weld seam negative film image pseudo color display method according to claim 1 or 2, characterized in that: the step (2) comprises the following steps:
s1, taking different colors contained in a JET chromatogram with the depth of 10 bits as a reference value, and dividing the reference value by 4096 colors with different depths contained in a 12-bit high gray-scale image to obtain a color multiple needing amplification and a color compensation value of each stage;
s2, removing an overlapping area generated when elements in three channels of each stage R, G, B are close to 255 in value;
and S3, carrying out segmented smooth mapping to complete the reconstruction of the color mapping table.
4. The high gray scale weld seam negative film image pseudo color display method according to claim 3, characterized in that: the step (3) comprises the following steps:
s1, converting the RGB color space into HSV color space;
s2, iteratively accessing the image by the pointer, and changing the numerical value of the H channel;
and S3, converting the HSV color space into the RGB color space.
CN202110710209.7A 2021-06-25 2021-06-25 Pseudo-color display method for high-gray-scale welding seam negative image Active CN113643194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110710209.7A CN113643194B (en) 2021-06-25 2021-06-25 Pseudo-color display method for high-gray-scale welding seam negative image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110710209.7A CN113643194B (en) 2021-06-25 2021-06-25 Pseudo-color display method for high-gray-scale welding seam negative image

Publications (2)

Publication Number Publication Date
CN113643194A true CN113643194A (en) 2021-11-12
CN113643194B CN113643194B (en) 2023-03-28

Family

ID=78416176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110710209.7A Active CN113643194B (en) 2021-06-25 2021-06-25 Pseudo-color display method for high-gray-scale welding seam negative image

Country Status (1)

Country Link
CN (1) CN113643194B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011038947A (en) * 2009-08-14 2011-02-24 Lasertec Corp Defect inspection device and image display method
CN105225256A (en) * 2015-06-10 2016-01-06 西安交通大学 A kind of display packing of high gray depth image
CN107918928A (en) * 2017-11-10 2018-04-17 中国科学院上海高等研究院 A kind of color rendition method
WO2018113248A1 (en) * 2016-12-20 2018-06-28 惠科股份有限公司 Display device and method for driving display panel thereof
CN109886214A (en) * 2019-02-26 2019-06-14 中南民族大学 A kind of chirm characteristic strengthening method based on image procossing
CN112051285A (en) * 2020-08-18 2020-12-08 大连理工大学 Intelligent nondestructive detection system integrating X-ray real-time imaging and CT (computed tomography) tomography

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011038947A (en) * 2009-08-14 2011-02-24 Lasertec Corp Defect inspection device and image display method
CN105225256A (en) * 2015-06-10 2016-01-06 西安交通大学 A kind of display packing of high gray depth image
WO2018113248A1 (en) * 2016-12-20 2018-06-28 惠科股份有限公司 Display device and method for driving display panel thereof
CN107918928A (en) * 2017-11-10 2018-04-17 中国科学院上海高等研究院 A kind of color rendition method
CN109886214A (en) * 2019-02-26 2019-06-14 中南民族大学 A kind of chirm characteristic strengthening method based on image procossing
CN112051285A (en) * 2020-08-18 2020-12-08 大连理工大学 Intelligent nondestructive detection system integrating X-ray real-time imaging and CT (computed tomography) tomography

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李志球;梁双华;: "改进的灰度级-彩色变换法在B超图像中的应用" *

Also Published As

Publication number Publication date
CN113643194B (en) 2023-03-28

Similar Documents

Publication Publication Date Title
JP4005904B2 (en) Display device and display method
CN110458831B (en) Scoliosis image processing method based on deep learning
US8594426B2 (en) Color matching using color segmentation
US8842911B2 (en) Luma-based color matching
US20120201450A1 (en) Hue-based color matching
JP5037311B2 (en) Color reproduction system and method
US20140348428A1 (en) Dynamic range-adjustment apparatuses and methods
US20100172576A1 (en) Color Analyzer And Calibration Tool
US8644640B2 (en) Purple fringing artifact reduction within a digital image with guidance from a green channel
CN113132696B (en) Image tone mapping method, image tone mapping device, electronic equipment and storage medium
CN108711160B (en) Target segmentation method based on HSI (high speed input/output) enhanced model
JP2016218991A (en) Image processing device, imaging system, and image processing method
JP2006332908A (en) Color image display apparatus, color image display method, program, and recording medium
CN113643194B (en) Pseudo-color display method for high-gray-scale welding seam negative image
US9043238B2 (en) Data visualization system
Hoarau Reaching a compromise between contextual constraints and cartographic rules: Application to sustainable maps
CN107945176B (en) Color IVOCT imaging method
CN111836103B (en) Anti-occlusion processing system based on data analysis
KR101242069B1 (en) color image compensation method using advanced image formation model
CN104463898A (en) Image identification counting system for logistics platform
US7738139B2 (en) Inking on photographs
WO2020241337A1 (en) Image processing device
CN116309886A (en) Display control method, display control device, electronic equipment and storage medium
KR20130044081A (en) Apparatus and method for enhancing image
Lakshmi et al. Analysis of tone mapping operators on high dynamic range images

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