WO2022000975A1 - Image processing method and apparatus for stereoscopic endoscope, and storage medium - Google Patents
Image processing method and apparatus for stereoscopic endoscope, and storage medium Download PDFInfo
- Publication number
- WO2022000975A1 WO2022000975A1 PCT/CN2020/132541 CN2020132541W WO2022000975A1 WO 2022000975 A1 WO2022000975 A1 WO 2022000975A1 CN 2020132541 W CN2020132541 W CN 2020132541W WO 2022000975 A1 WO2022000975 A1 WO 2022000975A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image data
- target
- component
- image
- preset
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/20—Image signal generators
- H04N13/257—Colour aspects
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B1/00—Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
- A61B1/00002—Operational features of endoscopes
- A61B1/00004—Operational features of endoscopes characterised by electronic signal processing
- A61B1/00009—Operational features of endoscopes characterised by electronic signal processing of image signals during a use of endoscope
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B1/00—Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
- A61B1/00163—Optical arrangements
- A61B1/00193—Optical arrangements adapted for stereoscopic vision
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B1/00—Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
- A61B1/04—Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor combined with photographic or television appliances
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/10—Processing, recording or transmission of stereoscopic or multi-view image signals
- H04N13/106—Processing image signals
- H04N13/133—Equalising the characteristics of different image components, e.g. their average brightness or colour balance
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/10—Processing, recording or transmission of stereoscopic or multi-view image signals
- H04N13/106—Processing image signals
- H04N13/15—Processing image signals for colour aspects of image signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/20—Image signal generators
- H04N13/204—Image signal generators using stereoscopic image cameras
- H04N13/239—Image signal generators using stereoscopic image cameras using two 2D image sensors having a relative position equal to or related to the interocular distance
Definitions
- the present application relates to the technical field of image processing, and in particular, to an image processing method of a stereoscopic endoscope, an image processing device, and a computer-readable storage medium.
- Endoscopes are widely used in medical and industrial fields. For example, in an endoscope system in the medical field, a doctor performs an endoscopic examination on a patient or performs a minimally invasive surgery through an image obtained by an endoscope. In the endoscope system in the industrial field, the observer inspects the interior of various machines, equipment, etc. through the images acquired by the endoscope, without disassembling or destroying the inspected object.
- Stereoscopic endoscope due to the influence of factors such as sensor, lens, light source position, manufacturing and assembly, may cause the image color of the two sensors of the stereoscopic endoscope to be inconsistent, thereby causing visual discomfort to the operator.
- the main purpose of the present application is to provide an image processing method, an image processing device and a computer-readable storage medium for a stereoscopic endoscope, which aims to solve the problem that the image colors of the two sensors of the existing stereoscopic endoscope are inconsistent, causing the operator to Technical issues with visual discomfort.
- the present application provides an image processing method for a stereoscopic endoscope, and the image processing method for a stereoscopic endoscope includes:
- first image data and second image data are obtained by shooting a preset calibration plate with the first camera and the second camera of the stereoscopic endoscope respectively;
- the color components in the first image data and the second image data and the target components corresponding to the first image data and the second image data, and the first group is calculated according to the color components and the target components Correction parameters and the second group of correction parameters;
- the first target image of the current target object obtained by the first camera is corrected according to the first set of correction parameters
- the first target image of the current target object obtained by the second camera is corrected according to the second set of correction parameters. Two target images are corrected.
- the steps of calculating the target component to obtain the first set of correction parameters and the second set of correction parameters include:
- the ratio between the target component and the color component of the second image data is calculated to obtain the second set of correction parameters.
- the steps of calculating the target component to obtain the first set of correction parameters and the second set of correction parameters include:
- a first set of correction parameters is obtained by calculation, and a second set of correction parameters is calculated and obtained according to the equalization component and the components of the second image data.
- the step of calculating the equalized component according to the first target component and the second target component includes:
- the equalization component is calculated and obtained according to the first preset equalization scale coefficient, the second preset equalization scale coefficient, the first target component, and the second target component.
- the step of calculating the equalization component according to the first preset equalization scale coefficient, the second preset equalization scale coefficient, the first target component, and the second target component includes:
- a sum of the first product and the second product is calculated to obtain the equalized component.
- the image processing method of the stereoscopic endoscope further comprises:
- the first preset equalization scale factor is greater than the second preset equalization scale factor ; if the first difference is greater than the second difference, the second preset equalization scale factor is greater than the first preset equalization scale factor; if the first difference is equal to the second difference value, the first preset equalization scale coefficient is equal to the second preset equalization scale coefficient.
- the first target image of the current target object acquired by the first camera is corrected according to the first set of correction parameters, and the The steps of correcting the second target image of the current target object include:
- the color components are any of RGB values, HSV values, HSI values, CMYK values, HSL values, HSB values, Ycc values, XYZ values, Lab values, and YUV values corresponding to different color models.
- the present application also provides an image processing device, which includes a memory, a processor, and an image processing program for a stereoscopic endoscope that is stored in the memory and can run on the processor. ;
- the image processing program of the stereoscopic endoscope when executed by the processor, implements the steps of the method as described above.
- the present application also provides a computer-readable storage medium, where an image processing program of a stereoscopic endoscope is stored on the computer-readable storage medium, and the image processing program of the stereoscopic endoscope is executed by a processor The steps of realizing the image processing method of the image processing apparatus as described above.
- the image processing method, image processing device and computer-readable storage medium of a stereoscopic endoscope provided by the present application by acquiring first image data and second image data, the first image data and the second image data are respectively represented by The first camera and the second camera of the stereoscopic endoscope are obtained by shooting a preset calibration plate, and then the color components in the first image data and the second image data and the color components in the first image data and the second image data and the first image data and the color components are obtained.
- the target component corresponding to the second image data, and the first set of correction parameters and the second set of correction parameters are calculated according to the color component and the target component, and finally obtained from the first camera according to the first set of correction parameters
- the first target image of the current target object is corrected
- the second target image of the current target object obtained by the second camera is corrected according to the second set of correction parameters.
- FIG. 1 is a schematic diagram of a hardware structure of an image processing apparatus provided by an embodiment of the present application.
- FIG. 2 is a schematic flowchart of an embodiment of an image processing method for a stereoscopic endoscope of the present application
- FIG. 3 is a schematic diagram of the refinement flow of the first embodiment of step S2 in FIG. 2;
- FIG. 4 is a schematic diagram of the refinement process of the second embodiment of step S2 in FIG. 2;
- FIG. 5 is a schematic diagram of the refinement process of step S27 in FIG. 4;
- FIG. 6 is a schematic diagram of the refinement process of step S272 in FIG. 5;
- FIG. 7 is a schematic diagram of the refinement flow of step S3 in FIG. 2 .
- FIG. 1 is a schematic diagram of a hardware structure of an image processing apparatus according to an embodiment of the present application.
- the image processing apparatus may include: a processor 1001 , such as a CPU, a communication bus 1002 , a user interface 1003 , a network interface 1004 , and a memory 1005 .
- the communication bus 1002 is used to realize the connection and communication between these components;
- the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard);
- the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface);
- the memory 1005 can be a high-speed RAM memory, or a non-volatile memory, such as a disk memory, and the memory 1005 can optionally be a storage device independent of the aforementioned processor 1001 .
- FIG. 1 does not constitute a limitation on the image processing apparatus, and may include more or less components than the one shown, or combine some components, or arrange different components.
- the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and an image processing program.
- the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can be used to call the image processing program stored in the memory 1005, and perform the following operations :
- first image data and second image data are respectively obtained by shooting a preset calibration plate with the first camera and the second camera of the stereoscopic endoscope;
- the first target image of the current target object obtained by the first camera is corrected according to the first set of correction parameters
- the first target image of the current target object obtained by the second camera is corrected according to the second set of correction parameters. Two target images are corrected.
- the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
- the ratio between the target component and the color component of the second image data is calculated to obtain the second set of correction parameters.
- the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
- a first set of correction parameters is obtained by calculation, and a second set of correction parameters is calculated and obtained according to the equalization component and the components of the second image data.
- the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
- the equalization component is calculated and obtained according to the first preset equalization scale coefficient, the second preset equalization scale coefficient, the first target component, and the second target component.
- the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
- a sum of the first product and the second product is calculated to obtain the equalized component.
- the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
- the first preset equalization scale factor is greater than the second preset equalization scale factor ; if the first difference is greater than the second difference, the second preset equalization scale factor is greater than the first preset equalization scale factor; if the first difference is equal to the second difference value, the first preset equalization scale coefficient is equal to the second preset equalization scale coefficient.
- the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
- the present application provides an image processing method for a stereoscopic endoscope, including the following steps:
- Step S1 acquiring first image data and second image data, the first image data and the second image data are respectively obtained by shooting a preset calibration plate with the first camera and the second camera of the stereoscopic endoscope;
- Step S2 Acquire the color components in the first image data and the second image data and the target components corresponding to the first image data and the second image data, and according to the color components and the Calculate the target component to obtain the first set of correction parameters and the second set of correction parameters;
- the stereoscopic endoscope has a first camera and a second camera and two left and right cameras.
- the stereoscopic endoscope may also have three or more cameras, and the specific number of cameras may be reasonably set according to actual needs. It can be understood that when the stereoscopic endoscope has multiple cameras, multiple cameras shoot the preset calibration plate, and multiple corresponding image data can be obtained, and the corresponding image processing method is basically the same as the method with two left and right cameras. .
- the first image data may be the first frame image obtained by the first camera of the stereoscopic endoscope shooting the preset calibration plate, or may be the Nth frame image; the second image data may be the stereoscopic image data.
- the first frame of image obtained by the second camera of the endoscope shooting the preset calibration board may also be the Nth frame of image.
- the image data captured by the first camera can be compared with the image data captured by the second camera. If the difference between the two does not exceed a preset ratio range such as 10%, it can be determined
- the image data currently captured by the first and second cameras are the first image data and the second image data, respectively. If the difference between the two ranges from 10% to 30%, the Nth frame image can be selected. If the difference between the two exceeds a preset ratio range such as 30%, it may indicate that the camera of the stereoscopic endoscope is faulty.
- first camera and the second camera of the stereoscopic endoscope may simultaneously photograph the preset calibration plate, or may successively photograph the preset calibration plates to obtain the corresponding first image data. and the second image data.
- the solution of the present application does not limit the time sequence in which the first camera and the second camera respectively shoot the preset calibration board.
- the color components may be any of RGB values, HSV values, HSI values, CMYK values, HSL values, HSB values, Ycc values, XYZ values, Lab values, and YUV values corresponding to different color models.
- the image data may include information such as color components, pixel values, grayscale values, saturation, brightness, and contrast. That is, the image data may be at least one of the above-mentioned pieces of information.
- the obtained first image data and second image data of a stereoscopic endoscope are usually not identical.
- the solution of the present application mainly corrects the color components of the first image data and the second image data, so that the colors of the images obtained by the first and second cameras of the stereoscopic endoscope are consistent.
- other parameters such as saturation and contrast in the image data may also be corrected together, so that different image data obtained by different cameras of the stereoscopic endoscope tend to be consistent, thereby improving the operation. visual comfort.
- the target components of the first image data and the second image data may be the same or different.
- the target component may be determined according to one of the color components of the first image data, may also be determined according to one of the color components of the second image data, or may be determined according to one of the color components of the first image data.
- the component and one of the color components of the second image data are comprehensively determined. The details will be described in detail below, and will not be repeated here.
- the corresponding correction parameters are a set of parameters.
- the corresponding target components are also R, G, and B.
- the calculated correction parameters are a set of parameters ⁇ R, G, B ⁇ .
- the calculation method of the correction parameter may be: calculating the ratio between the target component and the color component; also calculating the ratio between the color component and the target component; or calculating the ratio between the target component and the target component.
- the calculation methods of the correction parameters are not limited to the above listed situations, and other reasonable calculation methods can also be selected according to actual needs.
- Step S3 correcting the first target image of the current target object obtained by the first camera according to the first set of correction parameters, and correcting the current target obtained by the second camera according to the second set of correction parameters.
- the second target image of the real object is corrected.
- the current target object may be an object corresponding to different application scenarios.
- the current target object may be a detected object inside various machines or equipment; in medical surgery
- the current target object may be the affected tissue of the patient.
- the order of correcting the first target image acquired by the first camera and correcting the second target image acquired by the second camera in the present application is not limited. Specifically, when the corresponding correction parameters and the target image are obtained, the corresponding correction process can be executed; the corresponding correction process can also be executed simultaneously; or the corresponding calibration process can be executed sequentially in a preset order.
- the specific correction method corresponds to the method of calculating the correction parameter.
- the correction parameter is the ratio between the target component and the color component
- the feature data corresponding to the color components in the target image, and then calculate the product between the feature data and the correction parameter.
- the correction parameter is the difference between the target component and the color component
- the feature data corresponding to the color component in the target image is obtained, The sum between the characteristic data and the correction parameter is then calculated.
- other reasonable correction manners may also be used, and the present application is not limited to the manners listed above.
- the image processing method for a stereoscopic endoscope by acquiring first image data and second image data, the first image data and the second image data are respectively obtained by the first camera of the stereoscopic endoscope and the second image data.
- the two cameras are obtained by shooting a preset calibration board, and then the color components in the first image data and the second image data and the target components corresponding to the first image data and the second image data are obtained, and
- the first set of correction parameters and the second set of correction parameters are calculated according to the color components and the target components, and finally the first target image of the current target object acquired by the first camera is processed according to the first set of correction parameters.
- Correction is performed, and the second target image of the current target object acquired by the second camera is corrected according to the second set of correction parameters. In this way, different image data obtained by different cameras of the stereoscopic endoscope can be made consistent, thereby improving the visual comfort of the operator.
- the step S2 includes:
- Step S21 acquiring color components in the first image data and the second image data
- the color components in the whole text below are described by taking RGB values as an example. It is assumed that the acquired color component RGB values in the first image data are (200, 180, 210), and the acquired color component RGB values in the second image data are (190, 200, 220). It should be understood that the specific numerical values listed in the following full text are only used to help the understanding of the solution of the present application, and do not play a specific limiting role.
- Step S22 determine the target component according to the color component of the first image data or the color component of the second image data
- the target component may be determined according to the color component of the first image data or the color component of the second image data.
- the color component of the first image data can be preset as the target component.
- the color component RGB has three R, G, and B components component
- one of the components can be preset: if the G value of the first image data is preset as the target component, in this case, the corresponding target component is (180, 180, 180); it can also be preset as The color component of the second image data is the target component.
- the R value of the second image data is set as the target component by default.
- the corresponding target component is (190, 190, 190). It can also be selected by the operator according to his own preferences. Therefore, the operator can choose according to actual needs. For example, when a more vivid red color is required, the R component can be selected as the target component.
- the R, G, and B values of the preset calibration plate are all known. Therefore, the R, G, and B values corresponding to each color component in the image data and the preset calibration board can be compared respectively, the difference value of each color component can be calculated, and the color component with the smallest difference value can be selected as the target component. .
- the target component can be directly determined to be (200, 200, 200) .
- the target component can be directly determined to be (190, 190, 190) .
- Step S23 calculating the ratio between the target component and the color component of the first image data to obtain the first set of correction parameters
- K L0 (1, 10/9, 20/21).
- Step S24 Calculate the ratio between the target component and the color component of the second image data to obtain the second set of correction parameters.
- K R0 (20/19, 1, 10/11).
- the step S2 includes:
- Step S25 acquiring color components in the first image data and the second image data
- the color component RGB values in the acquired first image data are (200, 180, 210), and the acquired color component RGB values in the second image data are (190, 200) , 220). It should be understood that the specific numerical values listed are only for helping the understanding of the solution of the present application, and do not play a specific limiting role.
- Step S26 Determine a first target component corresponding to the first image data according to the color component of the first image data, and determine a second target component corresponding to the second image data according to the color component of the second image data.
- target component
- the color component of the first image data may be preset as the first target component
- the color component of the second image data may be preset as the second target component.
- the color component RGB has three components of R, G, and B
- one of the components may be preset: if the value of G of the first image data is preset as the first target component, at this time, the corresponding The target component is (180, 180, 180); it is also possible to preset the color component of the second image data as the target component, for example, the R value of the second image data is preset as the target component, at this time, the corresponding The second target component is (190, 190, 190).
- the operator may also select any color component in the first image data as the first target component and any color component in the second image data as the second target component according to his own preferences. For example, when a more vivid red color is required, the R component in the first image data may be selected as the first target component, and the R component in the second image data may be selected as the second target component.
- the R, G, and B values of the preset calibration plate are all known. Therefore, the R, G, and B values corresponding to each color component in the first image data and the preset calibration board can be compared respectively, the difference value of each color component can be calculated, and the color component with the smallest difference value can be selected as the the first target component; similarly, the R, G, and B values corresponding to each color component in the second image data and the preset calibration board can be compared respectively, and the difference value of each color component can be calculated, and therefrom. The color component with the smallest difference is selected as the second target component.
- the R value of the color component in the first image data is 200 and the R value of the preset calibration board is the smallest ( is 0)
- the first target component is (200, 200, 200)
- the color component G value in the second image data is 200 and the G value of the preset calibration board is the smallest difference (for 0)
- the second target component can be determined to be (200, 200, 200).
- Step S27 calculating the equalization component according to the first target component and the second target component
- an equalized component of the first target component and the second target component may be calculated and obtained.
- weight coefficients corresponding to the first target component and the second target component can be assigned respectively, and the magnitude relationship between the two weight coefficients can be preset, or multiple options can be provided for the operator to choose, or Calculated.
- an average value between the first target component and the second target component may also be calculated, and the obtained average value is the equalized component.
- the step S27 further includes:
- Step S271 Obtain a first preset equalization scale coefficient corresponding to the first image data and a second preset equalization scale coefficient corresponding to the second image data, where the first preset equalization parameter is the same as the first preset equalization scale coefficient.
- the sum of the two preset equalization parameters is the preset value;
- Step S272 Calculate and obtain the equalization component according to the first preset equalization scale coefficient, the second preset equalization scale coefficient, the first target component, and the second target component.
- a first preset equalization scale coefficient K 1 corresponding to the first image data and a second preset equalization scale coefficient K 2 corresponding to the second image data are obtained.
- the sum of the first preset equalization parameter and the second preset equalization parameter is a preset value, and the preset value may be 1 or other reasonable values.
- K 1 +K 2 1, and the values of K 1 and K 2 can be reasonably set according to actual needs.
- the equalization component RGB R1 is calculated and obtained according to the first preset equalization scale coefficient K 1 , the second preset equalization scale coefficient K 2 , the first target component RGB L1 , and the second target component, and the calculated Describe the equalized component RGB A .
- the magnitude relationship between the first preset equalization scale coefficient K 1 and the second preset equalization scale coefficient K 2 corresponding to the second image data may be determined in the following manner:
- the preset color component of the predetermined calibration plate calculate the first difference between the first target component and the preset color component of the preset calibration plate, and calculate the second target component and the preset color component. calibrating the second difference between the preset color components of the board; comparing the magnitude of the first difference and the second difference; if the first difference is smaller than the second difference, the first difference
- the preset equalization scale coefficient is greater than the second preset equalization scale coefficient; if the first difference is greater than the second difference, the second preset equalization scale coefficient is greater than the first preset equalization scale coefficient; if the first difference is equal to the second difference, the first preset equalization scale coefficient is equal to the second preset equalization scale coefficient.
- the specific value of the weight coefficient is set reasonably according to the actual needs, and the specific value is not given as an example here.
- the step S272 includes:
- Step S2721 multiplying the first preset equalization scale coefficient by the first target component to obtain a first product
- the first preset equalization scale coefficient K 1 is multiplied by the first target component RGB L1 to obtain a first product: K 1 *RGB L1 .
- Step S2722 multiplying the second preset equalization proportional coefficient by the second target component to obtain a second product
- the second preset equalization scale coefficient K 2 is multiplied by the second target component RGB R1 to obtain a second product: K 2 *RGB R1 .
- Step S2723 Calculate the sum of the first product and the second product to obtain the equalized component.
- the calculated sum of the first product K 1 *RGB L1 and the second product K 2 *RGB R1 is calculated to obtain the equalized component RGB A :
- RGB A K 1 *RGB L1 +K 2 *RGB R1 .
- the first target component RGB L1 in the above step S26 is (200, 200, 200), and the second target component RGB R1 is (220, 220, 220).
- Step S28 Calculate a first set of correction parameters according to the equalization component and the color component of the first image data, and calculate and obtain a second set of correction parameters according to the equalization component and the components of the second image data.
- the calculation method of the first group of correction parameters may be: calculating the ratio between the equalization component and the color component of the first image data; or calculating the difference between the color component of the first image data and the color component of the first image data.
- the ratio between the equalized components it can also be calculated as the difference between the equalized component and the color component of the first image data; it can also be calculated to add or subtract the above ratio or difference.
- the correction coefficient can be an empirical value or an adjusted value after many trials.
- the calculation methods of the first group of correction parameters are not limited to the above listed situations, and other reasonable calculation methods can also be selected according to actual needs.
- the calculation method of the second group of correction parameters may be: calculating the ratio between the equalization component and the color component of the second image data; or calculating the color component of the second image data and the color component of the second image data.
- the ratio between the equalized components it can also be calculated as the difference between the equalized component and the color component of the second image data; it can also be calculated to obtain the above ratio or difference, plus or minus a Correction coefficient, which can be either an empirical value or an adjusted value after many tests.
- the calculation methods of the second group of correction parameters are not limited to the above listed situations, and other reasonable calculation methods can also be selected according to actual needs.
- the calculation methods between the first group of correction parameters and the second group of correction parameters may be the same or different. It can be understood that, in order to ensure that the first image data and the second image data tend to be consistent, it may be preferable that the two are calculated in the same manner.
- the calculation methods of the first group of correction parameters K L1 and the second group of correction parameters K R1 may be as follows:
- the step S30 includes:
- Step S31 acquiring the components of the first target image and the components of the second target image
- the components of the first target image and the components of the second target image correspond to the color components in the first image data and the color components in the second image data, respectively, such as: When the color components are RGB values, the components of the first target image or the second target image are also RGB values; similarly, when the color components are YCbCr values, the first target image or the second target image The components of the target image are also YCbCr values.
- Step S32 Calculate the product between the first set of correction parameters and the components of the first target image to obtain the corrected first target image, and calculate the difference between the second set of correction parameters and the components of the second target image. to obtain the corrected second target image.
- the product between the first set of correction parameters K L1 and the component URGB L0 of the first target image is calculated: K L1 *URG L0 , at this time, the corrected component of the first target image is K L1 *URGB L0 , so as to obtain the corrected first target image.
- the present application also provides an image processing device, which includes a memory, a processor, and an image processing program for a stereoscopic endoscope that is stored on the memory and can run on the processor;
- the image processing program of the speculum when executed by the processor, implements the steps of the method as described above.
- the image processing device may be a stereoscopic endoscope, a device independent of the stereoscopic endoscope, or a surgical robot.
- the surgical robot may generally include a master console and a slave operation device.
- the master console is used to send control commands to the slave operation device according to the operation of the doctor to control the slave operation device; the slave operation device is used to respond to the command sent by the master console. Control commands and perform corresponding surgical operations.
- the slave operating device includes a mechanical arm, a power mechanism disposed on the mechanical arm, and an operating arm, the operating arm is used to extend into the body under the driving action of the power mechanism, and perform surgical operations through its distal end instrument, and/or acquire in vivo images through its distally located stereoscopic endoscope.
- the main console is also used for displaying images obtained by operating the device.
- the present application further provides a computer-readable storage medium on which an image processing program of a stereoscopic endoscope is stored, and the image processing program of the stereoscopic endoscope is executed by a processor to achieve the above-mentioned The steps of the image processing method of the image processing apparatus.
- the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
- the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to the prior art.
- the computer software products are stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make an image processing device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Surgery (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Radiology & Medical Imaging (AREA)
- Molecular Biology (AREA)
- Optics & Photonics (AREA)
- Pathology (AREA)
- Biophysics (AREA)
- Physics & Mathematics (AREA)
- Biomedical Technology (AREA)
- Heart & Thoracic Surgery (AREA)
- Medical Informatics (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Animal Behavior & Ethology (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Endoscopes (AREA)
- Instruments For Viewing The Inside Of Hollow Bodies (AREA)
- Image Processing (AREA)
Abstract
Description
本申请要求于2020年6月30日提交中国专利局、申请号为202010614933.5、申请名称为“立体内窥镜的图像处理方法、装置、存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on June 30, 2020 with the application number 202010614933.5 and the application name "Image processing method, device and storage medium for stereoscopic endoscope", the entire content of which is approved by Reference is incorporated in this application.
本申请涉及图像处理技术领域,尤其涉及一种立体内窥镜的图像处理方法、图像处理装置以及计算机可读存储介质。The present application relates to the technical field of image processing, and in particular, to an image processing method of a stereoscopic endoscope, an image processing device, and a computer-readable storage medium.
内窥镜广泛应用于医疗领域和工业领域。例如,在医疗领域的内窥镜系统中,医生通过内窥镜获取的图像对患者进行内窥镜检查或实施微创手术。在工业领域的内窥镜系统中,观测者通过内窥镜获取的图像,检查各种机器、设备等的内部,而不需要拆卸或破坏被检测物体。Endoscopes are widely used in medical and industrial fields. For example, in an endoscope system in the medical field, a doctor performs an endoscopic examination on a patient or performs a minimally invasive surgery through an image obtained by an endoscope. In the endoscope system in the industrial field, the observer inspects the interior of various machines, equipment, etc. through the images acquired by the endoscope, without disassembling or destroying the inspected object.
立体内窥镜,由于传感器、镜头、光源位置、制造以及装配等因素的影响,会导致立体内窥镜的两个传感器的图像色彩不一致,从而使操作者产生视觉上的不适感。Stereoscopic endoscope, due to the influence of factors such as sensor, lens, light source position, manufacturing and assembly, may cause the image color of the two sensors of the stereoscopic endoscope to be inconsistent, thereby causing visual discomfort to the operator.
申请内容Application content
本申请的主要目的在于提供一种立体内窥镜的图像处理方法、图像处理装置以及计算机可读存储介质,旨在解决现有立体内窥镜的两个传感器的图像色彩不一致,导致操作者产生视觉上不适感的技术问题。The main purpose of the present application is to provide an image processing method, an image processing device and a computer-readable storage medium for a stereoscopic endoscope, which aims to solve the problem that the image colors of the two sensors of the existing stereoscopic endoscope are inconsistent, causing the operator to Technical issues with visual discomfort.
为实现上述目的,本申请提供一种立体内窥镜的图像处理方法,所述立体内窥镜的图像处理方法包括:To achieve the above purpose, the present application provides an image processing method for a stereoscopic endoscope, and the image processing method for a stereoscopic endoscope includes:
获取第一图像数据和第二图像数据,所述第一图像数据和所述第二图像数据分别由立体内窥镜的第一摄像头和第二摄像头拍摄预设标定板而得到;获取所述第一图像数据和所述第二图像数据中的色彩分量以及与所述第一图像数据和所述第二图像数据对应的目标分量,并根据所述色彩分量以及所述 目标分量计算得到第一组校正参数和第二组校正参数;Obtain first image data and second image data, the first image data and the second image data are obtained by shooting a preset calibration plate with the first camera and the second camera of the stereoscopic endoscope respectively; The color components in the first image data and the second image data and the target components corresponding to the first image data and the second image data, and the first group is calculated according to the color components and the target components Correction parameters and the second group of correction parameters;
根据所述第一组校正参数对所述第一摄像头获取的当前目标实物的第一目标图像进行校正,根据所述第二组校正参数对所述第二摄像头获取的所述当前目标实物的第二目标图像进行校正。The first target image of the current target object obtained by the first camera is corrected according to the first set of correction parameters, and the first target image of the current target object obtained by the second camera is corrected according to the second set of correction parameters. Two target images are corrected.
优选地,所述获取所述第一图像数据和所述第二图像数据中的色彩分量以及与所述第一图像数据和所述第二图像数据对应的目标分量,并根据所述色彩分量以及所述目标分量计算得到第一组校正参数和第二组校正参数的步骤包括:Preferably, the acquiring color components in the first image data and the second image data and the target components corresponding to the first image data and the second image data, and according to the color components and The steps of calculating the target component to obtain the first set of correction parameters and the second set of correction parameters include:
获取所述第一图像数据和所述第二图像数据中的色彩分量;acquiring color components in the first image data and the second image data;
根据所述第一图像数据的色彩分量或所述第二图像数据的色彩分量,确定所述目标分量;determining the target component according to the color component of the first image data or the color component of the second image data;
计算所述目标分量与所述第一图像数据的色彩分量之间的比值,得到所述第一组校正参数;calculating the ratio between the target component and the color component of the first image data to obtain the first set of correction parameters;
计算所述目标分量与所述第二图像数据的色彩分量之间的比值,得到所述第二组校正参数。The ratio between the target component and the color component of the second image data is calculated to obtain the second set of correction parameters.
优选地,所述获取所述第一图像数据和所述第二图像数据中的色彩分量以及与所述第一图像数据和所述第二图像数据对应的目标分量,并根据所述色彩分量以及所述目标分量计算得到第一组校正参数和第二组校正参数的步骤包括:Preferably, the acquiring color components in the first image data and the second image data and the target components corresponding to the first image data and the second image data, and according to the color components and The steps of calculating the target component to obtain the first set of correction parameters and the second set of correction parameters include:
获取所述第一图像数据和所述第二图像数据中的色彩分量;acquiring color components in the first image data and the second image data;
根据所述第一图像数据的色彩分量确定与所述第一图像数据对应的第一目标分量,根据所述第二图像数据的色彩分量确定与所述第二图像数据对应的第二目标分量;Determine a first target component corresponding to the first image data according to the color component of the first image data, and determine a second target component corresponding to the second image data according to the color component of the second image data;
根据所述第一目标分量和所述第二目标分量,计算得到均衡分量;According to the first target component and the second target component, calculating the equalization component;
根据所述均衡分量以及所述第一图像数据的色彩分量,计算得到第一组校正参数,根据所述均衡分量以及所述第二图像数据的分量,计算得到第二组校正参数。According to the equalization component and the color component of the first image data, a first set of correction parameters is obtained by calculation, and a second set of correction parameters is calculated and obtained according to the equalization component and the components of the second image data.
优选地,所述根据所述第一目标分量和所述第二目标分量,计算得到均衡分量的步骤包括:Preferably, the step of calculating the equalized component according to the first target component and the second target component includes:
获取与所述第一图像数据对应的第一预设均衡比例系数以及与所述第二 图像数据对应的第二预设均衡比例系数,所述第一预设均衡参数与所述第二预设均衡参数之和为预设值;Obtain a first preset equalization scale coefficient corresponding to the first image data and a second preset equalization scale coefficient corresponding to the second image data, the first preset equalization parameter and the second preset The sum of the equalization parameters is the default value;
根据所述第一预设均衡比例系数、第二预设均衡比例系数、所述第一目标分量,以及所述第二目标分量计算得到所述均衡分量。The equalization component is calculated and obtained according to the first preset equalization scale coefficient, the second preset equalization scale coefficient, the first target component, and the second target component.
优选地,所述根据所述第一预设均衡比例系数、第二预设均衡比例系数、所述第一目标分量,以及所述第二目标分量计算得到所述均衡分量的步骤包括:Preferably, the step of calculating the equalization component according to the first preset equalization scale coefficient, the second preset equalization scale coefficient, the first target component, and the second target component includes:
将所述第一预设均衡比例系数与所述第一目标分量相乘,得到第一乘积;multiplying the first preset equalization proportional coefficient by the first target component to obtain a first product;
将所述第二预设均衡比例系数与所述第二目标分量相乘,得到第二乘积;multiplying the second preset equalization proportional coefficient by the second target component to obtain a second product;
计算所述第一乘积与所述第二乘积的和值,得到所述均衡分量。A sum of the first product and the second product is calculated to obtain the equalized component.
优选地,所述立体内窥镜的图像处理方法还包括:Preferably, the image processing method of the stereoscopic endoscope further comprises:
获取所述预定标定板的预设色彩分量;obtaining the preset color components of the predetermined calibration plate;
计算所述第一目标分量与所述预设标定板的预设色彩分量之间的第一差值,所述第二目标分量与所述预设标定板的预设色彩分量之间的第二差值;Calculate the first difference between the first target component and the preset color component of the preset calibration board, and the second difference between the second target component and the preset color component of the preset calibration board. difference;
比较第一差值与所述第二差值的大小,若所述第一差值小于所述第二差值,则所述第一预设均衡比例系数大于所述第二预设均衡比例系数;若所述第一差值大于所述第二差值,则所述第二预设均衡比例系数大于所述第一预设均衡比例系数;若所述第一差值等于所述第二差值,则所述第一预设均衡比例系数等于所述第二预设均衡比例系数。Comparing the magnitude of the first difference and the second difference, if the first difference is smaller than the second difference, the first preset equalization scale factor is greater than the second preset equalization scale factor ; if the first difference is greater than the second difference, the second preset equalization scale factor is greater than the first preset equalization scale factor; if the first difference is equal to the second difference value, the first preset equalization scale coefficient is equal to the second preset equalization scale coefficient.
优选地,所述根据所述第一组校正参数对所述第一摄像头获取的当前目标实物的第一目标图像进行校正,根据所述第二组校正参数对所述第二摄像头获取的所述当前目标实物的第二目标图像进行校正的步骤包括:Preferably, the first target image of the current target object acquired by the first camera is corrected according to the first set of correction parameters, and the The steps of correcting the second target image of the current target object include:
获取所述第一目标图像的分量以及所述第二目标图像的分量;obtaining the components of the first target image and the components of the second target image;
计算所述第一组校正参数与第一目标图像的分量之间的乘积,得到校正后的所述第一目标图像的分量,计算所述第二组校正参数与第二目标图像的分量之间的乘积,得到校正后的所述第二目标图像的分量。Calculate the product between the first set of correction parameters and the components of the first target image to obtain the corrected components of the first target image, and calculate the difference between the second set of correction parameters and the components of the second target image The product of , obtains the corrected component of the second target image.
优选地,所述色彩分量为不同颜色模型对应的RGB值、HSV值、HSI值、CMYK值、HSL值、HSB值、Ycc值、XYZ值、Lab值、YUV值中的任一种。Preferably, the color components are any of RGB values, HSV values, HSI values, CMYK values, HSL values, HSB values, Ycc values, XYZ values, Lab values, and YUV values corresponding to different color models.
为实现上述目的,本申请还提供一种图像处理装置,所述图像处理装置包 括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的立体内窥镜的图像处理程序;In order to achieve the above object, the present application also provides an image processing device, which includes a memory, a processor, and an image processing program for a stereoscopic endoscope that is stored in the memory and can run on the processor. ;
所述立体内窥镜的图像处理程序被所述处理器执行时实现如上所述的方法的步骤。The image processing program of the stereoscopic endoscope, when executed by the processor, implements the steps of the method as described above.
为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有立体内窥镜的图像处理程序,所述立体内窥镜的图像处理程序被处理器执行时实现如上所述的图像处理装置的图像处理方法的步骤。In order to achieve the above object, the present application also provides a computer-readable storage medium, where an image processing program of a stereoscopic endoscope is stored on the computer-readable storage medium, and the image processing program of the stereoscopic endoscope is executed by a processor The steps of realizing the image processing method of the image processing apparatus as described above.
本申请提供的立体内窥镜的图像处理方法、图像处理装置以及计算机可读存储介质,通过获取第一图像数据和第二图像数据,所述第一图像数据和所述第二图像数据分别由立体内窥镜的第一摄像头和第二摄像头拍摄预设标定板而得到,然后获取所述第一图像数据和所述第二图像数据中的色彩分量以及与所述第一图像数据和所述第二图像数据对应的目标分量,并根据所述色彩分量以及所述目标分量计算得到第一组校正参数和第二组校正参数,最后根据所述第一组校正参数对所述第一摄像头获取的当前目标实物的第一目标图像进行校正,并根据所述第二组校正参数对所述第二摄像头获取的所述当前目标实物的第二目标图像进行校正。如此,可以使立体内窥镜的不同摄像头获取的不同图像数据趋于一致,从而提高操作者视觉上的舒适感。The image processing method, image processing device and computer-readable storage medium of a stereoscopic endoscope provided by the present application, by acquiring first image data and second image data, the first image data and the second image data are respectively represented by The first camera and the second camera of the stereoscopic endoscope are obtained by shooting a preset calibration plate, and then the color components in the first image data and the second image data and the color components in the first image data and the second image data and the first image data and the color components are obtained. The target component corresponding to the second image data, and the first set of correction parameters and the second set of correction parameters are calculated according to the color component and the target component, and finally obtained from the first camera according to the first set of correction parameters The first target image of the current target object is corrected, and the second target image of the current target object obtained by the second camera is corrected according to the second set of correction parameters. In this way, different image data obtained by different cameras of the stereoscopic endoscope can be made consistent, thereby improving the visual comfort of the operator.
图1为本申请实施例提供的图像处理装置的硬件结构示意图;1 is a schematic diagram of a hardware structure of an image processing apparatus provided by an embodiment of the present application;
图2为本申请立体内窥镜的图像处理方法一实施例的流程示意图;2 is a schematic flowchart of an embodiment of an image processing method for a stereoscopic endoscope of the present application;
图3为图2中步骤S2第一实施例的细化流程示意图;FIG. 3 is a schematic diagram of the refinement flow of the first embodiment of step S2 in FIG. 2;
图4为图2中步骤S2第二实施例的细化流程示意图;FIG. 4 is a schematic diagram of the refinement process of the second embodiment of step S2 in FIG. 2;
图5为图4中步骤S27的细化流程示意图;FIG. 5 is a schematic diagram of the refinement process of step S27 in FIG. 4;
图6为图5中步骤S272的细化流程示意图;FIG. 6 is a schematic diagram of the refinement process of step S272 in FIG. 5;
图7为图2中步骤S3的细化流程示意图。FIG. 7 is a schematic diagram of the refinement flow of step S3 in FIG. 2 .
应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
需要说明,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的, 而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes, and should not be construed as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In addition, the technical solutions between the various embodiments can be combined with each other, but must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of such technical solutions does not exist. , is not within the scope of protection claimed in this application.
如图1所示,图1是本申请实施例方案涉及的图像处理装置的硬件结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of a hardware structure of an image processing apparatus according to an embodiment of the present application.
如图1所示,该图像处理装置可以包括:处理器1001,例如CPU,通信总线1002,用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信;用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard);网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口);存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器,存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the image processing apparatus may include: a
本领域技术人员可以理解,图1中示出的硬件结构并不构成对图像处理装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the hardware structure shown in FIG. 1 does not constitute a limitation on the image processing apparatus, and may include more or less components than the one shown, or combine some components, or arrange different components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及图像处理程序。As shown in FIG. 1 , the
在图1所示的图像处理装置中,所述网络通信模块主要用于连接服务器,并与服务器进行数据通信;而处理器1001可以用于调用存储器1005中存储的图像处理程序,并执行以下操作:In the image processing apparatus shown in FIG. 1, the network communication module is mainly used to connect to the server and perform data communication with the server; and the
获取第一图像数据和第二图像数据,所述第一图像数据和所述第二图像数据分别由立体内窥镜的第一摄像头和第二摄像头拍摄预设标定板而得到;acquiring first image data and second image data, wherein the first image data and the second image data are respectively obtained by shooting a preset calibration plate with the first camera and the second camera of the stereoscopic endoscope;
获取所述第一图像数据和所述第二图像数据中的色彩分量以及与所述第一图像数据和所述第二图像数据对应的目标分量,并根据所述色彩分量以及所述目标分量计算得到第一组校正参数和第二组校正参数;Acquiring color components in the first image data and the second image data and target components corresponding to the first image data and the second image data, and calculating according to the color components and the target components obtain the first set of calibration parameters and the second set of calibration parameters;
根据所述第一组校正参数对所述第一摄像头获取的当前目标实物的第一目标图像进行校正,根据所述第二组校正参数对所述第二摄像头获取的所述 当前目标实物的第二目标图像进行校正。The first target image of the current target object obtained by the first camera is corrected according to the first set of correction parameters, and the first target image of the current target object obtained by the second camera is corrected according to the second set of correction parameters. Two target images are corrected.
进一步地,处理器110可以调用存储器109中存储的立体内窥镜的图像处理程序,还执行以下操作:Further, the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
获取所述第一图像数据和所述第二图像数据中的色彩分量;acquiring color components in the first image data and the second image data;
根据所述第一图像数据的色彩分量或所述第二图像数据的色彩分量,确定所述目标分量;determining the target component according to the color component of the first image data or the color component of the second image data;
计算所述目标分量与所述第一图像数据的色彩分量之间的比值,得到所述第一组校正参数;calculating the ratio between the target component and the color component of the first image data to obtain the first set of correction parameters;
计算所述目标分量与所述第二图像数据的色彩分量之间的比值,得到所述第二组校正参数。The ratio between the target component and the color component of the second image data is calculated to obtain the second set of correction parameters.
进一步地,处理器110可以调用存储器109中存储的立体内窥镜的图像处理程序,还执行以下操作:Further, the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
获取所述第一图像数据和所述第二图像数据中的色彩分量;acquiring color components in the first image data and the second image data;
根据所述第一图像数据的色彩分量确定与所述第一图像数据对应的第一目标分量,根据所述第二图像数据的色彩分量确定与所述第二图像数据对应的第二目标分量;Determine a first target component corresponding to the first image data according to the color component of the first image data, and determine a second target component corresponding to the second image data according to the color component of the second image data;
根据所述第一目标分量和所述第二目标分量,计算得到均衡分量;According to the first target component and the second target component, calculating the equalization component;
根据所述均衡分量以及所述第一图像数据的色彩分量,计算得到第一组校正参数,根据所述均衡分量以及所述第二图像数据的分量,计算得到第二组校正参数。According to the equalization component and the color component of the first image data, a first set of correction parameters is obtained by calculation, and a second set of correction parameters is calculated and obtained according to the equalization component and the components of the second image data.
进一步地,处理器110可以调用存储器109中存储的立体内窥镜的图像处理程序,还执行以下操作:Further, the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
获取与所述第一图像数据对应的第一预设均衡比例系数以及与所述第二图像数据对应的第二预设均衡比例系数,所述第一预设均衡参数与所述第二预设均衡参数之和为预设值;Obtain a first preset equalization scale coefficient corresponding to the first image data and a second preset equalization scale coefficient corresponding to the second image data, the first preset equalization parameter and the second preset The sum of the equalization parameters is the default value;
根据所述第一预设均衡比例系数、第二预设均衡比例系数、所述第一目标分量,以及所述第二目标分量计算得到所述均衡分量。The equalization component is calculated and obtained according to the first preset equalization scale coefficient, the second preset equalization scale coefficient, the first target component, and the second target component.
进一步地,处理器110可以调用存储器109中存储的立体内窥镜的图像处理程序,还执行以下操作:Further, the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
将所述第一预设均衡比例系数与所述第一目标分量相乘,得到第一乘积;multiplying the first preset equalization proportional coefficient by the first target component to obtain a first product;
将所述第二预设均衡比例系数与所述第二目标分量相乘,得到第二乘积;multiplying the second preset equalization proportional coefficient by the second target component to obtain a second product;
计算所述第一乘积与所述第二乘积的和值,得到所述均衡分量。A sum of the first product and the second product is calculated to obtain the equalized component.
进一步地,处理器110可以调用存储器109中存储的立体内窥镜的图像处理程序,还执行以下操作:Further, the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
获取所述预定标定板的预设色彩分量;obtaining the preset color components of the predetermined calibration plate;
计算所述第一目标分量与所述预设标定板的预设色彩分量之间的第一差值,所述第二目标分量与所述预设标定板的预设色彩分量之间的第二差值;Calculate the first difference between the first target component and the preset color component of the preset calibration board, and the second difference between the second target component and the preset color component of the preset calibration board. difference;
比较第一差值与所述第二差值的大小,若所述第一差值小于所述第二差值,则所述第一预设均衡比例系数大于所述第二预设均衡比例系数;若所述第一差值大于所述第二差值,则所述第二预设均衡比例系数大于所述第一预设均衡比例系数;若所述第一差值等于所述第二差值,则所述第一预设均衡比例系数等于所述第二预设均衡比例系数。Comparing the magnitude of the first difference and the second difference, if the first difference is smaller than the second difference, the first preset equalization scale factor is greater than the second preset equalization scale factor ; if the first difference is greater than the second difference, the second preset equalization scale factor is greater than the first preset equalization scale factor; if the first difference is equal to the second difference value, the first preset equalization scale coefficient is equal to the second preset equalization scale coefficient.
进一步地,处理器110可以调用存储器109中存储的立体内窥镜的图像处理程序,还执行以下操作:Further, the processor 110 can call the image processing program of the stereoscopic endoscope stored in the memory 109, and also perform the following operations:
获取所述第一目标图像的分量以及所述第二目标图像的分量;obtaining the components of the first target image and the components of the second target image;
计算所述第一组校正参数与第一目标图像的分量之间的乘积,得到校正后的所述第一目标图像的分量,计算所述第二组校正参数与第二目标图像的分量之间的乘积,得到校正后的所述第二目标图像的分量。Calculate the product between the first set of correction parameters and the components of the first target image to obtain the corrected components of the first target image, and calculate the difference between the second set of correction parameters and the components of the second target image The product of , obtains the corrected component of the second target image.
参照图2,在第一实施例中,本申请提供一种立体内窥镜的图像处理方法,包括以下步骤:Referring to FIG. 2 , in the first embodiment, the present application provides an image processing method for a stereoscopic endoscope, including the following steps:
步骤S1、获取第一图像数据和第二图像数据,所述第一图像数据和所述第二图像数据分别由立体内窥镜的第一摄像头和第二摄像头拍摄预设标定板而得到;Step S1, acquiring first image data and second image data, the first image data and the second image data are respectively obtained by shooting a preset calibration plate with the first camera and the second camera of the stereoscopic endoscope;
步骤S2、获取所述第一图像数据和所述第二图像数据中的色彩分量以及与所述第一图像数据和所述第二图像数据对应的目标分量,并根据所述色彩分量以及所述目标分量计算得到第一组校正参数和第二组校正参数;Step S2: Acquire the color components in the first image data and the second image data and the target components corresponding to the first image data and the second image data, and according to the color components and the Calculate the target component to obtain the first set of correction parameters and the second set of correction parameters;
本实施例中,所述立体内窥镜具有第一摄像头和第二摄像头左右两个摄像头。当然,在其他实施例中,所述立体内窥镜也可以具有三个或三个以上的摄像头,具体摄像头的数量可以根据实际需要合理设置。可以理解的是,在立 体内窥镜具有多个摄像头时,多个摄像头拍摄预设标定板,可以得到多个各自对应的图像数据,对应的图像处理方法与具有左右两个摄像头的方法基本相同。In this embodiment, the stereoscopic endoscope has a first camera and a second camera and two left and right cameras. Of course, in other embodiments, the stereoscopic endoscope may also have three or more cameras, and the specific number of cameras may be reasonably set according to actual needs. It can be understood that when the stereoscopic endoscope has multiple cameras, multiple cameras shoot the preset calibration plate, and multiple corresponding image data can be obtained, and the corresponding image processing method is basically the same as the method with two left and right cameras. .
所述第一图像数据可以为所述立体内窥镜的第一摄像头拍摄预设标定板得到的第一帧图像,也可以为第N帧图像;所述第二图像数据可以为所述立体内窥镜的第二摄像头拍摄预设标定板得到的第一帧图像,也可以为第N帧图像。具体选择第一帧图像还是第N帧图像,可以通过第一摄像头拍摄的图像数据与通过第二摄像头拍摄的图像数据进行比较,若二者差异不超过预设比例范围如10%,则可以确定当前第一、第二摄像头各自拍摄的图像数据分别为所述第一图像数据、第二图像数据。若二者差异的范围在10%~30%,则可以选择其中的第N帧图像。若二者差异超过预设比例范围如30%,则可以提示所述立体内窥镜的摄像头存在故障。The first image data may be the first frame image obtained by the first camera of the stereoscopic endoscope shooting the preset calibration plate, or may be the Nth frame image; the second image data may be the stereoscopic image data. The first frame of image obtained by the second camera of the endoscope shooting the preset calibration board may also be the Nth frame of image. To specifically select the first frame image or the Nth frame image, the image data captured by the first camera can be compared with the image data captured by the second camera. If the difference between the two does not exceed a preset ratio range such as 10%, it can be determined The image data currently captured by the first and second cameras are the first image data and the second image data, respectively. If the difference between the two ranges from 10% to 30%, the Nth frame image can be selected. If the difference between the two exceeds a preset ratio range such as 30%, it may indicate that the camera of the stereoscopic endoscope is faulty.
另外,应理解,所述立体内窥镜的第一摄像头和第二摄像头可以同时拍摄所述预设标定板,也可以分别先后拍摄所述预定标定板从而获取各自对应的所述第一图像数据和所述第二图像数据。本申请方案并未限定所述第一摄像头和第二摄像头分别拍摄所述预设标定板的时间顺序。In addition, it should be understood that the first camera and the second camera of the stereoscopic endoscope may simultaneously photograph the preset calibration plate, or may successively photograph the preset calibration plates to obtain the corresponding first image data. and the second image data. The solution of the present application does not limit the time sequence in which the first camera and the second camera respectively shoot the preset calibration board.
所述色彩分量可以为不同颜色模型对应的RGB值、HSV值、HSI值、CMYK值、HSL值、HSB值、Ycc值、XYZ值、Lab值、YUV值中的任一种。所述预设标定板可以为已知色彩分量的标定板,例如,在色彩分量为RGB值时,R=G=B,且R、G、B∈[0,255]。具体地,所述预设标定板可以为:R=G=B=255的纯白标定板,也可以为:R=G=B=0的纯黑标定板;还可以为:R=G=B=200或100等的灰色标定板。当然,在其他实施例中,所述RGB的三个分量之间的关系还可以为:R=G≠B,R≠G=B,或R≠G≠B。The color components may be any of RGB values, HSV values, HSI values, CMYK values, HSL values, HSB values, Ycc values, XYZ values, Lab values, and YUV values corresponding to different color models. The preset calibration board may be a calibration board with known color components, for example, when the color components are RGB values, R=G=B, and R, G, B∈[0,255]. Specifically, the preset calibration plate can be: a pure white calibration plate with R=G=B=255, or can be a pure black calibration plate with R=G=B=0; it can also be: R=G= B = 200 or 100, etc. gray calibration plate. Of course, in other embodiments, the relationship between the three components of RGB may also be: R=G≠B, R≠G=B, or R≠G≠B.
所述图像数据可以包括颜色分量、像素值、灰阶值、饱和度、亮度和对比度等信息。也即,所述图像数据可以为上述各信息中的至少一种。The image data may include information such as color components, pixel values, grayscale values, saturation, brightness, and contrast. That is, the image data may be at least one of the above-mentioned pieces of information.
可以理解的是,立体内窥镜由于传感器、镜头、光源位置、制造以及装配等因素的影响,获取的所述第一图像数据和第二图像数据通常并不完全相同。本申请方案主要针对第一图像数据和第二图像数据的色彩分量进行校正,以使所述立体内窥镜的第一、第二摄像头获取的图像色彩一致。当然,在其他实施例中,还可以对所述图像数据中的饱和度、对比度等其他参数一并进行校正, 使得立体内窥镜的不同摄像头获取的不同图像数据趋于一致,从而提高操作者视觉上的舒适感。It can be understood that, due to the influence of factors such as sensors, lenses, light source positions, manufacturing, and assembly, the obtained first image data and second image data of a stereoscopic endoscope are usually not identical. The solution of the present application mainly corrects the color components of the first image data and the second image data, so that the colors of the images obtained by the first and second cameras of the stereoscopic endoscope are consistent. Of course, in other embodiments, other parameters such as saturation and contrast in the image data may also be corrected together, so that different image data obtained by different cameras of the stereoscopic endoscope tend to be consistent, thereby improving the operation. visual comfort.
本实施例中,所述第一图像数据和所述第二图像数据的目标分量可以相同,也可以不同。所述目标分量可以根据所述第一图像数据的其中一个色彩分量进行确定,也可以根据所述第二图像数据的其中一个色彩分量进行确定,还可以根据所述第一图像数据的其中一个色彩分量以及所述第二图像数据的其中一个色彩分量综合进行确定。具体将在下文具体描述,此处不做赘述。In this embodiment, the target components of the first image data and the second image data may be the same or different. The target component may be determined according to one of the color components of the first image data, may also be determined according to one of the color components of the second image data, or may be determined according to one of the color components of the first image data. The component and one of the color components of the second image data are comprehensively determined. The details will be described in detail below, and will not be repeated here.
由于色彩分量和目标分量对应的参数值具有多个,因此,对应的校正参数为一组参数。例如,当色彩分量为R、G、B时,其对应的目标分量也为R、G、B,此时,计算得到的校正参数则为一组参数{R,G,B}。Since there are multiple parameter values corresponding to the color component and the target component, the corresponding correction parameters are a set of parameters. For example, when the color components are R, G, and B, the corresponding target components are also R, G, and B. At this time, the calculated correction parameters are a set of parameters {R, G, B}.
校正参数的计算方式可以为:计算所述目标分量与所述色彩分量之间的比值;也可以为计算所述色彩分量与所述目标分量之间的比值;又可以为所述目标分量与所述色彩分量之间的差值;还可以为计算得到上述比值或差值后,再加上或减去一个校正系数,该校正系数可以为经验值,也可以为经过多次试验后的调整值。当然,校正参数的计算方式并不限于上述列举的几种情况,还可以根据实际需要选择其他合理的计算方式。The calculation method of the correction parameter may be: calculating the ratio between the target component and the color component; also calculating the ratio between the color component and the target component; or calculating the ratio between the target component and the target component. The difference between the color components; it can also be calculated to obtain the above ratio or difference, plus or minus a correction coefficient, the correction coefficient can be an empirical value, or it can be an adjusted value after many tests . Of course, the calculation methods of the correction parameters are not limited to the above listed situations, and other reasonable calculation methods can also be selected according to actual needs.
可以理解的是,为了使立体内窥镜的不同摄像头获取的不同图像数据趋于一致,从而进一步提高操作者视觉上的舒适感,可以单独对所述图像数据中的其他参数进行校正,也可以结合所述图像数据中的其他参数进行计算校正。例如,在对上述色彩分量进行校正后,还可以针对所述图像数据中的其他参数如灰阶值、饱和度、亮度和对比度等分别进行校正。也可以结合所有的图像数据如色彩分量、像素值、灰阶值、饱和度、亮度和对比度等,计算一个总体的特征值,然后针对所述特征值进行校正。It can be understood that, in order to make the different image data obtained by different cameras of the stereoscopic endoscope tend to be consistent, so as to further improve the visual comfort of the operator, other parameters in the image data can be corrected separately, or can be adjusted separately. Computational corrections are performed in conjunction with other parameters in the image data. For example, after the above-mentioned color components are corrected, other parameters in the image data, such as grayscale value, saturation, brightness, and contrast, may also be corrected separately. It is also possible to combine all image data such as color components, pixel values, grayscale values, saturation, brightness, and contrast, etc., to calculate an overall eigenvalue, and then correct the eigenvalues.
步骤S3、根据所述第一组校正参数对所述第一摄像头获取的当前目标实物的第一目标图像进行校正,根据所述第二组校正参数对所述第二摄像头获取的所述当前目标实物的第二目标图像进行校正。Step S3, correcting the first target image of the current target object obtained by the first camera according to the first set of correction parameters, and correcting the current target obtained by the second camera according to the second set of correction parameters. The second target image of the real object is corrected.
本实施例中,所述当前目标实物可以为对应不同应用场景的实物,例如,在工业的设备检测场景中,所述当前目标实物可以是各种机器或设备内部的被检测物体;在医疗手术场景中,所述当前目标实物可以是患者的患处组织。In this embodiment, the current target object may be an object corresponding to different application scenarios. For example, in an industrial equipment detection scenario, the current target object may be a detected object inside various machines or equipment; in medical surgery In the scenario, the current target object may be the affected tissue of the patient.
同样地,本申请中对所述第一摄像头获取的所述第一目标图像进行校正, 以及对所述第二摄像头获取的所述第二目标图像进行校正的顺序并不限定。具体地,可以在获取到对应的校正参数和目标图像时,即可执行对应的校正流程;也可以同时执行对应的校正流程;也可以预设的顺序先后执行对应的校正流程。Likewise, the order of correcting the first target image acquired by the first camera and correcting the second target image acquired by the second camera in the present application is not limited. Specifically, when the corresponding correction parameters and the target image are obtained, the corresponding correction process can be executed; the corresponding correction process can also be executed simultaneously; or the corresponding calibration process can be executed sequentially in a preset order.
具体的校正方式与计算得到校正参数的方式对应,例如,当所述校正参数是所述目标分量与所述色彩分量之间的比值时,则在获取到当前目标实物的目标图像时,获取所述目标图像中与所述色彩分量对应的特征数据,然后计算所述特征数据与所述校正参数之间的乘积。The specific correction method corresponds to the method of calculating the correction parameter. For example, when the correction parameter is the ratio between the target component and the color component, when the target image of the current target object is obtained, the feature data corresponding to the color components in the target image, and then calculate the product between the feature data and the correction parameter.
当所述校正参数是所述目标分量与所述色彩分量之间的差值时,则在获取到当前目标实物的目标图像时,获取所述目标图像中与所述色彩分量对应的特征数据,然后计算所述特征数据与所述校正参数之间的和值。当然,在其他实施例中,还可以为其他合理的校正方式,本申请并限于上述列举的方式。When the correction parameter is the difference between the target component and the color component, then when the target image of the current target object is obtained, the feature data corresponding to the color component in the target image is obtained, The sum between the characteristic data and the correction parameter is then calculated. Of course, in other embodiments, other reasonable correction manners may also be used, and the present application is not limited to the manners listed above.
本申请提供的立体内窥镜的图像处理方法,通过获取第一图像数据和第二图像数据,所述第一图像数据和所述第二图像数据分别由立体内窥镜的第一摄像头和第二摄像头拍摄预设标定板而得到,然后获取所述第一图像数据和所述第二图像数据中的色彩分量以及与所述第一图像数据和所述第二图像数据对应的目标分量,并根据所述色彩分量以及所述目标分量计算得到第一组校正参数和第二组校正参数,最后根据所述第一组校正参数对所述第一摄像头获取的当前目标实物的第一目标图像进行校正,并根据所述第二组校正参数对所述第二摄像头获取的所述当前目标实物的第二目标图像进行校正。如此,可以使立体内窥镜的不同摄像头获取的不同图像数据趋于一致,从而提高操作者视觉上的舒适感。The image processing method for a stereoscopic endoscope provided by the present application, by acquiring first image data and second image data, the first image data and the second image data are respectively obtained by the first camera of the stereoscopic endoscope and the second image data. The two cameras are obtained by shooting a preset calibration board, and then the color components in the first image data and the second image data and the target components corresponding to the first image data and the second image data are obtained, and The first set of correction parameters and the second set of correction parameters are calculated according to the color components and the target components, and finally the first target image of the current target object acquired by the first camera is processed according to the first set of correction parameters. Correction is performed, and the second target image of the current target object acquired by the second camera is corrected according to the second set of correction parameters. In this way, different image data obtained by different cameras of the stereoscopic endoscope can be made consistent, thereby improving the visual comfort of the operator.
参照图3,在第二实施例中,所述步骤S2包括:3, in the second embodiment, the step S2 includes:
步骤S21、获取所述第一图像数据和所述第二图像数据中的色彩分量;Step S21, acquiring color components in the first image data and the second image data;
本实施例中,以下全文的色彩分量均以RGB值为例进行说明。假设获取到的所述第一图像数据中的色彩分量RGB值为(200,180,210),获取到的所述第二图像数据中的色彩分量RGB值为(190,200,220)。应理解,以下全文列举的具体数值仅用于帮助理解本申请方案,并不起具体限定作用。In this embodiment, the color components in the whole text below are described by taking RGB values as an example. It is assumed that the acquired color component RGB values in the first image data are (200, 180, 210), and the acquired color component RGB values in the second image data are (190, 200, 220). It should be understood that the specific numerical values listed in the following full text are only used to help the understanding of the solution of the present application, and do not play a specific limiting role.
步骤S22、根据所述第一图像数据的色彩分量或所述第二图像数据的色彩 分量,确定所述目标分量;Step S22, determine the target component according to the color component of the first image data or the color component of the second image data;
本实施例中,可以根据所述第一图像数据的色彩分量或所述第二图像数据的色彩分量,确定所述目标分量。具体选择第一图像数据的色彩分量,还是选择第二图像数据的色彩分量,可以预设以第一图像数据的色彩分量为目标分量,进一步的,由于色彩分量RGB具有R、G、B三个分量,可以预设其中的一个分量:如预设以第一图像数据的G值为所述目标分量,此时,对应的所述目标分量为(180,180,180);也可以预设以第二图像数据的色彩分量为目标分量,如预设以第二图像数据的R值为所述目标分量,此时,对应的所述目标分量为(190,190,190)。还可以由操作者根据自己的喜好进行选择。因此,可以根据实际需要供操作者进行选择。例如,在需要更鲜艳的红颜色时,可以选择R分量作为所述目标分量。In this embodiment, the target component may be determined according to the color component of the first image data or the color component of the second image data. Specifically, to select the color component of the first image data or the color component of the second image data, the color component of the first image data can be preset as the target component. Further, because the color component RGB has three R, G, and B components component, one of the components can be preset: if the G value of the first image data is preset as the target component, in this case, the corresponding target component is (180, 180, 180); it can also be preset as The color component of the second image data is the target component. For example, the R value of the second image data is set as the target component by default. In this case, the corresponding target component is (190, 190, 190). It can also be selected by the operator according to his own preferences. Therefore, the operator can choose according to actual needs. For example, when a more vivid red color is required, the R component can be selected as the target component.
在其他实施例中,由于所述预设标定板的R、G、B值均是已知的。因此,可以分别比较图像数据中的各个色彩分量与所述预设标定板对应的R、G、B值,计算各个色彩分量的差值,并从中选择差值最小的色彩分量作为所述目标分量。例如,假设预设标定板的R、G、B值为:R=G=B=200,由于第一图像数据中的色彩分量R值200与所述预设标定板的R值差值最小(为0),第二图像数据中的色彩分量G值为200与所述预设标定板的G值差值最小(为0),则可以直接确定所述目标分量为(200,200,200)。若所述预设标定板的R、G、B值为:R=G=B=189,由于第一图像数据中的色彩分量G值180与所述预设标定板的G值差值最小(为9),第二图像数据中的色彩分量R值为190与所述预设标定板的R值差值最小(为1),则可以直接确定所述目标分量为(190,190,190)。In other embodiments, the R, G, and B values of the preset calibration plate are all known. Therefore, the R, G, and B values corresponding to each color component in the image data and the preset calibration board can be compared respectively, the difference value of each color component can be calculated, and the color component with the smallest difference value can be selected as the target component. . For example, assuming that the R, G, and B values of the preset calibration board are: R=G=B=200, since the R value of the color component in the first image data is 200 and the R value of the preset calibration board is the smallest ( is 0), the difference between the color component G value in the second image data is 200 and the G value of the preset calibration board is the smallest (0), then the target component can be directly determined to be (200, 200, 200) . If the R, G, and B values of the preset calibration board are: R=G=B=189, since the color component G value in the first image data is 180 and the G value of the preset calibration board is the smallest ( is 9), the R value of the color component in the second image data is 190 and the difference between the R value of the preset calibration plate is the smallest (1), then the target component can be directly determined to be (190, 190, 190) .
步骤S23、计算所述目标分量与所述第一图像数据的色彩分量之间的比值,得到所述第一组校正参数;Step S23, calculating the ratio between the target component and the color component of the first image data to obtain the first set of correction parameters;
本实施例中,假设所述步骤S23中以RGB值(200,200,200)为所述目标分量,则计算第一组校正参数K L0(Kr 0,Kg 0,Kb 0): In this embodiment, assuming that RGB values (200, 200, 200) are used as the target components in step S23, the first set of correction parameters K L0 (Kr 0 , Kg 0 , Kb 0 ) are calculated:
Kr 0=R L0/R L0=200/200=1; Kr 0 =R L0 /R L0 =200/200=1;
Kg 0=R L0/G L0=200/180=10/9; Kg 0 =R L0 /G L0 =200/180=10/9;
Kb 0=R L0/B L0=200/210=20/21。 Kb 0 =R L0 /B L0 =200/210=20/21.
也即,K L0=(1,10/9,20/21)。 That is, K L0 =(1, 10/9, 20/21).
步骤S24、计算所述目标分量与所述第二图像数据的色彩分量之间的比值,得到所述第二组校正参数。Step S24: Calculate the ratio between the target component and the color component of the second image data to obtain the second set of correction parameters.
本实施例中,假设所述步骤S23中以RGB值(200,200,200)为所述目标分量,计算第二组校正参数K R0(Kr 0,Kg 0,Kb 0): In this embodiment, it is assumed that RGB values (200, 200, 200) are used as the target components in step S23, and the second set of correction parameters K R0 (Kr 0 , Kg 0 , Kb 0 ) are calculated:
Kr 0=200/190=20/19; Kr 0 =200/190=20/19;
Kg 0=200/200=1; Kg 0 =200/200=1;
Kb 0=200/220=10/11。 Kb 0 =200/220=10/11.
也即,K R0=(20/19,1,10/11)。 That is, K R0 =(20/19, 1, 10/11).
参照图4,在第三实施例中,所述步骤S2包括:4, in the third embodiment, the step S2 includes:
步骤S25、获取所述第一图像数据和所述第二图像数据中的色彩分量;Step S25, acquiring color components in the first image data and the second image data;
本实施例中,假设获取到的所述第一图像数据中的色彩分量RGB值为(200,180,210),获取到的所述第二图像数据中的色彩分量RGB值为(190,200,220)。应理解,列举的具体数值仅用于帮助理解本申请方案,并不起具体限定作用。In this embodiment, it is assumed that the color component RGB values in the acquired first image data are (200, 180, 210), and the acquired color component RGB values in the second image data are (190, 200) , 220). It should be understood that the specific numerical values listed are only for helping the understanding of the solution of the present application, and do not play a specific limiting role.
步骤S26、根据所述第一图像数据的色彩分量确定与所述第一图像数据对应的第一目标分量,根据所述第二图像数据的色彩分量确定与所述第二图像数据对应的第二目标分量;Step S26: Determine a first target component corresponding to the first image data according to the color component of the first image data, and determine a second target component corresponding to the second image data according to the color component of the second image data. target component;
本实施例中,可以预设以第一图像数据的色彩分量为所述第一目标分量,预设以第二图像数据的色彩分量为所述第二目标分量。进一步的,由于色彩分量RGB具有R、G、B三个分量,可以预设其中的一个分量:如预设以第一图像数据的G值为所述第一目标分量,此时,对应的所述目标分量为(180,180,180);也可以预设以第二图像数据的色彩分量为目标分量,如预设以第二图像数据的R值为所述目标分量,此时,对应的所述第二目标分量为(190,190,190)。还可以由操作者根据自己的喜好选择所述第一图像数据中的任意一个色彩分量作为所述第一目标分量以及所述第二图像数据中的任意一个色彩分量作为所述第二目标分量。例如,在需要更鲜艳的红颜色时,可以选择所述第一图像数据中的R分量作为所述第一目标分量,选择所述第二图像数据中的R分量作为所述第二目标分量。In this embodiment, the color component of the first image data may be preset as the first target component, and the color component of the second image data may be preset as the second target component. Further, since the color component RGB has three components of R, G, and B, one of the components may be preset: if the value of G of the first image data is preset as the first target component, at this time, the corresponding The target component is (180, 180, 180); it is also possible to preset the color component of the second image data as the target component, for example, the R value of the second image data is preset as the target component, at this time, the corresponding The second target component is (190, 190, 190). The operator may also select any color component in the first image data as the first target component and any color component in the second image data as the second target component according to his own preferences. For example, when a more vivid red color is required, the R component in the first image data may be selected as the first target component, and the R component in the second image data may be selected as the second target component.
在其他实施例中,由于所述预设标定板的R、G、B值均是已知的。因此, 可以分别比较所述第一图像数据中的各个色彩分量与所述预设标定板对应的R、G、B值,计算各个色彩分量的差值,并从中选择差值最小的色彩分量作为所述第一目标分量;同样地,可以分别比较所述第二图像数据中的各个色彩分量与所述预设标定板对应的R、G、B值,计算各个色彩分量的差值,并从中选择差值最小的色彩分量作为所述第二目标分量。例如,假设预设标定板的R、G、B值为:R=G=B=200,由于第一图像数据中的色彩分量R值200与所述预设标定板的R值差值最小(为0),则可以确定所述第一目标分量为(200,200,200);由于第二图像数据中的色彩分量G值为200与所述预设标定板的G值差值最小(为0),则可以确定所述第二目标分量为(200,200,200)。若所述预设标定板的R、G、B值为:R=G=B=195,由于第一图像数据中的色彩分量R值200与所述预设标定板的R值差值最小(为5),则可以确定所述第一目标分量为(200,200,200);由于第二图像数据中的色彩分量R值190与所述预设标定板的R值差值最小(为0),则可以确定所述第二目标分量为(190,190,190)。In other embodiments, the R, G, and B values of the preset calibration plate are all known. Therefore, the R, G, and B values corresponding to each color component in the first image data and the preset calibration board can be compared respectively, the difference value of each color component can be calculated, and the color component with the smallest difference value can be selected as the the first target component; similarly, the R, G, and B values corresponding to each color component in the second image data and the preset calibration board can be compared respectively, and the difference value of each color component can be calculated, and therefrom. The color component with the smallest difference is selected as the second target component. For example, assuming that the R, G, and B values of the preset calibration board are: R=G=B=200, since the R value of the color component in the first image data is 200 and the R value of the preset calibration board is the smallest ( is 0), then it can be determined that the first target component is (200, 200, 200); since the color component G value in the second image data is 200 and the G value of the preset calibration board is the smallest difference (for 0), the second target component can be determined to be (200, 200, 200). If the R, G, and B values of the preset calibration board are: R=G=B=195, since the color component R value in the first image data is 200 and the R value of the preset calibration board is the smallest ( is 5), it can be determined that the first target component is (200, 200, 200); since the color component R value in the second image data is 190 and the R value of the preset calibration plate has the smallest difference (0 ), the second target component can be determined to be (190, 190, 190).
步骤S27、根据所述第一目标分量和所述第二目标分量,计算得到均衡分量;Step S27, calculating the equalization component according to the first target component and the second target component;
本实施例中,在得到所述第一目标分量和所述第二目标分量后,可以根据所述第一目标分量和所述第二目标分量,计算得到二者的均衡分量。具体地,可以分别赋予所述第一目标分量和所述第二目标分量对应的权重系数,两个权重系数的大小关系可以预先设置,也可以提供多个选项供操作者进行选择,也可以通过计算得到。In this embodiment, after the first target component and the second target component are obtained, an equalized component of the first target component and the second target component may be calculated and obtained. Specifically, weight coefficients corresponding to the first target component and the second target component can be assigned respectively, and the magnitude relationship between the two weight coefficients can be preset, or multiple options can be provided for the operator to choose, or Calculated.
在其他实施例中,还可以计算所述第一目标分量与所述第二目标分量之间的平均值,得到的所述平均值即为所述均衡分量。In other embodiments, an average value between the first target component and the second target component may also be calculated, and the obtained average value is the equalized component.
可以理解的是,在计算得到上述均衡分量后,还可以引入其他参数、系数或常数,以使计算得到的所述均衡分量更准确。另外,计算均衡分量的方式并不上述列举的两种,在其他实施例中,还可以为其他合理的计算方法,此处不作穷举。It can be understood that, after the above-mentioned equalized component is obtained by calculation, other parameters, coefficients or constants may also be introduced, so as to make the calculated equalized component more accurate. In addition, the methods for calculating the equalization component are not the two listed above, and in other embodiments, other reasonable calculation methods may also be used, which are not exhaustive here.
基于所述第三实施例,参照图5,所述步骤S27进一步包括:Based on the third embodiment, referring to FIG. 5 , the step S27 further includes:
步骤S271、获取与所述第一图像数据对应的第一预设均衡比例系数以及与所述第二图像数据对应的第二预设均衡比例系数,所述第一预设均衡参数 与所述第二预设均衡参数之和为预设值;Step S271: Obtain a first preset equalization scale coefficient corresponding to the first image data and a second preset equalization scale coefficient corresponding to the second image data, where the first preset equalization parameter is the same as the first preset equalization scale coefficient. The sum of the two preset equalization parameters is the preset value;
步骤S272、根据所述第一预设均衡比例系数、第二预设均衡比例系数、所述第一目标分量,以及所述第二目标分量计算得到所述均衡分量。Step S272: Calculate and obtain the equalization component according to the first preset equalization scale coefficient, the second preset equalization scale coefficient, the first target component, and the second target component.
本实施例中,获取与所述第一图像数据对应的第一预设均衡比例系数K 1,与所述第二图像数据对应的第二预设均衡比例系数K 2。其中,所述第一预设均衡参数与所述第二预设均衡参数之和为预设值,所述预设值可以为1或其他合理数值。例如,K 1+K 2=1,K 1、K 2的取值可以根据实际需要合理进行设置。K 1=0,K 2=1;K 1=1,K 2=0;K 1=0.5,K 2=0.5;K 1=0.7,K 2=0.3等。 In this embodiment, a first preset equalization scale coefficient K 1 corresponding to the first image data and a second preset equalization scale coefficient K 2 corresponding to the second image data are obtained. The sum of the first preset equalization parameter and the second preset equalization parameter is a preset value, and the preset value may be 1 or other reasonable values. For example, K 1 +K 2 =1, and the values of K 1 and K 2 can be reasonably set according to actual needs. K 1 = 0, K 2 = 1; K 1 = 1, K 2 = 0; K 1 = 0.5, K 2 = 0.5; K 1 = 0.7, K 2 = 0.3 and the like.
根据所述第一预设均衡比例系数K 1、第二预设均衡比例系数K 2、所述第一目标分量RGB L1,以及所述第二目标分量计算得到所述均衡分量RGB R1,计算所述均衡分量RGB A。 The equalization component RGB R1 is calculated and obtained according to the first preset equalization scale coefficient K 1 , the second preset equalization scale coefficient K 2 , the first target component RGB L1 , and the second target component, and the calculated Describe the equalized component RGB A .
其中,所述第一预设均衡比例系数K 1,与所述第二图像数据对应的第二预设均衡比例系数K 2之间的大小关系可以通过如下方式进行确定: Wherein, the magnitude relationship between the first preset equalization scale coefficient K 1 and the second preset equalization scale coefficient K 2 corresponding to the second image data may be determined in the following manner:
获取所述预定标定板的预设色彩分量;计算所述第一目标分量与所述预设标定板的预设色彩分量之间的第一差值,所述第二目标分量与所述预设标定板的预设色彩分量之间的第二差值;比较第一差值与所述第二差值的大小;若所述第一差值小于所述第二差值,则所述第一预设均衡比例系数大于所述第二预设均衡比例系数;若所述第一差值大于所述第二差值,则所述第二预设均衡比例系数大于所述第一预设均衡比例系数;若所述第一差值等于所述第二差值,则所述第一预设均衡比例系数等于所述第二预设均衡比例系数。具体权重系数大小数值则根据实际需要合理设置,此处不再做具体数值举例说明。Obtain the preset color component of the predetermined calibration plate; calculate the first difference between the first target component and the preset color component of the preset calibration plate, and calculate the second target component and the preset color component. calibrating the second difference between the preset color components of the board; comparing the magnitude of the first difference and the second difference; if the first difference is smaller than the second difference, the first difference The preset equalization scale coefficient is greater than the second preset equalization scale coefficient; if the first difference is greater than the second difference, the second preset equalization scale coefficient is greater than the first preset equalization scale coefficient; if the first difference is equal to the second difference, the first preset equalization scale coefficient is equal to the second preset equalization scale coefficient. The specific value of the weight coefficient is set reasonably according to the actual needs, and the specific value is not given as an example here.
进一步地,参照图6,所述步骤S272包括:Further, referring to FIG. 6 , the step S272 includes:
步骤S2721、将所述第一预设均衡比例系数与所述第一目标分量相乘,得到第一乘积;Step S2721, multiplying the first preset equalization scale coefficient by the first target component to obtain a first product;
本实施例中,将所述第一预设均衡比例系数K 1与所述第一目标分量RGB L1相乘,得到第一乘积:K 1*RGB L1。 In this embodiment, the first preset equalization scale coefficient K 1 is multiplied by the first target component RGB L1 to obtain a first product: K 1 *RGB L1 .
步骤S2722、将所述第二预设均衡比例系数与所述第二目标分量相乘,得到第二乘积;Step S2722, multiplying the second preset equalization proportional coefficient by the second target component to obtain a second product;
本实施例中,将所述第二预设均衡比例系数K 2与所述第二目标分量RGB R1相乘,得到第二乘积:K 2*RGB R1。 In this embodiment, the second preset equalization scale coefficient K 2 is multiplied by the second target component RGB R1 to obtain a second product: K 2 *RGB R1 .
步骤S2723、计算所述第一乘积与所述第二乘积的和值,得到所述均衡分量。Step S2723: Calculate the sum of the first product and the second product to obtain the equalized component.
本实施例中,计算得到的所述第一乘积K 1*RGB L1与所述第二乘积K 2*RGB R1之间的和值,得到所述均衡分量RGB A: In this embodiment, the calculated sum of the first product K 1 *RGB L1 and the second product K 2 *RGB R1 is calculated to obtain the equalized component RGB A :
RGB A=K 1*RGB L1+K 2*RGB R1。 RGB A =K 1 *RGB L1 +K 2 *RGB R1 .
假设K 1=0.5,K 2=0.5,上述步骤S26中所述第一目标分量RGB L1为(200,200,200),所述第二目标分量RGB R1为(220,220,220)。 Assuming K 1 =0.5, K 2 =0.5, the first target component RGB L1 in the above step S26 is (200, 200, 200), and the second target component RGB R1 is (220, 220, 220).
此时,RGB A=K 1*RGB L1+K 2*RGB R1=0.5*(200,200,200)+0.5*(220,220,220)=(210,210,210)。 At this time, RGB A =K 1 *RGB L1 +K 2 *RGB R1 =0.5*(200, 200, 200)+0.5*(220, 220, 220)=(210, 210, 210).
步骤S28、根据所述均衡分量以及所述第一图像数据的色彩分量,计算得到第一组校正参数,根据所述均衡分量以及所述第二图像数据的分量,计算得到第二组校正参数。Step S28: Calculate a first set of correction parameters according to the equalization component and the color component of the first image data, and calculate and obtain a second set of correction parameters according to the equalization component and the components of the second image data.
本实施例中,第一组校正参数的计算方式可以为:计算所述均衡分量与所述第一图像数据的色彩分量之间的比值;也可以为计算所述第一图像数据的色彩分量与所述均衡分量之间的比值;又可以为计算所述均衡分量与所述第一图像数据的色彩分量之间的差值;还可以为计算得到上述比值或差值后,再加上或减去一个校正系数,该校正系数可以为经验值,也可以为经过多次试验后的调整值。当然,所述第一组校正参数的计算方式并不限于上述列举的几种情况,还可以根据实际需要选择其他合理的计算方式。In this embodiment, the calculation method of the first group of correction parameters may be: calculating the ratio between the equalization component and the color component of the first image data; or calculating the difference between the color component of the first image data and the color component of the first image data. The ratio between the equalized components; it can also be calculated as the difference between the equalized component and the color component of the first image data; it can also be calculated to add or subtract the above ratio or difference. To get a correction coefficient, the correction coefficient can be an empirical value or an adjusted value after many trials. Of course, the calculation methods of the first group of correction parameters are not limited to the above listed situations, and other reasonable calculation methods can also be selected according to actual needs.
同样地,第二组校正参数的计算方式可以为:计算所述均衡分量与所述第二图像数据的色彩分量之间的比值;也可以为计算所述第二图像数据的色彩分量与所述均衡分量之间的比值;又可以为计算所述均衡分量与所述第二图像数据的色彩分量之间的差值;还可以为计算得到上述比值或差值后,再加上或减去一个校正系数,该校正系数可以为经验值,也可以为经过多次试验后的调整值。当然,所述第二组校正参数的计算方式并不限于上述列举的几种情况,还可以根据实际需要选择其他合理的计算方式。Similarly, the calculation method of the second group of correction parameters may be: calculating the ratio between the equalization component and the color component of the second image data; or calculating the color component of the second image data and the color component of the second image data. The ratio between the equalized components; it can also be calculated as the difference between the equalized component and the color component of the second image data; it can also be calculated to obtain the above ratio or difference, plus or minus a Correction coefficient, which can be either an empirical value or an adjusted value after many tests. Of course, the calculation methods of the second group of correction parameters are not limited to the above listed situations, and other reasonable calculation methods can also be selected according to actual needs.
所述第一组校正参数和所述第二组校正参数之间的计算方式可以相同,也可以不同。可以理解的是,为了确保所述第一图像数据和第二图像数据趋于一致,可以优选二者的计算方式相同。The calculation methods between the first group of correction parameters and the second group of correction parameters may be the same or different. It can be understood that, in order to ensure that the first image data and the second image data tend to be consistent, it may be preferable that the two are calculated in the same manner.
具体地,假设获取到的所述第一图像数据中的色彩分量RGB值为: RGB L0=(200,180,210),获取到的所述第二图像数据中的色彩分量RGB值为:RGB R0=(190,200,220),则所述第一组校正参数K L1和所述第二组校正参数K R1的计算方式可以如下: Specifically, it is assumed that the acquired color component RGB value in the first image data is: RGB L0 =(200, 180, 210), and the acquired color component RGB value in the second image data is: RGB R0 =(190, 200, 220), then the calculation methods of the first group of correction parameters K L1 and the second group of correction parameters K R1 may be as follows:
KL1=RGBA/RGBL0=(210,210,210)/(200,180,210)=(21/20,7/6,1),KL1=RGBA/RGBL0=(210, 210, 210)/(200, 180, 210)=(21/20, 7/6, 1),
KR1=RGBA/RGBR0=(210,210,210)/(190,200,220)=(21/19,21/20,21/22)。KR1=RGBA/RGBR0=(210, 210, 210)/(190, 200, 220)=(21/19, 21/20, 21/22).
参照图7,在第五实施例中,基于所述第四实施例,所述步骤S30包括:7 , in the fifth embodiment, based on the fourth embodiment, the step S30 includes:
步骤S31、获取所述第一目标图像的分量以及所述第二目标图像的分量;Step S31, acquiring the components of the first target image and the components of the second target image;
本实施例中,假设获取的所述第一目标图像的分量为:URGB L0=(200,200,220),获取的所述第二目标图像的分量为:URGB R0=(200,180,210)。可以理解的是,所述第一目标图像的分量、所述第二目标图像的分量,分别与所述第一图像数据中的色彩分量、所述第二图像数据中的色彩分量对应,如:当所述色彩分量为RGB值时,所述第一目标图像或第二目标图像的分量也为RGB值;同样地,当所述色彩分量为YCbCr值时,所述第一目标图像或第二目标图像的分量也为YCbCr值。 In this embodiment, it is assumed that the acquired components of the first target image are: URGB L0 =(200, 200, 220), and the acquired components of the second target image are: URGB R0 =(200, 180, 210 ). It can be understood that the components of the first target image and the components of the second target image correspond to the color components in the first image data and the color components in the second image data, respectively, such as: When the color components are RGB values, the components of the first target image or the second target image are also RGB values; similarly, when the color components are YCbCr values, the first target image or the second target image The components of the target image are also YCbCr values.
步骤S32、计算所述第一组校正参数与第一目标图像的分量之间的乘积,得到校正后的所述第一目标图像,计算所述第二组校正参数与第二目标图像的分量之间的乘积,得到校正后的所述第二目标图像。Step S32: Calculate the product between the first set of correction parameters and the components of the first target image to obtain the corrected first target image, and calculate the difference between the second set of correction parameters and the components of the second target image. to obtain the corrected second target image.
本实施例中,计算所述第一组校正参数K L1与第一目标图像的分量URGB L0之间的乘积:K L1*URGB L0,此时,校正后的所述第一目标图像的分量为K L1*URGB L0,从而得到校正后的所述第一目标图像。 In this embodiment, the product between the first set of correction parameters K L1 and the component URGB L0 of the first target image is calculated: K L1 *URG L0 , at this time, the corrected component of the first target image is K L1 *URGB L0 , so as to obtain the corrected first target image.
计算所述第二组校正参数K R1与第二目标图像的分量URGB R0之间的乘积:K R1*URGB R0,此时,校正后的所述第二目标图像的分量为K R1*URGB R0,从而得到校正后的所述第二目标图像。 Calculate the product between the second set of correction parameters K R1 and the component URGB R0 of the second target image: K R1 *URG R0 , at this time, the corrected component of the second target image is K R1 *URG R0 , so as to obtain the corrected second target image.
本申请还提供一种图像处理装置,所述图像处理装置包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的立体内窥镜的图像处理程序;所述立体内窥镜的图像处理程序被所述处理器执行时实现如上所述的方 法的步骤。The present application also provides an image processing device, which includes a memory, a processor, and an image processing program for a stereoscopic endoscope that is stored on the memory and can run on the processor; The image processing program of the speculum, when executed by the processor, implements the steps of the method as described above.
本实施例中,所述图像处理装置可以是立体内窥镜,还可以是独立于所述立体内窥镜之外的装置,还可以是手术机器人。In this embodiment, the image processing device may be a stereoscopic endoscope, a device independent of the stereoscopic endoscope, or a surgical robot.
具体地,手术机器人通常可以包括主操作台及从操作设备,主操作台用于根据医生的操作向从操作设备发送控制命令,以控制从操作设备;从操作设备用于响应主操作台发送的控制命令,并进行相应的手术操作。所述从操作设备包括机械臂、设置于机械臂上的动力机构以及操作臂,所述操作臂用于在动力机构的驱动作用下伸入体内,通过其位于远端的末端器械执行手术操作,及/或通过其位于远端的立体内窥镜获取体内影像。所述主操作台还用于显示操作设备获取的影像。Specifically, the surgical robot may generally include a master console and a slave operation device. The master console is used to send control commands to the slave operation device according to the operation of the doctor to control the slave operation device; the slave operation device is used to respond to the command sent by the master console. Control commands and perform corresponding surgical operations. The slave operating device includes a mechanical arm, a power mechanism disposed on the mechanical arm, and an operating arm, the operating arm is used to extend into the body under the driving action of the power mechanism, and perform surgical operations through its distal end instrument, and/or acquire in vivo images through its distally located stereoscopic endoscope. The main console is also used for displaying images obtained by operating the device.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有立体内窥镜的图像处理程序,所述立体内窥镜的图像处理程序被处理器执行时实现如上所述的图像处理装置的图像处理方法的步骤。The present application further provides a computer-readable storage medium on which an image processing program of a stereoscopic endoscope is stored, and the image processing program of the stereoscopic endoscope is executed by a processor to achieve the above-mentioned The steps of the image processing method of the image processing apparatus.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台图像处理装置(可以是手机,计算机,服务器,被控终端,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to the prior art. The computer software products are stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make an image processing device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
Claims (17)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010614933.5A CN111726600A (en) | 2020-06-30 | 2020-06-30 | Image processing method, device and storage medium for stereoscopic endoscope |
| CN202010614933.5 | 2020-06-30 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022000975A1 true WO2022000975A1 (en) | 2022-01-06 |
Family
ID=72570449
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/132541 Ceased WO2022000975A1 (en) | 2020-06-30 | 2020-11-28 | Image processing method and apparatus for stereoscopic endoscope, and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN111726600A (en) |
| WO (1) | WO2022000975A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115412718A (en) * | 2022-08-17 | 2022-11-29 | 华伦医疗用品(深圳)有限公司 | Endoscope camera shooting system, image processing method and readable storage medium |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111726600A (en) * | 2020-06-30 | 2020-09-29 | 深圳市精锋医疗科技有限公司 | Image processing method, device and storage medium for stereoscopic endoscope |
| CN114296230A (en) * | 2021-12-03 | 2022-04-08 | 青岛奥美克医疗科技有限公司 | Dual-lens calibration focusing method, three-dimensional image adapter and endoscope system |
| CN116012463A (en) * | 2022-12-30 | 2023-04-25 | 江西帛视智能科技有限公司 | Correction method of glass plastic lens |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2717222A1 (en) * | 2007-03-30 | 2014-04-09 | Mitsubishi Electric Corporation | Image processing apparatus and program recording medium |
| CN107135384A (en) * | 2017-05-19 | 2017-09-05 | 中国科学院深圳先进技术研究院 | White balance adjusting method, device, image processing terminal and storage medium |
| CN110505459A (en) * | 2019-08-16 | 2019-11-26 | 域鑫科技(惠州)有限公司 | Suitable for the image color correction method of endoscope, device and storage medium |
| US20200195827A1 (en) * | 2018-12-12 | 2020-06-18 | Vivotek Inc. | Metering compensation method and related monitoring camera apparatus |
| CN111726600A (en) * | 2020-06-30 | 2020-09-29 | 深圳市精锋医疗科技有限公司 | Image processing method, device and storage medium for stereoscopic endoscope |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102438153B (en) * | 2010-09-29 | 2015-11-25 | 华为终端有限公司 | Multi-camera image correction method and equipment |
| CN102542548B (en) * | 2011-12-30 | 2016-02-03 | 深圳万兴信息科技股份有限公司 | Color calibration method and device between a kind of image |
| CN105519107B (en) * | 2013-10-18 | 2018-06-19 | 奥林巴斯株式会社 | Video signal output apparatus and picture signal receive-transmit system |
| CN103927760A (en) * | 2014-04-30 | 2014-07-16 | 重庆环视科技有限公司 | Automatic stereoscopic vision color calibration system |
| CN105791783B (en) * | 2016-03-10 | 2018-11-02 | 广州视睿电子科技有限公司 | Camera imaging color adjusting method and system |
| CN110751611A (en) * | 2019-11-01 | 2020-02-04 | 深圳市博盛医疗科技有限公司 | Method for calibrating display colors of endoscope system and endoscope system |
-
2020
- 2020-06-30 CN CN202010614933.5A patent/CN111726600A/en active Pending
- 2020-11-28 WO PCT/CN2020/132541 patent/WO2022000975A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2717222A1 (en) * | 2007-03-30 | 2014-04-09 | Mitsubishi Electric Corporation | Image processing apparatus and program recording medium |
| CN107135384A (en) * | 2017-05-19 | 2017-09-05 | 中国科学院深圳先进技术研究院 | White balance adjusting method, device, image processing terminal and storage medium |
| US20200195827A1 (en) * | 2018-12-12 | 2020-06-18 | Vivotek Inc. | Metering compensation method and related monitoring camera apparatus |
| CN110505459A (en) * | 2019-08-16 | 2019-11-26 | 域鑫科技(惠州)有限公司 | Suitable for the image color correction method of endoscope, device and storage medium |
| CN111726600A (en) * | 2020-06-30 | 2020-09-29 | 深圳市精锋医疗科技有限公司 | Image processing method, device and storage medium for stereoscopic endoscope |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115412718A (en) * | 2022-08-17 | 2022-11-29 | 华伦医疗用品(深圳)有限公司 | Endoscope camera shooting system, image processing method and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111726600A (en) | 2020-09-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022000975A1 (en) | Image processing method and apparatus for stereoscopic endoscope, and storage medium | |
| CN110505459B (en) | Image color correction method, device and storage medium suitable for endoscope | |
| US20150092090A1 (en) | Image processing apparatus, image processing system, and image processing method | |
| JP6926347B2 (en) | Image processing systems, image processing equipment, image processing methods, and computer programs | |
| US10201306B2 (en) | Method and system for capturing images for wound assessment with self color compensation | |
| US11330962B2 (en) | Endoscope system, processor device, and method of operating endoscope system | |
| CN113920037B (en) | Endoscope picture correction method, device, correction system and storage medium | |
| JP2008295034A (en) | Image processing apparatus and image processing method | |
| US10834293B2 (en) | Image processing device, storage medium, display apparatus and image processing method | |
| EP3756529B1 (en) | Display correction system applied for endoscopes | |
| US10818039B2 (en) | Image processing method, image processing device and medical imaging device | |
| US9560968B2 (en) | Remote monitoring framework | |
| CN104469334A (en) | Method and device for processing image data obtained by medical equipment | |
| US20190343369A1 (en) | Processor for electronic endoscope, and electronic endoscope system | |
| US11145274B2 (en) | Color difference adjustment image data generation method, color difference adjustment image display method, color difference adjustment image data generating device, and color difference adjustment image display system | |
| EP2204980A1 (en) | Image processing system, imaging system, and microscope imaging system | |
| Tiwari et al. | Calibration card based technique for accurate color representation in clinical settings | |
| CN119943002B (en) | Display color clone calibration method and device, electronic terminal and storage medium | |
| JP7659874B1 (en) | Surgical imaging equipment | |
| CN119014791B (en) | Medical endoscope equipment and image processing method | |
| JP4875578B2 (en) | Color conversion definition creation method, color conversion definition creation device, and endoscope system | |
| JP2019133007A (en) | Medical image creation device | |
| CN115994862A (en) | Image color space mapping correction method, device, medium and endoscope system | |
| JP2016106932A (en) | Endoscope image processing device, endoscope image processing method, program, and endoscope system | |
| CN120636714A (en) | Defogging method based on endoscopic image and endoscope system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20942859 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06 /06/2023) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20942859 Country of ref document: EP Kind code of ref document: A1 |