View full-text article in PMC Diagnostics (Basel). 2025 Sep 12;15(18):2316. doi: 10.3390/diagnostics15182316 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 3 CNACD Algorithm Input: RGB Pixels 1:procedure PredictPixels 2: V←FindOptimalStainVectors(Input,∞) 3: S←LARS-LASSO(X=(ODInput)T,D=V,λ1=0.1) 4: SR,G,B←ConvertODtoRGB(S) 5: Spos,Sneg←SeperateStain(SR,G,B) 6: Spos←ConvertRGBtoGRAY(Spos) 7: Sneg←ConvertRGBtoGRAY(Sneg) 8: Result←newArray 9: for i←0toSizeOf(Input) do 10: if Spos[i]>Sneg[i] then 11: Result.push(−) 12: else 13: Result.push(+) 14: Output←Result Output: Predicted Results