How can I exclude only certain pages from the sitemap?

Is it possible with a filter or a hook to exclude certain pages from the sitemap?
As far as I can see you only have the option to turn all pages on or off using the plugin-UI.