Skip to main content
. Author manuscript; available in PMC: 2018 Jun 1.
Published in final edited form as: IEEE Trans Biomed Eng. 2018 Mar;65(3):625–634. doi: 10.1109/TBME.2017.2711529

Algorithm 1.

Stain Matrix Initialization

Input: Blue channel of RGB image
Output: Stain matrix M3×2
Step 1: Compute LoG response of the input
Step 2: Compute local peaks of the LoG response
Step 3: Compute the density distribution of the peaks
Step 4: Select a conservative representative subset of minimum (e.g., negative values) and maximum (e.g., positive) peaks from the density distribution
Step 5: Average RGB values of minimum and maximum peaks of Step 4 to set the initial stain matrix