Light level adaptive filter and method
An adaptive noise filter in the imaging pipeline of computer-assisted surgical systems addresses the challenge of varying signal levels by adjusting filtering based on pixel noise parameters, enhancing image clarity and reducing noise-induced artifacts.
Patent Information
- Application Number
- JP2023101711
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2016-01-29
- Filing Date
- 2023-06-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2037-01-27
AI Technical Summary
Existing image processing systems in computer-assisted surgical systems face challenges in effectively filtering noise from endoscopic imaging data due to varying signal levels, leading to issues such as noise-induced flicker in bright areas and loss of information in low signal levels.
The implementation of an adaptive noise filter in the imaging pipeline that adjusts noise filtering based on the signal level of each pixel, using estimated pixel noise parameters to differentiate between noise and actual changes, thereby preserving image information while reducing noise.
The adaptive noise filter significantly reduces noise-induced flicker and preserves image information by tailoring filtering to the specific signal level of each pixel, resulting in a clearer and more reliable display of surgical site images.
Smart Images

Figure 0007571207000048 
Figure 0007571207000049 
Figure 0007571207000050
Abstract
Description
[Technical field]
[0001] Related Applications This patent application claims the benefit of priority and the filing date of U.S. Provisional Patent Application No. 62 / 288,956, entitled “LIGHT LEVEL ADAPTIVE FILTER AND METHOD,” filed January 29, 2016, which is incorporated herein by reference in its entirety.
[0002] The present invention relates generally to image pipelines for computer-assisted surgery systems, and more particularly to adaptive filters used in image pipelines. [Background technology]
[0003] The surgical system 100 is a computer-assisted surgical system that includes an endoscopic imaging system 192, a surgeon console 194 (master), and a patient side support system 110 (slave), all of which are interconnected by wired (electrical or optical) or wireless connections 196. One or more electronic data processors may be variously located within these major elements to provide system functionality, examples of which are disclosed in U.S. Patent Application Publication No. 2008 / 0065105, which is incorporated herein by reference.
[0004] The patient side support system 110 includes an entry guide manipulator 130. At least one surgical device assembly is coupled to the entry guide manipulator 130. Each surgical device assembly includes an instrument, which in turn includes either a surgical instrument or an image capture unit. For example, in FIG. 1, one surgical device assembly includes an instrument 135-1 having a shaft 137-1 and an image capture unit that extends through the entry guide 115 during a surgical procedure. The instrument 135-1 is sometimes referred to as an endoscope, or alternatively an imaging system device or camera instrument. Typically, the entry guide 115 includes multiple channels.
[0005] The imaging system 192 performs image processing functions, for example, on captured endoscopic imaging data of the surgical site and / or pre-operative or real-time image data from other imaging systems external to the patient. The imaging system 192 outputs processed image data (e.g., images of the surgical site as well as associated control and patient information) to the surgeon at the surgeon console 194. In some aspects, the processed image data is output to an optional external monitor for viewing by other participants in the operating room or at one or more locations remote from the operating room (e.g., a surgeon in another location may monitor the video, a live feed video may be used for training, etc.).
[0006] The Surgeon Console 194 includes multiple degrees of freedom (DOF) mechanical input devices (masters) that allow the surgeon to steer the instruments, entry guide(s), and imaging system devices (collectively referred to as slaves). In some aspects, these input devices can provide tactile feedback to the surgeon from the instruments and components of the surgical device assembly. The Surgeon Console 194 also includes stereoscopic video output displays positioned such that images on the displays are generally focused at a distance corresponding to the hands of the surgeon working behind / below the display screen. These aspects are discussed more fully in U.S. Pat. No. 6,671,581, which is incorporated herein by reference.
[0007] Control during insertion of the instrument can be achieved, for example, by the surgeon moving the instrument shown in the image with one or both of the masters. The surgeon uses the master to move the instrument to the left or right of the image, pulling the instrument towards the surgeon. The movement of the master commands the imaging system and associated surgical device assembly to steer towards a fixed center point on the output display and advance inside the patient.
[0008] In one aspect, the camera control device is designed to give the impression that the master is fixed in the image so that the image moves in the same direction as the master handle is moved. This design places the master in the correct position for instrument control when the surgeon has finished camera control, and as a result, this design avoids the need to clutch (disengage), move, and declutch (engage) the master back to its original position before starting or resuming instrument control.
[0009] The base 101 of the patient side support system 110 supports arm assemblies including a passive, uncontrolled setup arm assembly 120 and an actively controlled manipulator arm assembly 130. The actively controlled manipulator arm assembly 130 is sometimes referred to as an entry guide manipulator 130. A platform 132 of the entry guide manipulator assembly (sometimes referred to as platform 132) is coupled to a distal end of the fourth manipulator link 119. An entry guide manipulator assembly 133 is rotatably mounted to the platform 132. Arrows 190 indicate distal and proximal directions.
[0010] The entry guide manipulator assembly 133 includes an instrument manipulator positioning system. The entry guide manipulator assembly 133 rotates the multiple instrument manipulators 140-1, 140-2 as a group about the axis 125.
[0011] Each of the multiple instrument manipulators 140-1, 140-2 is coupled to the entry guide manipulator assembly 133 by a different insert assembly 136. In one aspect, each insert assembly 136 is a telescoping assembly that moves a corresponding instrument manipulator away from and towards the entry guide manipulator assembly 133. In FIG. 1, each of the insert assemblies is in a fully retracted position.
[0012] Each of the multiple instrument manipulator assemblies 140-1, 140-2 includes multiple motors that drive multiple outputs at the output interfaces of the instrument manipulator. For one example of an instrument manipulator and a surgical instrument that may be coupled to the instrument manipulator, see U.S. Patent Application No. 61 / 866,115, filed Aug. 15, 2013, which is incorporated by reference.
[0013] Each of the plurality of surgical device assemblies 180 includes a plurality of different instrument manipulator assemblies and an instrument including one of a surgical instrument and an image capture unit. Each of the instruments 135-1, 135-2 includes a body that houses a transmission unit. The transmission unit includes an input interface including a plurality of inputs. Each of the instruments 135-1, 135-2 also includes a shaft 137-1, 137-2, sometimes referred to as a main tube, extending distally from the body. An end effector is coupled to the distal end of the shaft of the surgical instrument assembly, and an image capture unit, e.g., a camera, is included at the distal end of the different surgical instrument assembly. For examples of instrument manipulator assemblies and surgical instruments, see U.S. Patent Application No. 61 / 866,115, filed Aug. 15, 2013, which is also incorporated by reference.
[0014] Each of the instruments 135-1, 135-2 is coupled to an instrument mounting interface of a corresponding instrument manipulator assembly 140-1, 140-2 such that a plurality of inputs at an input interface of a transfer unit of the instrument 135-1, 135-2 are driven by a plurality of outputs at the instrument mounting interface of the instrument manipulator assembly 140-1, 140-2 (see U.S. Patent Application No. 61 / 866,115, filed Aug. 15, 2013).
[0015] 1, the shafts of multiple surgical device assemblies 180 extend distally from the body of the instruments. The shafts extend through a common cannula 116 that is placed at an entry port into the patient (e.g., through a body wall or at a natural orifice). In one aspect, an entry guide 115 is positioned within the cannula 116, and each instrument shaft extends through a channel in the entry guide 115 to provide additional support to the instrument shaft. Summary of the Invention
[0016] The system includes an image sensor, an imaging pipeline, and a display device. The image sensor is configured to capture a first frame of pixel data. The imaging pipeline is coupled to the image sensor to receive the first frame of pixel data.
[0017] The imaging pipeline includes an adaptive noise filter configured to filter pixels using estimated pixel noise parameters for a first pixel and using a difference between a signal level of the first pixel and a signal level of at least a second pixel. The adaptive noise filter is also configured to output a second frame of pixel data. The second frame of pixel data includes pixels filtered by the adaptive noise filter.
[0018] The imaging pipeline is configured to output a frame of pixel data based on the adaptive noise filtered second frame of pixel data, where the frame of pixel data based on the adaptive noise filtered second frame of pixel data is a frame of pixel data that is a result of further processing of the adaptive noise filtered second frame of pixel data by the imaging pipeline. A display device is coupled to the imaging pipeline to receive the frame of pixel data based on the adaptive noise filtered second frame of pixel data. The display device is configured to display the frame of pixel data based on the adaptive noise filtered second frame of pixel data.
[0019] In one aspect, the second pixel is at the same location in a third frame captured by the image sensor as the location of the first pixel in the first frame. Since the third frame was captured at a time before the capture of the first frame, the signal level difference used by the adaptive noise filter is the time signal level change between pixels at the same location in two different frames. In another aspect, the difference between the signal level of the first pixel and the signal level of at least the second pixel is the difference between the signal level of the first pixel and the signal level of one of a plurality of pixels (sometimes referred to as a plurality of adjacent pixels) adjacent to the first pixel. One of the plurality of adjacent pixels is the second pixel.
[0020] The adaptive noise filter includes an adaptive temporal noise filter configured to compare a change in signal level over time of the first and second pixels to an estimated pixel noise level of the first pixel. In this aspect, the estimated pixel noise level is an estimated pixel noise parameter. The adaptive temporal noise filter is also configured to output a pixel noise frame.
[0021] In one aspect, the imaging pipeline includes a plurality of stages, the adaptive temporal noise filter is included in a first stage of the plurality of stages, and each of a plurality of stages subsequent to the first stage of the plurality of stages is configured to process the input pixel noise frame and to output a stage-dependent pixel noise frame.
[0022] In another aspect, the adaptive noise filter includes an adaptive spatial noise filter. The adaptive spatial noise filter is configured to determine a difference between a signal level of the first pixel and a signal level of each of the multiple neighboring pixels. The adaptive spatial noise filter also uses a noise-dependent signal level parameter, where the noise-dependent signal level parameter is a function of the noise of the first pixel. In this aspect, the noise-dependent signal level parameter is an estimated pixel noise parameter of the pixel. In another aspect, the adaptive spatial noise filter includes a distance filter and a signal level range filter. The signal level range filter is configured to filter the pixel based on a difference between the signal level of the pixel and each of the signal levels of the multiple neighboring pixels and based on the noise-dependent signal level parameter. In one aspect, the noise-dependent signal level parameter is a signal level range parameter.
[0023] In a further aspect, the imaging pipeline stage includes an adaptive temporal noise filter including a signal level vs. noise lookup table configured to receive a frame of pixels, filter each pixel of a plurality of pixels of the frame by comparing a change in signal level of the pixel over time to a value in the signal level vs. noise lookup table corresponding to the signal level of the pixel, and output an adaptive temporal noise filtered frame of pixels based on the comparison.
[0024] In another aspect, the imaging pipeline stage includes a current pixel frame, a signal level vs. noise lookup table, a modification lookup table, a pixel output frame, a pixel noise frame, and an adaptive temporal noise filter coupled to the current pixel frame, the signal level vs. noise lookup table, the modification lookup table, the pixel output frame, and the pixel noise frame. The signal level vs. noise lookup table is configured to receive signal levels of pixels of the current pixel frame and output a noise standard deviation corresponding to the signal levels of the pixels. The modification lookup table is configured to receive a time change in the signal level of the pixels represented by a noise standard deviation number, and output a percentage of an allowed time change in the signal level of the pixels that passes the filter. The adaptive temporal noise filter is configured to output the adaptive temporal noise filtered pixels to the pixel output frame. The adaptive temporal noise filter is also configured to output pixel noise, i.e., output pixel noise corresponding to the adaptive temporal noise filtered pixels, to the pixel noise frame.
[0025] In yet another aspect, the adaptive spatial noise filter is configured to receive an input pixel frame and an input pixel noise frame, and is configured to filter a pixel of the input pixel frame based on a spatial variation between a signal level of the pixel and a signal level of a plurality of neighboring pixels and based on a noise-dependent signal level parameter to generate an adaptive spatial noise processed pixel. The noise-dependent signal level parameter is determined using pixel noise in the input pixel noise frame corresponding to the pixel. The spatial filtering of the pixel is related to a plurality of neighboring pixels in the input pixel frame. The adaptive spatial noise filter is also configured to output the adaptive spatial noise filtered pixel in the adaptive spatial noise filtered pixel frame.
[0026] In yet another aspect, the imaging pipeline stage includes an input pixel frame and an input pixel noise frame, each pixel noise element in the input pixel noise frame corresponds to a different pixel in the input pixel frame, and the imaging pipeline stage further includes a pixel output frame and an adaptive spatial noise filter coupled to the input pixel frame, the input pixel noise frame, and the pixel output frame.
[0027] In one aspect, the adaptive spatial noise filter includes an adaptive spatial noise bilateral filter: For a pixel at location x, the adaptive spatial noise bilateral filter is defined as follows:
number
number
number
number
number
number
number
number
number
number
number
number
number
[0028] In one aspect, the method includes receiving a first pixel of a first frame and adaptively noise filtering the first pixel using an estimated pixel noise parameter for the first pixel and using a difference between a signal level of the first pixel and a signal level of at least a second pixel to obtain a filtered pixel. The filtered pixel is output in an output frame. The method also includes outputting pixel noise corresponding to the filtered pixel in a noise output frame.
[0029] In another aspect, the second pixel is at a location in a second frame captured by the image sensor that is the same as the location of the first pixel in the first frame. The second frame is captured at a time prior to capturing the first frame. In this aspect, adaptive noise filtering the first pixel includes adaptively temporally noise filtering the first pixel based on a comparison of a change in signal level of the first pixel and the second pixel, also referred to as a change in signal level of the first pixel over time, to an estimated pixel noise level of the first pixel. The estimated pixel noise level is an estimated pixel noise parameter in this aspect.
[0030] The step of adaptively noise filtering the first pixel includes inputting the signal level of the first pixel into a signal level vs. noise lookup table and using the signal level vs. noise lookup table to output a noise standard deviation corresponding to the signal level of the first pixel. The noise standard deviation is an estimated pixel noise level of the first pixel in this embodiment. The step of adaptively noise filtering the first pixel also includes dividing the time change of the signal level of the first pixel by the noise standard deviation to obtain the time change of the signal level of the first pixel as the standard deviation of the noise, the division being the comparison. The step of adaptively noise filtering the first pixel further includes inputting the time change of the signal level of the first pixel with the standard deviation of the noise into a modified lookup table and using the modified lookup table to output a percentage of the allowed time change of the signal level of the first pixel that passes the filter. Finally, the step of adaptively temporal noise filtering the first pixel includes the steps of: generating an allowed time change in the signal level of the first pixel by multiplying a percentage of the allowed time change in the signal level of the first pixel by the time change of the signal level of the first pixel; and generating a filtered pixel by adding the allowed time change in the signal level of the first pixel to a corresponding pixel, the corresponding pixel being a pixel of a second frame, the second frame immediately preceding the first frame in time.
[0031] In yet another aspect, the at least one second pixel of the method is included in a plurality of pixels neighboring the first pixel, and adaptive noise filtering the first pixel includes adaptive spatial noise filtering the first pixel based on a difference between a signal level of the first pixel and each of the signal levels of the plurality of neighboring pixels and based on a noise-dependent signal level parameter that is a function of noise of the first pixel, which in this aspect is an estimated pixel noise parameter of the first pixel.
[0032] The step of adaptively spatial noise filtering the pixel comprises generating the filtered pixel by combining a distance filter and a signal level range filter, the signal level range filter being a function of the noise-dependent signal level parameter. In particular, the signal level filter comprises a Gaussian distribution of signal level ranges having the signal level range parameter. The signal level range parameter is a noise-dependent signal level parameter. [Brief description of the drawings]
[0033] [Figure 1] FIG. 1 is a diagram of a prior art computer-assisted surgery system. [Diagram 2] FIG. 1 is a diagram of an imaging system including an imaging pipeline having an adaptive noise filter. [Figure 3A] A method for implementing an adaptive temporal noise filter. [Figure 3B] FIG. 2 is a diagram of an adaptive temporal noise filter. [Figure 4A] FIG. 4 is a graphical representation of the data contained in the signal level vs. noise lookup table in the embodiment of FIGS. 3A and 3B. [Figure 4B] FIG. 4 is a graphical representation of the data contained in a modified lookup table in the embodiment of FIGS. 3A and 3B. [Diagram 5] FIG. 2 is a diagram of an imaging pipeline including multiple adaptive noise filters. [Figure 6A]A method for implementing an adaptive spatial noise filter. [Figure 6B] FIG. 2 is a diagram of an adaptive spatial noise filter. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0034] In the drawings, the first digit of a three digit reference number refers to the figure number in which an element with that reference number first appears.
[0035] An imaging pipeline, such as the imaging pipeline in endoscopic imaging system 192, includes many noise filters. These noise filters have parameters that are based on the noise expected in the scene. Although these noise filters work well for frames captured with a given signal level, e.g., the signal level for which the noise-based parameters are selected, these noise filters have problems processing frames captured at different signal levels and image frames that include varying signal levels.
[0036] These problems are solved by an imaging pipeline that includes one or more adaptive noise filters. Each of the adaptive noise filters selects a noise-dependent parameter that is related to a signal level on a local basis as measured by an image capture unit, e.g., an image sensor in a camera. The noise-dependent parameters used in each of the adaptive noise filters may vary from image frame to image frame and may vary from pixel to pixel within an image frame. Specifically, the adaptive noise filters adjust the noise filtering based on a signal level of a region of interest in the frame. In some examples, the region of interest is a pixel, while in other examples, the region of interest is a group of pixels, where the group of pixels includes more than one pixel and less than the number of pixels in the frame. Each of the adaptive noise filters adaptively filters a pixel by comparing a value of a first pixel to a value of at least a second pixel, e.g., a temporal or spatial change, and an estimated pixel noise parameter for that pixel, where the estimated pixel noise parameter for the pixel is based on a number less than the total number of pixels in the frame of pixel data. As the estimated pixel noise may vary from pixel to pixel, the adaptive filter compensates for such changes in the estimated pixel noise parameter.
[0037] In image capture sensors used in endoscopes and other miniature image capture sensors, a pixel counts the photons that are incident on it during an exposure time. Thus, the signal level of a pixel, sometimes referred to as the pixel value, includes the count of incident photons over the exposure time. However, this count, or signal level, may also include a contribution related to pixel noise. Pixel noise is dominated by electronic (shot) noise, and there is also a fundamental contribution to pixel noise due to electrical variations in the image capture sensor. Pixel noise is estimated as a square root function that deals with the variance in the number of electrons that strike the image capture sensor, for example, the estimated pixel noise parameter is the estimated pixel noise level. The estimated pixel noise level, sometimes referred to as the estimated pixel noise in terms of a standard deviation number, can be estimated as follows:
number
[0038] For example, consider a first pixel with an offset O of 2, a gain G of 40, a pixel signal level of 6, and a second pixel with a pixel signal level of 4000. In this example, 12-bit pixels are used, so the Max Signal Level is 4095. std(1st pixel noise)=2+40*(6 / 4095)**.5=3.5 std(2nd pixel noise)=2+40*(4000 / 4095)**.5=41.5
[0039] Thus, the standard deviation of the estimated pixel noise of the second pixel is more than 10 times the standard deviation of the estimated pixel noise of the first pixel. However, while the standard deviation of the estimated pixel noise of the first pixel is about 58% of the pixel signal level of the first pixel, the standard deviation of the estimated pixel noise of the second pixel is about 1% of the pixel signal level of the second pixel.
[0040] In one aspect, the image capture unit 201 captures a frame of pixel data, which is processed by the imaging pipeline 230 of the imaging system 292. Typically, the imaging pipeline 230 includes multiple stages. The imaging pipeline 230 of the imaging system 292 is similar to the imaging pipeline of the conventional imaging system 192, except that at least one noise filter in a stage of the imaging pipeline of the conventional imaging system 192 is replaced with an adaptive noise filter 210.
[0041] A stage input frame of pixel data 214 (sometimes referred to as an input frame 214) is a function of pixel data input to a particular stage of an imaging processing pipeline 230. An adaptive noise filter 210 in the imaging pipeline 230 of the imaging system 292 operates by determining whether a change in signal level of a pixel in the input frame 214 is noise or a real change. A real change is a change due to an actual change in signal level, not a change due to noise. If the adaptive noise filter 210 determines that a change in signal level of a pixel is due to noise, the adaptive noise filter 210 filters the pixel and passes the filtered pixel to the frame of filtered pixel data 212. Conversely, if the adaptive noise filter 210 determines that a change in signal level of the pixel is due to a change in signal level, i.e., a real change, the adaptive noise filter 210 passes the unfiltered pixel to the frame of filtered pixel data 212. The adaptive noise filter 210 makes a determination that a change in signal level for a pixel is due to noise by comparing the change in signal level associated with the pixel to an estimated pixel noise parameter for that pixel, and then filtering the pixel based on the comparison.
[0042] Thus, the adaptive noise filter 210 examines each pixel of at least the region of interest in the frame 202 captured by the image capture sensor of the image capture unit 201 and processes the signal level changes at each pixel, such as changes over time or spatial changes between adjacent pixels, based on whether the signal level changes are deemed to be caused by noise only. This adaptive noise filtering causes the display unit 220 to display a better image than those obtained using prior art noise filters.
[0043] In prior art noise filters, when the parameters used for the noise filter are directed to low signal level noise, noise in pixels exhibiting high signal levels simply passes through the filter. As a result, high signal level noise in a scene displayed on a display unit can cause bright areas of the displayed scene to vary from frame to frame, thus causing noise-induced flicker in the displayed scene.
[0044] Conversely, if the parameters used in the prior art noise filters are targeted at high signal level noise, then pixels with low signal levels will be filtered out because they are determined to be all noise, resulting in the loss of information from the low signal level pixels.
[0045] The adaptive noise filter described herein overcomes these problems by adjusting the noise filtering based on the signal level of each pixel. Thus, filtering for low signal levels differs from filtering for high signal levels, as the signal level changes the estimated pixel noise of the pixel changes, and the filtering is adjusted to preserve the information conveyed by each pixel while smoothing the noise contribution so that the effect of the pixel noise in the displayed image is not visible. For example, the adaptive noise filter 210 uses the signal level of a pixel to access signal level vs. noise data 211 for that pixel's noise. The signal level vs. noise data 211 has appropriate noise parameters for each signal level across the possible range of signal levels for the pixel. The adaptive noise filter 210 ensures that each pixel is appropriately filtered based on the noise of that pixel's signal level by comparing the change in the pixel's signal level to the noise level from the signal level vs. noise data 211 for that pixel. This significantly reduces or eliminates problems encountered with prior art noise filters that attempt to use the same parameters across a complete scene in a frame of pixel data.
[0046] In one aspect, the adaptive noise filter 210 stores a noise value, e.g., pixel noise, for each pixel in an output frame of pixel noise data 213 (sometimes referred to as a noise frame 213). In one aspect, the values of the pixel noise data 213 are expressed as noise standard deviations. The noise frame 213 passes through a pipeline 230 and is processed by each stage of the pipeline 230. As a result, each stage of the pipeline 230 has a representation of the noise input to that stage, which may be used for any adaptive noise filtering operations performed at that stage.
[0047] As described more fully below, in one aspect, the imaging pipeline 230 includes an adaptive temporal noise filter in an early stage of the imaging pipeline 230. When the adaptive noise filter 210 is an adaptive temporal noise filter, the stage input frames of pixel data 214 are input frames of raw pixel data from an image capture sensor in the image capture unit 201.
[0048] In another aspect, the imaging pipeline 230 includes an adaptive spatial noise filter at a later stage in the imaging pipeline 230. When the adaptive noise filter 210 is an adaptive spatial noise filter, the stage input frames of pixel data 214 are, for example, input frames of demosaiced and color transformed pixel data.
[0049] In yet another aspect, the imaging pipeline 230 includes both an adaptive temporal noise filter in an earlier stage of the imaging pipeline and an adaptive spatial noise filter in a later stage of the imaging pipeline. See FIG.
[0050] When the adaptive noise filter 210 is an adaptive temporal noise filter, the value of a current pixel (first pixel) at a position in a current frame of raw pixel data is compared with the value of a previously filtered pixel (second pixel) at the same position in a frame of data that is filtered immediately before the current frame in time, where raw pixel data refers to data from the image capture unit 201 that has not yet been demosaiced. The difference between the two values of the two pixels, i.e., the change in time of the current pixel, is used to determine whether the difference in the values of the two pixels is due to noise or an actual change.
[0051] In one embodiment, the standard deviation of the noise (estimated pixel noise parameter) relative to the value (signal level) of the current pixel is obtained from the signal level vs. noise data 211 by the adaptive noise filter 210. The time change of the current pixel is then divided by the standard deviation of the noise to obtain the time signal change relative to the value of the standard deviation of the noise. The time signal change relative to the value of the standard deviation of the noise is used to determine what percentage of the time change of the current pixel can pass through the filter 210. Thus, the filter 210 compares the time signal change of the current pixel with the estimated pixel noise parameter, e.g., the estimated pixel noise level, of the current pixel and filters based on the comparison. In one embodiment, the adaptive temporal noise filtered pixel is defined as the percentage of the time change of the current pixel plus the value of the second pixel. The value of the adaptive temporal noise filtered pixel is placed in the stage output frame 212 of filtered pixel data (sometimes referred to as the output frame 212). If the percentage of the allowed time change of the current pixel that can pass through the filter 210 is 100%, the current pixel passes through the adaptive temporal noise filter unchanged. If the percentage of the allowed time change of the current pixel that can pass through the filter 210 is less than 100%, the current pixel is filtered based on its signal level. The output frame 212 continues through the imaging pipeline 230 and is displayed on the display unit 220. Thus, a frame based on the output frame 212 is sent by the imaging pipeline 230 to the display unit 220. That is, the frame sent to the display unit 220 is the output frame 212 after the output frame 212 has been processed by subsequent stages in the imaging pipeline 230.
[0052] When the adaptive noise filter 210 is an adaptive spatial noise filter, the value of the current pixel at a location in the current frame of demosaiced and color transformed pixel data is compared to the values of neighboring pixels in the current frame. The percentage of spatial variance of the current pixel that passes the filter as an adaptive spatial noise filtered pixel is weighted based on the spatial relationship of the current pixel to the neighboring pixels, based on the relationship of the signal level of the current pixel to the signal levels of the neighboring pixels, and based on the noise component of the current pixel. In one aspect, as described more fully below, the adaptive spatial noise filter is configured to filter the pixel based on the spatial variance between the signal level of the pixel and the signal levels of a number of neighboring pixels, and based on a noise-dependent signal level parameter, which is a function of the noise of the current pixel, where in this aspect the noise-dependent signal level parameter is an estimated pixel noise parameter of the pixel. The stage output frame 212 continues through the imaging pipeline 230 and is displayed on the display unit 220.
[0053] Figure 3A is a process flow diagram of one implementation of an adaptive temporal noise filter that may be used in the imaging pipeline 230. Figure 3B is a block diagram of one implementation of an adaptive temporal noise filter 300 of the method 350 of Figure 3A.
[0054] In this example, pixels in a current pixel frame 315 (see FIG. 3B) are described as being processed sequentially. This is for illustrative purposes only and is not intended to be limiting. In view of the present disclosure, multiple pixels may be processed in parallel, pixels in a frame may be processed as a group, or some other matter. The process flow diagram of FIG. 3A is intended to show that each pixel in the current pixel frame 315 (see FIG. 3B) is processed to determine whether a temporal change in the current pixel is due to noise. In some aspects, not all pixels in a frame need to be processed. Thus, at least pixels in a region of interest of a frame, e.g., a plurality of pixels in a frame, are typically processed by the adaptive temporal noise filter 300, where the region of interest is known and designated to be a particular portion of the pixel frame.
[0055] First, a new frame search process 301 retrieves a new pixel frame 302 from the image capture sensor in the image capture unit 210. The retrieved new pixel frame 302 is saved as a current pixel frame 315 (see FIG. 3B). The new frame search process 301 transfers to a pixel acquisition process 303.
[0056] The pixel acquisition process 303 retrieves a first pixel from a current pixel frame 315 (see FIG. 3B) and a second pixel corresponding to the first pixel from a stored previously filtered pixel frame 304. Sometimes, the first pixel from the current pixel frame 315 is called the current pixel. The stored previously filtered pixel frame 304 is a pixel frame that was filtered at a time immediately before the time associated with the current pixel frame 315. If the current pixel frame 315 is a frame for a time t, the stored previously filtered pixel frame 304 is a frame for a time t-1. Here, the second corresponding pixel from the stored previously filtered pixel frame 304 is a pixel that is at the same position in the frame 304 as the position of the first pixel in the frame 315. Here, when a pixel is said to be retrieved, it means that the value of the pixel is retrieved. The value of the pixel represents a signal level. The pixel acquisition process 303 passes to a frame-to-frame pixel difference process 305.
[0057] The frame pixel differencing process 305 first determines the time change between a first pixel and a second pixel, e.g., the time change of the value of the first pixel at time t from the value of the second pixel at time t-1. The frame pixel differencing process 305 provides the time change of the value of the first pixel to a pixel generation process 309.
[0058] Next, the frame to frame pixel difference process 305 takes the absolute value of the time change of the first pixel. The frame to frame pixel difference process 305 provides the absolute value of the time change of the first pixel to the signal level modification process 307.
[0059] Signal level modification process 307 not only receives the absolute value of the time change of the first pixel, but also receives a value from signal level to noise look-up table 306. (Upper and lower case letters are not used to distinguish elements herein. For example, signal level to noise look-up table 306 (see FIG. 3A), signal level to noise look-up table 306 (see FIG. 3B), and signal level to noise look-up table 306 are all the same element.)
[0060] 4A is a graphical representation of the data in the signal level vs. noise lookup table 306 in one embodiment. In this embodiment, the noise prescription (1) above with an offset O of 2, a gain G of 40, and a Max Signal Level of 4095 was used to generate curve 401. Curve 401 is merely illustrative and is not intended to be limited to this particular example. In light of this disclosure, one skilled in the art can generate a signal level vs. noise lookup table 306 that represents the characteristics and associated gains of an image sensor used to provide frames to an imaging pipeline.
[0061] In Figure 4A, the signal level is plotted along the horizontal x-axis and the standard deviation of the noise is plotted along the vertical y-axis. Thus, when the signal level vs. noise lookup table 306 receives a current pixel value from the pixel acquisition process 303, which is a value along the x-axis, the signal level vs. noise lookup table 306 outputs a curve value 401 along the y-axis for the current pixel value. For example, assume the signal level of the current pixel (current pixel value) is 1750. When the signal level vs. noise lookup table 306 receives an input value of 1750, the signal level vs. noise lookup table 306 outputs a standard deviation value of 28.1 for the current pixel. This lookup is represented by the dotted line in Figure 4A.
[0062] In one embodiment, the signal level vs. noise lookup table 306 contains an entry for each possible signal level of the current pixel, although a fewer number of entries may be used and interpolation between entries may be used. The signal level vs. noise lookup table 306 provides the standard deviation of the noise for the signal level of the current pixel to the signal level modification process 307 as well as to the pixel noise generation process 311.
[0063] The signal level modification process 307 determines the number of standard deviations included in the time change of the first pixel, i.e., divides the absolute value of the time change of the value of the first pixel (the current pixel) by the noise standard deviation input value received from the signal level vs. noise lookup table 306. The change in the value of the first pixel is thus compared to the estimated pixel noise level of the first pixel, which in this example is an estimated pixel noise parameter. The number of standard deviations included in the absolute value of the time change is input to a modification lookup table 308.
[0064] A graphical representation of the data contained in the modification lookup table 308 is shown in Figure 4B. The range of possible input values of the temporal signal change of the current pixel in standard deviations of the noise is shown along the horizontal x-axis, in this example the possible input values range from zero to four standard deviations. Curve 402 represents the output of the percentage change that can pass the adaptive temporal noise filter for each of the possible input values, and the value of the curve for a given input is read off the vertical y-axis as the percentage of the temporal change of the current pixel that can pass the filter.
[0065] As shown by curve 402, for a current pixel time change of 1 noise standard deviation or less, approximately 19 percent of the current pixel time change, i.e., a first fixed constant percentage, is allowed to pass through the filter. For a current pixel time change of 3 noise standard deviations or more, 100 percent of the current pixel time change, i.e., a second fixed constant percentage, is allowed to pass through the filter, i.e., the current pixel passes through the filter unfiltered. For a current pixel time change of 2 or more noise standard deviations but less than 3 noise standard deviations, the percentage of time change allowed to pass through the filter varies linearly from approximately 19 percent of the current pixel time change for 1 noise standard deviation to 100% for 3 noise standard deviations.
[0066] For example, for an input value of 2 standard deviations of the noise in the time variation of the current pixel, the modification lookup table 308 outputs a value of approximately 59%, which is the percentage of the time variation of the current pixel that is allowed to pass the filter. An example of this lookup is represented by the dotted line in Figure 4B.
[0067] In one embodiment, the modified lookup table 308 is not used and is replaced with a piecewise function as shown in Figure 4B. For curves more complex than those shown in Figure 4B, the curves are implemented with a modified lookup table 308 having approximately 512 entries.
[0068] Thus, in response to the standard deviation value included in the absolute value of the time change of the current pixel being input to the change lookup table 308, the change lookup table 308 outputs a corresponding percentage change that allows the current pixel to pass the adaptive temporal noise filter. The percentage change that allows the current pixel to pass the adaptive temporal noise filter is provided to a pixel generation process 309 and a pixel noise generation process 311.
[0069] The pixel generation process 309 receives as inputs the filtered percentage of the current pixel's time change from the modified lookup table 308, the current pixel's time change from the frame pixel difference process 305, and the value of a second pixel from the stored previously filtered pixel frame 304. The pixel generation process 309 multiplies the filtered percentage of the current pixel's time change from the frame pixel difference process 305 by the current pixel's time change from the frame pixel difference process 305, and then adds the result to the value of the second pixel from the stored previously filtered pixel frame 304 to obtain an adaptive temporal noise filtered pixel that is passed to the pixel output frame 310. An adaptively filtered output pixel is then output based on the comparison described above.
[0070] The pixel noise generation process 311 receives as input the percent change allowed through the adaptive temporal noise filter, the noise standard deviation for the signal level of the current pixel (stdCurr), and the noise standard deviation for the signal level of the corresponding filtered pixel in the previous temporal frame (stdPrev), which is received from a stored previous pixel noise frame 314, which is a frame of pixel noise standard deviations generated by the previous adaptive noise filter.
[0071] The pixel noise generation process 311 generates the pixel noise standard deviation (stdOut) for the current filtered pixel. In this aspect, the pixel noise standard deviation (stdOut) for the current filtered pixel is defined as follows:
number
[0072] The pixel noise generation process 311 writes the pixel noise standard deviation (stdOut) for the current filtered pixel to a pixel noise output frame 312 (sometimes called noise output frame 312). The current pixel noise represents the noise component of the adaptive temporal noise filtered pixel. The pixel noise generation process 311 passes processing to the last pixel confirmation process 313.
[0073] The Check Last Pixel Process 313 determines whether all pixels in the current pixel frame have been filtered. If all pixels have been filtered, the Check Last Pixel Process 313 transfers to the Find New Frame Process 301, otherwise it transfers to the Get Pixel Process 303.
[0074] Once all pixels of interest in a frame have been filtered, the pixel output frame 310 (called the filtered pixel frame) is moved to the stored previously filtered pixel frame 304. Also, the pixel noise output frame 312 is moved to the stored previous pixel noise frame 314 (sometimes called the stored previous noise frame 314).
[0075] The method 350 of Figure 3A adaptively temporally noise filters each pixel in at least one region in a frame and adjusts the filter based on the estimated pixel noise for that pixel. Additionally, the method generates a pixel noise output frame that is processed by each stage of the imaging pipeline until another filter stage is reached, such that the noise contribution to each pixel is available to each filter stage of the imaging pipeline. Each filter stage includes an option to generate a pixel noise output frame from that stage.
[0076] Adaptive temporal noise filter 300 is an example of a filter that implements method 350 of Figure 3A. Adaptive temporal noise filter 300 includes a first adder 320, an absolute value module 321, a divider 322, a multiplier 323, a second adder 324, second through seventh multipliers 325, 326, 328, 329, 330, 331, third and fourth adders 327, 332, and a square root module 333. Adaptive temporal noise filter 300 is connected to a current pixel frame 315, a stored previously filtered pixel frame 304, a signal level vs. noise lookup table 306, a modification lookup table 308, a pixel output frame 310, a pixel noise output frame 312, and a stored previous pixel noise frame 314. In one aspect, each of the current pixel frame 315, the stored previously filtered pixel frame 304, the signal level vs. noise lookup table 306, the modification lookup table 308, the pixel output frame 310, the pixel noise output frame 312, and the stored previous pixel noise frame 314 are stored in memory. In this example, the pixel output frame 310 is coupled to the stored previously filtered pixel frame 304 such that the pixel output frame 310 can be moved to the stored previously filtered pixel frame 304. Similarly, the pixel noise output frame 312 is coupled to the stored previous pixel noise output frame 314 such that the pixel noise output frame 312 can be moved to the stored previous pixel noise output frame 314.
[0077] It is for illustrative purposes only to show the current pixel frame 315, the stored previously filtered pixel frame 304, the signal level vs. noise lookup table 306, the modification lookup table 308, the pixel output frame 310, the pixel noise output frame 312, and the stored previous pixel noise frame 314 separately from the adaptive temporal noise filter 300. For example, the adaptive temporal noise filter 300 may be shown in FIG. 3B to include all or some combination of the current pixel frame 315, the stored previously filtered pixel frame 304, the signal level vs. noise lookup table 306, the modification lookup table 308, the pixel output frame 310, the pixel noise output frame 312, and the stored previous pixel noise frame 314.
[0078] To implement the pixel acquisition process 303, a signal on line (Control) drives a first pixel from a current pixel frame 315 (sometimes referred to as frame 315) on a first input (In1) of a summer 320 of the adaptive temporal noise filter 300, and drives a second pixel from a stored previously filtered pixel frame 304 (sometimes referred to as frame 304) to an inverted second input (In2) of the summer 320. As mentioned above, the first pixel is sometimes referred to as the current pixel. Also, when a pixel is said to be driven or provided to an input, it means that the value of the pixel is on the input.
[0079] The current pixel is also provided to an input (In) of a signal level vs. noise lookup table 306 of the adaptive temporal noise filter 300. A second pixel from the stored previously filtered pixel frame 304 is also provided to a second input (In2) of a second adder 324.
[0080] The adder 320 subtracts the value of the second pixel from the stored previously filtered pixel frame 304 from the value of the first pixel from the current pixel frame 315. The difference between these two pixels, i.e. the time change of the first pixel, is provided to a first input (In1) of a multiplier 323 of the adaptive temporal noise filter 300 and to an input (IN) of an absolute value module 321. The absolute value module 321 takes the absolute value of the time difference between the two pixels. The absolute value of the time difference of the two pixels is provided to a (fractional) numerator input (NUM) of a divider 322. In this embodiment, the adder 320 and the absolute value module 321 are used to implement the frame to frame pixel difference process 305.
[0081] In response to the value of the current pixel on the input (In) of the signal level vs. noise lookup table 306, the signal level vs. noise lookup table 306 outputs on the input (In) a noise standard deviation corresponding to the input signal level as represented by the value of the current pixel. The output noise standard deviation is provided to a second input (input (DENOM)) of the divider 322 and to both inputs of the multiplier 325.
[0082] The signal level modification process 307 is implemented in the adaptive temporal noise filter 300 by a divider 322. As mentioned above, the absolute value of the difference between two pixels, i.e. the absolute value of the time change of the current pixel, is received at a first input (Num) of the divider 322. As just explained, the signal level vs. noise lookup table 306 (see FIG. 3B) receives the value of the current pixel on an input (In) and in response to the input output the noise standard deviation corresponding to the input value, see FIG. 4A. The noise standard deviation is provided to a second input (Denom) of the divider 322.
[0083] The divider 322 divides the value of the first input (Num) by the value of the second input (Denom) and the result is at the output (Out). The result on the output (Out) of the divider 322 is fed to the input (In) of the modified lookup table 308. Thus, the divider 322 divides the absolute value of the time change of the current pixel by the noise standard deviation of the current pixel to obtain the signal change over time in the standard deviation of the noise which is input to the modified lookup table 308.
[0084] The modified lookup table 308 outputs the percentage of the time change that is allowed to pass the filter 300 in response to the input time signal change in the standard deviation of the noise, see FIG. 4B. The percentage of the time change that is allowed to pass the filter 300 is provided to a second input (In2) of the multiplier 323, an inverted second input (In2) of the adder 327, and both inputs of the multiplier 326.
[0085] Thus, the multiplier 323 receives the proportion of the time change that can pass the filter 300 on a second input (In2) and the time change of the first pixel on a first input (IN1). The multiplier 323 multiplies these two inputs to obtain the time change that can pass the filter 300. The time change that can pass the filter 300 is output at an output (Out) of the multiplier 323 and is supplied to a first input (In1) of a second adder 324.
[0086] The adder 324 receives the temporal change that can pass through the filter 300 on a first input (In1) and the value of a second pixel from the stored previously filtered pixel frame 304 on a second input (In2). (As used herein, the second pixel from the stored previously filtered pixel frame 304 does not literally refer to the second pixel in that frame, but rather refers to a pixel from the stored previously filtered pixel frame 304 that has a position that is the same as, i.e. corresponds to, the position of the current pixel in the current pixel frame 315.) The adder 324 adds the temporal signal change that can pass through the filter 300 to the value of the second pixel from the stored previously filtered pixel frame 304 and outputs the sum at an output (Out). The sum is the adaptive temporal noise filtered pixel value. The output (Out) of the adder 324 is connected to the pixel output frame 310. Thus, the adaptive temporal noise filtered pixel is written to the pixel output frame 310. Multipliers 323 and adders 324 implement the pixel generation process 309 .
[0087] The pixel output frame 310 is processed by the remaining stages of the imaging pipeline (see FIG. 5) and then sent to a display unit. Because the frame of pixel data sent to the display unit is the result of the imaging pipeline processing the pixel output frame 310, the frame of pixel data sent to the display unit is said to be based on the pixel output frame 310. Thus, the frame of pixel data based on the pixel output frame 310 is displayed by the display unit and, as described above, provides a better image than would be obtained with non-adaptive temporal noise filtering.
[0088] The noise standard deviation (stdCurr) of the current pixel is present at both input terminals (In1) and (In2) of multiplier 325. Multiplier 325 multiplies these two values to generate the squared noise standard deviation (stdCurr2), which is driven on an output terminal (Out) that is connected to a first input terminal (In1) of multiplier 330.
[0089] The change in time that allows the filter to pass is present at both input terminals (In1) and (In2) of a multiplier 326. The multiplier 326 multiplies the two values to generate the square of the change in time that allows the filter to pass (change2). The square of the change in time that allows the filter to pass (change2) is driven on an output terminal (Out) that is connected to a second input terminal (In2) of a multiplier 330.
[0090] A first input terminal (In1) of the adder 327 receives a "1" as an input and an inverted second input (In2) receives an input of the time change allowed to pass the filter, expressed as a number between zero and one. The adder subtracts the percentage of time change allowed to pass the filter from 1 to generate a value (1-change). The value (1-change) is driven on an output terminal (Out) which is connected to the first input terminal (In1) and the second input terminal (In2) of the multiplier 329.
[0091] The signal on the line for the stored previous pixel noise frame (Control) drives the previously filtered pixel noise standard deviation (stdPrev) corresponding to the current pixel on both input terminals (In1) and (In2) of the multiplier 328. The previously filtered pixel noise standard deviation (stdPrev) corresponding to the current pixel is also the previously filtered pixel noise standard deviation (stdPrev) for the same position of the current pixel in the current pixel frame 315 as it is in the stored previous pixel noise frame 314. The multiplier 328 multiplies these two values to generate the previously filtered pixel noise standard deviation squared (stdPrev2). The previously filtered pixel noise standard deviation squared (stdPrev2) is driven on an output terminal (Out) which is connected to a second input terminal (In2) of the multiplier 331.
[0092] The value (1-change) is present at both a first input terminal (In1) and a second input terminal (In2) of multiplier 329. Multiplier 329 multiplies the two values to generate a value (1-change)2. The value (1-change)2 is driven on an output terminal (Out) that is connected to a first input terminal (In1) of multiplier 331.
[0093] The square of the time change that allows the filter to pass (change2) is on a second input terminal (In2) of the multiplier 330 and the square of the noise standard deviation of the current pixel (stdCurr2) is on the second input terminal (In2) of the multiplier 330. The multiplier 330 multiplies the two values to generate a value (change2*stdCurr2). The value (change2*stdCurr2) is driven on an output terminal (Out) that is connected to a first input terminal (In1) of the adder 332.
[0094] The squared noise standard deviation of the previously filtered pixel corresponding to the current pixel (stdPrev2) is present on a second input terminal (In2) of multiplier 331 and the value (1-change)2 is present on a first input terminal (In1) of multiplier 331. Multiplier 331 multiplies the two values to generate the value ((1-change)2*stdPrev2). The value ((1-change)2*stdPrev2) is driven on an output terminal (Out) which is connected to a second input terminal (In2) of adder 332.
[0095] Thus, the adder 332 receives the value (1-change)2*stdPrev2 on its second input terminal (In2) and the value change2*stdCurr2 on its first input terminal (In1). The adder 332 adds the two values to generate the value ((1-change)2*stdPrev2+change2*stdCurr2). The value ((1-change)2*stdPrev2+change2*stdCurr2) is driven on an output terminal (Out) that is connected to an input terminal (In) of the square root module 333.
[0096] The square root module 333 takes the square root of the value ((1-change)2*stdPrev2+change2*stdCurr2) and stores the result (stdOut) in a location in the pixel noise output frame 312 that corresponds to the location of the current pixel in the current pixel frame 315, i.e., in a location corresponding to the current pixel in the pixel noise output frame 312. The second through seventh multipliers 325, 326, 328, 329, 330, 331, the third and fourth adders 327, 332 and the square root module 333 implement the pixel noise generation process 311.
[0097] 5 is a block diagram of representative stages 501-504 of an imaging pipeline 530 that includes multiple adaptive noise filters. The imaging pipeline 530 is an example of the imaging pipeline 230. In this example imaging pipeline, an adaptive temporal noise filter 300 is included in a first stage 501 and an adaptive spatial noise filter 570 is included in a fourth stage 504. The imaging pipeline 530 outputs a frame to a display unit based on the output of the adaptive noise filters of the pipeline.
[0098] 5, the image capture unit 201 includes an image capture sensor with a Bayer red-green-blue color filter. The Bayer pixel data-in frame 515 is the current pixel frame of the adaptive temporal noise filter 300. Here, the Bayer pixel data-in frame 515 includes a set of red pixel data, a set of green pixel data, and a set of blue data. However, in stage 501, the temporal filtering does not depend on the color attributes of a particular set of pixels, but only on the signal level of each pixel.
[0099] 3A and 3B, each pixel in the Bayer pixel data input frame 515 accesses the signal level vs. noise lookup table 506, which outputs the noise standard deviation (estimated pixel noise parameter) for each pixel to the Bayer pixel noise in frame 516. The signal level vs. noise lookup table 506 is similar to the signal level vs. noise lookup table 306.
[0100] The adaptive temporal noise filter 300 receives as inputs a Bayer pixel data input frame 515 and the Bayer pixel noise in frame 516, and uses a modified lookup table 508 as described above for modified lookup table 308. The modified lookup table 508 is similar to modified lookup table 308. The adaptive temporal noise filter 300 generates an adaptive temporal noise filtered pixel in a Bayer pixel data output frame 510 for each pixel in the Bayer pixel data input frame 515, and generates pixel noise in a Bayer pixel noise output frame 512 for each pixel in the Bayer pixel data input frame 515, as described above with respect to Figures 3A and 3B, so a description will not be repeated here.
[0101] The Bayer pixel data output frame 510 and the Bayer pixel noise output frame 512 are input frames to a second stage 502 (demosaic stage) of the imaging pipeline 530. A demosaic process 550 processes the adaptive temporal noise filtered pixels of the Bayer pixel data output frame 510 to produce a full resolution red pixel frame (imRed), a full resolution green pixel frame (imGreen), and a full resolution blue pixel frame (imBlue). The demosaic process 550 also processes the pixel noise of the Bayer pixel noise data output frame 512 to produce a full resolution red pixel noise frame (imNoiseRed), a full resolution green pixel noise frame (imNoiseGreen), and a full resolution blue pixel noise frame (imNoiseBlue). The process of demosaicing a set of Bayer red, green, and blue pixels to obtain full resolution frames of red, green, and blue pixels is well known and therefore will not be discussed in further detail.
[0102] The full resolution red pixel frame (imRed), full resolution green pixel frame (imGreen), full resolution blue pixel frame (imBlue), full resolution red pixel noise frame (imNoiseRed), full resolution green pixel noise frame (imNoiseGreen), and full resolution blue pixel noise frame (imNoiseBlue) are input frames to the third stage (color space conversion stage) of the imaging pipeline 530. The color conversion process 560 converts the red pixels, green pixels, and blue pixels, i.e., color pixels in a first color space, into a luminance pixel Y and two chrominance pixels U, V, i.e., color pixels in a second color space. The conversion from RGB color space to YUV color space is well known and therefore will not be discussed in further detail.
[0103] The color conversion process 560 converts the full resolution red pixel frame (imRed), full resolution green pixel frame (imGreen), and full resolution blue pixel frame (imBlue) into a full resolution luminance pixel frame (imY), a first full resolution chrominance pixel frame (imU), and a second full resolution chrominance pixel frame (imV). The color conversion process 560 also converts the full resolution red pixel noise frame (imNoiseRed), full resolution green pixel noise frame (imNoiseGreen), and full resolution blue pixel noise frame (imNoiseBlue) into a full resolution luminance pixel noise frame (imNoiseY), a first full resolution chrominance pixel noise frame (imNoiseU), and a second full resolution chrominance pixel noise frame (imNoiseV).
[0104] The full resolution luminance pixel frame (imY), the first full resolution chrominance pixel frame (imU), the second full resolution chrominance pixel frame (imV), the full resolution luminance pixel noise frame (imNoiseY), the first full resolution chrominance pixel noise frame (imNoiseU), and the second full resolution chrominance pixel noise frame (imNoiseV) are inputs to a fourth stage 504 (adaptive spatial noise filter stage) of the imaging pipeline 530.
[0105] One of the reasons for converting from RGB color space to YUV color space is that most of the luminance information important for human visual perception is preserved in the luminance component Y of the YUV color space. Thus, in stage 504, the adaptive spatial noise filter 570 only adaptively filters the spatial noise of the luminance component pixel. This improves the final displayed image without the time and expense of adaptively filtering the spatial noise of the two chrominance components of the pixel. However, if no color transform is used in the imaging pipeline 530, or if the color transform is converted to another color space that does not include the luminance component, the adaptive spatial noise filter 570 adaptively spatially filters the pixels of each color component.
[0106] The full resolution luma pixel frame (imY) and the full resolution luma pixel noise frame (imNoiseY) are inputs to an adaptive spatial noise filter 570. The value of a pixel in the full resolution luma pixel noise frame (imNoiseY) represents the noise component of the corresponding pixel in the full resolution luma pixel frame (imY), i.e., the location of the pixel noise in frame (imNoiseY) is the same as the location in frame (imY). Because the pixel noise value in frame (imNoiseY) is used in specifying a filter for the corresponding pixel in frame (imY), the filter is said to be an adaptive spatial noise filter. The filter is adapted to the spatial noise associated with each pixel, rather than assuming that the same constant parameters for all pixels can be used in the spatial noise filter.
[0107] The adaptive spatial noise filter 570 generates an output frame of adaptive spatial noise filtered pixels (imYout) and an output frame of pixel noise (imNoiseYout). The chrominance pixel frame (imU) and the chrominance pixel frame (imV) are output unfiltered as chrominance pixel frame (imUout) and chrominance pixel frame (imVout), respectively. The chrominance pixel noise frame (imNoiseU) and the chrominance pixel noise frame (imNoiseV) are output unfiltered as chrominance pixel noise frame (imNoiseUout) and chrominance pixel noise frame (imNoiseVout). In one aspect, the adaptive spatial noise filtered frames of pixels (imYout), chrominance pixel frame (imUout), and chrominance pixel frame (imVout) are output from the pipeline stage 504. These frames can be further processed in the pipeline and sent to a display device, or in one aspect can be sent to a display device.
[0108] In one aspect, the adaptive spatial noise filter 570 is implemented as an adaptive spatial noise bilateral filter, for example as follows:
number
number
[0109] Non-noise adaptive bilateral filters are known, see for example C. Tomasi and Manduchi, "Bilateral Filtering for Gray and Color Images," Proceedings of the 1998 IEEE International Conference on Computer Vision, Bombay India, pp. 839-846 (1998), which is incorporated herein by reference as a demonstration of knowledge in the art.
[0110] Like prior art bilateral filters, the adaptive spatial noise filter 570 is a non-linear edge-preserving filter. However, as noted above, unlike conventional bilateral filters, for a pixel, the adaptive spatial noise filter adjusts the weights used in the filter based not only on the Euclidean distance of neighboring pixels from the pixel, but also on the difference in signal level between the neighboring pixels and the current pixel and the noise component of the current pixel. Specifically, as described more fully below, the adaptive spatial noise filter 570 takes a weighted sum of the pixels in the neighborhood of the current pixel. The weights depend not only on the noise component of the current pixel itself, but also on the spatial distance and signal level of the neighboring pixels. Thus, the signal value at each pixel in the frame is replaced by a weighted average based on the noise of the signal values from the neighboring pixels.
[0111] Unlike previous implementations of bilateral filters that rely on a constant signal range parameter (σr) for all pixels to archive the effects of edge preservation while averaging and reducing noise, the adaptive spatial noise filter 570 adjusts the signal range parameter (σr) for each pixel based on the noise content of that pixel. Thus, each pixel in the frame is bilaterally filtered based on the noise associated with the pixel. That is, the spatial bilateral filter adapts to the noise of each pixel.
[0112] In one aspect, the following equation is the definition of the adaptive spatial noise filter 570 implemented in the imaging pipeline 530:
number
number
number
number
number
number
number
number
number
number
number
number
number
[0113] FIG 6A is a process flow diagram of one implementation of a method 650 for adaptive spatial noise pixel filtering. FIG 6B is a block diagram of one implementation of the method 650 of FIG 6A in an adaptive spatial noise filter 670. In one aspect, the adaptive spatial noise filter 670 may be used in the imaging pipeline 230 and the imaging pipeline 530. The adaptive spatial noise filter 670 is an example of the adaptive spatial noise filter 570.
[0114] First, a new frame search process 601 retrieves a new pixel frame 602, for example frame (imY). The new frame search process 601 passes to a block get process 603.
[0115] The Get Block process 603 retrieves an input block of n×n pixels centered around the current pixel from the current pixel frame 616 (see FIG. 6B). Either each pixel in the frame is adaptive spatial noise filtered, or at least a number of pixels in the frame are adaptive spatial noise filtered, so that the current pixel is an adaptive spatial noise filtered pixel. In one aspect, the input block of n×n pixels is a 5 pixel×5 pixel block with the current pixel in the center of the block. The Get Block process 603 passes to a Distance Filter process 604.
[0116] The Distance Filter process 604 generates a value of the spatial Gaussian function defined above for each pixel of the input block of pixels, i.e., for each pixel in the input pixel block, thereby generating a distance filter value for each location in the n x n distance filter value block. The Distance Filter process 604 passes to a Range Difference process 605.
[0117] The Range Difference process 605 determines the difference in signal level between the current pixel and each of the other pixels in the input pixel block. Specifically, the Range Difference process 605 evaluates I(y)-I(x), where x is the position of the central pixel in the block, I(x) is the value of the central pixel, and I(y) is the value of the pixel at position y in the input pixel block, where y is a range of positions in the input pixel block, to generate a range difference for each position in the n by n range difference block. The Range Difference process 605 passes to a Range Filter process 606.
[0118] The range filter process 606 implements a Gaussian distribution of signal level ranges that are a function of the noise of the current pixel as described above. To implement a Gaussian distribution of signal level ranges, the range filter process 606 requires a noise-dependent value of the signal level range parameter (σ(Noise)r) of the current pixel. Here, the inclusion of noise in parentheses in the signal level range parameter (σ(Noise)r) means that the signal level range parameter (σr) is a function of the noise component of the current pixel. The result of this function is that the range filter of the bilateral filter is adaptive and changes based on the noise component of the pixel being filtered bilaterally. As a result, the spatial noise filter is called an adaptive spatial noise filter because it adapts to noise. Thus, the adaptive spatial noise filter compares the signal level of the current pixel to the signal levels of multiple neighboring pixels and the estimated pixel noise parameter by dividing the square of the absolute value of the difference between the signal level of the pixel at location y and the signal level of the pixel at location x by the square of the signal level range parameter (σ(Noise)r). where the signal level range parameter (σ(Noise)r) is the estimated pixel noise parameter in this embodiment. This comparison is used in outputting the adaptive spatial noise filtered pixel value.
[0119] In one embodiment (not shown), the signal level range parameter (σ(Noise)r) is a linear function of the noise component of the current pixel. In this embodiment, the position of the current pixel is used to extract pixel noise from a corresponding position, e.g., the same position, in a frame of pixel noise data input to a stage of the pipeline. The extracted pixel noise corresponds to a center pixel. The pixel noise, which is the noise component of the center pixel, is input to a linear function to obtain the signal level range parameter (σ(Noise)r). In the case of the imaging pipeline 530, the input frame 612 of pixel noise data is frame(imNoiseY). In one embodiment, the slope of the linear function is between 2 and 3. In one embodiment, the slope and offset are empirically determined by using different values for the slope and offset, filtering the noise image with an adaptive spatial filter for each value, and then selecting the value that produces the best filtered image as determined by a group of observers.
[0120] In another embodiment, as shown in FIG. 6A, the current pixel location is used to look up the pixel noise from the pixel noise data frame 612, and the pixel noise is input to a noise vs. Sigma R lookup table 613. This table is empirically generated using a procedure equivalent to that described for the linear function, but with more complex curves. Thus, the noise vs. Sigma R lookup table 613 includes a signal level range parameter (σ(Noise)r) for each of a plurality of pixel noise levels, where in one embodiment the plurality of pixel noise levels includes a range of pixel noise commonly encountered in surgical images. The noise vs. Sigma R lookup table 613 outputs the signal level range parameter σ(Noise)r corresponding to the input pixel noise to the range filter process 606, thereby outputting a signal level range parameter σ(Noise)r that depends on the noise content of the current pixel.
[0121] Thus, Range Filter process 606 generates an n×n block of range filtered values, where the range filtered value at a given location of the n×n block of range filtered values is a Gaussian distributed value of the signal level range using the input range difference and input signal level (σ(Noise)r) from the same location, e.g., corresponding location, of the given location and the range difference of the n×n block. Range Filter process 606 then passes to Combine Filters process 607.
[0122] The filter combining process 607 multiplies the value of a position in the n×n block of distance filter values by the value of the same position in the n×n block of range filter values for each position in the two blocks to generate a composite filter value for each position in the n×n composite filter value block. The filter combining process 607 passes to a normalization process 608.
[0123] Normalization process 608 first determines the value of the normalization constant C defined above. Specifically, normalization process 608 sums the values of the n×n block of composite filter values to generate the normalization constant C. Normalization process 608 then divides the value of each position in the n×n block of composite filter values by the normalization constant C to generate an n×n normalized block of composite filter values. Normalization process 608 passes to pixel generation process 609.
[0124] The pixel generation process 609 generates adaptive spatial noise filtered pixels and writes the adaptive spatial noise filtered pixels to the output frame of filtered pixel data 614 (sometimes referred to as the output frame of pixel data or the filtered pixel output frame). Specifically, the pixel generation process 609 generates an applied filter value for a position in the n×n applied filter value block by multiplying the value of the same position in the n×n normalized composite filter value block with the value of the same position in the n×n input pixel block. The multiplication is performed for each position in the block. Finally, to generate an adaptive spatial noise filtered pixel for the block center pixel, the pixel generation process 609 sums the values of the n×n block of applied filter values to obtain an adaptive spatial noise filtered pixel, which is written to the appropriate location in the output frame of filtered pixel data 614, i.e., the location in the output frame of filtered pixel data 614 that is the same as the location of the center pixel in the current pixel frame 616. The filtered output frame of pixel data 614 is sometimes referred to as the filtered output frame of pixel data 614 .
[0125] The pixel noise generation process 610 is optional and is typically implemented if there is another filter stage later in the pipeline that uses an adaptive noise filter. As stated above, the normalization constant C is defined as follows:
number
[0126] In determining the normalization constant C, an n×n block of composite filter values is generated, and the composite filter value (Cxy) at a position within the block is expressed as follows:
number
[0127] Also, as explained above, the value at each position of the n×n composite filter value block is divided by a normalization constant C to generate a normalized composite filter value (CFN) for the n×n block, as shown below.
number
[0128] A pixel noise generation process 610 receives the normalized composite filter value (CFN) for this n×n block from the normalization process 608. It also includes, for each pixel in the n×n pixel block centered on the current pixel, a corresponding pixel noise standard deviation (stdPixi,j) within the frame of pixel noise data 612. The pixel noise output standard deviation (stdOut) for the current pixel is defined as follows:
number
[0129] The pixel noise output standard deviation (stdOut) is passed to a pixel noise output frame 615 (sometimes called output frame of pixel noise data 615). The pixel noise generation process 610 passes the process to a final pixel confirmation process 611.
[0130] The Check Last Pixel process 611 determines whether all pixels in the current pixel frame have been filtered. If all pixels have been filtered, the Check Last Pixel process 611 transfers to the Find New Frame process 601, otherwise it transfers to the Get Block process 603.
[0131] Below is a pseudocode implementation of one embodiment of the adaptive spatial noise filter 670. sigmaD = 1 "Distance filter sigma value" I = [5, 5] "specifies the size of the block" distFilt = fspecial('gausian',[5, 5], 10) "Evaluate the distance filter for each location in the block" cp = I(3, 3) "Specifies the center pixel" diff = I-cp "Signal level difference between each pixel and the center pixel" np = location of cp in noise frame "Specify the pixel noise corresponding to the center pixel" sigmaR = lookup (np) "Get SigmaR as a function of the noise pixel corresponding to the center pixel" rangeFilt = exp(-diff.^2 / 2*sigmaR^2))) “Evaluate the range filter at each position in the block” combFilt = rangeFilt. * distFilt "Multiply each element of the range filter by the corresponding element of the distance filter." sumFilt = sum(combFilt(:)) "sum up the values of the combined filters" combFiltNorm = comFilt. / sumFilt "Divide each value of the combined filter by the normalization factor" appliedFilter = I. * comFiltNorm "Multiply each pixel in the block by the normalized combined filter" newValue = sum(appliedFilter(:)) "The filtered center pixel is the sum of the values of the applied filters." In one aspect, the adaptive spatial noise filter is written in a computer programming language and compiled into an executable module that is executable on a processor within an imaging pipeline. Alternatively, the adaptive spatial filter can be implemented in hardware, firmware, or any combination of hardware and firmware, as well as in combination with a processor and an executable module. For example, refer to FIG. 6B.
[0132] The adaptive spatial noise filter 670 is an example of a filter that executes the method 650 of FIG. 6A. The adaptive spatial noise filter 670 includes a distance filter module 620, a first summer 621, a range filter module 622, a first multiplier 623, a second summer 624, a divider 625, a second multiplier 626, a third summer 627, a multiplier bank 628, a fourth summer 629, and a square root module 630. The adaptive spatial noise filter 670 is connected to a current pixel frame 616, a current pixel noise frame 612, a noise-to-sigma R look-up table 613, an output frame 614 of filtered pixel data, and a pixel noise output frame 615. In one aspect, each of the current pixel frame 616, the current pixel noise frame 612, the noise-to-sigma R look-up table 613, the filtered pixel output frame 614, and the pixel noise output 614 is stored in memory.
[0133] Showing the current pixel frame 616, the current pixel noise frame 612, the noise-to-sigma R look-up table 613, the filtered pixel output frame 614, and the pixel noise output frame 615 as separate from the adaptive spatial noise filter 670 is for illustrative purposes only. For example, the adaptive spatial noise filter 670 can be depicted in FIG. 6B as including all or some combination of the current pixel frame 616, the current pixel noise frame 612, the noise-to-sigma R look-up table 613, the filtered pixel output frame 614, and the pixel noise output frame 615.
[0134] To implement the block acquisition process 603, a control signal is provided to a current pixel frame 616 (sometimes referred to as frame 616), a block of pixels I(n,n) is provided to a distance filter module 620 and to a first input of an aggregator 621, and a center pixel (cp) of the block I(n,n) is provided to a second inverted input (In2) of the aggregator 621 of an adaptive spatial noise filter 670, where n is a positive non-zero odd number.
[0135] As mentioned above, the center pixel is sometimes called the current pixel, and when a pixel is said to be driven or provided on an input, it means that the value of the pixel is on the input.
[0136] The distance filter module 620 performs the spatial Gaussian function defined above for each pixel of the block I(n,n), i.e., each location in the block I(n,n), to generate a distance filter value for each location in the block I(n,n). The distance filter module 620 performs the distance filter process 604.
[0137] The aggregator 621 subtracts the value of the center pixel from each value in the block I(n,n). That is, the aggregator 621 determines the signal level difference between the current pixel and each of the other pixels in the block I(n,n) to generate a signal level range difference for the n×n block. The aggregator 621 outputs the signal level range difference for the n×n block at an output (Out). The aggregator 621 implements the range difference process 605.
[0138] The Range Filter module 622 implements a Gaussian distribution of signal level ranges that are a function of the noise of the current pixel, as described above. To implement the signal level, the Range Filter module 622 requires the noise dependent value of the signal level range parameter (σ(Noise)r) for the central pixel of the block I(n,n).
[0139] In this embodiment, the position of the current pixel (cp) is used to retrieve the pixel noise of the same position in the frame of pixel noise data 612, and the pixel noise is input to the noise vs. sigma R lookup table 613. The retrieved pixel noise is the pixel noise corresponding to the center pixel of the block I(n,n). In response to the input pixel noise, the noise vs. sigma R lookup table 613 provides a signal level range parameter (σ(Noise)r) on a second input (In2) to the range filter module 622. The range filter module 622 receives the signal level range difference of the n×n block from the aggregator 621 on a first input (In1).
[0140] Thus, the range filter module 622 generates a range filter value for each location in the block I(n,n). The range filter value at a given location of the n by n range filter value block is the value of a Gaussian distribution of signal level ranges using the input range difference and the input signal level (σ(Noise)r) for that given location of the n by n signal level range difference block. The range filter module 622 implements the range filter process 606.
[0141] The multiplier 623 receives the distance filter values of the n×n block on a first input (In1) and the range filter values of the n×n block on a second input terminal (In2). The multiplier 623 multiplies the distance filter values of the n×n distance filter value block by the corresponding range filter values of the n×n range filter value block and puts the result in the corresponding position of the n×n combined filter block, where the distance filter value at position (1,1) of the distance filter value block corresponds to the range filter value at position (1,1) of the range filter value block and the composite filter value at position (1,1) of the composite filter value block; the distance filter value at position (1,2) of the distance filter value block corresponds to the range filter value at position (1,2) of the range filter value block and the composite filter value at position (1,2) of the composite filter value block;... the distance filter value at position (2,1) of the distance filter value block corresponds to the range filter value at position (2,1) of the range filter value block and the composite filter value at position (2,1) of the composite filter value block, and so on. Thus, generally herein, co-located entries in two n×n blocks are said to correspond. The composite filter value for the n×n blocks is provided to the output (Out) of multiplier 623. Multiplier 623 implements the combined filter process 607.
[0142] The aggregator 624 receives an n×n block of composite filter values on its input (In). The aggregator 624 sums the values of the n×n block of composite filter values to generate the normalization constant C defined above. The normalization constant C is provided at the output (Out) of the aggregator 624.
[0143] Divider 625 receives the n×n block of composite filter values at its (fractional) numerator input (Num) and a normalization constant C at its denominator terminal (Denom). Divider 625 divides each composite filter value of the n×n block of composite filter values by the normalization constant C to generate a normalized composite filter value for the n×n block. The normalized composite filter value for the n×n block is provided at an output (Out) of divider 625. Aggregator 624 and divider 625 implement the normalization process 608.
[0144] The multiplier 626 receives the pixel block I(n,n) on a first input (In1) and the normalized composite filter values of the n×n block on a second input (In2). The multiplier generates the applied filter values of the n×n block by multiplying each of the normalized composite filter values by a corresponding pixel in the pixel block I(n,n). Again, the pixel value at position (1,1) of the pixel block corresponds to the normalized composite filter value at position (1,1) of the normalized composite filter value block and the applied filter value at position (1,1) of the applied filter value block; the pixel value at position (1,2) of the pixel block corresponds to the normalized composite filter value at position (1,2) of the normalized composite filter value block and the applied filter value at position (1,2) of the applied filter value block, and so on. The applied filter values of the n×n block are provided to an output (OUT) of the multiplier 626.
[0145] The aggregator 627 receives on input (IN) an n×n block of applied filter values. The aggregator 624 calculates the pixel block I(n, The values of the n×n applied filter value blocks are summed to generate an adaptive spatial noise filtered pixel for the central pixel (cp) of the current pixel frame 616. The adaptive spatial noise filtered pixel for the central pixel is provided to the output (OUT) of the aggregator 627 so that it is written to the appropriate location of the filtered pixel output frame 614, i.e., the location of the filtered pixel output frame 614 that is the same as the location of the central pixel (cp) of the current pixel frame 616. The multiplier 626 and the aggregator 627 implement the pixel generation process 609.
[0146] The multiplier bank 628 receives on a first input (In1) an n×n block of pixel noise standard deviations (stdPixi,j) from the pixel noise data frame 612 and on a second input terminal (In2) an n×n block of normalized composite filter values. The multiplier bank 623 multiplies each of the input values by itself and multiplies the squared value of one block by the corresponding squared value of the other block. An n×n block consisting of the products of the squares of the pixel noise standard deviations and the squares of the normalized composite filter values is supplied to the output (Out) of the multiplier bank 628 and drives the input terminal (In) of an aggregator 629.
[0147] The aggregator 629 receives on its input (In) an n×n block of products of the squared pixel noise standard deviations and the squared normalized composite filter values. The aggregator 624 sums the values of the n×n block of products of the squared pixel noise standard deviations and the squared normalized composite filter values. The result is provided to the aggregator 629 output (Out).
[0148] The square root module 630 receives the result of the aggregator 629 output (Out) at its input (In). The square root module 630 takes the square root of the input value and provides the pixel noise output standard deviation (stdOut) in the pixel noise output frame 615. The multiplier bank 628, the aggregator 629, and the square root module 630 implement the pixel noise generation process 610.
[0149] The adaptive noise filter described above may be implemented by any number of modules, and each module may include any combination of components. Each module and each component may include hardware, software running on a processor, and firmware, or any combination of the three. Also, as described herein, the functions and operations of the adaptive noise filter may be performed by one module, or may be divided among different modules or among different components of a module. When divided among different modules or components, the modules or components may be centralized in one location or distributed across the computer-assisted surgery system for distributed processing purposes. Thus, reference to an adaptive noise filter should not be interpreted as requiring a single physical entity.
[0150] In the above example, a single imaging pipeline is shown and described. However, in a system utilizing a stereoscopic scene, a second pipeline identical to the above-mentioned pipeline is used, one pipeline processes left captured frames from a left image capture unit, and another pipeline processes right captured frames from a right image capture unit. It would be redundant to repeat the above description of the second pipeline, and therefore, for the sake of clarity, it is not included here.
[0151] As used herein, "first," "second," "third," etc. are adjectives used to distinguish between different components or elements. Thus, "first," "second," and "third" are not intended to imply an order of the components or elements or a total number of components or elements.
[0152] The above description and the accompanying drawings illustrating aspects and embodiments of the present invention should not be construed as limiting, but rather define the invention for which the claims are protected. Various mechanical, compositional, structural, electrical, and operational changes can be made without departing from the spirit and scope of this description and the claims. In some instances, well-known circuits, structures, and techniques have not been shown or described in detail to avoid obscuring the invention.
[0153] Moreover, the terms of this description are not intended to limit the invention. For example, spatially related terms such as "beneath," "below," "lower," "above," "upper," "proximal," "distal," and the like, refer to the relationship of one element or feature to another element or feature as depicted in the figures. These spatially related terms are intended to encompass different positions (i.e., configurations) and orientations (i.e., rotated configurations) of the device during use or operation in addition to the positions and orientations depicted in the figures. For example, if the device in the figures is turned over, an element described as "below" or "beneath" another element or feature would then be "above" or "over" the other element or feature. Thus, the exemplary term "below" can encompass both above and below positions and orientations. The device may be otherwise oriented (rotated 90 degrees or in other orientations) and the spatially related descriptions used herein interpreted accordingly. Similarly, descriptions of movement along and about various axes include various specific device positions and orientations.
[0154] The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context indicates otherwise. Terms such as "comprises," "comprises," "includes," and the like specify the presence of stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups. Components that are described as being coupled may be directly coupled electrically or mechanically, or indirectly coupled through one or more intermediate components.
[0155] All example and illustrative references are non-limiting and should not be used to limit the scope of the claims to the specific implementations and embodiments described herein and their equivalents. Because text under a heading may be cross-referenced or applied to text under one or more headings, the headings are merely formative and should not be used to limit the subject matter. Finally, in light of this disclosure, a particular feature described in connection with one aspect or embodiment may be applied to other disclosed aspects or embodiments of the invention even if not specifically shown in the drawings or described in the text.
[0156] The above embodiments are illustrative of the present disclosure, but are not intended to limit the present disclosure. It should also be understood that many modifications and variations are possible in accordance with the principles of the present disclosure. For example, in many aspects, the devices described herein are used as single-port devices, i.e., all components necessary to complete a surgical procedure enter the body through a single entry port. However, in some aspects, multiple devices and ports may be used.
[0157] The contents of the claims as originally filed are described below as examples. [Example 1] 1. A system comprising: an image sensor configured to capture a first frame of pixel data; an imaging pipeline coupled to the image sensor to receive the first frame of pixel data, the imaging pipeline including an adaptive noise filter, the adaptive noise filter comprising: filtering the first pixel using an estimated pixel noise parameter for the first pixel and using a difference between a signal level of the first pixel and a signal level of at least a second pixel; configured to output a second frame of pixel data including the filtered first pixels; an imaging pipeline configured to output an output frame of pixel data based on the second frame of pixel data; and a display device coupled to the imaging pipeline to receive the output frames of pixel data, the display device configured to display the output frames of pixel data. system. [Example 2] The system of example 1, wherein the adaptive noise filter includes an adaptive temporal noise filter, the second pixel is at a position in a third frame captured by the image sensor that is the same as the position of the first pixel in the first frame, the third frame being captured at a time prior to capturing the first frame, and the adaptive temporal noise filter is configured to filter the first pixel based on a comparison of changes in signal levels of the first and second pixels to an estimated pixel noise level of the first pixel, the estimated pixel noise level being an estimated pixel noise parameter. [Example 3] 3. The system of embodiment 2, wherein the imaging pipeline includes a plurality of stages, and the adaptive temporal noise filter is included in a first stage of the plurality of stages. [Example 4] 3. The system of embodiment 2, wherein the adaptive temporal noise filter is configured to output a pixel noise frame. [Example 5] The system of example 4, wherein the imaging pipeline includes a plurality of stages, each of the plurality of stages subsequent to a first stage of the plurality of stages configured to process an input pixel noise frame and configured to output a stage-dependent pixel noise frame. [Example 6] The system of example 1, wherein the adaptive noise filter includes an adaptive spatial noise filter, the at least one second pixel being included in a plurality of pixels adjacent to the first pixel, the adaptive spatial noise filter being configured to filter the first pixel based on a difference between a signal level of the first pixel and each of the signal levels of the plurality of adjacent pixels and based on a noise-dependent signal level parameter, the noise-dependent signal level parameter being a function of noise of the first pixel, and the noise-dependent signal level parameter being the estimated pixel noise parameter of the first pixel. [Example 7] The system of Example 6, wherein the adaptive spatial noise filter includes a distance filter and a signal level range filter, the signal level range filter configured to filter the first pixel based on a difference between a signal level of the first pixel and each of the signal levels of the multiple adjacent pixels. [Example 8] 7. The system of embodiment 6, wherein the noise-dependent signal level parameter is a signal level range parameter. [Example 9] An imaging pipeline stage, the imaging pipeline stage comprising: It has an adaptive temporal noise filter that includes a signal level vs. noise lookup table, The adaptive temporal noise filter comprises: receiving a frame of pixels; filtering each pixel of the plurality of pixels of the frame by comparing a change in signal level of the pixel over time with a value in the signal level vs. noise lookup table that corresponds to the signal level of the pixel; and configured to output a frame including a plurality of adaptive temporal noise filtered pixels based on the comparison. Imaging pipeline stages. [Example 10] 10. The imaging pipeline stage of example 9, wherein the signal level vs. noise lookup table is configured to receive a pixel value of a current pixel frame and output a noise standard deviation corresponding to the signal level of the pixel. [Example 11] 10. The imaging pipeline stage of embodiment 9, wherein the adaptive temporal noise filter further comprises a modified lookup table configured to receive a temporal signal change of a pixel represented by a noise standard deviation numerical value, and to output a percentage of an acceptable temporal change of the signal level of the pixel. [Example 12] 10. The imaging pipeline stage of example 9, wherein the adaptive temporal noise filter is configured to output a pixel noise frame. [Example 13] An imaging pipeline stage, the imaging pipeline stage comprising: It has an adaptive spatial noise filter, The adaptive spatial noise filter comprises: receiving an input pixel frame and an input pixel noise frame; filtering a pixel of the input pixel frame based on a difference between a signal level of a pixel and each of a plurality of adjacent pixel signal levels and based on a noise-dependent signal level parameter to generate an adaptive spatial noise filtered pixel, the noise-dependent signal level parameter being determined using pixel noise in the input pixel noise frame corresponding to the pixel; configured to output the adaptive spatial noise filtered pixels into an adaptive spatial noise filtered pixel frame. Imaging pipeline stages. [Example 14] 14. The imaging pipeline stage of example 13, wherein the adaptive spatial noise filter comprises an adaptive spatial noise bilateral filter. [Example 15] The pixel is the pixel at location x, and the adaptive spatial noise bilateral filter is defined as follows:
number
number
number
number
number
number
number
number
number
number
number
number
number
Claims
1. 1. A system comprising: an image sensor configured to capture a first frame of pixel data; an adaptive noise filter coupled to the image sensor; a second adaptive noise filter coupled to the adaptive noise filter; The adaptive noise filter includes: determining an estimated pixel noise parameter based on a signal level of a first pixel of the first frame of pixel data; determining a difference between the signal level of the first pixel and a signal level of at least a second pixel; determining a quantity of the differences that is allowed to pass through the adaptive noise filter based on the estimated pixel noise parameters; obtaining filtered pixels based on the difference quantities and passing the filtered pixels through the adaptive noise filter; outputting a second frame of pixel data including the filtered pixels; The second adaptive noise filter includes: filtering the filtered pixel using the estimated pixel noise parameter of the filtered pixel and using a difference between a signal level of the filtered pixel and a signal level of at least a third pixel to obtain a further filtered pixel; and configured to output a third frame of pixel data including the further filtered pixels. system.
2. The system described in claim 1, wherein the adaptive noise filter is an adaptive temporal noise filter and the second adaptive noise filter is an adaptive spatial noise filter.
3. The system of claim 2 , wherein the adaptive noise filter is configured to output pixel noise corresponding to the filtered pixels in a noise output frame.
4. 4. The system of claim 3, wherein the second adaptive noise filter is configured to determine the estimated pixel noise parameter for the filtered pixel based on the pixel noise corresponding to the filtered pixel in the noise output frame.
5. The system of claim 2 , wherein the estimated pixel noise parameter of the first pixel is different from the estimated pixel noise parameter of the filtered pixel.
6. The system of claim 2 , wherein the estimated pixel noise parameter of the filtered pixel is a function of noise of the filtered pixel.
7. 7. The system of claim 1, wherein the second pixel is at the same position as the first pixel in the first frame in a previous frame captured by the image sensor prior to capturing the first frame.
8. 8. The system of claim 1 , wherein the adaptive noise filter comprises a signal level vs. noise lookup table configured to receive the signal level of the first pixel and output a noise standard deviation corresponding to the signal level of the first pixel, the noise standard deviation being an estimated pixel noise parameter.
9. 9. The system of claim 8, wherein obtaining the filtered pixel includes using the noise standard deviation to determine the percentage of the difference between the signal level of the first pixel and the signal level of at least the second pixel that is allowed to pass through the adaptive noise filter.
10. 1. A method of adaptively noise filtering a first pixel of pixel data for a frame, the method comprising: an adaptive noise filter determining estimated pixel noise parameters based on a signal level of the first pixel; the adaptive noise filter determining a difference between the signal level of the first pixel and a signal level of at least a second pixel; the adaptive noise filter determining, based on the estimated pixel noise parameters, a quantity of the difference that is allowed to pass through the adaptive noise filter; the adaptive noise filter obtaining filtered pixels based on the difference quantification and passing the filtered pixels through the adaptive noise filter; the adaptive noise filter outputting the filtered pixels into an output frame of filtered pixel data; a second adaptive noise filter coupled to the adaptive noise filter filtering the filtered pixel using the estimated pixel noise parameters of the filtered pixel and using a difference between a signal level of the filtered pixel and a signal level of at least a third pixel to obtain a further filtered pixel; the second adaptive noise filter outputting a third frame of pixel data comprising the further filtered pixels.
11. The method of claim 10, wherein the adaptive noise filter is an adaptive temporal noise filter and the second adaptive noise filter is an adaptive spatial noise filter.
12. The method of claim 11, further comprising a step in which the adaptive noise filter outputs pixel noise corresponding to the filtered pixels to an output frame of pixel noise data.
13. The method described in claim 12, further comprising a step in which the second adaptive noise filter determines the estimated pixel noise parameters of the filtered pixel based on the pixel noise corresponding to the filtered pixel in the output frame of pixel noise data.
14. 14. The method of claim 10, wherein determining the estimated pixel noise parameter comprises the adaptive noise filter using a signal level vs. noise lookup table configured to receive the signal level of the first pixel and output a noise standard deviation corresponding to the signal level of the first pixel, the noise standard deviation being the estimated pixel noise parameter.
15. 15. The method of claim 14, wherein obtaining the filtered pixel comprises the adaptive noise filter using the noise standard deviation to determine the percentage of the difference between the signal level of the first pixel and the signal level of at least the second pixel that is allowed to pass to the filtered pixel.
Citation Information
Patent Citations
Imaging system, image processing program, and image processing method
JP2008205737A
Method of noise reduction in digital x-ray frame
JP2013175182A
