Abstract:This paper proposes a new method of generating a rough cut Numerical Control(NC) codes directly from industrial computerized tomography(CT) slice images for the products which work-piece did not need to be redesigned.The contour structure data of the work-piece are obtained by the threshold segmentation,edge extraction and contour tracing. The inner and outer contours are judged,and the tool radius compensation and the allowance reservation are performed by offsetting the contours according to the judgments. The authors generate the rough cut NC code cut area distinguishing and rough cut path generating in a slice by slice manner. In contour offsetting step, a new approach is proposed to judge inner and outer contours. A software system is developed to generate NC codes. An example is used to verify this approach and results show the feasibility and validity of the approach.