Lab book · Parallax Metrology · built by build_labbook.py
Paired HistoQC with embedded ICC profiles applied
Same 26 PLISM scans, same HistoQC revision, configuration, seed and 156 fields as the original paired study. One change: every region HistoQC reads is first converted from the scan's embedded colour profile to sRGB. Prompted by the HistoQC owner's suggestion on choosehappy/HistoQC#343.
1. Record
- Plan written and frozen before any run in this folder:
PLAN.md, SHA-256d94a853793d8884a66e2e96929339a0ca7556b8ccc3d7d8ab337ceb93fd44aa3, 2026-11-24T21:58:20Z. - Prior look, disclosed in the plan: thumbnail tissue brightness with and without profiles (section 5).
- Environment rebuilt to the original record: Python 3.10.22, numpy 1.23.5, scipy 1.10.0, scikit-learn 1.2.1, scikit-image 0.19.3, Pillow 9.4.0, openslide-python 1.4.6, OpenSlide 4.0.1. HistoQC f35e518, default
config.ini, seed 20261111, one process. - Conversion:
OpenSlide.read_regionwrapped at run time (HistoQC source untouched); Pillow ImageCms (LittleCMS), perceptual intent, RGB converted and alpha kept. HistoQC's packaged training and template images are not converted. - Result posted as a reply on choosehappy/HistoQC#343, 24 November 2026.
2. Gate
With the conversion switched off, the rebuilt environment reproduced all 26 of 26 original final mask PNGs byte for byte (SHA-256 against the original final_hashes.csv), and the original result: 52 switched, 47 AT2-only, 5 GT450-only. Pass. In the converted run, all 26 scans carried a profile ("AT2" on every AT2 file, "Segue_v2" on every GT450 file), and every scan read the same pyramid levels and produced the same mask size as without conversion.
3. Result
| run | fields switched (of 156) | AT2 only | GT450 only | both in | both out | mean section switch fraction | admitted on AT2 | admitted on GT450 | median GT450/AT2 mask pixels | empty masks |
|---|---|---|---|---|---|---|---|---|---|---|
| No profile (original; reproduced here) | 52 | 47 | 5 | 4 | 100 | 0.333 | 51 | 9 | 0.065 | KR_GT450, MY_GT450 |
| Embedded profile applied | 5 | 3 | 2 | 23 | 128 | 0.032 | 26 | 25 | 0.710 | none |
With the profiles applied, 5 fields switch instead of 52. The two scanners now admit nearly the same number of fields (26 and 25, against 51 and 9). Agreement rises mainly through fields excluded on both scans (100 to 128); fields admitted on both rise from 4 to 23. No mask is empty. GT450's whole-slide usable area is smaller than AT2's on 13 of 13 sections, with a median ratio of 0.710 (was 0.065).
| scanner | admitted, no profile | admitted, profile | gained | lost |
|---|---|---|---|---|
| AT2 | 51 | 26 | 8 | 33 |
| GT450 | 9 | 25 | 16 | 0 |
Fields still switching with the profiles applied:
| section | field | fraction inside, AT2 | fraction inside, GT450 | admitted on |
|---|---|---|---|---|
| GIV | 6 | 0.683 | 0.000 | AT2 only |
| GVH | 4 | 0.731 | 0.000 | AT2 only |
| HR | 8 | 0.000 | 1.000 | GT450 only |
| HRH | 5 | 0.227 | 0.785 | GT450 only |
| LM | 7 | 1.000 | 0.000 | AT2 only |
4. Per section
| section | switched, no profile | switched, profile | GT450/AT2 mask pixels, no profile | with profile | tissue luma AT2 / GT450, no profile | with profile |
|---|---|---|---|---|---|---|
| GIV | 8 | 1 | 0.187 | 0.795 | 147.1 / 196.3 | 196.2 / 191.3 |
| GIVH | 4 | 0 | 0.042 | 0.609 | 171.9 / 209.5 | 212.0 / 205.0 |
| GM | 1 | 0 | 0.032 | 0.897 | 185.1 / 212.9 | 220.7 / 210.5 |
| GMH | 4 | 0 | 0.042 | 0.638 | 177.6 / 209.3 | 215.8 / 205.3 |
| GV | 4 | 0 | 0.137 | 0.705 | 145.0 / 196.8 | 196.1 / 192.7 |
| GVH | 7 | 1 | 0.114 | 0.674 | 147.5 / 196.7 | 196.4 / 191.3 |
| HR | 4 | 1 | 5.796 | 0.952 | 47.4 / 112.1 | 106.5 / 97.8 |
| HRH | 8 | 1 | 0.072 | 0.660 | 155.2 / 200.8 | 201.5 / 195.7 |
| KR | 1 | 0 | 0.000 | 0.792 | 179.3 / 210.3 | 218.1 / 208.0 |
| KRH | 3 | 0 | 0.056 | 0.502 | 187.0 / 211.9 | 222.1 / 208.5 |
| LM | 4 | 1 | 0.065 | 0.710 | 170.3 / 210.8 | 211.1 / 207.9 |
| LMH | 4 | 0 | 0.099 | 0.716 | 149.7 / 197.6 | 197.2 / 192.2 |
| MY | 0 | 0 | 0.000 | 0.987 | 191.8 / 215.2 | 224.4 / 213.0 |
5. Prior thumbnail look
Before the plan: median tissue luma (0 to 255) on 2000-pixel thumbnails, tissue taken as luma below the 95th percentile minus 25 on the unconverted thumbnail, and the same pixels measured after conversion (table above). Median AT2 to GT450 gap across sections: 40.5 without profiles, 6.9 with. With the profiles, AT2 renders slightly brighter than GT450 on 13 of 13 sections.
6. Scope
Same array, scanners, pipeline and settings; only the colour conversion changes. One rendering intent was run. Descriptive: it shows that applying the vendor profiles changes which fields the default pipeline admits here, and how far the two scanners then agree. It does not say which mask is right. Most of the 156 fields, which were chosen as tissue locations, are excluded on both scans under the default configuration with or without profiles; no step trace was run for the converted masks, so which steps drive the remaining exclusions and switches is not measured here.
7. Files
PLAN.md, PLAN.sha256, PLAN.frozen_at.txt; run_masks.py (masks, both modes), score.py (scoring and gate), thumbnail_check.py, build_labbook.py; masks_baseline/, masks_icc/ (PNG + receipt per scan); results_baseline/, results_icc/; logs/.