silx-kit / silx

silx toolkit
http://www.silx.org/doc/silx/latest/
MIT License
136 stars 74 forks source link

2D ROI integration #2627

Open tifuchs opened 5 years ago

tifuchs commented 5 years ago

Hello silx-team,

I am currently implementing a ROI integration of 2D images. I.e. I am trying to use the plotInteractiveImageROI.py inside the example folder to let the user draw the ROI. Afterwards, the counts inside the selected ROI of the image should be integrated.

However, I didn't find any function to directly integrate the ROIs of the displayed image or some other convenience function, which, for example, generates a mask for the selected regions. Did I miss something here?

The Masking function of PlotWindow currently seems to be more convenient for the purpose of fast integration since it directy provides a mask. Also in bliss.flint they are using yet another implementation of a ROI integration based on silx...

I think that a GUI for convenient ROI integration would be extremely helpful for the X-ray community.

Cheers, Timo

Sorry, I just realized that this is basically a duplicate of #2430. But still, I think, that this is very important.

t20100 commented 5 years ago

Hi,

Indeed, for now in silx, the ROI implementation only provides interactive ROIs, but no extra functionalities on top of that. This is planed (#2430), but we don't have a roadmap for that...