A method, device and related equipment for determining the brightness of an endoscope image
By analyzing and comparing the brightness value distribution information of endoscopic images, the brightness weight distribution is determined, which solves the problem of inaccurate brightness evaluation in the existing technology, achieves more accurate brightness adjustment, and avoids image overexposure. or too dark.
Patent Information
- Application Number
- CN202010724076.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-10-15
AI Technical Summary
The existing technology lacks the evaluation of the observation scene in the brightness evaluation of endoscope images, resulting in inaccurate calculation results in certain scenes, which may cause the image to be overexposed or too dark, affecting the inspection effect.
By obtaining the brightness value distribution information of the endoscopic image, a brightness distribution map is formed, and the similarity is compared with the preset standard brightness distribution map of the observation scene to determine the image brightness weight distribution information and calculate the overall brightness value to adapt to different observations. Change of scene.
It improves the accuracy of endoscopic image brightness assessment, avoids overexposure or overdarkness of the dimmed image in the area of interest, and enhances the inspection effect.
Smart Images

Figure CN111861928B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of endoscopes, and in particular to a method and apparatus for determining the brightness of an endoscope image, an image processing device, an endoscope system, and a storage medium. Background Art
[0002] During endoscopic surgery, the doctor controls the endoscope to image the cavity, and the imaging environment changes in real time, which will affect the stability of the image brightness. Therefore, in order to obtain an endoscopic image with ideal and stable brightness, the prior art proposes an automatic dimming method, which is as follows: first determine the endoscopic image brightness and the current light level of the endoscopic light source, and then adjust the light level of the endoscopic light source according to the difference between the endoscopic image brightness and the preset image brightness reference value, so that the brightness value of the collected endoscopic image is always stable near the preset image brightness reference value.
[0003] The scheme for determining the brightness of the endoscopic image is generally as follows: determining the value of the brightness channel of the endoscopic image, and taking the average of all brightness channels as the overall brightness of the endoscopic image.
[0004] However, in actual application, the inventor of the present application found that the above-mentioned scheme of calculating the current image brightness only based on the mean value of the image brightness channel lacks the evaluation of the endoscopic observation scene, resulting in the calculation results in some scenes not being able to correctly evaluate the current image brightness. For example, when observing lesions on the inner wall of the human body, it is often necessary to observe against the wall. At this time, part of the image is a darker distant image area, and part of the image is a brighter close-up image area. If the image brightness is calculated according to the above scheme, a brightness value smaller than the close-up image area will be obtained. At this time, in order to achieve the image brightness reference value, the endoscope light source will increase the illumination light intensity, which may cause the close-up image area to be overexposed, affecting normal inspection.
[0005] Therefore, how to improve the accuracy of evaluating the brightness of endoscopic images and avoid overexposure or darkness in the area of interest of the dimmed endoscopic images is a technical problem that technicians in this field currently need to solve. Summary of the invention
[0006] The purpose of the present application is to provide a method, an apparatus, an image processing device, an endoscope system and a storage medium for determining the brightness of an endoscopic image, which can improve the accuracy of evaluating the brightness of an endoscopic image and avoid overexposure or darkness in the area of interest of the dimmed endoscopic image.
[0007] In order to solve the above technical problems, the present application provides a method for determining the brightness of an endoscopic image, and the method for determining the brightness of an endoscopic image includes:
[0008] Acquiring image brightness value distribution information of the endoscopic image;
[0009] Based on the image brightness value distribution information, forming a brightness distribution map of the endoscopic image;
[0010] Comparing the brightness distribution diagram with a standard brightness distribution diagram under each endoscope observation scene for similarity;
[0011] Determining image brightness weight distribution information of the endoscopic image according to the similarity comparison result;
[0012] The overall brightness value of the endoscopic image is calculated according to the image brightness value distribution information and the image brightness weight distribution information.
[0013] Optionally, the acquiring of image brightness value distribution information of the endoscopic image includes:
[0014] Dividing the endoscopic image into a plurality of image partitions, and recording position information of each of the image partitions;
[0015] Calculating the brightness value of each of the image partitions;
[0016] Image brightness value distribution information of the endoscopic image is determined according to the brightness values of all the image subareas and their position information.
[0017] Optionally, forming a brightness distribution map of the endoscopic image based on the image brightness value distribution information includes:
[0018] Determine a reference brightness value corresponding to each of the image partitions;
[0019] Comparing the brightness value of each of the image partitions with the corresponding reference brightness value;
[0020] If the brightness value of the image partition is greater than the corresponding reference brightness value, marking the image partition as a bright area;
[0021] If the brightness value of the image partition is less than or equal to the corresponding reference brightness value, marking the image partition as a dark area;
[0022] A brightness distribution map of the endoscopic image is formed according to the position information of the bright area and the dark area in the endoscopic image.
[0023] Optionally, the determining a reference brightness value corresponding to each of the image partitions includes:
[0024] Determine the corresponding reference brightness value according to the center point distance of each image partition;
[0025] The center point distance is the distance between the center point of the image partition and the center point of the endoscopic image.
[0026] Optionally, forming a brightness distribution map of the endoscopic image based on the image brightness value distribution information includes:
[0027] Acquire reference brightness value distribution information of each endoscopic observation scene to determine the reference brightness value corresponding to each image partition of the endoscopic image in each endoscopic observation scene;
[0028] forming a brightness distribution diagram of the endoscopic image in each endoscopic observation scene according to the image brightness value distribution information and the reference brightness value distribution information;
[0029] but,
[0030] The comparing the brightness distribution diagram with a standard brightness distribution diagram of each preset endoscope observation scene for similarity includes:
[0031] The brightness distribution diagram of the endoscopic image in each endoscopic observation scene is respectively compared with the corresponding standard brightness distribution diagram for similarity.
[0032] Optionally, determining the image brightness weight distribution information of the endoscopic image according to the similarity comparison result includes:
[0033] The endoscope observation scene with the highest similarity in the similarity comparison results is set as the target endoscope observation scene;
[0034] The brightness weight distribution information corresponding to the target endoscope observation scene is used as the image brightness weight distribution information of the endoscope image.
[0035] Optionally, determining the image brightness weight distribution information of the endoscopic image according to the similarity comparison result includes:
[0036] Determining the scene matching degree corresponding to each of the endoscope observation scenes according to the similarity comparison result;
[0037] Performing a weighted average calculation based on the scene matching degree on the brightness weight distribution information corresponding to all the endoscopic observation scenes to obtain image brightness weight distribution information of the endoscopic image;
[0038] Among them, in the weighted average calculation process, the scene matching degree is positively correlated with the weight value of the brightness weight distribution information.
[0039] Optionally, the endoscopic observation scenes include any two or more of: gastric angle observation, wall observation, distant view observation, biopsy observation and transparent cap scene observation.
[0040] Optionally, when the endoscopic observation scene includes the biopsy observation, the method further includes:
[0041] Acquiring the scope type of the endoscope used to acquire the endoscopic image;
[0042] A standard brightness distribution diagram corresponding to the biopsy observation scene is determined according to the scope type.
[0043] The present application also provides a device for determining the brightness of an endoscopic image, the device for determining the brightness of an endoscopic image comprising:
[0044] A brightness value distribution information acquisition module, used to acquire image brightness value distribution information of an endoscopic image;
[0045] A brightness distribution map generating module, used for forming a brightness distribution map of the endoscopic image based on the image brightness value distribution information;
[0046] A similarity comparison module, used for performing a similarity comparison between the brightness distribution diagram and a standard brightness distribution diagram under each endoscope observation scene;
[0047] A weight determination module, used to determine image brightness weight distribution information of the endoscopic image according to the similarity comparison result;
[0048] An overall brightness determination module is used to calculate the overall brightness value of the endoscopic image according to the image brightness value distribution information and the image brightness weight distribution information.
[0049] The present application also provides an image processing device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned method for determining the brightness of an endoscopic image when calling the computer program in the memory.
[0050] The present application also provides an endoscope system, comprising:
[0051] An endoscope light source, used for emitting illumination light;
[0052] an endoscope connected to the endoscope light source and used to transmit the illumination light to the object to be photographed and to collect an endoscopic image of the object;
[0053] The above-mentioned image processing device is respectively connected to the endoscope light source and the endoscope for acquiring the endoscope image, performing image processing on the endoscope image, and feeding back part of the image processing result to the endoscope light source;
[0054] as well as,
[0055] A display is communicatively connected to the image processing device and is used to present the image processing result output by the image processing device.
[0056] The present application also provides a storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the above-mentioned method for determining the brightness of an endoscopic image is implemented.
[0057] Compared with the prior art, the method, device, image processing device, endoscope system and storage medium for determining the brightness of an endoscopic image provided by the present application have the following beneficial effects:
[0058] The present application compares the brightness distribution diagram of the endoscopic image with the standard brightness distribution diagram under each preset endoscopic observation scene to obtain the degree of match between the actual shooting scene used to describe the endoscopic image and each preset endoscopic observation scene. The higher the similarity between the brightness distribution diagram of the endoscopic image and the standard brightness distribution diagram under a certain endoscopic observation scene, the greater the probability that the actual shooting scene of the endoscopic image is the endoscopic observation scene.
[0059] Furthermore, in order to adapt to different endoscopic observation scenes, there may be different image brightness weight distribution conditions. Therefore, the present application determines the image brightness weight distribution information of the endoscopic image based on the similarity comparison result, and calculates the overall brightness value of the endoscopic image based on the image brightness value distribution information and the image brightness weight distribution information. This can adapt to the scene changes of endoscopic inspection and improve the accuracy of evaluating the brightness of endoscopic images. Furthermore, when the endoscopic light source is dimmed based on the endoscopic image brightness determined by the present application, it can avoid overexposure or darkness in the area of interest of the dimmed endoscopic image. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0061] Figure 1 A flowchart of a method for determining the brightness of an endoscopic image provided in an embodiment of the present application;
[0062] Figure 2 A schematic diagram of dividing an endoscopic image into a plurality of image partitions provided in an embodiment of the present application;
[0063] Figure 3A flowchart of a method for forming a brightness distribution diagram of an endoscopic image based on the image brightness value distribution information provided in an embodiment of the present application;
[0064] Figure 4 A schematic diagram of a standard brightness distribution diagram in a stomach angle scene provided in an embodiment of the present application;
[0065] Figure 5 A schematic diagram of a standard brightness distribution diagram in a transparent hat scene provided in an embodiment of the present application;
[0066] Figure 6 A schematic diagram of the structure of a device for determining the brightness of an endoscopic image provided in an embodiment of the present application;
[0067] Figure 7 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0069] Figure 1 This is a flow chart of a method for determining the brightness of an endoscopic image provided in an embodiment of the present application. The method can be applied to any endoscopic system, and can be specifically executed by an image processing device in the endoscopic system.
[0070] See below Figure 1 , the method may include:
[0071] S101: Acquire image brightness value distribution information of an endoscopic image;
[0072] Before this step, there may be an operation of collecting endoscopic images, and the image brightness value distribution information of the endoscopic image is information describing the brightness of each position / area in the endoscopic image. According to the image brightness value distribution information, the area with higher brightness and the area with lower brightness in the endoscopic image can be determined.
[0073] Specifically, the image brightness value distribution information may include the brightness value of each pixel in the endoscopic image and its position information.
[0074] Alternatively, in order to reduce the amount of calculation for subsequent similarity comparison and improve the real-time performance of endoscopic image brightness assessment, the image brightness value distribution information may also include the brightness value and position information of each image partition in the endoscope image.
[0075] Therefore, in this embodiment, the specific implementation method of obtaining the image brightness value distribution information of the endoscopic image can be: dividing the endoscopic image into multiple image partitions, and recording the position information of each of the image partitions; calculating the brightness value of each of the image partitions; determining the image brightness value distribution information of the endoscopic image based on the brightness values of all the image partitions and their position information.
[0076] Specifically, when dividing the endoscopic image into a plurality of image partitions, the following method can be used: Figure 2 In the manner shown, the endoscopic image is divided into multiple image partitions of the same size. The size of the image partition can be set according to the endoscopic image resolution (such as the image sensor resolution of the endoscope). As a feasible implementation method, the size of the image partition in this embodiment is positively correlated with the endoscope resolution so as to achieve a balance between the amount of calculation and the accuracy of brightness evaluation. For example, when the resolution of the endoscopic image is 1920*1080, the image partition can be a sub-block of 16*16 or 32*32 pixels to reduce the amount of calculation. When the resolution is 960*480, the image partition can be a sub-block of 8*8 or 4*4 pixels to ensure the evaluation accuracy. The above-mentioned method of dividing the endoscopic image into multiple image partitions for processing and calculation can improve the real-time performance of the brightness evaluation of the endoscopic image.
[0077] In this embodiment, the position information of each image partition can be determined by encoding each image partition. For example, the image partitions can be numbered in rows or columns, and the position of each image partition in the endoscopic image can be determined by the number value, so that the number value of the image partition is its position information. Figure 2 A method of encoding image partitions in row arrangement is disclosed, and the numbers in each image partition are the codes of the image partitions. In addition, this embodiment can also use other marking methods to mark the positions of each image partition in the endoscopic image, for example, feature pixels can be set in each image partition, and then the position information of the image partition including the feature pixel can be determined by locating the position of the feature pixel.
[0078] The process of calculating the brightness value of each of the image partitions may include: determining the brightness information of the pixels of the image partition; wherein the pixel brightness information includes the brightness value of each pixel; performing a preset operation on the pixel brightness information to obtain the brightness value of the image partition; wherein the preset operation may include any one or a combination of any several of arithmetic mean calculation, square sum mean calculation, median calculation, maximum value calculation and minimum value calculation. In addition, the present embodiment may also sort the pixels in the same image partition in the order of increasing or decreasing brightness, and use the brightness value of the pixel in the Nth position of the sorting as the brightness value of the image partition. The present embodiment may also determine the brightness value of the image partition according to the grayscale value of each pixel in the image partition. Specifically, the brightness value of the image partition may be calculated according to the arithmetic mean, square sum mean, median, maximum value, minimum value or grayscale value of the grayscale value of each pixel in the image partition.
[0079] S102: forming a brightness distribution map of the endoscopic image based on the image brightness value distribution information;
[0080] The "brightness distribution diagram" is used to describe the light and dark distribution of the endoscopic image. This embodiment can determine the brightness value of each position in the endoscopic image based on the image brightness value distribution information, and then determine the light and dark characteristics of the endoscopic image at each position.
[0081] As a feasible implementation, this embodiment can introduce a reference brightness value (or, brightness threshold) to evaluate the light and dark characteristics of each position in the endoscopic image. For example, all pixels in the endoscopic image with brightness values greater than the reference brightness value can be regarded as bright pixels, and all pixels in the endoscopic image with brightness values less than or equal to the reference brightness value can be regarded as dark pixels. The light and dark distribution of the endoscopic image is obtained according to the position information of the bright pixels and the dark pixels, that is, the endoscopic brightness distribution map is obtained. In the above process, each pixel can have its corresponding reference brightness value, and the reference brightness values of the pixels can be the same.
[0082] In addition, on the basis of dividing the endoscopic image into a plurality of image partitions, and the image brightness value distribution information including the brightness value of each image partition, the specific implementation of "forming the brightness distribution map of the endoscopic image based on the image brightness value distribution information" can also be as follows: Figure 3 As shown, it may include but is not limited to the following steps:
[0083] S301: Determine a reference brightness value corresponding to each of the image partitions;
[0084] The “reference brightness value” refers to a brightness threshold used to evaluate the brightness and darkness characteristics of an image partition.
[0085] The reference brightness values corresponding to the various image partitions may be the same, that is, only one unified brightness threshold is set as the reference brightness value of each image partition.
[0086] The reference brightness values corresponding to each image partition may also be different. For example, since the human eye tends to pay the most attention to the content in the middle area of the image, it is more sensitive to the brightness of the middle area and less sensitive to the brightness of the peripheral area; therefore, for the image partition located in the central area of the endoscopic image, its reference brightness value can be set to the most suitable brightness value for the human eye (for example, a grayscale value of 180), while the image partition located in the edge area of the endoscopic image is an area that is not sensitive to the human eye, so its reference brightness value can be appropriately increased. That is, in actual applications, the corresponding reference brightness value can be determined based on the center point distance of each of the image partitions; wherein the center point distance is the distance between the center point of the image partition and the center point of the endoscopic image.
[0087] S302: Compare the brightness value of each image partition with the corresponding reference brightness value;
[0088] The brightness value of each of the image partitions may be extracted from the image brightness value distribution information.
[0089] S303: If the brightness value of the image partition is greater than the corresponding reference brightness value, mark the image partition as a bright area;
[0090] S304: If the brightness value of the image partition is less than or equal to the corresponding reference brightness value, mark the image partition as a dark area;
[0091] The operations of S303 and S304 are equivalent to performing regional classification on each image partition based on the corresponding reference brightness value, marking the image partition with a brightness value greater than the corresponding reference brightness value as a bright area, and marking the image partition with a brightness value less than or equal to the corresponding reference brightness value as a dark area. To illustrate the above process of dividing the bright area and the dark area: for example, assuming that the brightness value of image partition 1 is 50, the brightness value of image partition 2 is 50, and the brightness value of image partition 3 is 60; the reference brightness value of image partition 1 is 40, the reference brightness value of image partition 2 is 60, and the reference brightness value of image partition 3 is 60; then, image partition 1 is a bright area, and image partitions 2 and 3 are dark areas.
[0092] S305: Form a brightness distribution map of the endoscopic image according to the position information of the bright area and the dark area in the endoscopic image.
[0093] In this embodiment, since the image brightness value distribution information includes position information in addition to the brightness information of each image partition, after marking each image partition as a bright area / dark area, a brightness distribution diagram that can reflect the light and dark distribution characteristics of the endoscopic image can be obtained.
[0094] In order to facilitate the similarity comparison in the subsequent steps, the digital numbers "1" and "0" can be used to represent the "bright area" and "dark area" respectively, thereby forming a brightness distribution map composed of "1" and "0".
[0095] In the above-mentioned embodiment, each image partition corresponds to a fixed reference brightness value. Thus, for any endoscopic image, these reference brightness values can be used to determine the brightness and darkness characteristics (bright area / dark area) of each image partition therein. Finally, only a brightness distribution map is needed to identify the current endoscopic observation scene (determine its similarity to each endoscopic observation scene), which can reduce the complexity of manually setting the threshold value (i.e., the reference brightness value), and is therefore easier to operate in practice.
[0096] S103: performing a similarity comparison between the brightness distribution diagram and a standard brightness distribution diagram under each endoscope observation scene;
[0097] The "endoscopic observation scene" may be any pre-set image capture scene, including but not limited to any two or more of: gastric angle observation, wall observation, distant view observation, biopsy observation, and transparent cap scene. Each endoscopic observation scene may correspond to a pre-set "standard brightness distribution map", which may reflect the light and dark distribution characteristics of the endoscopic image collected under the corresponding endoscopic observation scene.
[0098] Therefore, this embodiment can roughly determine the shooting scene to which the endoscopic image actually corresponds by performing a similarity comparison between the brightness distribution diagram of the endoscopic image and the standard brightness distribution diagram under each endoscopic observation scene.
[0099] Specifically, the method of setting the standard brightness distribution diagram may be: according to the typical brightness distribution characteristics of the endoscopic image collected in each endoscopic observation scene, the corresponding standard brightness distribution diagram is set. It may also be: obtaining a standard endoscopic image in each endoscopic observation scene, and using the brightness distribution diagram of the standard endoscopic image as the standard brightness distribution diagram corresponding to the endoscopic observation scene. The above-mentioned standard endoscopic image is used to reflect the light and dark distribution characteristics of the endoscopic image collected in the endoscopic observation scene, and the size ratio of the standard endoscopic image and the endoscopic image whose brightness value needs to be determined in this embodiment is the same. In this embodiment, comparing the image brightness distribution information of the endoscopic image with the standard brightness value distribution information is equivalent to comparing the endoscopic image with the standard endoscopic image based on the similarity of the light and dark distribution characteristics of the image.
[0100] In this embodiment, the brightness distribution map of the endoscopic image and the standard brightness distribution map under various endoscopic observation fields are preferably distribution maps composed of "1" and "0". Therefore, in this step, an algorithm such as Euclidean distance can be used to perform a similarity comparison between the brightness distribution map and the standard brightness distribution map under each endoscopic observation scene.
[0101] S104: Determine image brightness weight distribution information of the endoscope image according to the similarity comparison result;
[0102] The similarity comparison result is information describing the similarity between the shooting scene corresponding to the currently acquired endoscopic image and each pre-set endoscopic observation scene. After obtaining the similarity comparison result, this embodiment can determine the matching degree between the endoscopic image and various endoscopic observation scenes.
[0103] Furthermore, since the endoscopic images collected under different endoscopic observation scenes have different brightness distribution characteristics and different observation focuses (or, observation areas of interest), in practical applications, corresponding brightness weight values Kij (where i represents the i-th endoscopic observation scene and j represents the j-th image partition) can be allocated to each image partition of the endoscopic image in advance for different endoscopic observation scenes Ai, so as to form brightness weight distribution information corresponding to each endoscopic observation scene. The image brightness weight distribution information is used to describe the proportion of the brightness value of the pixel point / image partition at each position in the endoscopic image when calculating the overall brightness of the image.
[0104] Furthermore, this embodiment can determine the brightness weight distribution information of the endoscopic image based on the matching degree between the endoscopic image and each endoscopic observation scene, and the brightness weight distribution information corresponding to each endoscopic observation scene.
[0105] Specifically, the endoscopic observation scene with the highest similarity in the similarity comparison result can be set as the target endoscopic observation scene; and then the brightness weight distribution information corresponding to the target endoscopic observation scene can be used as the image brightness weight distribution information of the endoscopic image.
[0106] The above-mentioned method of determining the image brightness weight distribution information is particularly suitable for situations where the light and dark distribution characteristics of the endoscopic image have a high degree of match with a certain endoscopic observation scene (for example, the degree of match is greater than 90%). It can accurately identify the actual shooting scene of the endoscopic image and improve the accuracy of evaluating the brightness of the endoscopic image.
[0107] However, in actual applications, there are many situations where the shooting scenes of endoscopic images cannot be completely matched with a certain pre-set endoscopic observation scene. If the light and dark distribution characteristics of the endoscopic image do not match any endoscopic observation scene to a high degree (for example, the matching degrees of each scene are 50%, 60%, or 55%), directly selecting the endoscopic observation scene with the highest similarity in the similarity comparison results as the target endoscopic observation scene will lead to errors in the brightness evaluation of the endoscopic image.
[0108] Therefore, in order to further improve the accuracy of endoscopic image brightness evaluation, in some embodiments, the specific implementation of step S104 can also be:
[0109] The scene matching degree corresponding to each of the endoscopic observation scenes is determined according to the similarity comparison result; the brightness weight distribution information corresponding to all the endoscopic observation scenes is weighted averaged based on the scene matching degree to obtain the image brightness weight distribution information of the endoscopic image; wherein, in the weighted average calculation process, the scene matching degree is positively correlated with the weight value of the brightness weight distribution information. The higher the scene matching degree of a certain endoscopic observation scene, the greater the weight value of the corresponding brightness weight distribution information.
[0110] For example, assuming that the preset endoscopic observation scenes include A1 and A2, the scene matching degrees of the endoscopic image with the endoscopic observation scenes A1 and A2 are 50% and 70% respectively; the endoscopic image is provided with two image partitions (position numbers are 1 and 2 respectively), and under the endoscopic observation scene A1, the brightness weight value of the image partition numbered 1 is 0.3, and the brightness weight value of the image partition numbered 2 is 0.7; under the endoscopic observation scene A2, the brightness weight value of the image partition numbered 1 is 0.2, and the partition brightness weight value of the image partition numbered 2 is 0.8. Then, by performing a weighted average calculation based on the scene matching degree on the brightness weight distribution information corresponding to all the endoscopic observation scenes, it can be obtained that: the final brightness weight value of the image partition numbered 1 is The final brightness weight value of the image partition numbered 2 is It can be seen that the above method can fully consider the influence of various endoscopic observation scenes, obtain the optimal brightness weight distribution information, and is conducive to approaching the optimal brightness evaluation result.
[0111] S105: calculating the overall brightness value of the endoscope image according to the image brightness value distribution information and the image brightness weight distribution information;
[0112] Among them, the brightness value of each position in the endoscopic image can be determined according to the image brightness value distribution information, and the influence of the brightness value of each position in the endoscopic image on the overall brightness can be determined according to the image brightness weight distribution information. Therefore, the overall brightness value of the endoscopic image can be calculated according to the image brightness value distribution information and the image brightness weight distribution information.
[0113] Specifically, the "image brightness value distribution information" may record the brightness value of each pixel in the endoscopic image; correspondingly, the "image brightness weight distribution information" may record the brightness weight of each pixel in the endoscopic image. Thus, the present embodiment may calculate the overall brightness value of the endoscopic image based on the image brightness value distribution information and the image brightness weight distribution information in the following manner: determine the brightness value of each pixel based on the image brightness value distribution information; determine the brightness weight of each pixel based on the image brightness weight distribution information; and finally take the ratio of the sum of the brightness values of all pixels multiplied by the brightness weight to the sum of the brightness weights as the overall brightness value of the endoscopic image (i.e., perform weighted average calculation on the "image brightness value distribution information" based on the "image brightness weight distribution information").
[0114] As another feasible implementation, the "image brightness value distribution information" may also record the brightness value of each image partition in the endoscopic image; correspondingly, the "image brightness weight distribution information" may record the brightness weight of each image partition in the endoscopic image. Thus, the present embodiment may calculate the overall brightness value of the endoscopic image based on the image brightness value distribution information and the image brightness weight distribution information as follows: determine the brightness value of each image partition based on the image brightness value distribution information, determine the brightness weight of each image partition based on the image brightness weight distribution information, and use the ratio of the sum of the brightness values of all image partitions multiplied by the brightness weight to the sum of the brightness weights as the overall brightness value of the endoscopic image.
[0115] Furthermore, on the basis of obtaining the overall brightness value of the endoscopic image, the overall brightness value can be fed back to the endoscopic light source so that the endoscopic light source adjusts the amount of emitted light based on the overall brightness value (i.e., performs dimming processing). Specifically, the endoscopic light source can determine whether the overall brightness value is within a preset brightness range. If it is within the preset brightness range, the amount of emitted light of the endoscopic light source is kept unchanged. If the overall brightness value is greater than the maximum value of the preset brightness range, the amount of emitted light of the endoscopic light source is reduced to avoid overexposure of the image. If the overall brightness value is less than the minimum value of the preset brightness range, the amount of emitted light of the endoscopic light source is increased to avoid the image being too dark.
[0116] Based on the above technical solution, it can be seen that the present application can obtain the degree of match between the actual shooting scene used to describe the endoscopic image and each preset endoscopic observation scene by comparing the brightness distribution map of the endoscopic image with the standard brightness distribution map under each preset endoscopic observation scene. The higher the similarity between the brightness distribution map of the endoscopic image and the standard brightness distribution map under a certain endoscopic observation scene, the greater the probability that the actual shooting scene of the endoscopic image is the endoscopic observation scene.
[0117] Furthermore, in order to adapt to different endoscopic observation scenes, different image brightness weight distribution conditions can be set. Therefore, the present application determines the image brightness weight distribution information of the endoscopic image based on the similarity comparison result, and calculates the overall brightness value of the endoscopic image based on the image brightness value distribution information and the image brightness weight distribution information. This can adapt to the scene changes of endoscopic inspection and improve the accuracy of evaluating the brightness of endoscopic images. Furthermore, when the endoscopic light source is dimmed based on the endoscopic image brightness determined by the present application, it can avoid overexposure or darkness in the area of interest of the dimmed endoscopic image.
[0118] In summary, this embodiment combines the brightness evaluation of the endoscopic image with the endoscopic observation scene, and can adaptively evaluate the shooting scene corresponding to the current endoscopic image, thereby improving the effectiveness and adaptability of the endoscopic brightness evaluation.
[0119] As a further extension of the above embodiment, in other embodiments, the specific implementation of the above step S102 "forming a brightness distribution map of the endoscopic image based on the image brightness value distribution information" can also be:
[0120] Obtain reference brightness value distribution information for each of the endoscopic observation scenes to determine the reference brightness value corresponding to each of the image partitions of the endoscopic image in each endoscopic observation scene; and form a brightness distribution diagram of the endoscopic image in each endoscopic observation scene based on the image brightness value distribution information and the reference brightness value distribution information.
[0121] That is, in this embodiment, a plurality of brightness distribution diagrams corresponding one to one to each endoscope observation scene can be formed.
[0122] Therefore, correspondingly, the specific implementation of the above step S103 "comparing the brightness distribution map with the standard brightness distribution map under each endoscope observation scene for similarity" can be:
[0123] The brightness distribution diagram of the endoscopic image in each endoscopic observation scene is respectively compared with the corresponding standard brightness distribution diagram for similarity.
[0124] For example, assuming that the endoscopic observation scenes include A1, A2 and A3, the reference brightness distribution information of these three endoscopic observation scenes are a1, a2 and a3, respectively, and the standard brightness distribution diagrams are A11, A21 and A31, respectively; then, based on the image brightness value distribution information of the endoscopic image and the reference brightness value distribution information a1, a brightness distribution diagram A12 of the endoscopic image under the endoscopic observation scene A1 can be formed; based on the image brightness value distribution information of the endoscopic image and the reference brightness value distribution information a2, a brightness distribution diagram A22 of the endoscopic image under the endoscopic observation scene A2 can be formed; based on the image brightness value distribution information of the endoscopic image and the reference brightness value distribution information a3, a brightness distribution diagram A32 of the endoscopic image under the endoscopic observation scene A3 can be formed. Furthermore, the brightness distribution map A12 is compared with the standard brightness distribution map A11 for similarity, the brightness distribution map A22 is compared with the standard brightness distribution map A21 for similarity, and the brightness distribution map A32 is compared with the standard brightness distribution map A31 for similarity.
[0125] Specifically, the process of forming the brightness distribution diagram of the endoscopic image in each endoscopic observation scene may include the following steps:
[0126] Step 1: Select an endoscope observation scene from all endoscope observation scenes as the current comparison scene;
[0127] In this step, the current comparison scene may be selected from all the endoscope observation scenes that have not been selected as the current comparison scene.
[0128] Step 2: comparing the brightness value of each image partition with the corresponding reference brightness value in the current comparison scene;
[0129] Step 3: If the brightness value of the image partition is greater than the corresponding reference brightness value in the current comparison scene, the image partition is marked as a bright area;
[0130] Step 4: if the brightness value of the image partition is less than or equal to the reference brightness value in the current comparison scene, then mark the image partition as a dark area;
[0131] Step 5: forming a brightness distribution diagram of the endoscopic image in the current comparison scene according to the positions of the bright area and the dark area in the endoscopic image;
[0132] Step 6: Determine whether the brightness distribution diagram of the endoscope image in all endoscope observation scenes is obtained; if so, end the process; if not, proceed to step 1;
[0133] In practical applications, reference brightness value distribution information and / or a standard brightness distribution diagram corresponding to each endoscopic observation scene may be determined based on typical features of images collected in each endoscopic observation scene.
[0134] For example, during gastroscopy, most of the observations are done on the gastric angle, and its typical characteristics are: the part on the diagonal of the image belongs to close-up observation, while the two sides belong to long-range observation. Therefore, the brightness distribution characteristics of the endoscopic image collected under gastric angle observation are: the image area on the diagonal has a higher brightness, while the image area on the two sides has a very low brightness. Therefore, the brightness threshold on the diagonal can be set to 130, and the threshold on both sides of the diagonal can be set to 40 to form the reference brightness value distribution information corresponding to gastric angle observation; at the same time, the standard brightness distribution map corresponding to gastric angle observation is set as follows Figure 4 Then, if the brightness of the endoscope image in the diagonal area is higher than 130 and the brightness of the two side areas is lower than 40, the distribution of "0" and "1" after recognition meets Figure 4 The distribution characteristics can be judged as gastric angle observation.
[0135] For another example, when performing gastroscopy, a transparent cap is put on the endoscope to facilitate treatment. The endoscope observation scene is a transparent cap scene, and its typical features are: the transparent cap will have a circular obstruction in the image, and the obstruction is generally a transparent reflective material. At this time, the circular area is the close view, and the central area is generally the medium close view, so the brightness of the circular area will be higher, and the brightness of the circular part of the central area will be slightly lower. Therefore, the brightness threshold of the circular area can be set to 160, and the brightness threshold of the central area can be set to 100 to form the reference brightness value distribution information corresponding to the transparent cap scene; at the same time, the standard brightness distribution map corresponding to the transparent cap scene is set as follows Figure 5 Then, if the brightness of the endoscope image in the area around the circle is higher than 160 and the brightness of the central area is lower than 100, the distribution of "0" and "1" after recognition meets Figure 5 The distribution characteristics of the scene can be judged as a transparent hat scene.
[0136] In addition, it should be noted that biopsy observation specifically refers to the scene where a treatment instrument (such as a biopsy forceps) extends from the instrument channel of an endoscope for interventional treatment. After the treatment instrument extends from the instrument channel, it will appear in the imaging picture, thereby affecting the brightness distribution of the overall image. Specifically, since most treatment instruments are made of metal, the area where they appear is prone to reflection, which makes the brightness value of the area larger. The position of the instrument channel is different for different scope types (for example, the instrument channel of a colonoscope is generally in the lower right corner, while that of a gastroscope is in the lower left corner, and the lifting forceps of an ultrasonic endoscope will occupy more imaging space), so that the imaging position of the treatment instrument in the image is also different. Therefore, in some embodiments where it is necessary to determine whether it belongs to "biopsy observation", the scope type of the endoscope that collects the endoscopic image can also be obtained first; and then the reference brightness value distribution information and / or the standard brightness distribution diagram corresponding to the biopsy observation scene can be determined according to the scope type. In the above manner, it is possible to avoid deviations in brightness evaluation due to different positions of the instrument channels.
[0137] In this embodiment, by setting the reference brightness value according to the endoscopic observation scene, multiple reference brightness value distribution information corresponding to the scene type can be configured, which fully considers the specificity of various endoscopic observation scenes and is conducive to improving the accuracy of scene matching.
[0138] See also Figure 6 , Figure 6 A schematic diagram of the structure of a device for determining the brightness of an endoscopic image provided in an embodiment of the present application;
[0139] The device may include:
[0140] A brightness value distribution information acquisition module 100 is used to acquire image brightness value distribution information of an endoscopic image;
[0141] A brightness distribution map generating module 200, configured to form a brightness distribution map of the endoscopic image based on the image brightness value distribution information;
[0142] A similarity comparison module 300 is used to compare the brightness distribution diagram with a standard brightness distribution diagram under each endoscope observation scene for similarity;
[0143] A weight determination module 400, for determining image brightness weight distribution information of the endoscopic image according to the similarity comparison result;
[0144] The overall brightness determination module 500 is used to calculate the overall brightness value of the endoscopic image according to the image brightness value distribution information and the image brightness weight distribution information.
[0145] Based on the above technical solution, it can be seen that the present application can obtain the degree of match between the actual shooting scene used to describe the endoscopic image and each preset endoscopic observation scene by comparing the brightness distribution map of the endoscopic image with the standard brightness distribution map under each preset endoscopic observation scene. The higher the similarity between the brightness distribution map of the endoscopic image and the standard brightness distribution map under a certain endoscopic observation scene, the greater the probability that the actual shooting scene of the endoscopic image is the endoscopic observation scene.
[0146] Furthermore, in order to adapt to different endoscopic observation scenes, different image brightness weight distribution conditions can be set. Therefore, the present application determines the image brightness weight distribution information of the endoscopic image based on the similarity comparison result, and calculates the overall brightness value of the endoscopic image based on the image brightness value distribution information and the image brightness weight distribution information. This can adapt to the scene changes of endoscopic inspection and improve the accuracy of evaluating the brightness of endoscopic images. Furthermore, when the endoscopic light source is dimmed based on the endoscopic image brightness determined by the present application, it can avoid overexposure or darkness in the area of interest of the dimmed endoscopic image.
[0147] In summary, this embodiment combines the brightness evaluation of the endoscopic image with the endoscopic observation scene, and can adaptively evaluate the shooting scene corresponding to the current endoscopic image, thereby improving the effectiveness and adaptability of the endoscopic brightness evaluation.
[0148] Furthermore, in some embodiments, the brightness value distribution information acquisition module 100 may specifically include:
[0149] A partitioning unit, used for dividing the endoscopic image into a plurality of image partitions and recording position information of each of the image partitions;
[0150] A partition brightness calculation unit, used to calculate the brightness value of each of the image partitions;
[0151] A distributed information determination unit is used to determine the image brightness value distribution information of the endoscopic image according to the brightness values and position information of all the image partitions.
[0152] Furthermore, in some embodiments, the brightness distribution map generating module 200 may specifically include:
[0153] A first reference brightness determination unit, used to determine a reference brightness value corresponding to each of the image partitions;
[0154] a brightness value comparison unit, used to compare the brightness value of each of the image partitions with a corresponding reference brightness value;
[0155] A region marking unit, configured to mark the image partition as a bright region if the brightness value of the image partition is greater than the corresponding reference brightness value; and mark the image partition as a dark region if the brightness value of the image partition is less than or equal to the corresponding reference brightness value;
[0156] The first distribution map determining unit is used to form a brightness distribution map of the endoscopic image according to position information of the bright area and the dark area in the endoscopic image.
[0157] Further, in some embodiments, the first reference brightness determination unit is specifically used to: a unit for determining the corresponding reference brightness value according to the center point distance of each image partition; wherein the center point distance is the distance between the center point of the image partition and the center point of the endoscopic image.
[0158] In some other embodiments, the brightness distribution map generating module 200 may further include:
[0159] A second reference brightness value determination unit, used for acquiring reference brightness value distribution information of each of the endoscopic observation scenes, so as to determine a reference brightness value corresponding to each of the image partitions of the endoscopic image in each of the endoscopic observation scenes;
[0160] A second distribution map determining unit, configured to form a brightness distribution map of the endoscopic image in each endoscopic observation scene according to the image brightness value distribution information and the reference brightness value distribution information;
[0161] The process in which the second distribution map determining unit forms a brightness distribution map of the endoscopic image in each endoscopic observation scene may include:
[0162] Selecting an endoscope observation scene from all endoscope observation scenes as a current comparison scene;
[0163] Comparing the brightness value of each of the image partitions with the corresponding reference brightness value in the current comparison scene;
[0164] If the brightness value of the image partition is greater than the corresponding reference brightness value in the current comparison scene, marking the image partition as a bright area;
[0165] If the brightness value of the image partition is less than or equal to the reference brightness value in the current comparison scene, marking the image partition as a dark area;
[0166] forming a brightness distribution diagram of the endoscopic image in the current comparison scene according to the positions of the bright area and the dark area in the endoscopic image;
[0167] Determine whether a brightness distribution diagram of the endoscope image in all endoscope observation scenes is obtained; if not, enter the step of selecting an endoscope observation scene from all endoscope observation scenes as the current comparison scene;
[0168] Then, the similarity comparison module 300 is specifically used for: a module for performing similarity comparison between the brightness distribution diagram of the endoscopic image in each endoscopic observation scene and the corresponding standard brightness distribution diagram.
[0169] Furthermore, in some embodiments, the weight determination module 400 may specifically include:
[0170] a target endoscope observation scene setting unit, configured to set the endoscope observation scene having the highest similarity among the similarity comparison results as the target endoscope observation scene;
[0171] The image brightness weight distribution information determining unit is used to use the brightness weight distribution information corresponding to the target endoscopic observation scene as the image brightness weight distribution information of the endoscopic image.
[0172] Alternatively, in some other embodiments, the weight determination module 400 may also include:
[0173] A scene matching degree determination unit, used to determine the scene matching degree corresponding to each of the endoscope observation scenes according to the similarity comparison result;
[0174] A weighted average calculation unit, used to perform a weighted average calculation based on the scene matching degree on the brightness weight distribution information corresponding to all the endoscopic observation scenes to obtain the image brightness weight distribution information of the endoscopic image;
[0175] Among them, in the weighted average calculation process, the scene matching degree is positively correlated with the weight value of the brightness weight distribution information.
[0176] Furthermore, the endoscopic observation scenes include any two or more of: gastric angle observation, wall observation, distant view observation, biopsy observation and transparent cap scene observation.
[0177] Further, when the endoscopic observation scene includes the biopsy observation, the device further includes:
[0178] A scope type acquisition unit, used to acquire the scope type of the endoscope used to acquire the endoscopic image;
[0179] A selection unit is used to determine a standard brightness distribution diagram corresponding to the biopsy observation scene according to the scope type.
[0180] It should be understood that since the embodiments of the device part correspond to the embodiments of the method part, the specific implementation methods of the device part and its beneficial effects can be found in the description of the embodiments corresponding to the method part, which will not be repeated here.
[0181] See also Figure 7 , Figure 7 A structural schematic diagram of an image processing device provided in an embodiment of the present application, the image processing device 700 may include a processor 701 and a memory 702, the processor 701 is communicatively connected to the memory 702, a computer program is stored in the memory 702, and the processor 701 implements the method for determining the brightness of an endoscopic image as described in any of the above embodiments when calling the computer program in the memory 702.
[0182] Furthermore, the present application also provides an endoscope system, comprising:
[0183] An endoscope light source, used for emitting illumination light;
[0184] an endoscope connected to the endoscope light source and used to transmit the illumination light to the object to be photographed and to collect an endoscopic image of the object;
[0185] like Figure 7 The image processing device is respectively connected to the endoscope light source and the endoscope for acquiring the endoscope image, performing image processing on the endoscope image, and feeding back part of the image processing result to the endoscope light source;
[0186] as well as,
[0187] A display is communicatively connected to the image processing device and is used to present the image processing result output by the image processing device.
[0188] It should be understood that the specific technical contents of the endoscope light source, endoscope and display in the above-mentioned endoscope system can be found in the relevant prior art and will not be described in detail here.
[0189] The present application also provides a storage medium on which a computer program is stored, and when the computer program is executed, the above-mentioned method for determining the brightness of an endoscopic image can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0190] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.
[0191] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for determining the brightness of an endoscopic image, characterized in that include: Acquiring image brightness value distribution information of the endoscopic image; Based on the image brightness value distribution information, forming a brightness distribution map capable of reflecting the light and dark characteristics at various positions in the endoscopic image; Comparing the brightness distribution diagram with a standard brightness distribution diagram under each endoscope observation scene for similarity; Determine the image brightness weight distribution information of the endoscopic image according to the similarity comparison result and the brightness weight distribution information corresponding to each endoscopic observation scene; the image brightness weight distribution information is used to determine the influence of the brightness value of each position in the endoscopic image on the overall brightness; The overall brightness value of the endoscopic image is calculated according to the image brightness value distribution information and the image brightness weight distribution information.
2. The method for determining the brightness of an endoscopic image according to claim 1, characterized in that: The step of obtaining image brightness value distribution information of an endoscopic image includes: Dividing the endoscopic image into a plurality of image partitions, and recording position information of each of the image partitions; Calculating the brightness value of each of the image partitions; Image brightness value distribution information of the endoscopic image is determined according to the brightness values of all the image subareas and their position information.
3. The method for determining the brightness of an endoscopic image according to claim 2, characterized in that: The forming of a brightness distribution diagram capable of reflecting the light and dark characteristics at each position in the endoscopic image based on the image brightness value distribution information comprises: Determine a reference brightness value corresponding to each of the image partitions; Comparing the brightness value of each of the image partitions with the corresponding reference brightness value; If the brightness value of the image partition is greater than the corresponding reference brightness value, marking the image partition as a bright area; If the brightness value of the image partition is less than or equal to the corresponding reference brightness value, marking the image partition as a dark area; A brightness distribution map of the endoscopic image is formed according to the position information of the bright area and the dark area in the endoscopic image.
4. The method for determining the brightness of an endoscopic image according to claim 3, characterized in that: The determining of the reference brightness value corresponding to each of the image partitions includes: Determine the corresponding reference brightness value according to the center point distance of each image partition; The center point distance is the distance between the center point of the image partition and the center point of the endoscopic image.
5. The method for determining the brightness of an endoscopic image according to claim 2, characterized in that: The forming of a brightness distribution diagram capable of reflecting the light and dark characteristics at each position in the endoscopic image based on the image brightness value distribution information comprises: Acquire reference brightness value distribution information of each endoscopic observation scene to determine a reference brightness value corresponding to each image partition of the endoscopic image in each endoscopic observation scene; forming a brightness distribution diagram of the endoscopic image in each endoscopic observation scene according to the image brightness value distribution information and the reference brightness value distribution information; but, The similarity comparison of the brightness distribution diagram with a standard brightness distribution diagram of each preset endoscope observation scene includes: The brightness distribution diagram of the endoscopic image in each endoscopic observation scene is respectively compared with the corresponding standard brightness distribution diagram for similarity.
6. The method for determining the brightness of an endoscopic image according to any one of claims 1 to 5, characterized in that: Determining the image brightness weight distribution information of the endoscopic image according to the similarity comparison result and the brightness weight distribution information corresponding to each endoscopic observation scene includes: The endoscope observation scene with the highest similarity in the similarity comparison results is set as the target endoscope observation scene; The brightness weight distribution information corresponding to the target endoscope observation scene is used as the image brightness weight distribution information of the endoscope image.
7. The method for determining the brightness of an endoscopic image according to any one of claims 1 to 5, characterized in that: Determining the image brightness weight distribution information of the endoscopic image according to the similarity comparison result and the brightness weight distribution information corresponding to each endoscopic observation scene includes: Determining the scene matching degree corresponding to each of the endoscope observation scenes according to the similarity comparison result; Performing a weighted average calculation based on the scene matching degree on the brightness weight distribution information corresponding to all the endoscopic observation scenes to obtain image brightness weight distribution information of the endoscopic image; Among them, in the weighted average calculation process, the scene matching degree is positively correlated with the weight value of the brightness weight distribution information.
8. The method for determining the brightness of an endoscopic image according to any one of claims 1 to 5, characterized in that: The endoscope observation scenes include any two or more of: gastric angle observation, wall observation, distant view observation, biopsy observation and transparent cap scene observation.
9. The method for determining the brightness of an endoscopic image according to claim 8, characterized in that: When the endoscopic observation scene includes the biopsy observation, the method further includes: Acquiring the scope type of the endoscope used to acquire the endoscopic image; A standard brightness distribution diagram corresponding to the biopsy observation scene is determined according to the scope type.
10. A device for determining the brightness of an endoscopic image, characterized in that include: A brightness value distribution information acquisition module, used to acquire image brightness value distribution information of an endoscopic image; A brightness distribution map generating module, used for forming a brightness distribution map capable of reflecting the light and dark characteristics at various positions in the endoscopic image based on the image brightness value distribution information; A similarity comparison module, used for performing a similarity comparison between the brightness distribution diagram and a standard brightness distribution diagram under each endoscope observation scene; A weight determination module, used to determine the image brightness weight distribution information of the endoscopic image according to the similarity comparison result and the brightness weight distribution information corresponding to each endoscopic observation scene; the image brightness weight distribution information is used to determine the influence of the brightness value of each position in the endoscopic image on the overall brightness; An overall brightness determination module is used to calculate the overall brightness value of the endoscopic image according to the image brightness value distribution information and the image brightness weight distribution information.
11. An image processing device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the method for determining the brightness of an endoscopic image as claimed in any one of claims 1 to 9 when calling the computer program in the memory.
12. An endoscope system, characterized in that: include: An endoscope light source, used for emitting illumination light; an endoscope connected to the endoscope light source and used to transmit the illumination light to the object to be photographed and to collect an endoscopic image of the object; The image processing device according to claim 11, which is communicatively connected to the endoscope light source and the endoscope, respectively, for acquiring the endoscope image, performing image processing on the endoscope image, and feeding back part of the image processing result to the endoscope light source; as well as, A display is communicatively connected to the image processing device and is used to present the image processing result output by the image processing device.
13. A storage medium, characterized in that: The storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the method for determining the brightness of an endoscopic image as described in any one of claims 1 to 9 is implemented.
