Freelance writer Lee Ewe Poh, 50, was awarded 35,000 ringgit (11,000 dollars) in damages for invasion of privacy.
Lee's counsel Simon Murali said the court also ruled that surgeons must obtain their female patients' consent before taking photos of their private parts.
"The judge said the doctor has a duty towards his patient and it is crucial that he must respect the modesty and dignity of his patients instead of violating it," he said.
Murali said Lee underwent a surgery at a private hospital in the northern state of Penang in 2006.
She later discovered that her surgeon had photographed her while she was unconscious and without her consent.
Lee reportedly said that the surgeon admitted he took the images but said it was for medical purposes, as reference material to show other patients, and that it was common practice.