The LaTeX Overlay Generator is a great tool to annotate images which contain sub-images like this (where the sub-images are all rectangles and all "horizontal with the screen"):
However, some images contain sub-images in the following manner (where they are not all "horizontal with the screen" and rectangles may be chopped off):
The LaTeX Overlay Generator unfortunately is not able to rotate rectangles (I have tried to do it afterwards, but not in an easy manner), and even if it could, one would still need to find a way to "chop off" the whole image afterwards.
Perhaps there is another handy way with Tex then? For inspiration, cf. Drawing on an image with TikZ. Or perhaps there is a GUI to make it happen?
P.S.: I have added a green border on top of the polygons (all chopped-off rectangles), since that's a functionality of the LaTeX Overlay Generator which I would like to preserve/mimic.
P.S.: I would also like to have text (annotations) inside the sub-images, in a later stage.
use Inkscape which can produce TikZ code
". That sounds very interesting to me: using a GUI but still reverting to all the code within a Tex document! Would you have any relevant link to advise on that please? (I guess perhaps Exporting from Inkscape to LaTeX - via TikZ on the SE-site, but it seems as if the text is fixed from within a seperate file and the paths are drawn within the SVG as well; I'd rather have it generated from within the main Tex document; e.g. by TikZ coordinates)?\draw (x,y) -- (x,y) -- (x,y) -- ...;
The fact that you need to draw a rectangle in the generator, is limiting the applicability of the tool. You could of course look for coordinates by taking e.g. the left-top corner of each rectangle, but it's quite labor-intensive.