An intelligent reversible watermarking technique for the protection of medical images. The concept of companding function is exploited for reducing embedding distortion. Integer Wavelet Transform is used as an embedding domain for achieving reversibility. Histogram processing is employed to avoid underflow/overflow. GP is used to evolve models that not only make an optimal tradeoff between imperceptibility and capacity of watermark.