Purpose. The use of the Hough transform for angle detection is quite accurate for relatively wide slice thickness. However, the Hough transform fails to accurately detect the angle for thin slice thickness. This study proposes a method for automatically measuring the thickness of thin slices on images of a Catphan phantom. Methods. In the proposed method, the angle of the phantom’s orientation was determined based on the relative coordinates of the four hole objects in the phantom. After the angles of the wires were determined, the profiles of pixel values across the wire objects were constructed. Finally, their full widths at half maximum (FWHMs) were determined and multiplied by tan 23° to obtain the slice thicknesses of the images. The results of the proposed method were compared to a previous method, which used the Hough transform to obtain the phantom’s orientation. We used slice thicknesses ranging from 0.8 mm to 5.0 mm, and phantom angles from 0° to 10°. Results. Our proposed method detected the angle of the phantom accurately for thin slices, whereas a previous method did not accurately detect the angle. The results of the slice thickness using this current method were slightly higher (within 7.9%) compared to the previous method. However, the results of the two methods did not differ significantly (p-value > 0.05). Using different angles, the current method detected all the angles more accurately. Again, the slice thicknesses were not significantly different from the previous method (p-value > 0.05). Conclusion. The proposed method for measuring the thickness of thin slices in an image of a Catphan phantom, based on the relative coordinates of the four hole objects in the phantom, outperformed a previous method based on the Hough transform.