Stupid simple algorithm for detecting cells and extracting them into square images.
Change filename in detect.py
and run script:
python detect.py
- Otsu thresholding
- findContours - RETR_EXTERNAL
- Hu moments
Note that detect.py
extract cells into square images into cells
directory.