extract the curve data from the curve image