Skip to content

Tutorial 2

Cristel Chandre edited this page Jan 14, 2026 · 9 revisions

Tutorial 2: Masks and ROI management

Watch Tutorial 2

1. Initial setup and image loading

  • Choose the experimental method and file to analyze as in Step 1 of Tutorial 1.

2. Option A: Pixel selection using a predefined binary segmentation mask

  • Select mask mode: Select Mask from the tool dropdown menu in the left panel.
  • Select mask file: Browse and select the folder containing your mask file. The mask file must be a .png with a filename identical to the image stack filename. Once imported, the pixels contained in the mask will appear in the Thresholding/Mask tab.


2. Option B: Pixel selection by manual ROI creation

  • Activate draw mode: Navigate to the Thresholding/Mask tab to begin manual ROI creation. Click the Add ROI button in the left panel to enable the drawing tool.
  • Draw ROI: Manually draw the regions of interest (ROIs) directly on the image. Click the Add ROI button again at any time to exit the drawing mode. Each confirmed ROI is numbered and visible on the Intensity tab, the Thresholding/Mask tab, and within the ROI Manager list. To open the latter, click the ROI Manager button in the right panel of the Thresholding/Mask tab. To combine intensity thresholding with ROIs, adjust the threshold intensity $I_{low}$ before drawing; each ROI can maintain a unique $I_{low}$ value, which will also be listed in the ROI Manager.
  • Save ROI (optional): Click the Save button in the ROI Manager to save the defined ROIs as a .pyroi file and reuse it for analysis by clicking the Load button within the ROI Manager.


2. Option C: Pixel selection by importing predefined ROIs

  • Load ROIs: PyPOLAR supports native .pyroi files, as well as .roi or .zip files generated in ImageJ/Fiji.
    • Select ROI from the tool dropdown menu in the left panel to browse for your file. The ROI filename must be identical to the image stack filename.
    • Alternatively, load ROIs directly within the ROI Manager using the Load button.


3. Interacting with the ROI Manager

  • Explore and modify the ROI list: The index number of the ROI is used in the Excel export. You can manually renumber these if necessary. Specific ROIs can be selected or deselected for analysis in the ROI Manager, and appear interactively in the Intensity and Thresholding/Mask tabs. If an ROI is permanently deleted, the remaining regions are renumbered automatically. $I_{low}$ values and labels added and displayed in the ROI Manager are saved in the .pyroi file and in the final Excel file.


4. Analysis and results

  • Configure analysis: Set your experimental parameters, variables to calculate and output files as described in Step 3 of Tutorial 1. If results need to be displayed individually for each ROI, click per ROI in the Options tab to generate histograms and Excel reports for individual ROIs. The per ROI feature is interactive; clicking it again will pool all ROI data into a single result.
  • Analyze: Click the Analysis button in the left panel. Explore figures as described in Step 4 of Tutorial 1.

Clone this wiki locally