ZEISS / pylibczirw

A simple and easy-to-use Python wrapper for libCZI - a cross-platform C++ library intended for providing read and write access to CZI documents.
https://zeiss.github.io/pylibczirw/
GNU Lesser General Public License v3.0
6 stars 1 forks source link

Setting the display settings for a new CZI does not adjust colors shown in ZEN #13

Open sebi06 opened 6 days ago

sebi06 commented 6 days ago

Testdata and Script issue.zip

To Reproduce

  1. run the script read_image_write_czi.py (maybe adapt filepath to your local setup)
  2. check the printed metadata
  3. compare the metadata
  4. the output shows that the metadata from the new CZI have been set correctly but in ZEN the new CZI display setting does not reflect this
Metadata Original
{'@Id': 'Channel:0',
 '@Name': 'AF568',
 'AutoApplyMode': 'BestFit',
 'BitCountRange': '8',
 'Color': '#FFFF0000',
 'DyeDatabaseId': '66071726-cbd4-4c41-b371-0a6eee4ae9c5',
 'DyeId': 'McNamara-Boswell-0049',
 'DyeMaxEmission': '603',
 'DyeMaxExcitation': '577',
 'DyeName': 'Alexa Fluor 568',
 'Gamma': '0.79999999999999982',
 'High': '0.13333333333333333',
 'IlluminationType': 'Fluorescence',
 'OriginalColor': '#FFFF0000',
 'PixelType': 'Gray8',
 'ShortName': 'AF568'}

Metadata New CZI
{'Color': '#FFFF0000',
 'ColorMode': 'Color',
 'High': '0.3',
 'IsSelected': 'true',
 'Low': '0'}

Expected behavior The channel color of the "nuc_small_new.czi" should be #FFFF0000 and there display in red (as for the original)

Screenshots image

Desktop (please complete the following information):