Hello everyone! I am relatively new to pyqtgraph and recently I have been using it for a GUI that visualizes medical image data. What you can do is drag and drop files into an ImageView, visualize for example a CT image and scroll through the CT-volume (since pyqt graph nicely detects the 3d array and adds the third axis as "time" axis which in this case allows to scroll through the volume). I also have image masks of the same dimension as the original image (also 3d numpy arrays) and I want to overlay image and mask and ideally adapt the transparency of both. Currently I am doing this by calculating a completely new array which combines both image mask and image (I normalize both and then create a weighted sum of both arrays). This works but has some disadvantages, for example I cannot color mask and image separately. My Question is now: do you know another way how I can overlay both 3D-arrays (mask + image) as separate layers while keeping the possibility to scroll through the volume, such that both mask and image change when scrolling through the volume (see images)? I tried around with the addItem method defined in the ViewBox class, but without any success. I would really appreciate some help and ideas.
Kind regards and thanks in advance Alex Image at certain z-value of volume: [image: Screenshot 2022-06-23 135542.jpg] Image after scrolling through volume at different z-value:[image: Screenshot 2022-06-23 135607.jpg] -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/3adab88b-fc76-459f-9cea-39c1772870ffn%40googlegroups.com.
