CATSM: A Pre-Processor Tool for Medical Applications