{"library":"roifile","title":"roifile - Read and write ImageJ ROI format","description":"roifile is a Python library for reading and writing ImageJ ROI (Region of Interest) files. It supports the native ImageJ ROI binary format (.roi) and can extract ROIs from ZIP archives. Current version is 2026.2.10, with a release cadence of roughly monthly updates. Requires Python >=3.11.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install roifile"],"cli":null},"imports":["import roifile","from roifile import roiread","from roifile import ImagejRoi"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import roifile\n\n# Read an ROI from a file\nroi = roifile.roiread('example.roi')\nprint('ROI type:', roi.roitype)\nprint('Coordinates:', roi.coordinates())\n\n# Create a new ROI and save\nimport numpy as np\nnew_roi = roifile.ImagejRoi.frompoints(np.array([[0,0], [10,0], [10,10], [0,10]]))\nnew_roi.tofile('square.roi')","lang":"python","description":"Reads an ImageJ ROI file, prints its type and coordinates, then creates a new ROI from a list of points and saves it.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}