A surface texture measuring machine for measuring a surface texture of an object after adjusting an attitude of the object in parallel to or perpendicular to a predetermined measurement axis, comprising: a stage provided with a leveling table on which the object is mounted, the leveling table being adapted to incline the object relative to a reference plane perpendicular to a displacing direction of a stylus; a contact-type detector having the stylus that is adapted to be brought into contact with a to-be-measured surface of the object; an image probe adapted to capture an image of a surface of the object; a relative movement mechanism adapted to relatively move the leveling table and the contact-type detector; and a controller adapted to control the relative movement mechanism and the leveling table, the controller including: a focusing unit adapted to move the image probe in a direction perpendicular to the reference plane at a plurality of points of the to-be-measured surface by the relative movement mechanism and to determine a focal point of the image probe at each of the points; an inclination calculating unit adapted to calculate an inclination angle (θ) of the to-be-measured surface relative to the reference plane based on a position perpendicular to the reference plane of the image probe at the each of the points; and an attitude adjusting unit adapted to incline the leveling table based on the inclination angle (θ) calculated by the inclination calculating unit and to adjust the attitude of the object so that the to-be-measured surface is in parallel to the reference plane. a stage provided with a leveling table on which the object is mounted, the leveling table being adapted to incline the object relative to a reference plane perpendicular to a displacing direction of a stylus; a contact-type detector having the stylus that is adapted to be brought into contact with a to-be-measured surface of the object; an image probe adapted to capture an image of a surface of the object; a relative movement mechanism adapted to relatively move the leveling table and the contact-type detector; and a controller adapted to control the relative movement mechanism and the leveling table, the controller including: a focusing unit adapted to move the image probe in a direction perpendicular to the reference plane at a plurality of points of the to-be-measured surface by the relative movement mechanism and to determine a focal point of the image probe at each of the points; an inclination calculating unit adapted to calculate an inclination angle (θ) of the to-be-measured surface relative to the reference plane based on a position perpendicular to the reference plane of the image probe at the each of the points; and an attitude adjusting unit adapted to incline the leveling table based on the inclination angle (θ) calculated by the inclination calculating unit and to adjust the attitude of the object so that the to-be-measured surface is in parallel to the reference plane. a focusing unit adapted to move the image probe in a direction perpendicular to the reference plane at a plurality of points of the to-be-measured surface by the relative movement mechanism and to determine a focal point of the image probe at each of the points; an inclination calculating unit adapted to calculate an inclination angle (θ) of the to-be-measured surface relative to the reference plane based on a position perpendicular to the reference plane of the image probe at the each of the points; and an attitude adjusting unit adapted to incline the leveling table based on the inclination angle (θ) calculated by the inclination calculating unit and to adjust the attitude of the object so that the to-be-measured surface is in parallel to the reference plane.