Algorithm 1.
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 |