| CPC G06T 7/0012 (2013.01) [G06N 20/00 (2019.01); G06T 3/40 (2013.01); G06T 5/00 (2013.01); G06T 7/11 (2017.01); G06T 7/90 (2017.01); G06T 11/001 (2013.01); G16H 10/40 (2018.01); G16H 30/40 (2018.01); G16H 70/60 (2018.01); G06T 2200/24 (2013.01); G06T 2207/10024 (2013.01); G06T 2207/10056 (2013.01); G06T 2207/20081 (2013.01); G06T 2207/20092 (2013.01); G06T 2207/30024 (2013.01); G06T 2210/41 (2013.01)] | 20 Claims |

|
1. A system for processing electronic images to adjust stains, the system comprising:
a data store storing a plurality of machine-learned transformations associated with a plurality of stain types;
a processor; and
a memory coupled to the processor and storing instructions that, when executed by the processor, cause the system to perform operations comprising:
receiving, as input, an image of a slide-mounted tissue sample subjected to overstaining or understaining with a stain during preparation, wherein the image is comprised of a plurality of pixels in a first color space and includes the stain;
determining, from the plurality of machine-learned transformations stored in the data store, a machine-learned transformation associated with a stain type of the stain;
applying the machine-learned transformation to the plurality of pixels to convert the plurality of pixels from the first color space to a second color space, the second color space being specific to the stain type;
correcting for the overstaining or the understaining by adjusting an amount of the stain in the second color space to generate a stain-adjusted plurality of pixels;
converting the stain-adjusted plurality of pixels from the second color space to the first color space using an inverse of the machine-learned transformation; and
outputting a stain-adjusted image including the stain-adjusted plurality of pixels in the first color space.
|