Optimization of brain cancer images with some noise models