A system and method for shape sensing assistance in a medical procedure includes providing (402) a three-dimensional image of a distributed pathway system. A shape sensing enabled elongated device is introduced (406) into the pathway system. A shape of the elongated device in the pathway system is measured (410). The shape is compared (414) with the three-dimensional image to determine whether a given path has been selected relative to a target.La présente invention concerne un système et un procédé pour lassistance par détection de forme dans une procédure médicale qui comprennent la production (402) dune image tridimensionnelle dun système de voie distribuée. Un dispositif allongé à fonctionnalité de détection de forme est introduit (406) dans le système de voie. Une forme du dispositif allongé dans le système de voie est mesurée (410). La forme est comparée (414) à limage tridimensionnelle pour déterminer si un chemin donné a été sélectionné par rapport à une cible.