CN113256631A - Method for improving film reading efficiency and adjusting medical image quality - Google Patents

Method for improving film reading efficiency and adjusting medical image quality Download PDF

Info

Publication number
CN113256631A
CN113256631A CN202110760886.XA CN202110760886A CN113256631A CN 113256631 A CN113256631 A CN 113256631A CN 202110760886 A CN202110760886 A CN 202110760886A CN 113256631 A CN113256631 A CN 113256631A
Authority
CN
China
Prior art keywords
medical
display
adjusting
image
adjustment
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
CN202110760886.XA
Other languages
Chinese (zh)
Other versions
CN113256631B (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.)
Jiangsu Mtiph Photoelectricity Technology Inc
Original Assignee
Jiangsu Mtiph Photoelectricity Technology Inc
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 Jiangsu Mtiph Photoelectricity Technology Inc filed Critical Jiangsu Mtiph Photoelectricity Technology Inc
Priority to CN202110760886.XA priority Critical patent/CN113256631B/en
Publication of CN113256631A publication Critical patent/CN113256631A/en
Application granted granted Critical
Publication of CN113256631B publication Critical patent/CN113256631B/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/0012Biomedical image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • G06T5/73
    • G06T5/90
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • 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/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20192Edge enhancement; Edge preservation
    • 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/30004Biomedical image processing

Abstract

The invention discloses a method for improving film reading efficiency and adjusting medical image quality, which comprises the following steps: s1, inputting an operation signal through a preset medical keyboard, and quickly realizing the starting and control operation of the film reading software in the PC host; s2, outputting pre-adjusting parameters by using a recurrent neural network model preset in the PC host, and pre-adjusting the display image according to the pre-adjusting parameters; s3, inputting parameter adjusting signals of the displayed image by using the function keys and the adjustable knobs of the medical keyboard according to the reading requirements; and S4, the medical display acquires the adjusting signal and adjusts the display image parameters of the display by using the adjusting signal. Has the advantages that: the operation steps of adjusting the PC software and the display screen parameter are integrated on the medical keyboard by utilizing the operable medical keyboard as the basis, so that the effects of opening the software by one key, adjusting the screen parameter by one key, adjusting the image by one key and the like can be realized, and the purposes of simplifying the operation and improving the efficiency are achieved.

Description

Method for improving film reading efficiency and adjusting medical image quality
Technical Field
The invention relates to the technical field of image processing, in particular to a method for improving film reading efficiency and adjusting medical image quality.
Background
With the continuous development of informatization, informatization equipment and software in the medical field are continuously advanced and deepened, and the current medical informatization office equipment is widely applied. In order to restore the real scene of the medical image when the doctor is diagnosing, the doctor often uses some medical software or adjusts the screen parameters of the medical display to achieve the aim in actual operation. In the prior art, the reduction of the real image scene through medical software or screen parameter adjustment requires some tedious and redundant steps, such as:
in the first mode, a series of operations required by medical software are utilized: firstly, finding a desktop icon to open by double-click (or opening by a multi-keyboard shortcut), then finding a path where a medical image file is located and opening, then clicking a corresponding function, and finally operating the image;
in the second way, adjusting the screen parameter requires a series of operations on the display: the method comprises the steps of firstly opening an OSD (on-screen display) menu, then entering each level of menu to find corresponding functions, and then carrying out corresponding function adjustment (which needs to be familiar to the operation of the display function).
However, especially in the medical field, sometimes two methods are used simultaneously for better image diagnosis, and for medical staff, the two methods are used simultaneously, which undoubtedly increases the tedious and redundant operation steps, thereby reducing the work efficiency of the medical staff and failing to meet the diagnosis requirements of the medical staff well.
An effective solution to the problems in the related art has not been proposed yet.
Disclosure of Invention
Aiming at the problems in the related art, the invention provides a method for improving the film reading efficiency and adjusting the medical image quality, so as to overcome the technical problems in the prior related art.
Therefore, the invention adopts the following specific technical scheme:
a method for improving film reading efficiency and adjusting medical image quality comprises the following steps:
s1, inputting an operation signal through a preset medical keyboard, and quickly realizing the starting and control operation of the film reading software in the PC host;
s2, outputting pre-adjusting parameters by using a recurrent neural network model preset in the PC host, and pre-adjusting the display image according to the pre-adjusting parameters;
s3, inputting parameter adjusting signals of the displayed image by using the function keys and the adjustable knobs of the medical keyboard according to the reading requirements;
s4, the medical display collects the adjusting signal and adjusts the image parameters displayed by the display by using the adjusting signal;
in S2, outputting a preset parameter by using a recurrent neural network model preset in the PC host, and pre-adjusting the display image according to the preset parameter includes the following steps:
s21, acquiring a history display image by using the PC host, and acquiring an adjusting parameter of the display image in the medical display;
s22, analyzing the historical display images and the corresponding adjusting parameters, and constructing a recurrent neural network model based on the historical display images and the corresponding adjusting parameters;
s23, acquiring the position information of the display image in the medical display by using the PC host, and inputting the position information into a recurrent neural network model;
s24, outputting pre-adjusting parameters corresponding to the image part information displayed in the medical display by using the recurrent neural network model;
and S25, the PC host acquires the preset parameters output by the recurrent neural network model, and preset the display image in the medical display by using the preset parameters.
Furthermore, the medical keyboard comprises an MCU control circuit, an adjustable knob and a plurality of functional keys, the medical keyboard is connected with the medical display through UART communication of the MCU control circuit, and the medical keyboard is connected with the PC host through a USB interface.
Further, the step of inputting an operation signal through a preset medical keyboard in S1 to quickly realize the start and control operation of the slide reading software in the PC host includes the following steps:
s11, opening the reading software in the desktop fixed area of the medical display and maximizing the window by pressing an opening button in the medical keyboard, wherein the step of the medical keyboard sending a preset data packet simulates manual operation;
wherein, the step of simulating manual operation of the data packet in S11 includes the following steps:
a mouse pointer points to the coordinate range of the display area where the film reading software is located, the film reading software is opened by double-clicking an event, the window of the film reading software is maximized through a shortcut, and a file of a specified path is opened;
s12, by pressing down the corresponding function keys in the medical keyboard, the medical keyboard sends data packets to simulate the operation steps during manual operation, and the control operation of the film reading software is realized;
wherein, the corresponding function keys in the Chinese medicine keyboard of S12 include an exit button, a back button, a screenshot button, an enlargement button, a reduction button, a sharpness button, a light and shade exchange button, a default recovery button and a direction button.
Further, the direction button comprises an upper button, a lower button, a left button and a right button, and the direction button is divided into the following two different states:
in the first state: when only the direction button is pressed, the image translation function step of the data packet sending simulation manual operation is carried out, so that the image translation function is achieved;
in the second state: when other function keys are pressed down, the data packet is sent to simulate the state of the mouse when moving up, down, left and right, so that the function of adjusting the size degree of the software image display parameters on the PC host is achieved.
Further, the S3 adjustment of the display parameters of the medical display includes brightness adjustment of the medical display, contrast adjustment of the medical display, saturation adjustment of the medical display, sharpness adjustment of the medical display, and curve adjustment of the medical display.
Further, the brightness adjustment of the medical display comprises the following steps:
by pressing a brightness adjusting button in the medical keyboard, the medical keyboard informs the medical display to enter backlight brightness adjustment through UART communication;
the adjustable knob is utilized to change the duty ratio or DC value of the backlight control PWM of the medical display, so that the brightness adjustment of the medical display is realized;
the principle formula of the brightness adjustment of the medical display is as follows:
Figure 557924DEST_PATH_IMAGE001
Figure 747597DEST_PATH_IMAGE002
Figure 178578DEST_PATH_IMAGE003
wherein duty is the duty ratio (0-100%) of the PWM waveform, backlightminAs a minimum value of backlight brightnessmaxFor the maximum value of the backlight brightness, backlight ranges from 0 to 2 to the power n, where n is the precision value of PWM, and common PWM precision has 7 bits, 8 bits, 12 bits, 16 bits, and 24 bits.
Further, the contrast adjustment of the medical display comprises the following steps:
by pressing a contrast adjusting button in the medical keyboard, the medical keyboard informs the medical display to enter contrast adjustment through UART communication;
the contrast of the medical display is enhanced or reduced by utilizing the adjustable knob, so that the contrast of the medical display is adjusted;
the contrast adjustment of the display is realized by increasing and decreasing gain and offset of an output image curve, adjusting difference value of image pixels and enhancing image bright-dark contrast effect, and the adjustment formula is as follows:
Figure 744689DEST_PATH_IMAGE004
wherein g (x, y) is the image pixel curve function before adjustment, f (x, y) is the image pixel curve function after adjustment, alpha is the gain value, and beta is the offset value.
Further, the saturation adjustment of the medical display comprises the following steps:
by pressing a saturation adjusting button in the medical keyboard, the medical keyboard informs the medical display of entering saturation adjustment through UART communication;
the saturation of the medical display is enhanced or reduced by utilizing the adjustable knob, so that the saturation adjustment of the medical display is realized;
wherein the adjustment of the saturation comprises the steps of:
converting the RGB color space into YUV color space, the formula is as follows:
Figure 374253DEST_PATH_IMAGE005
in the formula, Y is a brightness signal, U is a color difference G-Y, V is a color difference B-Y, and YUV is respectively related to RGB;
the chromaticity is increased or decreased in equal proportion, and the formula is as follows:
Figure 734827DEST_PATH_IMAGE006
in the formula, r is a chroma adjustment coefficient range;
and after the adjustment is finished, converting the YUV color space into the RGB color space by the following formula:
Figure 121946DEST_PATH_IMAGE007
further, the sharpness adjustment of the medical display comprises the following steps:
by pressing a sharpness adjusting button in the medical keyboard, the medical keyboard informs the medical display to enter sharpness adjustment through UART communication;
the sharpness of the image displayed by the medical display is enhanced or reduced by utilizing the adjustable knob, so that the sharpness adjustment of the image displayed by the medical display is realized;
wherein, the sharpness adjustment of the display image of the medical display is realized by adopting a spatial differentiation method, and the method comprises the following steps:
the gradient G [ f (x, y) ] of the image f (x, y) at the point (x, y) is defined as a two-dimensional column vector:
Figure 773638DEST_PATH_IMAGE008
wherein x and y are color coordinates, 0<x<1,0<y<1,
Figure 664234DEST_PATH_IMAGE009
The derivation symbol T is used as a gradient threshold value;
calculating the amplitude with large gradient to obtain a module value:
Figure 726868DEST_PATH_IMAGE010
the maximum rate of change of the direction of the gradient at f (x, y) is calculated, and the direction angle is expressed as:
Figure 335704DEST_PATH_IMAGE011
the first order backward differences in the x, y directions are defined as:
Figure 509196DEST_PATH_IMAGE012
wherein i and j correspond to x and y coordinate orders, 0<i<1024,0<j<1024, i.e., dividing the x, y range 1024 equally,
Figure 847774DEST_PATH_IMAGE013
is a differential operator;
the gradient is defined as:
Figure 815730DEST_PATH_IMAGE014
the die and direction are respectively:
Figure 911862DEST_PATH_IMAGE015
setting a threshold value T, if the gradient value of the pixel is larger than T, outputting the gray value of the pixel by 0-2 ^ n in a certain value mode, wherein n is the screen color bit number as follows:
Figure 403892DEST_PATH_IMAGE016
and returning the value of the pixel according to the obtained gradient value, and highlighting details by extracting the edge and enhancing the pixel gray value of the pixel coordinate with the large gradient value so as to achieve the aim of sharpening.
Further, the curve adjustment of the medical display comprises the following steps:
by pressing a curve adjusting button in the medical keyboard, the medical keyboard informs the medical display to enter a black-white gradual curve adjusting state through UART communication;
adjusting the corresponding black-white gradual change curve value by using the adjustable knob to realize the adjustment of the black-white gradual change curve;
the image pixel data stored in the frame buffer by the PC host computer can call the LUT to correct the black and white gradual change of the diagnostic image in the process of displaying through the medical display, and the medical image is restored to a real image observed by human eyes, and the correction principle is as follows:
Figure 269080DEST_PATH_IMAGE017
in the formula, out (r, g, b) is a display output curve corrected according to a characteristic curve of the medical display, and input (r, g, b) is an original data curve received by the medical display from an imaging end;
for an n-bit medical display using an RGB color space, the following processing is performed on the output image information data:
Figure 407937DEST_PATH_IMAGE018
(n) the characteristic curve data of the medical display is stored in the first bar of the LUT when the display leaves the factory, the adjustment of the black-white gradual change curve of the diagnostic image is carried out by (1/gamma), which is different from the fixed value (1/gamma) specified in the common display, the adjustment of the medical keyboard can finely adjust the value, and the adjusted and corrected data is put into the fixed area of the LUT for the data correction and calling, so that the doctor can autonomously determine the suitable black-white gradual change value of the diagnostic image in the current scene to carry out the image display effect transformation, and the fine hand adjustable knob operation can generate the detail change of the image to obtain the satisfactory focus display effect to achieve good operation feeling, which is different from the fixed value (1/gamma) specified in the common display, the adjustment of the medical keyboard can finely adjust the value, the adjusting relationship is as follows:
f(x)= γ*k*x/dcMax+γmin;
in the formula, x is the knob value of the current adjustable knob, dcMax is the maximum value of the knob, k is the adjustment coefficient, gamma is the current standard value, and gamma min is the minimum value of the relative standard.
The invention has the beneficial effects that:
1) the operation steps of adjusting the PC software and the display screen are integrated on the medical keyboard by using the operable medical keyboard as the basis, so that the purposes of opening the software by one key, adjusting the screen by one key, adjusting the image by one key and the like are realized, and the purposes of simplifying the operation and improving the efficiency are achieved; in addition, the medical keyboard is matched with the adjustable knob, so that the image on the medical display can be adjusted and controlled, and the high-efficiency adjustment work of the image can be realized.
2) The invention can construct the recurrent neural network model by utilizing the historical display image and the adjusting parameter thereof, and output the pre-adjusting parameter for pre-adjusting by utilizing the recurrent neural network model, thereby being capable of pre-adjusting before the medical staff manually adjusts, thereby not only effectively reducing the workload of the medical staff, but also effectively improving the reading efficiency of the medical staff and better meeting the diagnosis requirement of the medical staff.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a method for improving interpretation efficiency and adjusting medical image quality according to an embodiment of the invention;
fig. 2 is a schematic diagram illustrating a method for improving interpretation efficiency and adjusting medical image quality according to an embodiment of the present invention.
Detailed Description
For further explanation of the various embodiments, the drawings which form a part of the disclosure and which are incorporated in and constitute a part of this specification, illustrate embodiments and, together with the description, serve to explain the principles of operation of the embodiments, and to enable others of ordinary skill in the art to understand the various embodiments and advantages of the invention, and, by reference to these figures, reference is made to the accompanying drawings, which are not to scale and wherein like reference numerals generally refer to like elements.
According to the embodiment of the invention, a method for improving the film reading efficiency and adjusting the medical image quality is provided.
Referring to the drawings and the detailed description, the invention will be further described, as shown in fig. 1-2, a method for improving radiographing efficiency and adjusting medical image quality according to an embodiment of the invention includes the following steps:
s1, inputting an operation signal through a preset medical keyboard, and quickly realizing the starting and control operation of the film reading software in the PC host;
the medical keyboard comprises an MCU control circuit, an adjustable knob and a plurality of functional keys, the medical keyboard is connected with the medical display through UART communication of the MCU control circuit, the medical keyboard is connected with the PC host through a USB interface, icons of the PC host for reading the film software are arranged at fixed positions (coordinates) of a desktop of the medical display, the film reading software arranged in a fixed area on the desktop of the medical display can be quickly operated through medical keyboard operation, the working efficiency is improved, and the operation flow is simplified.
Specifically, the step S1 of inputting an operation signal through a preset medical keyboard to quickly implement the start and control operation of the slide reading software in the PC host includes the following steps:
s11, opening the film reading software in the desktop fixed area of the medical display and maximizing the window by pressing an 'open' button in the medical keyboard and sending a preset data packet by the medical keyboard to simulate the manual operation;
wherein, the step of simulating manual operation of the data packet in S11 includes the following steps:
pointing a mouse pointer to a coordinate range of a display area where the piece reading software is located, opening the piece reading software by double-clicking an event, maximizing a piece reading software window through a shortcut (ALT + SPACE), and opening a file of a specified path (directory);
s12, by pressing down the corresponding function keys in the medical keyboard, the medical keyboard sends data packets to simulate the operation steps during manual operation, and the control operation of the film reading software is realized;
as shown in fig. 2, the corresponding function keys in the keyboard for chinese medicine of S12 include an exit button, a back button, a screen capture button, an enlargement button, a reduction button, a sharpness button, a light and dark change button, a restore default button, and a direction button.
Press the "exit" button: the keyboard sends a shortcut (ALT + F4) for quitting the software operation step when the data packet simulates manual operation, quits the current software and archives the current software;
pressing a 'backward' button: the keyboard sends a data packet to simulate a shortcut key (CTRL + Z) in a step of backing when in manual operation, and the software image is displayed and backed to be in the last state;
pressing a screenshot button: the keyboard sends a shortcut (PRINTSCREEN) when the data packet simulates a manual operation step, and the current interface of the software is subjected to screenshot and stored in a fixed folder;
pressing the 'zoom in' and 'zoom out' buttons: the keyboard simulates the step of manual operation when the data packet is sent, and the software image is displayed and amplified and reduced;
press "sharpness" button: the keyboard simulates the step of manual operation when the data packet is sent, and the acutance of the software display image is adjusted;
pressing a 'light and shade exchange' button: the keyboard simulates the step of manual operation of sending a data packet, and the light and shade gray scales of the software display image are exchanged;
seventhly, pressing a 'restore defaults' button: the keyboard simulates the step of manual operation of sending a data packet, and restores the current display image of the software to the original mode of opening;
the four keys of upper, lower, left and right are divided into two different states, the first state is: when the function key is not pressed down, the image translation function step of simulating manual operation of the sending data packet is carried out, so that the image translation function is achieved; in the second state: when the function key is pressed, the up, down, left and right keys send data packets to simulate the state of the mouse moving up, down, left and right, so as to achieve the function of adjusting the size of the software image display parameters on the PC host;
when the function key is pressed, the keyboard records the current state of the function key, and only when the function key or other function keys are pressed, the current state of the function can be quitted or other states of the function can be carried out;
s2, outputting pre-adjusting parameters by using a recurrent neural network model preset in the PC host, and pre-adjusting the display image according to the pre-adjusting parameters;
in S2, outputting a preset parameter by using a recurrent neural network model preset in the PC host, and pre-adjusting the display image according to the preset parameter includes the following steps:
s21, acquiring a history display image by using the PC host, and acquiring an adjusting parameter of the display image in the medical display;
s22, analyzing the historical display images and the corresponding adjusting parameters, and constructing a recurrent neural network model based on the historical display images and the corresponding adjusting parameters;
s23, acquiring the position information of the display image in the medical display by using the PC host (the position information can also be obtained by the way of manual input by medical staff), and inputting the position information into the recurrent neural network model;
s24, outputting pre-adjusting parameters corresponding to the image part information displayed in the medical display by using the recurrent neural network model;
and S25, the PC host acquires the preset parameters output by the recurrent neural network model, and preset the display image in the medical display by using the preset parameters.
S3, inputting parameter adjusting signals of the displayed image by using the function keys and the adjustable knobs of the medical keyboard according to the reading requirements;
s4, the medical display collects the adjusting signal and adjusts the image parameters displayed by the display by using the adjusting signal;
as shown in fig. 2, the function keys F1-Fn realize key identification through ADC acquisition; the adjustable knob is internally provided with an adjustable resistor, the rotation angle of the knob is identified by acquiring different AD values when the resistance value of the adjustable resistor is adjusted, the range of the minimum value and the maximum value of the resistance value can be set to be 0-100, and the position of the knob is judged according to the current resistance value to determine a gear; the other keys identify the key actions by reading the digital signal ports (basic input and output ports) corresponding to the matrix keyboard.
When the F1-Fn function key is pressed, the medical keyboard module can transmit a data code to the medical display through UART communication in the MCU control circuit, and the medical display can adjust the image parameters displayed by the current display when receiving the data code.
Currently, 5 function keys are defined, which respectively comprise F1-brightness adjustment of a medical display, F2-contrast adjustment of the medical display, F3-saturation adjustment of the medical display, F4-sharpness adjustment of the medical display and F5-curve adjustment of the medical display, the rest function keys are reserved, and parameter values displayed by the medical display can be changed by adjusting a knob after the function keys are pressed.
Specifically, the brightness adjustment of the medical display comprises the following steps:
by pressing a brightness adjusting button (F1) in the medical keyboard, the medical keyboard informs the medical display to enter backlight brightness adjustment through UART communication, and the duty ratio or DC value of the medical display backlight control PWM is changed by utilizing the adjustable knob, so that the brightness adjustment of the medical display is realized;
the principle formula of the brightness adjustment of the medical display is as follows:
Figure 256944DEST_PATH_IMAGE019
Figure 506660DEST_PATH_IMAGE020
Figure 491934DEST_PATH_IMAGE021
wherein duty is the duty ratio (0-100%) of the PWM waveform, backlightminAs a minimum value of backlight brightnessmaxThe backlight brightness is the maximum value, the backlight range is n times of 0 to 2, in fact, n is the precision value of PWM, n is PWM control bit, and the adjusting knob changes the duty value, so as to achieve the backlight brightness adjustment.
The contrast adjustment of the medical display comprises the following steps:
by pressing a contrast adjusting button (F2) in the medical keyboard, the medical keyboard informs the medical display to enter contrast adjustment through UART communication; the contrast change application mentioned for the display is based on that the GAIN (GAIN) and the OFFSET (OFFSET) of the output image curve are increased or decreased to increase the difference value of the image pixels and enhance the contrast effect of the image, so as to realize the contrast adjustment of the medical display, and the specific formula is as follows:
Figure 332851DEST_PATH_IMAGE022
wherein g (x, y) is an image pixel curve function before adjustment, f (x, y) is an image pixel curve function after adjustment, alpha is a gain value, alpha is larger than zero, and the image pixel can be increased or decreased by multiple (alpha < 1) by adjusting alpha, so that the pixel difference between two adjacent pixels is increased. Beta is an offset value, beta can be negative or positive, and increasing or decreasing beta can make the brightness of the pixel point approach to white or black. The adjusted value of the keyboard is the alpha value, and the contrast of the display image of the display can be enhanced and reduced by adjusting the size of the adjusted value.
The saturation adjustment of the medical display comprises the following steps:
by pressing a saturation adjusting button (F3) in the medical keyboard, the medical keyboard informs the medical display to enter saturation adjustment through UART communication; the saturation of the medical display is enhanced or reduced by utilizing the adjustable knob, so that the saturation adjustment of the medical display is realized;
wherein the adjustment of the saturation comprises the steps of:
converting the RGB color space into YUV color space, the formula is as follows:
Figure 403575DEST_PATH_IMAGE023
in the formula, Y is a brightness signal, U is a color difference G-Y, V is a color difference B-Y, and YUV is respectively related to RGB;
the saturation adjustment is to increase or decrease U, V (chroma) proportionally, i.e. multiply by a weight factor, as follows:
Figure 456981DEST_PATH_IMAGE006
in the formula, r is a chroma adjustment coefficient range;
and after the adjustment is finished, converting the YUV color space into the RGB color space by the following formula:
Figure 375390DEST_PATH_IMAGE024
the value adjusted by the keyboard adjustable knob is the weight coefficient, so that the effect of adjusting the saturation is achieved.
The sharpness adjustment of the medical display comprises the following steps:
by pressing a sharpness adjustment button (F4) in the medical keyboard, the medical keyboard informs the medical display to enter sharpness adjustment through UART communication; the sharpness of the image displayed by the medical display is enhanced or reduced by utilizing the adjustable knob, so that the sharpness adjustment of the image displayed by the medical display is realized;
wherein, the sharpness adjustment of the display image of the medical display is realized by adopting a spatial differentiation method, and the method comprises the following steps:
the gradient G [ f (x, y) ] of the image f (x, y) at the point (x, y) is defined as a two-dimensional column vector:
Figure 856050DEST_PATH_IMAGE025
wherein x and y are color coordinates, 0<x<1,0<y<1,
Figure 148491DEST_PATH_IMAGE009
The derivation symbol T is used as a gradient threshold value;
calculating the amplitude with large gradient to obtain a module value:
Figure 536747DEST_PATH_IMAGE026
the maximum rate of change of the direction of the gradient at f (x, y) is calculated, and the direction angle is expressed as:
Figure 231034DEST_PATH_IMAGE011
the first order backward differences in the x, y directions are defined as:
Figure 882595DEST_PATH_IMAGE027
wherein i and j correspond to x and y coordinate orders, 0<i<1024,0<j<1024, i.e., dividing the x, y range 1024 equally,
Figure 193490DEST_PATH_IMAGE028
is a differential operator;
the gradient is defined as:
Figure 588700DEST_PATH_IMAGE029
the die and direction are respectively:
Figure 137493DEST_PATH_IMAGE030
the modulus (amplitude) of the gradient is the amount of increase per unit distance in the direction of the maximum rate of change, the gradient value is large in the edge region where the image gray level change is large, the gradient value is small in the region where the gray level change is gentle, and the gradient value is zero in the region where the gray level change is uniform. Setting a threshold value T, if the gradient value of the pixel is larger than T, outputting the gray value of the pixel by 0-2 ^ n in a certain value mode, wherein n is the screen color bit number as follows:
Figure 756693DEST_PATH_IMAGE016
and returning the value of the pixel according to the obtained gradient value, and highlighting details by extracting the edge and enhancing the pixel gray value of the pixel coordinate with the large gradient value so as to achieve the aim of sharpening. The value of the keyboard adjustment is L (2^ N), which is an integer between 0 and 2^ N, and the edge sharpening degree can be improved or reduced by adjusting the size of the keyboard adjustment value.
The curve adjustment of the medical display comprises the following steps:
by pressing a curve adjusting button (F5) in the medical keyboard, the medical keyboard informs the medical display to enter a black-white gradual curve adjusting state through UART communication; adjusting the corresponding black-white gradual change curve value by using the adjustable knob to realize the adjustment of the black-white gradual change curve;
the image pixel data stored in the frame buffer by the PC host computer can call the LUT to correct the black and white gradual change of the diagnostic image in the process of displaying through the medical display, and the medical image is restored to a real image observed by human eyes as much as possible. At present, different correction curves can be called by the medical display under different use scenes to achieve the aim, and the correction principle is as follows:
Figure 23726DEST_PATH_IMAGE017
wherein out (r, g, b) is the output curve of the display corrected according to the characteristic curve of the display itself, and input (r, g, b) is the raw data curve received by the display from the imaging end. For an n-bit display using an RGB color space, the following processing is performed on the output image information data:
Figure 222626DEST_PATH_IMAGE031
f (n) is the characteristic curve data of the display itself, which is stored in the first bar of the LUT when the display is shipped. The adjustment of the black-white gradual change curve of the diagnostic image is carried out on (1/gamma), which is different from the (1/gamma) specified in a common display as a fixed numerical value, the medical keyboard adjustment can finely adjust the numerical value, and the adjusted and corrected data is put into a fixed area of an LUT (look up table) for data correction and calling, so that a doctor autonomously determines the black-white gradual change value of the diagnostic image suitable in the current scene to carry out image display effect transformation, and generates detailed change of the image through fine hand knob operation to obtain a satisfactory focus display effect, achieve good control feeling, and is different from the (1/gamma) specified in the common display as the fixed numerical value, the medical keyboard adjustment can finely adjust the numerical value, and the adjustment relationship is as follows:
f(x)= γ*k*x/dcMax+γmin;
wherein x is the current knob value, dcMax is the knob maximum value, k is the coefficient of adjustment, γ is the current standard value, and γ min is the minimum value of the relative standard.
In this embodiment, the data code is identified to be consistent with the operation code of the keyboard and the mouse of the general PC host, and the format of the communication code specifically sent is as follows:
Figure 203089DEST_PATH_IMAGE032
setting 1 in Bit0 indicates that the data frame is keyboard data, and the keyboard is standard 8-byte USB keyboard data under the BIOS protocol.
Bit1 sets 1 to indicate that the data frame is relative mouse data, and the relative mouse is 4 bytes of data with fixed resolution (8 Bit): 1 byte Button (Button), 1 byte X-axis offset, 1 byte Y-axis offset, 1 byte Wheel (Wheel); the minimum value of the relative values of the X axis and the Y axis is-127, the maximum value is 127, the positive value and the negative value indicate directions, positive values indicate positive deviation, negative values indicate reverse deviation, and values indicate relative deviation.
Let Bit2 set to 1 indicate that the data frame is absolute mouse data, and the absolute mouse is 7 bytes of data with fixed resolution (10 bits): a 1-byte ID value (fixed value 0X 01), a 1-byte Button (Button), 2-byte X-axis coordinate values, 2-byte Y-axis coordinate values, and a 1-byte Wheel (Wheel); the absolute values of the X axis and the Y axis have a minimum value of 0 and a maximum value of 0X3FF, and represent the coordinate value of the current cursor, i.e., the position of the cursor.
Keyboard data:
Figure 462032DEST_PATH_IMAGE033
the 8-byte keyboard data is keyboard data of the USB standard, and the corresponding key values can be analyzed by referring to a full keyboard code value table.
For example: 57 AB 0100002C 0000000000, indicating a space key press;
57 AB 010000000000000000, indicating key release;
mouse data:
Figure 216362DEST_PATH_IMAGE034
the USB port conforms to the standard HID protocol, a driver is not required to be additionally installed, and the Windows operating system with built-in HID device driver is supported.
In summary, by means of the above technical solution of the present invention, the operational steps of the PC software and the screen parameter adjustment of the display are integrated on the medical keyboard based on the operational medical keyboard, so as to realize the purposes of "one-key software opening", "one-key screen parameter adjustment", "one-key image adjustment", and the like, and achieve the purposes of simplifying the operation and improving the efficiency; in addition, the medical keyboard is matched with the adjustable knob, so that the image on the medical display can be adjusted and controlled, and the high-efficiency adjustment work of the image can be realized.
In addition, the invention can construct the recurrent neural network model by utilizing the historical display image and the adjusting parameter thereof, and output the pre-adjusting parameter to pre-adjust by utilizing the recurrent neural network model, thereby being capable of pre-adjusting before the medical staff manually adjusts, not only effectively reducing the workload of the medical staff, but also effectively improving the reading efficiency of the medical staff and better meeting the diagnosis requirement of the medical staff.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method for improving film reading efficiency and adjusting medical image quality is characterized by comprising the following steps:
s1, inputting an operation signal through a preset medical keyboard, and quickly realizing the starting and control operation of the film reading software in the PC host;
s2, outputting pre-adjusting parameters by using a recurrent neural network model preset in the PC host, and pre-adjusting the display image according to the pre-adjusting parameters;
s3, inputting parameter adjusting signals of the displayed image by using the function keys and the adjustable knobs of the medical keyboard according to the reading requirements;
s4, the medical display collects the adjusting signal and adjusts the image parameters displayed by the display by using the adjusting signal;
in S2, outputting a preset parameter by using a recurrent neural network model preset in the PC host, and pre-adjusting the display image according to the preset parameter includes the following steps:
s21, acquiring a history display image by using the PC host, and acquiring an adjusting parameter of the display image in the medical display;
s22, analyzing the historical display images and the corresponding adjusting parameters, and constructing a recurrent neural network model based on the historical display images and the corresponding adjusting parameters;
s23, acquiring the position information of the display image in the medical display by using the PC host, and inputting the position information into a recurrent neural network model;
s24, outputting pre-adjusting parameters corresponding to the image part information displayed in the medical display by using the recurrent neural network model;
and S25, the PC host acquires the preset parameters output by the recurrent neural network model, and preset the display image in the medical display by using the preset parameters.
2. The method for improving reading efficiency and adjusting medical image quality according to claim 1, wherein the medical keyboard comprises an MCU control circuit, an adjustable knob and a plurality of functional keys, the medical keyboard is connected with the medical display through UART communication of the MCU control circuit, and the medical keyboard is connected with the PC host through a USB interface.
3. The method for improving reading efficiency and adjusting medical image quality as claimed in claim 1, wherein the step of inputting an operation signal through a preset medical keyboard in S1 to quickly implement the startup and control operation of reading software in the PC host includes the following steps:
s11, opening the reading software in the desktop fixed area of the medical display and maximizing the window by pressing an opening button in the medical keyboard, wherein the step of the medical keyboard sending a preset data packet simulates manual operation;
wherein, the step of simulating manual operation of the data packet in S11 includes the following steps:
a mouse pointer points to the coordinate range of the display area where the film reading software is located, the film reading software is opened by double-clicking an event, the window of the film reading software is maximized through a shortcut, and a file of a specified path is opened;
s12, by pressing down the corresponding function keys in the medical keyboard, the medical keyboard sends data packets to simulate the operation steps during manual operation, and the control operation of the film reading software is realized;
wherein, the corresponding function keys in the Chinese medicine keyboard of S12 include an exit button, a back button, a screenshot button, an enlargement button, a reduction button, a sharpness button, a light and shade exchange button, a default recovery button and a direction button.
4. The method for improving interpretation efficiency and adjusting medical image quality as claimed in claim 3, wherein the direction buttons comprise an upper button, a lower button, a left button and a right button, and the direction buttons are divided into two different states:
in the first state: when only the direction button is pressed, the image translation function step of the data packet sending simulation manual operation is carried out, so that the image translation function is achieved;
in the second state: when other function keys are pressed down, the data packet is sent to simulate the state of the mouse when moving up, down, left and right, so that the function of adjusting the size degree of the software image display parameters on the PC host is achieved.
5. The method of claim 1, wherein the display parameter adjustment of the medical display in S3 includes brightness adjustment of the medical display, contrast adjustment of the medical display, saturation adjustment of the medical display, sharpness adjustment of the medical display, and curve adjustment of the medical display.
6. The method for improving interpretation efficiency and adjusting medical image quality as claimed in claim 5, wherein the brightness adjustment of the medical display comprises the following steps:
by pressing a brightness adjusting button in the medical keyboard, the medical keyboard informs the medical display to enter backlight brightness adjustment through UART communication;
the adjustable knob is utilized to change the duty ratio or DC value of the backlight control PWM of the medical display, so that the brightness adjustment of the medical display is realized;
the principle formula of the brightness adjustment of the medical display is as follows:
Figure DEST_PATH_IMAGE001
Figure 808481DEST_PATH_IMAGE002
Figure DEST_PATH_IMAGE003
where duty is the duty of the PWM waveform, backlightminAs a minimum value of backlight brightnessmaxFor the maximum value of the backlight brightness, backlight ranges from 0 to 2 to the power n, where n is the precision value of PWM, and common PWM precision has 7 bits, 8 bits, 12 bits, 16 bits, and 24 bits.
7. The method for improving interpretation efficiency and adjusting medical image quality as claimed in claim 5, wherein the contrast adjustment of the medical display comprises the following steps:
by pressing a contrast adjusting button in the medical keyboard, the medical keyboard informs the medical display to enter contrast adjustment through UART communication;
the contrast of the medical display is enhanced or reduced by utilizing the adjustable knob, so that the contrast of the medical display is adjusted;
the contrast adjustment of the display is realized by increasing and decreasing gain and offset of an output image curve, adjusting difference value of image pixels and enhancing image bright-dark contrast effect, and the adjustment formula is as follows:
Figure 562941DEST_PATH_IMAGE004
wherein g (x, y) is the image pixel curve function before adjustment, f (x, y) is the image pixel curve function after adjustment, alpha is the gain value, and beta is the offset value.
8. The method for improving interpretation efficiency and adjusting medical image quality as claimed in claim 5, wherein the saturation adjustment of the medical display comprises the following steps:
by pressing a saturation adjusting button in the medical keyboard, the medical keyboard informs the medical display of entering saturation adjustment through UART communication;
the saturation of the medical display is enhanced or reduced by utilizing the adjustable knob, so that the saturation adjustment of the medical display is realized;
wherein the adjustment of the saturation comprises the steps of:
converting the RGB color space into YUV color space, the formula is as follows:
Figure DEST_PATH_IMAGE005
in the formula, Y is a brightness signal, U is a color difference G-Y, and V is a color difference B-Y;
the chromaticity is increased or decreased in equal proportion, and the formula is as follows:
Figure 473129DEST_PATH_IMAGE006
in the formula, r is a chroma adjustment coefficient range;
and after the adjustment is finished, converting the YUV color space into the RGB color space by the following formula:
Figure DEST_PATH_IMAGE007
9. the method for improving interpretation efficiency and adjusting medical image quality as claimed in claim 5, wherein the sharpness adjustment of the medical display comprises the following steps:
by pressing a sharpness adjusting button in the medical keyboard, the medical keyboard informs the medical display to enter sharpness adjustment through UART communication;
the sharpness of the image displayed by the medical display is enhanced or reduced by utilizing the adjustable knob, so that the sharpness adjustment of the image displayed by the medical display is realized;
wherein, the sharpness adjustment of the display image of the medical display is realized by adopting a spatial differentiation method, and the method comprises the following steps:
the gradient G [ f (x, y) ] of the image f (x, y) at the point (x, y) is defined as a two-dimensional column vector:
Figure 929518DEST_PATH_IMAGE008
wherein x and y are color coordinates, 0<x<1,0<y<1,
Figure DEST_PATH_IMAGE009
The derivation symbol T is used as a gradient threshold value;
calculating the amplitude with large gradient to obtain a module value:
Figure 888247DEST_PATH_IMAGE010
the maximum rate of change of the direction of the gradient at f (x, y) is calculated, and the direction angle is expressed as:
Figure DEST_PATH_IMAGE011
the first order backward differences in the x, y directions are defined as:
Figure 480902DEST_PATH_IMAGE012
wherein i and j correspond to x and y coordinate orders, 0<i<1024,0<j<1024, i.e., dividing the x, y range 1024 equally,
Figure DEST_PATH_IMAGE013
is a differential operator;
the gradient is defined as:
Figure 545679DEST_PATH_IMAGE014
the die and direction are respectively:
Figure DEST_PATH_IMAGE015
setting a threshold value T, if the gradient value of the pixel is larger than T, outputting the gray value of the pixel by 0-2 ^ n in a certain value mode, wherein n is the screen color bit number as follows:
Figure 489364DEST_PATH_IMAGE016
and returning the value of the pixel according to the obtained gradient value, and highlighting details by extracting the edge and enhancing the pixel gray value of the pixel coordinate with the large gradient value so as to achieve the aim of sharpening.
10. The method for improving interpretation efficiency and adjusting medical image quality as claimed in claim 5, wherein the curve adjustment of the medical display comprises the following steps:
by pressing a curve adjusting button in the medical keyboard, the medical keyboard informs the medical display to enter a black-white gradual curve adjusting state through UART communication;
adjusting the corresponding black-white gradual change curve value by using the adjustable knob to realize the adjustment of the black-white gradual change curve;
the image pixel data stored in the frame buffer by the PC host computer can call the LUT to correct the black and white gradual change of the diagnostic image in the process of displaying through the medical display, and the medical image is restored to a real image observed by human eyes, and the correction principle is as follows:
Figure DEST_PATH_IMAGE017
in the formula, out (r, g, b) is a display output curve corrected according to a characteristic curve of the medical display, and input (r, g, b) is an original data curve received by the medical display from an imaging end;
for an n-bit medical display using an RGB color space, the following processing is performed on the output image information data:
Figure 48521DEST_PATH_IMAGE018
f (n) is the characteristic curve data of the medical display, the data is stored in the first bar of the LUT when the display leaves the factory, the adjustment of the black-white gradual change curve of the diagnosis image is performed on 1/gamma, unlike the fixed value of 1/gamma specified in the common display, the medical keyboard can adjust the value to be fine-tuned, and the data after adjustment and correction is put into the fixed area of the LUT for data correction and calling, therefore, the doctor can decide the black and white gradual change value of the diagnostic image suitable for the current scene to perform image display effect transformation, but also generates the detail change of the image through the fine operation of the hand adjustable knob, obtains the satisfactory focus display effect, achieves the good control feeling, unlike the fixed value of 1/gamma specified in the common display, the medical keyboard can adjust the value to be fine-tuned, and the adjustment relationship is as follows:
f(x)= γ*k*x/dcMax+γmin;
in the formula, x is the knob value of the current adjustable knob, dcMax is the maximum value of the knob, k is the adjustment coefficient, γ is the current standard value, and γ min is the minimum value of the relative standard.
CN202110760886.XA 2021-07-06 2021-07-06 Method for improving film reading efficiency and adjusting medical image quality Active CN113256631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110760886.XA CN113256631B (en) 2021-07-06 2021-07-06 Method for improving film reading efficiency and adjusting medical image quality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110760886.XA CN113256631B (en) 2021-07-06 2021-07-06 Method for improving film reading efficiency and adjusting medical image quality

Publications (2)

Publication Number Publication Date
CN113256631A true CN113256631A (en) 2021-08-13
CN113256631B CN113256631B (en) 2021-10-01

Family

ID=77190785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110760886.XA Active CN113256631B (en) 2021-07-06 2021-07-06 Method for improving film reading efficiency and adjusting medical image quality

Country Status (1)

Country Link
CN (1) CN113256631B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114724520A (en) * 2022-04-13 2022-07-08 南京巨鲨显示科技有限公司 Self-adaptive brightness adjustment method for gray-scale medical image

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070115391A1 (en) * 2005-11-22 2007-05-24 Gateway Inc. Automatic launch of picture-in-picture during commercials
CN107527361A (en) * 2017-08-28 2017-12-29 合肥融视信息科技有限公司 Image display system and display methods based on nuclear magnetic resonance image fusion display
CN110971870A (en) * 2019-10-25 2020-04-07 富盛科技股份有限公司 Data processing method and system for image display

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070115391A1 (en) * 2005-11-22 2007-05-24 Gateway Inc. Automatic launch of picture-in-picture during commercials
CN107527361A (en) * 2017-08-28 2017-12-29 合肥融视信息科技有限公司 Image display system and display methods based on nuclear magnetic resonance image fusion display
CN110971870A (en) * 2019-10-25 2020-04-07 富盛科技股份有限公司 Data processing method and system for image display

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114724520A (en) * 2022-04-13 2022-07-08 南京巨鲨显示科技有限公司 Self-adaptive brightness adjustment method for gray-scale medical image
CN114724520B (en) * 2022-04-13 2024-02-20 南京巨鲨显示科技有限公司 Luminance self-adaptive adjustment method for gray-scale medical image

Also Published As

Publication number Publication date
CN113256631B (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN107395898B (en) Shooting method and mobile terminal
EP1441308B1 (en) Information processing system for displaying image on information terminal
US20110090257A1 (en) Touch Display Device, Touch Display System, and Method for Adjusting Touch Area Thereof
CN111654635A (en) Shooting parameter adjusting method and device and electronic equipment
US10244218B2 (en) Image processing apparatus, image processing system, image processing method, and non-transitory computer readable medium
WO2006049290A1 (en) Image processing apparatus and image processing method
US9997133B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
EP4006825A1 (en) Image processing method and apparatus, computing device, and storage medium
WO2011081362A2 (en) Image-color-correcting method using a multi-touch screen
WO2019134491A1 (en) Method and apparatus for processing image
CN113256631B (en) Method for improving film reading efficiency and adjusting medical image quality
AU2014268148A1 (en) Image processing apparatus, and program
EP2284800A1 (en) Method and system for creating an image
WO2022218245A1 (en) Image processing method and apparatus, electronic device, and readable storage medium
WO2023056950A1 (en) Image processing method and electronic device
US8502882B2 (en) Image pick-up apparatus, white balance setting method and recording medium
JP4849302B2 (en) Display control apparatus, display control method, and program
JP2010091723A (en) Video signal processing system and method therefor
WO2018119787A1 (en) Demosaicing method and device
EP4287129A1 (en) Image processing method and electronic device
US20210358451A1 (en) Video reproduction system, video reproduction device, and calibration method for video reproduction system
US11580624B2 (en) Image processing system, image processing apparatus, and non-transitory computer readable medium
WO2024051110A1 (en) Color data processing method and apparatus, light source system, device, and storage medium
WO2023038307A1 (en) Image generation using non-linear scaling and tone-mapping based on cubic spline curves
JP5180569B2 (en) Camera control device, camera control method, camera system, and program

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