existsSegment checks if a segment exists in an AFMImage; check if all the heights at the segment coordinates are different to zero.
Useful links