Design and implementation of the software architecture for a 3-D reconstruction system in medical imaging