Aspects of the present disclosure involve systems, methods, computer program products, and the like, for utilizing a series of images of a patients anatomy to determine a cut plane for use during a hip replacement procedure. To determine a cut plane for use during the procedure, the computer program determines a best fit line through the center of the neck of the femur, as well as a best fit line through the femoral shaft. In one particular embodiment, a cut plane through the femur may then be determined as perpendicular to the center line through the neck of the femur. Further, the location of these features in the images may be determined by analyzing the gray scale value of one or more pixels around a selected point on the image. The pixel with the lowest gray scale value may then be assumed to be the edge of the cortical bone in the 2D image.