I have examined the problem you have raised.
The best solution would be to create an STL model of this object using a 3D scanner, such as a dental scanner, and make it with a 3D printer.
But since you seem to have only one 2D image, nothing else can be used to make a 3D model that accurately reproduces the sculptured shape of the relief. Although various softwares was also offered to me, they were not suitable for this task.
Since you want to remove the areas between the shapes, there is no choice but to draw around the contour of the shapes by hand with a suitable CAD system and draw them out slightly in the Z direction. I did this work, see the pictures. Such an STL model could already be manufactured with a 3D printer without the need for G code. But since you wrote about G code, you were obviously thinking of cutting. Here you also need to know what CNC control would be used. You didn’t specify how big a piece you would need, I assumed machining a 60x35 mm piece that would fit in the workspace of a dental milling machine.
Pocket milling cycles are available on advanced CNC controls to remove the area between shapes by machining, where it is sufficient to enter the XY coordinates of the contour lines, but a lot of material remains in such a crowded area because the tools do not fit in many places. Later I will examine such a version as well, but in the attached example I made the G code using the STL model for PMMA material with the PiCam5 dental software, see Novum IT Limited . Although the smallest tool here is D0.6 in diameter, there is still quite a bit of material left in the places where this tool did not fit. See the attached figure with the machining holders and the first few lines of the long machining program. The dental CAM program works with hemispherical tools, but even if you find CAM software that generates G-code for cylindrical tools, the material will remain in the corners in the same way.
If you write to me at sandorkaroly1955@gmail.com , I will send you the DXF file containing the contours.
Attachment 475932Attachment 475940Attachment 475934Attachment 475936Attachment 475938