Heroin, morphine and codeine are opiates derived from the resin of the opium poppy. Heroin quickly metabolizes to morphine, and the body also changes codeine to morphine. Codeine is also used in some cold medicines.