#$%^&*AU2009227893B220140522.pdf#####-23ABSTRACT A method for visualization includes receiving an input indicative of respective apparent coordinates of a plurality of points disposed along a length of a 5 probe inside a body of a subject, and applying a model of known mechanical properties of the probe to the apparent coordinates so as to compute a cost function with respect to shapes that can be assumed by the probe in the body. A shape is chosen responsively to the cost function, and corrected coordinates of the points along the length of the probe are generated based on the shape. The representation of 10 the probe using the corrected coordinates is then displayed. 21/10/09,va 18317 speci.doc,231/4 12 FIG. 1 12 10 38 36 32 4 ?/f 12 26 16 24 /,,22 28