locan.scripts.script_draw_roi#
Define regions of interest with matplotlib and save as roi files.
With this script you can choose a file name, open the localization file and draw a rectangular region of interest. Within the matplotlib image draw a rectange, type ‘+’ to add the roi to the list, then type ‘q’ to quit. The roi is then saved as _roi.yaml file.
To run the script:
locan draw_roi_mpl -f <file> -t <file type> -i <roi file indicator> -r <region type>
Try for instance:
locan draw_roi_mpl -f "locan/tests/test_data/five_blobs.txt" -t 1 -i "_roi" -r "ellipse"
See also
locan.rois.select_by_drawing_mpl
Functions
|
|
|
Define regions of interest by drawing a boundary. |