IMAGE PROCESSING METHOD, APPARATUS, ELECTRONIC DEVICE, AND COMPUTER-READABLE STORAGE MEDIUM

By employing narrowband filters and a fusion process to generate color images, the method addresses the challenge of distinguishing objects and non-objects, resulting in enhanced imaging accuracy and clarity.

JP2024539117AActive Publication Date: 2024-10-28TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024523515
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-01-30
Filing Date
2022-11-17
Publication Date
2024-10-28
Estimated Expiration
2042-11-17

AI Technical Summary

Technical Problem

Existing image processing technologies struggle to accurately distinguish between objects and non-objects, reducing the effectiveness of imaging processes.

Method used

The use of narrowband filters and a fusion process to generate color images that clearly delineate object outlines by obtaining and combining narrowband channel images corresponding to various types of narrowband filters.

Benefits of technology

This approach enhances imaging effectiveness by clearly demarcating target objects from non-target objects, improving the accuracy and clarity of image display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024539117000001_ABST
    Figure 2024539117000001_ABST
Patent Text Reader

Abstract

The present application provides an image processing method, device, electronic device, computer-readable storage medium, and computer program product, the image processing method including: performing collection processing on an object using various narrowband filters to obtain narrowband channel images including the object; and performing fusion processing on multiple narrowband channel images that correspond one-to-one to the various types of narrowband filters to obtain a color image including the contours of the object.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application is filed based on and claims the priority of a Chinese patent application bearing application number 202210114314.9 and filing date on January 30, 2022. The entire contents of the Chinese patent application are incorporated herein by reference.

[0002] The present application relates to graphic image processing technology, and in particular to an image processing method, an apparatus, an electronic device, a computer-readable storage medium and a computer program product. [Background technology]

[0003] With the advancement of image processing technology, electronic devices can produce richer and more vivid images. Compared with text, images convey richer and more expressive information, and are therefore popular with users.

[0004] An image of an object is collected by an electronic device, and the collected image includes the object. The location of the object is identified from the collected image, and subsequent operations are performed based on the location of the object. For example, in a pathology image, a pathological site is quickly identified from the pathology image, and subsequent accurate pathology sampling is performed based on the pathological site.

[0005] However, in the related art, the image collected by the electronic device cannot clearly distinguish between the target object and other non-target objects, which reduces the imaging effect of the image. Summary of the Invention [Problem to be solved by the invention]

[0006] SUMMARY OF THE DISCLOSURE The embodiments of the present application provide an image processing method, an apparatus, an electronic device, a computer-readable storage medium and a computer program product, which can fully and effectively display an object and improve the imaging effect of an image. [Means for solving the problem]

[0007] The technical solution of the embodiment of the present application is realized as follows.

[0008] An embodiment of the present application provides an image processing method executed by an electronic device including multiple types of narrowband filters, the image processing method including: performing a collection process on an object using the various types of narrowband filters to obtain a narrowband channel image including the object; and performing a fusion process on multiple narrowband channel images that correspond one-to-one to the multiple types of narrowband filters to obtain a color image including the contour of the object.

[0009] An embodiment of the present application provides an image processing device that includes an acquisition module configured to perform an acquisition process on an object using multiple types of narrowband filters to acquire narrowband channel images including the object, and a fusion module configured to perform a fusion process on multiple narrowband channel images that correspond one-to-one to the multiple types of narrowband filters to acquire a color image including the contour of the object.

[0010] An embodiment of the present application provides an electronic device including a memory that stores computer-executable commands, and a processor that, when executing the computer-executable commands stored in the memory, realizes an image processing method provided by an embodiment of the present application.

[0011] An embodiment of the present application provides an electronic device that includes a housing forming a partially sealed space, a number of narrowband filters located on a photosensitive chip inside the housing for outputting a photosensitive signal and collecting optical signals, and a processor located inside the housing and receiving the photosensitive signal output by the photosensitive chip, wherein the photosensitive signal is an optical signal of an object collected by the number of narrowband filters, and the processor generates a narrowband channel image including the object based on the photosensitive signal, and performs a fusion process on a number of narrowband channel images that correspond one-to-one to the number of narrowband filters, to obtain a color image including the contour of the object.

[0012] An embodiment of the present application provides a computer-readable storage medium having computer-executable instructions stored thereon that, when executed by a processor, implement an image processing method provided by an embodiment of the present application.

[0013] An embodiment of the present application provides a computer program product including a computer program or computer executable instructions, which, when executed by a processor, implements an image processing method provided by an embodiment of the present application. Effect of the Invention

[0014] The embodiments of the present application have the following beneficial effects:

[0015] By collecting and processing the object through a narrowband filter, the object can be collected accurately, and narrowband channel images corresponding to multiple types of narrowband filters are fused to obtain a color image including the contour of the object, so that the color image collected by the electronic device can clearly distinguish between the object and non-object in the color image, thereby effectively displaying the object and improving the imaging effect of the image. [Brief description of the drawings]

[0016] [Figure 1] FIG. 1 is a schematic diagram of an X-ray radiographic image provided by the related art. [Diagram 2] FIG. 2 is an architecture diagram of an image processing system 100 provided by an embodiment of the present application. [Diagram 3] FIG. 3 is a structural schematic diagram of an image processing device provided in an embodiment of the present application. [Figure 4] FIG. 4 is a schematic diagram of the hardware structure of an electronic device 30 provided in an embodiment of the present application. [Figure 5A] FIG. 5A is a flowchart of an image processing method provided in an embodiment of the present application. [Figure 5B] FIG. 5B is a flowchart of an image processing method provided in an embodiment of the present application. [Figure 6] FIG. 6 is a structural schematic diagram of a short-wave infrared camera provided in an embodiment of the present application. [Figure 7] FIG. 7 is a schematic diagram of a composite color image provided by an embodiment of the present application. [Figure 8] FIG. 8 is a schematic diagram of a composite color image provided by an embodiment of the present application. [Figure 9A] FIG. 9A is a schematic diagram of a bracket-type imaging system provided in an embodiment of the present application. [Figure 9B] FIG. 9B is a schematic diagram of a handheld imaging system provided by an embodiment of the present application. [Figure 10A] FIG. 10A is a schematic diagram of a normal lens provided in an embodiment of the present application. [Figure 10B] FIG. 10B is a schematic diagram of an infrared apochromatic lens provided in an embodiment of the present application. [Figure 11A] FIG. 11A is a schematic diagram of the constant lighting mode provided by an embodiment of the present application. [Figure 11B] FIG. 11B is a schematic diagram of a flash mode provided by an embodiment of the present application. [Figure 12A] FIG. 12A is a schematic diagram of a focus ring provided in an embodiment of the present application. [Figure 12B] FIG. 12B is a schematic diagram of a liquid lens provided in an embodiment of the present application. [Figure 13] FIG. 13 is a comparison diagram between a synthetic infrared color image taken by a narrowband infrared color camera provided in an embodiment of the present application and a color image taken by a normal color camera. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in more detail below in conjunction with the drawings. The described embodiments should not be regarded as limitations on the present application, and any other embodiments obtained by those skilled in the art without exerting creative efforts belong to the protection scope of the present application.

[0018] In the following description, the terms "first / second" are used to distinguish between similar objects and do not indicate a particular order for the objects. Note that "first / second" can be used interchangeably with a particular order or order before or after the other order in permitted circumstances, and the embodiments of the present application described herein can be performed in an order other than that shown or described.

[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art of the present application. The terminology used herein is for the purpose of describing the embodiments of the present application, and is not intended to limit the present application.

[0020] Before describing the embodiments of the present application in more detail, the nouns and technical terms described in the embodiments of the present application will be explained. The nouns and technical terms described in the embodiments of the present application are interpreted as follows.

[0021] (1) "Responsive to" means that the operation to be performed is responsive to a condition or state on which the operation depends, and when the dependent condition or state is satisfied, one or more operations may be performed in real time or with a predetermined delay. Unless otherwise specified, the order of execution of the operations to be performed is not limited.

[0022] (2) "Pathological images" are images that show the pathological morphology of organs, tissues, or cells in the body. Based on pathological images, it is possible to investigate the cause of the onset of a lesion, the mechanism of disease onset, and the progression of the lesion. Pathological images include slice images of the lesion (images formed by cutting out a certain size of lesion tissue in order to observe changes in the lesion), endoscopic images, etc.

[0023] (3) "Narrow-band filter", also known as narrow-band optical filter, is an optical filter that is a subdivision of a bandpass filter. Narrow-band optical filters allow optical signals in a specific wavelength band to pass, and optical signals on either side of this wavelength band are blocked. The passband of a narrow-band optical filter is relatively narrow, less than 5% of the central wavelength value, and the passband half-width of a narrow-band optical filter is less than 10 nanometers.

[0024] In the related art, the position of the tumor margin can be accurately grasped during cancer resection surgery (e.g., conservative surgery), and the tumor area can be completely excised to prevent the recurrence of the patient's symptoms and avoid reoperation. Pathological analysis of tissue after surgery is the royal road to tumor diagnosis. The tissue excised during the patient's surgery is cut into tissue blocks of appropriate volume, and after selection by the doctor, the tissue blocks are fixed using methods such as formalin immersion. After that, a series of operations such as dehydration, embedding, slicing, and staining are performed, and finally pathological sections that can be observed under a microscope are created. In order to obtain accurate lesion information of the patient, the process of the doctor selecting the tissue block is particularly important. If a tissue block containing a lesion is not selected, the doctor's ability to make a more accurate judgment is restricted, and if a large number of tissue blocks are selected, the workload of sectioning increases significantly, reducing medical efficiency.

[0025] The main criteria for doctors to detect lesion margins during surgery and select pathological samples after surgery are mainly divided into two aspects. For hospitals with limited medical conditions, doctors mainly use naked eye observation and palpation sense to distinguish tumor areas and select tissue blocks. This method is extremely difficult for inexperienced doctors, especially when the tumor bed is hidden, pathologists cannot distinguish normal tissue areas from lesion areas by visual inspection alone, and palpation sense is a very subjective judgment. On the other hand, radiographic methods may be used to identify lesion areas and assist pathological sampling, such as optical imaging platforms. This platform provides X-ray transmission images of the resected tissue (as shown in Figure 1, the strip 101 is a marker pin for marking the position), which can help doctors locate lesions more accurately during surgery and also help pathological sampling in the process of biopsy. However, since the interpretation of X-ray images mainly depends on the experience of doctors, there is a certain subjectivity, and doctors may disagree on the interpretation results. Also, X-ray equipment is not cheap.

[0026] To solve the above problems, the embodiments of the present application provide an image processing method, an apparatus, an electronic device, a computer-readable storage medium and a computer program product, which can effectively display an object and improve the imaging effect of an image.

[0027] The image processing method provided by the embodiments of the present application may be realized by a terminal alone, or may be realized by a terminal and a server working together. For example, the terminal alone executes the image processing method described below, or the terminal sends an image collection request (including a narrowband channel image of an object) to the server, and executes the image processing method according to the image collection request received by the server, and performs fusion processing based on the narrowband channel images corresponding to multiple types of narrowband filters to obtain a color image including the contour of the object.

[0028] The electronic device provided by the embodiments of the present application may be various types of terminals or servers with imaging capabilities. Here, the server may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms, where the cloud service may be an image processing service for the terminal to make a call. The terminal may be, but is not limited to, a smart camera, a smartphone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart voice interaction device, an in-vehicle terminal, etc. The terminal and the server may be directly or indirectly connected by wired or wireless communication, which is not limited in the present application.

[0029] Please refer to Fig. 2. Fig. 2 is an architecture diagram of an image processing system 100 provided by an embodiment of the present application. A terminal 200 is connected to a server 100 via a network 300. Here, the network 300 may be a wide area network or a local area network, or may be a combination of both.

[0030] In some embodiments, the electronic device is a terminal having a presentation image function, and the image processing method provided by the embodiments of the present application is realized by the terminal 200. For example, a user performs collection processing on an object using a narrowband filter in the terminal 200, obtains a narrowband channel image (also referred to as a single channel image) including the object, and performs fusion processing based on the narrowband channel images corresponding to multiple types of narrowband filters to obtain a color image including the contour of the object. For example, for a pathological image, a collection processing is performed on a pathological tissue using a narrowband filter in the terminal 200, obtains a narrowband channel image including the pathological tissue, and performs fusion processing based on the narrowband channel images corresponding to multiple types of narrowband filters to obtain a color image (i.e., a pathological image) including the contour of the pathological tissue. By quickly identifying a pathological site using the pathological image, subsequent accurate pathological sampling is performed based on the pathological site.

[0031] In some embodiments, the image processing method provided by the embodiments of the present application may be realized by a terminal and a server in cooperation with each other. For example, a user performs collection processing on an object using a narrowband filter in the terminal 200 to obtain a narrowband channel image including the object, and the terminal 200 transmits the narrowband channel image including the object to the server 100. The server 100 performs fusion processing based on the narrowband channel images corresponding to the various narrowband filters to obtain a color image including the contour of the object, transmits the color image to the terminal 200, and the terminal 200 displays the color image. For example, for a pathological image, a collection processing is performed on a pathological tissue using a narrowband filter in the terminal 200 to obtain a narrowband channel image including the pathological tissue, and the terminal 200 transmits the narrowband channel image to the server 100. The server 100 performs fusion processing based on the narrowband channel images corresponding to the various narrowband filters to obtain a color image including the contour of the pathological tissue (i.e., a pathological image), and transmits the pathological image to the terminal 200 for display. In this way, the pathological site can be quickly identified using the pathological image, and subsequent accurate pathological sampling can be performed based on the pathological site.

[0032] In some embodiments, the terminal or server can execute a computer program to realize the image processing method provided by the embodiments of the present application. For example, the computer program may be a native program or software module in an operating system, a native application (APP, Application), i.e., a program that can be installed in an operating system and executed, a mini program, i.e., a program that can be downloaded into a browser environment and executed, or an applet that can be incorporated into any APP. In short, the computer program may be any type of application program, module, or plug-in.

[0033] The embodiment of the present application is realized by cloud technology. Cloud technology is a collective term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the application of cloud computing business model, which can form a resource pool and use it as needed, which is flexible and convenient. Cloud computing technology is an important pillar. The back-end service of the technical network system requires a large amount of resources to be calculated and stored.

[0034] In some embodiments, multiple servers can constitute one blockchain, the server 100 is a node of the blockchain, and there may be information connections between the nodes in the blockchain, and the nodes can transmit information through the information connections. Here, data related to the image processing method provided by the embodiments of the present application (e.g., image processing logic, color images) is stored in the blockchain, and the blockchain has the property of being tamper-proof, so that the accuracy of the data in the blockchain is maintained.

[0035] Please refer to FIG. 3. FIG. 3 is a structural schematic diagram of an image processing device provided by an embodiment of the present application, and will be described by taking as an example that the device is a terminal having an imaging function. The image processing device shown in FIG. 3 includes at least one processor 510, a memory 550, and at least one network interface 520. Each component in the image processing device 500 is coupled by a bus system 540. The bus system 540 is used to realize communication connections between these components. The bus system 540 includes a data bus, and further includes a power bus, a control bus, and a status signal bus. However, for clarity, various buses are shown as the bus system 540 in FIG. 3.

[0036] The processor 510 may be, for example, a general purpose processor, a digital signal processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or other integrated circuit chip having signal processing capabilities, where the general purpose processor may be a microprocessor or any conventional processor, etc.

[0037] Memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, etc. Memory 550 may include, for example, one or more storage devices that are separate in physical location from processor 510.

[0038] The memory 550 may include volatile memory, or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be Read Only Memory (ROM), and the volatile memory may be Random Access Memory (RAM). The memory 550 according to the embodiments of the present application may include any suitable type of memory.

[0039] In some embodiments, memory 550 may store data to support various operations, including, for example, programs, modules and data structures, or a subset or superset thereof, as generally described below.

[0040] The operation system 551 includes system programs for processing various basic system services, such as a frame layer, a core library layer, a driver layer, and the like, and for executing hardware-related tasks, and is used to realize various basic services and process hardware-based tasks.

[0041] The network communications module 552 connects to other electronic devices via one or more (wired or wireless) network interfaces 520, example network interfaces 520 include Bluetooth, Wireless Firmware (Wi-Fi), Universal Serial Bus (USB), and the like.

[0042] The presentation module 553 can present information via one or more output devices (e.g., a display, speakers, etc.) associated with the user interface 530 (e.g., peripherals, display content, user interface for manipulating information).

[0043] The input processing module 554 is used to detect one or more user inputs or interactions from one of the one or more input devices 532 and to interpret the detected inputs or interactions.

[0044] In some embodiments, the image processing device provided by the embodiments of the present application is realized in a software manner. Figure 3 shows an image processing device 555 stored in memory 550, which may be software in the form of a program, plug-in, etc., and includes an acquisition module 5551 and a fusion module 5552. These modules are logical, so they can be arbitrarily combined or further divided according to the functions to be realized. The functions of each module are described below.

[0045] The hardware structure of the electronic device provided by the embodiment of the present application will be described below.

[0046] Please refer to Fig. 4. Fig. 4 is a schematic diagram of the hardware structure of an electronic device 40 provided by an embodiment of the present application, the electronic device 40 includes a housing 41 forming a partially sealed space, a number of narrowband filters 42 located on a photosensitive chip for outputting a photosensitive signal inside the housing 41 and for collecting optical signals, and a processor 43 located inside the housing 41 for receiving a photosensitive signal, which is an optical signal of an object output by the photosensitive chip and collected by the number of narrowband filters, and generating a narrowband channel image including the object based on the photosensitive signal, and performing a fusion process on a plurality of narrowband channel images that correspond one-to-one to the number of narrowband filters 42, thereby obtaining a color image including the contour of the object.

[0047] By collecting and processing the object through a narrowband filter, the object can be collected accurately, and narrowband channel images corresponding to multiple types of narrowband filters are fused to obtain a color image including the contour of the object, so that the color image collected by the electronic device can clearly distinguish between the object and non-object in the color image, thereby effectively displaying the object and improving the imaging effect of the image.

[0048] Here, the electronic device 30 may be any electronic device having an imaging function, such as a mobile phone, a camera, etc. Here, the housing 41 of the electronic device 40 may be a bracket-type housing (including a bracket 904 as shown in FIG. 9A), and the electronic device can be fixed by the bracket, thereby preventing the electronic device from shaking. The housing 41 of the electronic device 40 may be a handy-type housing (including a handle 905 as shown in FIG. 9B), and the electronic device can be held by the handle, which is convenient for quick shooting. Here, the photosensitive chip may be an infrared photosensitive chip or a normal light photosensitive chip. The infrared photosensitive chip has a higher photosensitive effect than the normal light photosensitive chip.

[0049] The narrowband channel images exhibit two-dimensional characteristics, the first of which is that the absorption peaks of the target (e.g., pathological tissue) are different for different narrowband light wave spectra, and the second of which is that the penetration depths of the light waves within the ranges of these absorption peaks into the target are different. Therefore, the contrast effect of the narrowband channel images is prominent.

[0050] For example, with a 1450 nanometer (nm) filter, the contours of the object stand out and a narrowband channel image with a light transmission wavelength of 1450 nm can be obtained; with a 1300 nm filter, the contours of the object stand out and a narrowband channel image with a light transmission wavelength of 1300 nm can be obtained; and with a 1050 nm filter, the contours of the object stand out and a narrowband channel image with a light transmission wavelength of 1050 nm can be obtained.

[0051] The size of each narrowband filter matches the size of a pixel in the photosensitive chip (i.e., the size of a pixel in the photosensitive chip is equal to or larger than the size of each narrowband filter), for example, if the side length of a pixel in the photosensitive chip is 5 micrometers, the side length of a small section of each narrowband filter may be 5 micrometers, and if the size of a pixel in the photosensitive chip is 8 micrometers x 8 micrometers, the size of each narrowband filter may be 8 micrometers x 8 micrometers, thereby ensuring that there is one narrowband filter for each pixel in the photosensitive chip.

[0052] In some embodiments, the various narrow-band filters are regularly arranged on the photosensitive chip in a matrix format, and the processor further generates an image including the object according to the photosensitive signal, performs channel division processing on the image including the object according to the various narrow-band filters on the photosensitive chip to obtain intermediate channel images corresponding to the various narrow-band filters, and performs interpolation processing on the intermediate channel images corresponding to the various narrow-band filters to obtain narrow-band channel images corresponding to the various narrow-band filters.

[0053] As an example, performing channel division processing on an image including an object based on various narrowband filters in the above-mentioned photosensitive chip to obtain intermediate channel images corresponding to the various narrowband filters can be realized by the following technical solution: for any one type of narrowband filter in the photosensitive chip, identifying the position of the narrowband filter on the photosensitive chip, performing pixel extraction processing of the corresponding channel on the image including the object based on the position of the narrowband filter on the photosensitive chip to obtain the pixels of the narrowband filter, performing array processing on the pixels of the narrowband filter based on the arrangement of the narrowband filters on the photosensitive chip to obtain intermediate channel images corresponding to the narrowband filters.

[0054] As shown in FIG. 6, the filter matrix 603 includes many types of narrowband filters (1450 nm narrowband filters, 1300 nm narrowband filters, and 1050 nm narrowband filters shown in FIG. 6), and the filter matrix 603 is repeatedly arranged on the photosensitive chip in a 2×2 period to collect regularly arranged narrowband channel images.

[0055] 8, the customized filter matrix 801 includes many kinds of narrowband filters (1450nm narrowband filter 802, 1300nm narrowband filter 803, 1050nm narrowband filter 804, and wideband filter 806). The 1450nm narrowband filter 802 is taken as an example. The pixels corresponding to the 1450nm channel covered by the 1450nm narrowband filter 802 are extracted from the image including the object as the pixels corresponding to the 1450nm filter, and the pixels of the 1450nm narrowband filter are subjected to array processing based on the arrangement of the 1450nm narrowband filter on the photosensitive chip to obtain the intermediate channel image corresponding to the 1450nm filter. For example, if the 1450 nm narrowband filter is positioned on the sensitive chip at (0,2), (0,4), (0,6), and (0,8), the extracted pixels are arranged at (0,2), (0,4), (0,6), and (0,8) to obtain an intermediate channel image 805 corresponding to the 1450 nm filter.

[0056] As an example, we will continue to use the 1450 nm narrow band filter as an example, as shown in Figure 8. The empty pixels in the intermediate channel image 805 are interpolated, i.e., the empty pixels are assigned pixel values ​​that are the pixel values ​​of the pixels in the intermediate channel image 805 that are not empty pixels.

[0057] For example, taking a 1450 nm narrowband filter, a 1300 nm narrowband filter, and a 1050 narrowband filter as examples, for a collected image including an object, pixels covered by the 1450 nm filter are extracted from the image including the object to become the corresponding pixels of the 1450 nm filter, and based on the arrangement of the narrowband filter on the photosensitive chip, an array process is performed on the pixels of the narrowband filter to obtain an intermediate channel image corresponding to the corresponding 1450 nm filter, and the 1450 nm intermediate channel image is interpolated to obtain a 1450 nm narrowband channel image (i.e., a narrowband channel image with a light transmission wavelength of 1450 nm). Pixels covered by the 1300 nm filter are extracted from the image including the object to be pixels corresponding to the 1300 nm filter, and an arrangement process is performed on the pixels of the narrow band filter based on the arrangement of the narrow band filter on the photosensitive chip to obtain an intermediate channel image corresponding to the 1300 nm filter, and the 1300 nm intermediate channel image is interpolated to obtain a 1300 nm narrow band channel image (i.e., a narrow band channel image with a light transmission wavelength of 1300 nm). Pixels covered by the 1050 nm filter are extracted from the image including the object to be pixels corresponding to the 1050 nm filter, and an arrangement process is performed on the pixels of the narrow band filter based on the arrangement of the narrow band filter on the photosensitive chip to obtain an intermediate channel image corresponding to the 1050 nm filter, and the 1050 nm intermediate channel image is interpolated to obtain a 1050 nm narrow band channel image (i.e., a narrow band channel image with a light transmission wavelength of 1050 nm).

[0058] In some embodiments, the sizes of the narrowband channel images are the same. The narrowband channel images are obtained by performing a channel splitting process on an image including an object. The processor further identifies pixel values ​​of corresponding pixels in each narrowband channel image for any one pixel in the image including the object, performs a synthesis process on the pixel values ​​of the pixels corresponding to the narrowband channel images to obtain a multi-channel pixel value of the pixel, and performs a stitching process on the multi-channel pixel values ​​of the pixels to obtain a color image including the contour of the object. The embodiments of the present application can effectively synthesize multiple pixel values ​​of the same pixel to improve the imaging effect of the color image.

[0059] As an example, the following description will be continued in combination with FIG. 8. The multiple narrowband channel images have the same size. The multiple narrowband channel images are obtained by performing channel division processing on an image (original image) including an object. That is, the multiple narrowband channel images have the same size as the original image. An example will be described in which one pixel is located at the position (0,0) in the original image. The pixel values ​​corresponding to the pixel at the position (0,0) of the multiple narrowband channel images are identified, that is, multiple pixel values ​​are identified. The synthesis process is an average calculation process of the multiple pixel values. The average result is the multi-channel pixel value corresponding to the pixel at the position (0,0). Based on the above method, the multi-channel pixel value corresponding to the pixel at the position (0,1) etc. is obtained. The multi-channel pixel values ​​corresponding to the pixels at all positions in the original image are stitched to obtain the final color image.

[0060] For example, taking a 1450 nm narrowband filter, a 1300 nm narrowband filter, and a 1050 nm narrowband filter as examples, the narrowband channel images include a narrowband channel image with a light transmission wavelength of 1450 nm, a narrowband channel image with a light transmission wavelength of 1300 nm, and a narrowband channel image with a light transmission wavelength of 1050 nm, and the narrowband channel image with a light transmission wavelength of 1450 nm, the narrowband channel image with a light transmission wavelength of 1300 nm, and the narrowband channel image with a light transmission wavelength of 1050 nm are the same in size. A pixel value corresponding to each of the same pixels in each narrowband channel image is identified, a synthesis process is performed on the pixel values ​​corresponding to each of the same pixels in the multiple narrowband channel images to obtain a multi-channel pixel value of the same pixel, and the multi-channel pixel values ​​of the pixel are stitched according to the pixel position to obtain a color image including the contour of the object, thereby synthesizing the narrowband channel image having a light transmission wavelength of 1450 nm, the narrowband channel image having a light transmission wavelength of 1300 nm, and the narrowband channel image having a light transmission wavelength of 1050 nm into a color image.

[0061] In some embodiments, the electronic device further includes an achromatic lens disposed inside the housing for collecting the narrowband waves collected by the various narrowband filters onto the photosensitive chip. By collecting the narrowband waves according to the embodiments of the present application, the electronic device can collect the narrowband channel images at a later stage.

[0062] 4, the electronic device 40 includes an achromatic lens 44 (e.g., an infrared apochromatic lens), where the achromatic lens 44 can ensure that several narrow-band wavelengths are clearly focused on the surface of the photosensitive chip at the same time, so that the image clarity can be higher.

[0063] The achromatic lens 44 can be a normal lens, which does not have the function of achromatism, i.e., cannot ensure that several narrow-band wavelengths are clearly focused on the surface of the photosensitive chip at the same time.

[0064] In some embodiments, the achromatic lens further includes a focus ring mounted on a surface of the achromatic lens for adjusting a focal length of the achromatic lens, or a liquid lens mounted on the achromatic lens for adjusting a focal length of the achromatic lens.

[0065] As shown in Fig. 4, the electronic device 40 includes an achromatic lens 44 (e.g., an infrared apochromatic lens). As shown in Fig. 12A, a focus ring 1201 on the infrared apochromatic lens is operated and manually rotated to focus the lens. As shown in Fig. 12B, an additional liquid lens 1202 is attached to the infrared apochromatic lens, and the lens can be autofocused by searching for the focal plane in combination with an electronic device.

[0066] In some embodiments, the electronic device further includes a window disposed within the housing for protecting the photosensitive chip and the processor, where the type of window includes at least one of a long pass filter, a polarizer, and an attenuator.

[0067] 4, the electronic device 40 includes a window 45. The window 903 may be a long-pass filter (e.g., an infrared long-pass filter) for filtering visible light, a polarizer for collecting polarized light, an attenuator for attenuating incident light, or the like.

[0068] In some embodiments, the electronic device further includes a light source device disposed within the housing for providing at least one light source, the type of the light source including at least one of a broadband light source and a narrowband light source, and an illumination mode of the light source device including at least one of a steady mode and a flash mode.

[0069] As shown in Fig. 4, the light source provided by the light source device 46 may be a broadband light source or multiple narrowband light sources that are turned on simultaneously. Since the electronic device of the embodiment of the present application employs a narrowband filter, it is not necessary to separately turn on light sources of different wavelengths and capture them to obtain multispectral information, but rather, all light source devices can be turned on simultaneously, or a broadband light source can be directly used for illumination, and then filtered by a matrix of narrowband filters to obtain a multispectral image.

[0070] For example, when the illumination mode of the light source device is the constant-on mode, the brightness of the constant-on mode can be kept constant for a long time, which is suitable for observing samples in real time and recording videos. When the illumination mode of the light source device is the flash mode, the flash mode can burst extremely large light source power in a very short time, which is suitable for collecting dynamic samples or scenes with strong ambient light. In the flash mode, the camera only needs to select a very small (about 1 / 100000s (second)) shutter speed to ensure the collection of blur-free images.

[0071] As mentioned above, the image processing method provided by the embodiment of the present application is implemented by an electronic device, and the electronic device includes a variety of narrow-band filters. Please refer to Figure 5A. Figure 5A is a flow chart of the image processing method provided by the embodiment of the present application. The steps shown in Figure 5A will be combined for explanation.

[0072] The electronic device may be any electronic device with imaging capabilities, such as a mobile phone, a camera, etc. Narrowband filters are optical filters subdivided from bandpass filters, which allow the passage of optical signals in a specific wavelength band and block optical signals on either side of this wavelength band. Examples include 980nm narrowband filters, 1000nm narrowband filters, 1050nm narrowband filters, 1064nm narrowband filters, 1080nm narrowband filters, etc.

[0073] In step 101, an acquisition process is performed on an object using various narrowband filters to obtain narrowband channel images including the object.

[0074] For example, a narrowband channel image obtained by performing acquisition processing on an object using a narrowband filter can clearly distinguish the object from other non-objects, and can effectively display the object.

[0075] In some embodiments, the electronic device includes a photosensitive chip, and the various narrowband filters are regularly arranged on the photosensitive chip in a matrix format. In step 101, performing an acquisition process on the object using various narrowband filters to obtain a narrowband channel image including the object can be realized by performing an image acquisition process on the object using the photosensitive chip to obtain an image including the object, performing a channel division process on the image including the object based on the various narrowband filters on the photosensitive chip to obtain an intermediate channel image corresponding to the various narrowband filters, and performing an interpolation process on the intermediate channel image corresponding to the various narrowband filters to obtain a narrowband channel image corresponding to the various narrowband filters. The embodiments of the present application can accurately obtain the narrowband channel images corresponding to the various narrowband filters.

[0076] As shown in Figure 6, the filter matrix includes many types of narrowband filters (1450 nm narrowband filter, 1300 nm narrowband filter, and 1050 nm narrowband filter shown in Figure 6), and the filter matrix is ​​repeatedly arranged on the photosensitive chip in a 2 x 2 period to collect regularly arranged narrowband channel images.

[0077] 8, the customized filter matrix 801 includes many kinds of narrowband filters (1450nm narrowband filter 802, 1300nm narrowband filter 803, 1050nm narrowband filter 804, and wideband filter 806). The 1450nm narrowband filter 802 is taken as an example. The pixels of the corresponding 1450nm channel covered by the 1450nm narrowband filter 802 are extracted from the image including the object as the pixels corresponding to the 1450nm filter, and the pixels of the 1450nm narrowband filter are subjected to array processing based on the arrangement of the 1450nm narrowband filter on the photosensitive chip to obtain the intermediate channel image corresponding to the 1450nm filter. For example, if the 1450 nm narrowband filter is positioned on the sensitive chip at (0,2), (0,4), (0,6), and (0,8), the extracted pixels are arranged at (0,2), (0,4), (0,6), and (0,8) to obtain an intermediate channel image 805 corresponding to the 1450 nm filter.

[0078] As an example, we will continue to use the 1450 nm narrow band filter as an example, as shown in Figure 8. The empty pixels in the intermediate channel image 805 are interpolated, i.e., the empty pixels are assigned pixel values ​​that are the pixel values ​​of the pixels in the intermediate channel image 805 that are not empty pixels.

[0079] For example, taking a 1450 nm narrowband filter, a 1300 nm narrowband filter, and a 1050 narrowband filter as examples, for a collected image including an object, pixels covered by the 1450 nm filter are extracted from the image including the object to be regarded as pixels corresponding to the 1450 nm filter, and based on the arrangement of the narrowband filter on the photosensitive chip, an array process is performed on the pixels of the narrowband filter to obtain an intermediate channel image corresponding to the 1450 nm filter, and the 1450 nm intermediate channel image is interpolated to obtain a 1450 nm narrowband channel image (i.e., a narrowband channel image with a light transmission wavelength of 1450 nm). Pixels covered by the 1300 nm filter are extracted from the image including the object to be pixels corresponding to the 1300 nm filter, and an arrangement process is performed on the pixels of the narrow band filter based on the arrangement of the narrow band filter on the photosensitive chip to obtain an intermediate channel image corresponding to the 1300 nm filter, and the 1300 nm intermediate channel image is interpolated to obtain a 1300 nm narrow band channel image (i.e., a narrow band channel image with a light transmission wavelength of 1300 nm). Pixels covered by the 1050 nm filter are extracted from the image including the object to be pixels corresponding to the 1050 nm filter, and an arrangement process is performed on the pixels of the narrow band filter based on the arrangement of the narrow band filter on the photosensitive chip to obtain an intermediate channel image corresponding to the 1050 nm filter, and the 1050 nm intermediate channel image is interpolated to obtain a 1050 nm narrow band channel image (i.e., a narrow band channel image with a light transmission wavelength of 1050 nm).

[0080] In some embodiments, according to the various narrowband filters in the photosensitive chip, a channel splitting process is performed on an image including an object, and intermediate channel images corresponding to the various narrowband filters are obtained by the following technical solution: For any one of the narrowband filters in the photosensitive chip, the position of the narrowband filter on the photosensitive chip is identified, and according to the position of the narrowband filter on the photosensitive chip, a pixel extraction process is performed on the image including the object to obtain the pixels of the narrowband filter, and according to the arrangement of the narrowband filter on the photosensitive chip, an arrangement process is performed on the pixels of the narrowband filter to obtain an intermediate channel image corresponding to the narrowband filter. According to the embodiments of the present application, the pixels of the narrowband filter are arranged using the arrangement of the narrowband filter on the photosensitive chip, so that an accurate intermediate channel image can be obtained.

[0081] As an example, performing pixel extraction processing on an image including an object based on the position of the narrow-band filter on the photosensitive chip and acquiring pixels of the narrow-band filter can be realized by performing pixel extraction processing on an image including an object based on the position of the narrow-band filter on the photosensitive chip, the pixel extraction processing corresponding to a channel, and acquiring pixels of the narrow-band filter, where the channel corresponds to the narrow-band filter, thereby realizing channel division.

[0082] 8, the customized filter matrix 801 includes many kinds of narrowband filters (1450nm narrowband filter 802, 1300nm narrowband filter 803, 1050nm narrowband filter 804, and wideband filter 806). The 1450nm narrowband filter 802 is taken as an example. The pixels corresponding to the 1450nm channel covered by the 1450nm narrowband filter 802 are extracted from the image including the object as the pixels corresponding to the 1450nm filter, and the pixels of the 1450nm narrowband filter are subjected to array processing based on the arrangement of the 1450nm narrowband filter on the photosensitive chip to obtain the intermediate channel image corresponding to the 1450nm filter. For example, if the 1450 nm narrowband filter is positioned on the sensitive chip at (0,2), (0,4), (0,6), and (0,8), the extracted pixels are arranged at (0,2), (0,4), (0,6), and (0,8) to obtain an intermediate channel image 805 corresponding to the 1450 nm filter.

[0083] For example, taking a 1450 nm narrowband filter, a 1300 nm narrowband filter, and a 1050 nm narrowband filter as examples, pixels of an image including an object are extracted at the position of the narrowband filter on the photosensitive chip, the pixels of the narrowband filter are obtained, and the pixels of the narrowband filter are arranged according to the arrangement of the narrowband filter on the photosensitive chip to obtain intermediate channel images corresponding to the narrowband filters, i.e., a narrowband channel image with a light transmission wavelength of 1450 nm, a narrowband channel image with a light transmission wavelength of 1300 nm, and a narrowband channel image with a light transmission wavelength of 1050 nm.

[0084] In step 102, a fusion process is performed on a plurality of narrowband channel images that correspond one-to-one to various kinds of narrowband filters to obtain a color image including the contour of the object.

[0085] For example, after narrowband channel images corresponding to multiple types of narrowband filters are obtained, the narrowband channel images corresponding to multiple types of narrowband filters are synthesized to obtain a color image, so that the color image collected by the electronic device can clearly distinguish between objects and non-objects in the color image, thereby effectively displaying the objects and improving the imaging effect of the image.

[0086] In some embodiments, the sizes of the multiple narrowband channel images corresponding to the multiple narrowband filters one-to-one are the same. The fusion process of the multiple narrowband channel images corresponding to the multiple narrowband filters one-to-one to obtain a color image including the contour of the object can be realized by: for any one pixel in the image including the object, determining the pixel value of each pixel corresponding to each narrowband channel image, performing a synthesis process on the pixel values ​​of the corresponding pixels of the multiple narrowband channel images to obtain a multi-channel pixel value of the pixel, and performing a stitching process on the multi-channel pixels of the multiple pixels to obtain a color image including the contour of the object. According to the embodiments of the present application, a color image with an accurate imaging effect can be obtained by synthesizing from the pixel dimension.

[0087] As an example, the following description will be continued in combination with FIG. 8. The multiple narrowband channel images have the same size. The multiple narrowband channel images are obtained by performing channel division processing on an image (original image) including an object. That is, the multiple narrowband channel images have the same size as the original image. An example will be described in which one pixel is located at the position (0,0) in the original image. The pixel values ​​corresponding to the pixel at the position (0,0) of the multiple narrowband channel images are identified, that is, multiple pixel values ​​are identified. The synthesis process is an average calculation process of the multiple pixel values. The average result is the multi-channel pixel value corresponding to the pixel at the position (0,0). Based on the above method, the multi-channel pixel value corresponding to the pixel at the position (0,1) etc. is obtained. The multi-channel pixel values ​​corresponding to the pixels at all positions in the original image are stitched to obtain the final color image.

[0088] For example, taking a 1450 nm narrowband filter, a 1300 nm narrowband filter, and a 1050 nm narrowband filter as examples, the narrowband channel images include a narrowband channel image with a light transmission wavelength of 1450 nm, a narrowband channel image with a light transmission wavelength of 1300 nm, and a narrowband channel image with a light transmission wavelength of 1050 nm, and the narrowband channel image with a light transmission wavelength of 1450 nm, the narrowband channel image with a light transmission wavelength of 1300 nm, and the narrowband channel image with a light transmission wavelength of 1050 nm are the same in size. A pixel value of any one pixel corresponding to a narrowband channel image corresponding to multiple types of narrowband filters is identified, a synthesis process is performed on the pixel values ​​of the multiple corresponding pixels to obtain a multi-channel pixel value of any one pixel, and the multi-channel pixel values ​​of the pixel are stitched according to the pixel position to obtain a color image including the contour of the object, thereby synthesizing the narrowband channel image having a light transmission wavelength of 1450 nm, the narrowband channel image having a light transmission wavelength of 1300 nm, and the narrowband channel image having a light transmission wavelength of 1050 nm into a color image.

[0089] In some embodiments, fusing a plurality of narrowband channel images corresponding to a plurality of narrowband filters one-to-one to obtain a color image including an object contour can be achieved by identifying some narrowband filters in the plurality of narrowband filters, and performing a fusing process on the narrowband channel images corresponding to the some narrowband filters to obtain a color image including an object contour. The embodiments of the present application can improve the imaging effect of the color image.

[0090] For example, instead of a color image having a good imaging effect obtained by combining narrowband channel images corresponding to all narrowband filters, an embodiment of the present application can obtain a color image having the best imaging effect by combining only narrowband channel images corresponding to some narrowband filters.

[0091] In some embodiments, identifying a portion of the narrowband filters in the above-mentioned multiple types of narrowband filters can be achieved by displaying filtering indicators of the multiple types of narrowband filters, and in response to a selection operation on the filtering indicator, selecting a narrowband filter corresponding to the selected filtering indicator as a portion of the narrowband filters.

[0092] For example, filtering indexes of many kinds of narrowband filters, such as 980nm, 1000nm, 1050nm, 1064nm, 1050nm, 1080nm, 1300nm, and 1450nm, are displayed, and any three filtering indexes, such as 1050nm, 1300nm, and 1450nm, are manually selected. The narrowband filters corresponding to 1050nm, 1300nm, and 1450nm, respectively, are taken as some narrowband filters, and narrowband channel images corresponding to the 1050nm narrowband filter, the 1300nm narrowband filter, and the 1450nm narrowband filter are synthesized to obtain a color image, so that a color image that meets the user's requirements is synthesized based on the user's selection.

[0093] In some embodiments, identifying some of the narrowband filters in the above-mentioned multiple types of narrowband filters can be achieved by obtaining the frequencies at which the multiple types of narrowband filters are used, sorting the multiple types of narrowband filters in descending order based on the frequencies at which the multiple types of narrowband filters are used, and determining the multiple types of narrowband filters that are arranged first in the result of the descending order as some of the narrowband filters.

[0094] For example, the frequency at which the various narrowband filters are used is obtained, and the various narrowband filters are arranged in descending order based on the frequency at which the various narrowband filters are used, and the three narrowband filters arranged first in the descending order are regarded as some of the narrowband filters. For example, when a 1050nm narrowband filter, a 1300nm narrowband filter, and a 1450nm narrowband filter are the three narrowband filters arranged first in the descending order, the narrowband filters corresponding to 1050nm, 1300nm, and 1450nm, respectively, are regarded as some of the narrowband filters, and narrowband channel images corresponding to the 1050nm narrowband filter, the 1300nm narrowband filter, and the 1450nm narrowband filter are synthesized to obtain a color image, so that a color image that meets the user's request is automatically synthesized based on the user's preference.

[0095] In some embodiments, when there are four types of narrowband filters, a fusion process is performed on multiple narrowband channel images that correspond one-to-one to the multiple types of narrowband filters to obtain a color image including the contour of the object by identifying any three types of narrowband filters among the multiple types of narrowband filters, performing a synthesis process on the narrowband images that correspond to the any three types of narrowband filters to obtain candidate color images, performing an edge detection process on each candidate color image to obtain edge features of each candidate color image, and selecting the candidate color image with the most edge features as the color image including the contour of the object.

[0096] For example, there are many methods for synthesizing narrowband filter images, and it is too cumbersome to try them one by one manually. Therefore, in order to improve the synthesis efficiency, the embodiment of the present application performs a synthesis process on narrowband channel images corresponding to any three types of narrowband filters to obtain candidate color images, and performs an edge detection process on all the candidate color images to obtain the edge features of each candidate color image. The more edge features a candidate color image has, the more prominent the edges are and the better the imaging effect is, so the corresponding candidate color image with the most edge features is taken as the color image including the contour of the object.

[0097] It should be noted that edge detection is used to detect pixel points in an image where there is a clear change in luminance (i.e., pixel points where the change in luminance exceeds a change threshold), and a set of pixel points is represented as a contour (i.e., an edge). Edge detection in an image can greatly reduce the amount of data, remove irrelevant information, and retain important structural attributes (i.e., edges) of an image. Here, in the edge detection process of the embodiment of the present application, operators such as a first-order differential edge operator, a Roberts edge detection operator, a Prewitt edge detection operator, and a second-order differential operator are used.

[0098] Please refer to FIG. 5B. FIG. 5B is a flowchart of an image processing method provided by an embodiment of the present application. FIG. 5B shows that FIG. 5A further includes steps 103 to 104, and the electronic device further includes a wideband filter. In step 103, a collection process is performed on the object by a narrowband filter to obtain a wideband channel image including the object. In step 105, an image enhancement process is performed on a color image including the contour of the object based on the wideband channel image to obtain an enhanced color image.

[0099] As shown in Fig. 6, the filter matrix includes many kinds of narrowband filters (1450nm narrowband filter, 1300nm narrowband filter, 1050nm narrowband filter shown in Fig. 6) and wideband filter 604, and the filter matrix is ​​repeatedly arranged in a 2x2 period on the photosensitive chip 602. The narrowband channel images include a narrowband channel image with a light transmission wavelength of 1450nm, a narrowband channel image with a light transmission wavelength of 1300nm, and a narrowband channel image with a light transmission wavelength of 1050nm, and the narrowband channel image with a light transmission wavelength of 1450nm, the narrowband channel image with a light transmission wavelength of 1300nm, the narrowband channel image with a light transmission wavelength of 1050nm, and the wideband channel image are the same in size. When a narrowband channel image with a light transmission wavelength of 1450 nm, a narrowband channel image with a light transmission wavelength of 1300 nm, and a narrowband channel image with a light transmission wavelength of 1050 nm are synthesized into a color image, the synthesized color image and the wideband channel image have the same size. A pixel value of any one pixel corresponding to the color image and a pixel value of any one pixel corresponding to the wideband channel image are identified, and a ratio between the pixel value of any one pixel corresponding to the color image and the pixel value of any one pixel corresponding to the wideband channel image is taken as an enhancement value of any one pixel, and the pixel enhancement values ​​are stitched according to the pixel position to obtain an enhanced color image.

[0100] In some embodiments, for imaging scenes of pathological sampling, collection processing is performed on pathological tissue using various narrowband filters to obtain narrowband channel pathological images containing pathological tissue, and fusion processing is performed on multiple narrowband channel pathological images that correspond one-to-one to various types of narrowband filters to obtain color pathological images containing the contours of the pathological tissue. The color pathological images can assist in the detection of lesions remaining during surgery and in post-operative pathological sampling, thereby improving the success rate of surgery and the accuracy and consistency of post-operative pathological sampling, and reducing the difficulty of pathological sampling.

[0101] Hereinafter, an exemplary application of the embodiment of the present application in a practical application scene will be described.

[0102] The embodiments of the present application can be applied to various imaging scenes, for example, in the imaging scene of pathological sampling, electronic devices are used to image pathological tissue, and the imaged images are used to detect residual lesions during surgery and to assist in pathological sampling after surgery.

[0103] An imaging scene of a pathological sample will be described below as an example.

[0104] The main criteria for doctors to detect the margins of lesions such as tumors during surgery and select pathological samples after surgery are mainly divided into the following two aspects. For hospitals with limited medical conditions, doctors mainly use naked eye observation and palpation sense to distinguish the tumor area and select tissue blocks. This method is extremely difficult for inexperienced doctors, especially when the tumor bed is hidden, the pathologist's visual inspection alone cannot distinguish between normal tissue areas and lesion areas, and the palpation sense is a very subjective judgment. On the other hand, the method of radiographic imaging may be used to identify the lesion area and assist in pathological sampling, such as optical imaging platforms. This platform provides X-ray transmission images of the resected tissue, which can help doctors find lesions more accurately during surgery and also help with pathological sampling in the process of biopsy. However, since the interpretation of X-ray images mainly depends on the doctor's experience, there is a certain subjectivity, and doctors may disagree on the interpretation results. In addition, the price of X-ray equipment is not cheap.

[0105] To solve the above problems, the embodiment of the present application uses a short-wave infrared camera (also called a narrow-band infrared color camera, realized by electronic devices) made with an on-chip mosaic photosensitive chip customized with a narrow-band filter to assist in the detection of residual lesions during surgery and pathological sampling after surgery. The snapshot-type auxiliary sampling system does not need to perform image registration of different wavelengths, can perform high-speed real-time imaging, does not need to block ambient light, can work openly, and is very convenient. The flash photography mode can eliminate blurring and further weaken the influence of ambient light. The embodiment of the present application can further increase the success rate of surgery and the accuracy and consistency of postoperative pathological sampling, reduce the difficulty of pathological sampling, and the hardware cost is lower than that of a radiological imaging system.

[0106] As shown in FIG. 6, an embodiment of the present application provides a customized patch 602 (a filter matrix pasted on a photosensitive chip on a shortwave infrared camera) on a shortwave infrared camera 601, and the pasted filter is a filter matrix 603 repeated in a 2×2 period. Each 2×2 filter matrix includes a 1450 nm narrowband filter, a 1300 nm narrowband filter, a 1050 nm narrowband filter, and one wideband filter. Here, the wideband filter is normal glass, or other similar materials, which are fully transmitted through the shortwave infrared wavelength band, or materials with brightness attenuation function. The previous three narrowband wavelength bands (1450 nm narrowband filter, 1300 nm narrowband filter, 1050 nm narrowband filter) are used to synthesize three channels of infrared color, and the wideband can output a gray narrowband channel image without narrowband filtering effect.

[0107] As shown in FIG. 6, the shortwave infrared photosensitive chip is pasted with a mosaic matrix, and these mosaic matrices are 2×2 units, and each 2×2 filter matrix has four small rectangular units, three of which are 1450nm, 1300nm, and 1050nm narrowband filters, and the fourth unit is normal glass or a window with a brightness attenuation function to provide a normal grayscale image. The size of each unit is the same as the size of the pixel of the pasted photosensitive chip, and ensures one-to-one correspondence when pasted. The three narrowband filters in the 2×2 filter matrix in FIG. 6 are 1050nm, 1300nm, and 1450nm, and the narrowband wavelength bands can also be changed in actual use. The three wavelength bands here (1050nm, 1300nm, and 1450nm) are only three empirical bands that are effective for auxiliary sampling.

[0108] It should be noted that the size of each filter is consistent with the size of the pixel in the photosensitive chip. For example, if the side length of the pixel in the photosensitive chip is 5 micrometers, the side length of the small section of each filter in FIG. 6 may be 5 micrometers, and if the side length of the pixel in the photosensitive chip is 8 micrometers, the side length of the small section of each filter in FIG. 6 may be 8 micrometers. This ensures that each pixel has one filter. For each frame image collected, extract the pixels covered by the 1450nm filter, and the resulting image is a narrowband channel image with a light transmission wavelength of 1450nm; extract the pixels covered by the 1300nm filter, and the resulting image is a narrowband channel image with a light transmission wavelength of 1300nm; extract the pixels covered by the 1050nm filter, and the resulting image is a narrowband channel image with a light transmission wavelength of 1050nm.

[0109] The narrowband channel images of these three channels can be directly combined into one color image, as shown in Figure 7. Also, all pixels corresponding to the broadband filters are extracted, and the resulting grayscale image can be used to collect a wavelength-indistinguishable image. Of course, it can also be used to collect an image of a specific wavelength band by selecting the source of external illumination.

[0110] As shown in FIG. 8, each collected frame image is divided into channels by 1050 nm, 1300 nm, and 1450 nm narrowband filters. After channel division, an interpolation process is performed to obtain a narrowband channel image with a light transmission wavelength of 1450 nm, a narrowband channel image with a light transmission wavelength of 1300 nm, and a narrowband channel image with a light transmission wavelength of 1050 nm. The narrowband channel image with a light transmission wavelength of 1450 nm, the narrowband channel image with a light transmission wavelength of 1300 nm, and the narrowband channel image with a light transmission wavelength of 1050 nm are synthesized to obtain a narrowband infrared color image.

[0111] The snapshot shortwave infrared camera shown in the embodiments of this application can capture narrowband infrared color images in real time, something that current multispectral and hyperspectral systems struggle to do in real time.

[0112] FIG. 9A shows a bracket-type imaging system, which includes a customized short-wave infrared camera 901 (customized photosensitive chip shown in FIG. 6), an infrared apochromatic lens 902, a window 903, and a bracket 904.

[0113] Here, the infrared apochromatic lens 902 can keep several narrow band wavelengths clearly focused on the surface of the photosensitive chip at the same time. The window 903 can be an infrared long pass filter for filtering visible light, a polarizer for collecting polarized light, or an attenuator for attenuating the incident light, etc.

[0114] 9B shows a handheld imaging system, which includes a customized short-wave infrared camera 901 (the customized photosensitive chip shown in FIG. 6), an infrared apochromatic lens 902, a window 903, and a handle 905. Here, the infrared apochromatic lens 902 can keep several narrow-band wavelengths sharply focused on the surface of the photosensitive chip at the same time. The window 903 can be an infrared long-pass filter for filtering visible light, a polarizer for obtaining polarized light, or an attenuator for attenuating the incident light, etc.

[0115] It should be noted that the lenses in Figures 9A and 9B may be normal lenses or infrared apochromatic lenses. When normal lenses are used, different wavelengths have different refractive indices, which will affect the clarity of the image to a certain extent. However, the problem of clarity can be solved by using infrared apochromatic lenses. The infrared apochromatic lenses can make the light beams of different wavelengths converge on the same plane through coating and material processes, which can further improve the clarity of the image.

[0116] In the normal lens shown in Figure 10A, light rays of different wavelengths have different refractive indices, so they pass through the normal lens and converge on different planes, making the image of one wavelength clear while the image of another wavelength unclear. The infrared apochromatic lens shown in Figure 10B has a coating applied to the lens, and by carefully selecting materials and manufacturing processes, it can concentrate light rays of wavelengths within a certain range (e.g., 400 to 1700 nm) on one plane, avoiding the appearance of chromatic aberration caused by normal lenses.

[0117] It should be noted that the light source shown in Figures 9A and 9B may be a broadband light source or multiple narrowband light sources that are turned on simultaneously. With a snapshot shortwave infrared camera like the one in Figure 6, it is not necessary to turn on light sources of different wavelengths and take pictures to obtain multispectral information. On the other hand, all the light sources can be turned on simultaneously, or a broadband light source can be directly used for illumination, and then filtered by a filter matrix to obtain a multispectral image.

[0118] The constant-on mode (light source illumination mode) shown in FIG. 11A can keep the constant brightness of the constant-on mode constant for a long time, which is suitable for observing samples in real time and recording videos. The flash mode (light source illumination mode) shown in FIG. 11B can burst extremely large light source power in a very short time, which is suitable for collecting dynamic samples or scenes with strong ambient light. In the flash mode, the camera only needs to select a very small (about 1 / 100000s (second)) shutter speed to ensure the collection of blur-free sample images.

[0119] As shown in Fig. 12A, the focus of the lens is adjusted by manually rotating the focus ring 1201 of the infrared apochromatic lens. As shown in Fig. 12B, an additional liquid lens 1202 is attached to the infrared apochromatic lens, and the lens can be autofocused by searching for the focal plane in combination with a camera.

[0120] As shown in FIG. 13, the embodiment of the present application provides a comparison diagram between a composite infrared color image taken by a narrowband infrared color camera and a color image taken by a normal color camera. The hollow organ tissue mainly includes colon cancer tissue, rectal cancer tissue, stomach cancer tissue, and esophageal cancer tissue. In the above different tumor tissues, the narrowband infrared color image has a relatively good tissue boundary discrimination degree, and the imaged colors are similar, which shows great advantages in identifying the muscular plate of hollow organs. When determining the boundary of a tumor, the narrowband infrared color image is clearer than the normal color image. Here, the color image synthesized by 1050 nm, 1300 nm, and 1450 nm can clearly display the range of tumor tissue, and different tissues are represented by different intensity colors from yellow to orange. In the case of breast disease, the narrowband infrared color image shows the tumor contour and tumor tissue more clearly than the normal color image. The displayed contour has the highest matching degree with the whole field digital pathology slide (Whole Slide Image, WSI).

[0121] As described above, the technical solution provided by the embodiment of the present application uses infrared multi-spectral narrow bands to synthesize color images, providing doctors with information that cannot be observed by the naked eye to predict the lesion area of ​​the resected tissue, and providing a new solution for identifying tumor margins during surgery and assisting in pathological sampling after surgery. It is more reliable than the method of doctor's naked eye observation and palpation, and the consistency is more guaranteed. The system of the embodiment of the present application is a snapshot imaging system, which can perform real-time imaging (e.g., 120 fps (frames per second transmission)), directly solving the problem of image registration of different spectra and saving time. Another advantage of the narrow-band filter matrix is ​​that it can better filter the influence of indoor light sources and ensure the purity of the spectrum, allowing doctors to work in an open space, without the need for a light-shielding box, and without environmental restrictions. The design of the flash can further eliminate the influence of ambient light (short exposure to eliminate the influence of ambient light), which has great advantages in photographing dynamic samples (e.g., human breathing or trembling). On the other hand, the imaging system is damage-free, contact-free, ionizing radiation-free, almost unaffected by ambient light, easy to use in open spaces, and the hardware system cost is lower than that of the radiation system. The imaging system of the embodiment of the present application has a greater sampling assistance effect on tumor tissues that have been excised after surgery and fixed in formalin than ordinary color images, providing more information about the tumor bed to the sampling physician and improving sampling efficiency.

[0122] The image processing method provided by the embodiment of the present application has been described above in combination with the exemplary application and implementation of the electronic device provided by the embodiment of the present application. Hereinafter, the method in which each module in the image processing device provided by the embodiment of the present application cooperates to realize image processing will be described.

[0123] The acquisition module 5551 is configured to perform acquisition processing on the object using various narrowband filters to obtain a narrowband image including the object. The fusion module 5552 is configured to perform fusion processing on multiple narrowband channel images that correspond one-to-one to the various narrowband filters to obtain a color image including the contour of the object.

[0124] In some embodiments, the image processing device includes a photosensitive chip, and the various kinds of narrowband filters are regularly arranged on the photosensitive chip in a matrix format. The acquisition module 5551 is further configured to perform an image acquisition process on the object by the photosensitive chip to obtain an image including the object, and perform a channel division process on the image including the object according to the various narrowband filters on the photosensitive chip to obtain intermediate channel images corresponding to the various narrowband filters, and perform an interpolation process on the intermediate channel images corresponding to the various narrowband filters to obtain narrowband channel images corresponding to the various narrowband filters.

[0125] In some embodiments, the acquisition module 5551 is further configured to identify, for any one type of narrowband filter on the photosensitive chip, a position of the narrowband filter on the photosensitive chip, perform a pixel extraction process on an image including an object based on the position of the narrowband filter on the photosensitive chip to obtain pixels of the narrowband filter, and perform an array process on the pixels of the narrowband filter based on the arrangement of the narrowband filters on the photosensitive chip to obtain an intermediate channel image corresponding to the narrowband filter.

[0126] In some embodiments, the sizes of the multiple narrowband channel images corresponding to the multiple narrowband filters are the same. The fusion module 5552 is further configured to: for any pixel in the narrowband channel images, determine a pixel value of a corresponding pixel in each narrowband channel image, perform a synthesis process on the multiple pixel values ​​of the corresponding pixel to obtain a multi-channel pixel value of the pixel, and perform a stitching process on the multi-channel pixel values ​​of the multiple pixels to obtain a color image including the contour of the object.

[0127] In some embodiments, the fusion module 5552 is further configured to identify some narrowband filters among the multiple types of narrowband filters, and perform a fusion process on the narrowband channel images corresponding to the some narrowband filters to obtain a color image including the contours of the object.

[0128] In some embodiments, the fusion module 5552 is further configured to display filtering indices of multiple types of narrowband filters, and in response to a selection operation on the filtering indices, make the narrowband filter corresponding to the selected filtering indices into a portion of the narrowband filters.

[0129] In some embodiments, the fusion module 5552 is further configured to obtain frequencies at which the multiple types of narrowband filters are used, sort the multiple types of narrowband filters in descending order based on the frequencies at which the multiple types of narrowband filters are used, and make the multiple types of narrowband filters that are arranged first in the result of the descending order into some of the narrowband filters.

[0130] In some embodiments, when there are four types of narrowband filters, the fusion module 5552 is further configured to identify any three types of narrowband filters among the multiple types of narrowband filters, perform a synthesis process on the narrowband images corresponding to the any three types of narrowband filters, obtain candidate color images, perform an edge detection process on each candidate color image, obtain edge features of each candidate color image, and determine the candidate color image with the most edge features as the color image including the contour of the target object.

[0131] In some embodiments, the image processing device further includes a wideband filter, and is configured to perform a fusion process on multiple narrowband channel images that correspond one-to-one to various types of narrowband filters to obtain a color image including the contour of the object, and then the acquisition module 5551 is further configured to perform an acquisition process on the object using the wideband filter to obtain a wideband channel image including the object, and perform an image enhancement process on the color image including the contour of the object based on the wideband channel image to obtain an enhanced color image.

[0132] In some embodiments, the acquisition module 5551 is further configured to perform an acquisition process on the pathological tissue using various narrowband filters to obtain a narrowband channel pathological image including the pathological tissue, and the fusion module 5552 is further configured to perform a fusion process on the multiple narrowband channel pathological images that correspond one-to-one to the various narrowband filters to obtain a color pathological image including the contour of the pathological tissue.

[0133] An embodiment of the present application provides a computer program product, the computer program product including a computer program or computer commands, the computer executable commands being stored in a computer readable storage medium, a processor of an electronic device reads the computer executable commands from the computer readable storage medium, and the processor executes the computer executable commands to cause the electronic device to perform the image processing method of the embodiment of the present application.

[0134] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions are stored and, when executed by a processor, an image processing method provided by the embodiment of the present application, such as the image processing method shown in Figures 5A-5B, is performed by the processor.

[0135] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM, or may be a device including one or any combination of the above memories.

[0136] In some embodiments, the computer executable commands may take the form of a program, software, software module, script, or code, compiled according to any type of programming language (including compiled or interpreted, or declarative or procedural languages), deployed according to any type, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

[0137] As an example, the executable commands may or may not correspond to a file in a file system and may be stored as part of a file that stores other programs or data, for example stored in one or more scripts in a HyperText Markup Language (HTML) document, stored in a single file dedicated to the program being discussed, or stored in multiple associated files (e.g., files that store one or more modules, subprograms or code portions).

[0138] As an example, the computer executable commands may be deployed to be executed on a single electronic device, or on multiple electronic devices located at a single location, or on multiple electronic devices distributed across multiple locations and interconnected via a communications network.

[0139] The above is merely an embodiment of the present application, and does not limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and scope of the present application are included in the scope of protection of the present application.

Claims

1. An image processing method performed by an electronic device including multiple narrow band filters, comprising: The image processing method includes: performing an acquisition process on an object using various narrowband filters to obtain narrowband channel images including the object; performing a fusion process on a plurality of narrowband channel images corresponding one-to-one to the various types of narrowband filters to obtain a color image including the contour of the object; 13. An image processing method comprising:

2. The electronic device includes a photosensitive chip, and the various narrow-band filters are regularly arranged on the photosensitive chip in a matrix format; performing an acquisition process on an object using various narrowband filters to obtain a narrowband channel image including the object; performing an image acquisition process on the object using the photosensitive chip to obtain an image including the object; performing a channel splitting process on an image including the object according to the various narrow-band filters in the photosensitive chip to obtain intermediate channel images corresponding to the various narrow-band filters; performing an interpolation process on the intermediate channel images corresponding to the various narrowband filters to obtain narrowband channel images corresponding to the various narrowband filters; The image processing method according to claim 1 , further comprising:

3. performing a channel splitting process on an image including the object based on the various narrow-band filters in the photosensitive chip to obtain intermediate channel images corresponding to the various narrow-band filters; For any one of the narrow-band filters in the photosensitive chip, Identifying a location of the narrow band filter on the photosensitive chip; performing a pixel extraction process on an image including the object based on a position of the narrowband filter on the photosensitive chip to obtain pixels of the narrowband filter; performing an array process on pixels of the narrowband filters based on the arrangement of the narrowband filters on the photosensitive chip to obtain intermediate channel images corresponding to the narrowband filters; 3. The image processing method according to claim 2, further comprising:

4. the plurality of narrowband channel images are the same in size, and the plurality of narrowband channel images are obtained by performing a channel division process on an image including the object; performing a fusion process on a plurality of narrowband channel images corresponding one-to-one to the various types of narrowband filters to obtain a color image including the contour of the object; For any one pixel in the image including the object, determining pixel values ​​for the respective pixels of each of the narrowband channel images; performing a synthesis process on pixel values ​​of the corresponding pixels of the plurality of narrowband channel images to obtain multi-channel pixel values ​​of the pixels; performing a stitching process on the multi-channel pixel values ​​of the plurality of pixels to obtain a color image including the contour of the object; 2. The image processing method according to claim 1, further comprising:

5. performing a fusion process on a plurality of narrowband channel images corresponding one-to-one to the various types of narrowband filters to obtain a color image including the contour of the object; identifying a portion of narrowband filters among the multiple types of narrowband filters; performing a fusion process on the narrowband channel images corresponding to the part of the narrowband filters to obtain a color image including a contour of the object; The image processing method according to claim 1 , further comprising:

6. Identifying a portion of the narrowband filters among the various types of narrowband filters includes: Displaying filtering indices of the various narrow band filters; and In response to a selection operation for the filtering index, a narrowband filter corresponding to the selected filtering index is set as the part of the narrowband filters; 6. The image processing method according to claim 5, further comprising:

7. Identifying a portion of the narrowband filters among the various types of narrowband filters includes: obtaining frequencies at which the various narrowband filters are used; sorting the various types of narrowband filters in descending order based on frequencies at which the various types of narrowband filters are used, and determining the various types of narrowband filters arranged first in the result of sorting in descending order as the part of narrowband filters; 6. The image processing method according to claim 5, further comprising:

8. When the number of types of narrowband filters is at least four, performing a fusion process on a plurality of narrowband channel images corresponding one-to-one to the various types of narrowband filters to obtain a color image including a contour of the object, identifying any three types of narrow band filters from the multiple types of narrow band filters; performing a synthesis process on the narrowband channel images corresponding to the three types of narrowband filters to obtain a candidate color image; performing an edge detection process on each of the candidate color images to obtain edge features of each of the candidate color images; determining the candidate color image having the most edge features as a color image including a contour of the object; The image processing method according to claim 1 , further comprising:

9. the electronic device further includes a wideband filter; The image processing method further comprises: performing an acquisition process on the object using the broadband filter to obtain a broadband channel image including the object; performing an image enhancement process on a color image including a contour of the object based on the broadband channel image to obtain the enhanced color image; The image processing method according to claim 1 , further comprising:

10. performing an acquisition process on an object using various narrowband filters to obtain a narrowband channel image including the object; performing an acquisition process on the pathological tissue using various narrowband filters to obtain a narrowband channel pathological image including the pathological tissue; performing a fusion process on a plurality of narrowband channel images corresponding one-to-one to the various types of narrowband filters to obtain a color image including the contour of the object; performing a fusion process on a plurality of narrowband channel pathological images corresponding one-to-one to the various types of narrowband filters to obtain a color pathological image including the contour of the pathological tissue; The image processing method according to claim 1 , further comprising:

11. A housing forming a partially sealed space; A variety of narrow-band filters are located on the photosensitive chip inside the housing for outputting photosensitive signals, and collect optical signals; a processor located inside the housing and receiving a photosensitive signal output by the photosensitive chip, the photosensitive signal being an optical signal of an object collected by the various narrowband filters, generating a narrowband channel image including the object based on the photosensitive signal, and performing a fusion process on a plurality of narrowband channel images corresponding one-to-one to the various narrowband filters to obtain a color image including a contour of the object.

1. An electronic device comprising:

12. The various narrow-band filters are regularly arranged on the photosensitive chip in a matrix format; The processor further comprises: generating an image including the object based on the light-sensitive signal; Performing a channel splitting process on an image including the object according to the various narrow-band filters in the photosensitive chip to obtain intermediate channel images corresponding to the various narrow-band filters; performing an interpolation process on the intermediate channel images corresponding to the various narrowband filters to obtain narrowband channel images corresponding to the various narrowband filters; 12. The electronic device according to claim 11 .

13. The optical system further includes an achromatic lens disposed inside the housing for collecting narrow-band waves collected by the various narrow-band filters onto the photosensitive chip.

12. The electronic device according to claim 11 .

14. The achromatic lens further comprises: a focus ring disposed on the surface of the achromatic lens to adjust the focal length of the achromatic lens; or A liquid ring is disposed on the achromatic lens and adjusts the focal length of the achromatic lens.

14. The electronic device according to claim 13, further comprising:

15. a window disposed inside the housing to protect the light-sensitive chip and the processor; The window type includes at least one of a long pass filter, a polarizer, and an attenuator.

12. The electronic device according to claim 11 .

16. Further comprising a light source device disposed inside the housing for providing at least one light source, the light source type including at least one of a broadband light source and a narrowband light source; The illumination mode of the light source device includes at least one of a constant illumination mode and a flash mode.

12. The electronic device according to claim 11 .

17. an acquisition module configured to acquire narrowband channel images of an object using the various narrowband filters; a fusion module configured to perform a fusion process on a plurality of narrowband channel images corresponding one-to-one to the various types of narrowband filters to obtain a color image including a contour of the object; 13. An image processing device comprising:

18. The image processing device includes: a memory for storing executable commands; a processor which, when executing executable commands stored in said memory, implements the image processing method of any one of claims 1 to 10; 16. An electronic device comprising:

19. Executable commands are stored and, when executed by a processor, effect the image processing method of any one of claims 1 to 10. A computer-readable storage medium comprising:

20. A computer program or command, which, when executed by a processor, implements the image processing method according to any one of claims 1 to 10.

23. A computer program product comprising:

Citation Information

Patent Citations

  • Image processing device, image processing method, and image processing program

    CN107306491A

  • Image processing device, imaging device, image processing method, and program

    CN107405093A

  • Electronic endoscope

    CN110731748A

  • Multispectral imaging method, multispectral imaging device, mobile terminal and storage medium

    CN111866318A

  • endoscope

    JP2007020880A