This document proposes and implements an algorithm to optimize the placement of spatial saturation planes in magnetic resonance spectroscopy to minimize contamination from healthy tissue. It involves:
1) Segmenting tumor tissue from MR images
2) Defining an initial excitation region using principal component analysis on the tumor shape
3) Reconstructing the tumor as a 3D mesh and progressively refining it to obtain a set of conformal saturation planes
The algorithm was tested on 6 tumor datasets and achieved an average ratio of 0.87 for tumor volume to the optimized polyhedral volume, demonstrating improved conformity over traditional methods.