Skip to main content
. 2026 Jan 26;16(3):393. doi: 10.3390/diagnostics16030393
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 αth and (100−α)th percentiles of the angle. Use α = 1 for robust results.
Transform high values back to OD space