HyperspyUI for making ROIs in an EMD file and the quantification of the elements #289
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This example should show you how to do that in the ipython console: To store a ROI parameters and restore the ROI: import hyperspy.api as hs
s = hs.data.two_gaussians()
roi = hs.roi.RectangularROI()
# Add ROI to signal
s.plot()
s_roi = roi.interactive(s, recompute_out_event=None, color='C1')
# Get roi parameters as dictionary
roi_parameters = roi.parameters
# Create new ROI using the dictionary of ROI parameters
roi2 = hs.roi.RectangularROI(**roi_parameters)
s_roi2 = roi2.interactive(s, recompute_out_event=None, color='C2') |
Beta Was this translation helpful? Give feedback.
This example should show you how to do that in the ipython console:
https://hyperspy.org/hyperspy-doc/current/auto_examples/region_of_interest/ROI_navigator.html
To store a ROI parameters and restore the ROI: