| Algorithm 1. SVD approach for obtaining sv. |
| Input: RGB Slide, Output: Optimal Stain Vectors |
| Convert RGB to OD using a known transformation Eliminate data points with OD intensity below β. Perform SVD on the OD tuples to reduce dimensionality. Create a plane using the two greatest values’ SVD directions. Project OD tuples onto the plane and normalize to unit length. Compute the angle of every point on the planeIdentify robust extremes by determining the and ( percentiles of the angle. Use α = 1 for robust results. Transform high values back to OD space |