Answer:
Praise be to Allah, the Lord of the Worlds; and may His blessings and peace be upon our Prophet Muhammad and upon all his Family and Companions.
If any reliable Muslim or non-Muslim lady doctor certifies that your situation can undoubtedly harm you, then undertaking the operation is allowed. This permission is based on the ruling of Shariah that harm should be removed. However, this operation should not lead to other similar or more harmful means since according to Shariah any harm should not be removed through a similar harm. Only a reliable doctor can decide whether obesity causes more harm than an operation or not. There is no difference between the decisions of a male or female doctor in this regard.
However, a woman is not allowed to receive treatment from male doctors if female doctors are available.
Allah knows best.