Ability to mark flat surfaces as such

This ability would be a killer feature, much used in buildings photogrammetry. Especially if AI/automated (subject to human yes/no/tweak).

What about a blob (like a wall light fitting) in the middle of a flat area? Would it be difficult to make the algorithm ‘blind’ to such perturbances? To reclassify the surrounding surface as ‘flat’ but leave the blob present in the middle of it?