A method for determining a position of an at least partially line-shaped object comprising the step (i) arranging the object so that a measurement object is displayed on the detector element. (ii) wherein the detector element - comprises detector pixels (P i) arranged in N x rows and N y columns, - the rows extend in a row direction (Rz), - two adjacent rows have a row distance d y, - the columns extend in a column direction (Rs) that extends transversely, especially perpendicular, to the row direction (Rz), - two adjacent columns have a column distance d x and - there are at least as many columns as rows, and (iii) wherein the measurement object extends at an orientation angle α relative to the row direction (Rz) on the detector element, characterised in that (iv) for the orientation angle α the formula α = arctan n y d y n x d x ± ε applies, wherein n x < N x and n y < N y are natural, co-prime numbers, and wherein ε < 10 arc minutes applies, and in that the method comprises the following steps: (v) for each relevant pixel line (S, Z), determining a position, particularly a centre of gravity, of the measurement object, the pixel line being a row or a column and a relevant pixel line being a pixel line that intersects the measurement object, (vi) averaging the positions obtained in this way across n Px pixel lines, thereby obtaining block average positions and (vii) determining the position of the measurement object from block average positions, in particular from all said positions, wherein (viii) the absolute value of a difference between n x and n y is at most 50. (i) arranging the object so that a measurement object is displayed on the detector element. (ii) wherein the detector element - comprises detector pixels (P i) arranged in N x rows and N y columns, - the rows extend in a row direction (Rz), - two adjacent rows have a row distance d y, - the columns extend in a column direction (Rs) that extends transversely, especially perpendicular, to the row direction (Rz), - two adjacent columns have a column distance d x and - there are at least as many columns as rows, and - comprises detector pixels (P i) arranged in N x rows and N y columns, - the rows extend in a row direction (Rz), - two adjacent rows have a row distance d y, - the columns extend in a column direction (Rs) that extends transversely, especially perpendicular, to the row direction (Rz), - two adjacent columns have a column distance d x and - there are at least as many columns as rows, and (iii) wherein the measurement object extends at an orientation angle α relative to the row direction (Rz) on the detector element, characterised in that (iv) for the orientation angle α the formula α = arctan n y d y n x d x ± ε applies, wherein n x < N x and n y < N y are natural, co-prime numbers, and wherein ε < 10 arc minutes applies, and in that the method comprises the following steps: (v) for each relevant pixel line (S, Z), determining a position, particularly a centre of gravity, of the measurement object, the pixel line being a row or a column and a relevant pixel line being a pixel line that intersects the measurement object, (vi) averaging the positions obtained in this way across n Px pixel lines, thereby obtaining block average positions and (vii) determining the position of the measurement object from block average positions, in particular from all said positions, wherein (viii) the absolute value of a difference between n x and n y is at most 50.