- How to Use:
- Drag and drop your image (JPEG, PNG) file into the application window.
- The image will load and be displayed on the screen for processing.
- How to Use:
- Drag and drop your NPZ file containing the mask data onto the application window.
- The NPZ file should contain the
im_markers
key with the mask data. - Optionally, you can adjust the mask offset if required in the
segment
panel. - The mask will be overlaid on the image to visualize the segmentation.
- How to Use:
- Rectangular (Label) Mask:
- Right-click anywhere on the image.
- Select "Label cut" from the context menu.
- Draw a rectangular area on the image by selecting two points to remove unwanted regions by excluding them from the analysis.
- Circular Mask:
- Right-click anywhere on the image.
- Select "Circle mask" from the context menu.
- Draw a circular mask by selecting three points to eliminate regions outside the circle for cleaner analysis.
- Rectangular (Label) Mask:
- How to Use:
- Right-click anywhere on the image.
- Select "Segment" from the context menu.
- Set a Gaussian Blur kernel size to apply a Gaussian filter to the image before thresholding, improving segmentation results by reducing noise
- The Triangle Method will automatically segment the image by analyzing pixel intensity distributions.
- The resulting segmentation will be applied to the image.
- How to Use:
- Select a threshold value on the lower "Threshold" panel.
- Click "Apply" to execute the thresholding.
- Cells with an integral intensity lower than the selected threshold value will be excluded from the mask.
- How to Use:
- After completing the thresholding and masking steps, right-click on the image.
- Select "Export" from the context menu.
- Choose the location and filename for the CSV file.
- The app will export the following information:
- Total Cell Count
- Cell ID
- Cell Area
- Integral Intensity
- The CSV file will be saved with this data for further analysis.
-
Clone or download the repository to your local machine.
-
Install dependencies via
pip
:pip install -r requirements.txt
-
Run the application:
python app.py
Alternatively, you can download the precompiled executable for windows from here and run it directly without needing to install Python or dependencies.
- Python 3.6 or higher
- PyQt5
- OpenCV
- NumPy
- Scikit-image