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 (Z) and N y columns (S), - the rows (Z) extend in a row direction (Rz), - two adjacent rows (Z) have a row distance d y , - the columns (S) extend in a column direction (Rs) that extends transversely, especially perpendicular, to the row direction (Rz), - two adjacent columns (S) have a column distance d x and - there are at least as many columns (S) as rows (Z), 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 (M), particularly a centre of gravity (M), 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 (M) obtained in this way across n Px pixel lines, thereby obtaining block average positions (L) and (vii) determining the position of the measurement object from block average positions (L), 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 (Z) and N y columns (S), - the rows (Z) extend in a row direction (Rz), - two adjacent rows (Z) have a row distance d y , - the columns (S) extend in a column direction (Rs) that extends transversely, especially perpendicular, to the row direction (Rz), - two adjacent columns (S) have a column distance d x and - there are at least as many columns (S) as rows (Z), and - comprises detector pixels (P i ) arranged in N x rows (Z) and N y columns (S), - the rows (Z) extend in a row direction (Rz), - two adjacent rows (Z) have a row distance d y , - the columns (S) extend in a column direction (Rs) that extends transversely, especially perpendicular, to the row direction (Rz), - two adjacent columns (S) have a column distance d x and - there are at least as many columns (S) as rows (Z), 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 (M), particularly a centre of gravity (M), 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 (M) obtained in this way across n Px pixel lines, thereby obtaining block average positions (L) and (vii) determining the position of the measurement object from block average positions (L), in particular from all said positions, wherein (viii) the absolute value of a difference between n x and n y is at most 50. <EOS>