The python implementation of algorithm proposed by Z. Wang, "A New Approach for Segmentation and Quantification of Cells or Nanoparticles," in IEEE Transactions on Industrial Informatics, vol. 12, no. 3, pp. 962-971, June 2016, DOI: 10.1109/TII.2016.
TODO: Add bagdes https://shields.io/
You can install sdd-segmentation
directly from PyPi via pip
:
pip install sdd-segmentation
import cv2
from sdd_segmentation.sdd import sdd_threshold_selection
img_np = cv2.imread("image.png")
T = sdd_threshold_selection(img_np.astype(float), 15)
print(T)
th_image_np = img_np > T[-1]
This software is licensed under the BSD 3-Clause License.
If you use this software in your scientific research, please cite our paper:
@Article{isprs-archives-XLVIII-2-W3-2023-233-2023,
author = {Sinitca, A. M. and Lyanova, A. I. and Kaplun, D. I. and Zelenikhin, P. V. and Imaev, R. G. and Gafurov, A. M. and Usmanov, B. M. and Tishin, D. V. and Kayumov, A. R. and Bogachev, M. I.},
title = {MULTI-CLASS SEGMENTATION OF HETEROGENEOUS AREAS IN BIOMEDICAL AND ENVIRONMENTAL IMAGES BASED ON THE ASSESSMENT OF LOCAL EDGE DENSITY},
journal = {The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences},
volume = {XLVIII-2/W3-2023},
year = {2023},
pages = {233--238},
url = {https://isprs-archives.copernicus.org/articles/XLVIII-2-W3-2023/233/2023/},
doi = {10.5194/isprs-archives-XLVIII-2-W3-2023-233-2023}
}
AND original work:
@Article{Wang2016,
author={Wang, ZhenZhou},
journal={IEEE Transactions on Industrial Informatics},
title={A New Approach for Segmentation and Quantification of Cells or Nanoparticles},
year={2016},
volume={12},
number={3},
pages={962-971},
doi={10.1109/TII.2016.2542043}
}