Application of a Segmentation Algorithm to Quantum Dots Study