A system for reconstructing a shape of at least a portion of a hollow organ is provided. The system comprises a processor which is configured to define a parametric model representing the shape of the portion of the hollow organ. The processor is further configured to access measured data describing locations within the hollow organ and fit the parametric model to the measured data subject to at least one constraint computed from statistical analysis of a dataset of other instances of the hollow organ.