In one embodiment of the present invention, a method includes introducing an
optical
signal into a first arm and a second arm of an optical device; self-phase modulating
the optical signal propagating in the first arm; and outputting a high intensity
portion of the optical signal spatially separated from a low intensity portion
of the optical signal. In such manner, optical signals input into the optical device
may be restored via cleaning and shaping.