PyQt6 conversion to pixmap

How do I convert a DICOM image to a QPixmap in memory? I found an example of writing to disk in e.g. png (Resample and Convert DICOM to Common Image Formats — SimpleITK 2.0rc2 documentation), but looking to be able to complete in memory.

Hello @CaptainHaddock,

I believe this is what you are looking for.

3 Likes

@zivy This is exactly what I am looking for. Thank you very much for the pointer, works as advertised :sunglasses:

2 Likes