Image segmentation is something the OCR library, that PDFE uses for the quick OCR assistant, can do, so it would be possible to achieve this functionality.
But I don't see many users needing such service, especially from a script interface, to worth the effort to expose the functions to the script interface.
Maybe a feature more suitable to the extract images tool, where the user can manually enable the image segmentation, when trying to extract images from such type of scanned documents.