CPC A61B 1/05 (2013.01) [A61B 1/00045 (2013.01); G06T 5/92 (2024.01); G06T 7/90 (2017.01); A61B 1/0676 (2013.01); G06T 2207/10024 (2013.01); G06T 2207/10068 (2013.01)] | 19 Claims |
1. A medical system, comprising:
a shaft having a proximal end and a distal end;
an imaging device at the distal end of the shaft; and
a controller, wherein the controller is configured to:
receive image data comprising pixel data from the imaging device, the pixel data including a plurality of individual pixel values;
convert the pixel data from a RGB format to a YCbCr format; and
form adjusted pixel data by applying a gain to the pixel data,
wherein the gain is based on a Y value, a Cb value, and a Cr value of the individual pixel values of the converted pixel data, and
wherein the controller is further configured to calculate a magnitude for each pixel value, wherein the magnitude for each pixel value is equal to √(Y2+Cb2+Cr2), and wherein the gain is a function of the magnitude.
|
10. A method of controlling an imaging device for a medical system, the method comprising:
receiving an image comprising pixel data from an imaging device of the medical system, the pixel data including a plurality of individual pixel values;
converting the pixel data from a RGB format to a second multi-channel color format, the second multi-channel color format having a brightness value and a color value; and
applying a gain to adjust the brightness value or the color value for each pixel; and
converting each of the plurality of pixels from the second multi-channel color format to the RGB format,
wherein the gain is based on a Y value, a Cb value, and a Cr value of the individual pixel values of the converted pixel data, and
wherein the controller is further configured to calculate a magnitude for each pixel value, wherein the magnitude for each pixel value is equal to √(Y2+Cb2+Cr2), and wherein the gain is a function of the magnitude.
|
15. A non-transitory computer-readable medium storing instructions that, when executed by a computer, cause the computer to perform a method for processing electronic images from a medical system, the method including:
receiving an image comprising pixel data from an imaging device of the medical system, the pixel data including a plurality of individual pixel values;
converting the pixel data from a RGB format to a YCbCr format;
calculating a gain for each pixel value, wherein the gain is based on a Y value, a Cb value, and a Cr value of the individual pixel values of the converted pixel data, and wherein the controller is further configured to calculate a magnitude for each pixel value, wherein the magnitude for each pixel value is equal to √(Y2+Cb2+Cr2), and wherein the gain is a function of the magnitude;
applying the gain to adjust the corresponding luminance or the corresponding chroma for each pixel; and
converting each of the plurality of pixels from the YCbCr format to the RGB format.
|