I'm writing a research paper and I would like to compare a portion of the reference image (while including the latter) with the zoom of many portions of images of other methods, but, without including the whole images of the other methods, something exactly like the included picture taken from this article. I found many helpful codes such as this one, so far I use the following code
\begin{tikzpicture}
[spy using outlines={square,yellow,magnification=2.5,size=1.7cm}]
\node {\includegraphics[trim=4cm 4cm 2cm 2cm, clip=true, width=0.2\textwidth]{figures/image.png}};
\spy on (-0.5,0.2) in node [left] at (1.8,-0.97);
\end{tikzpicture}
and it produces an image with a frame around the portion to be zoomed and a zoom of the same portion on the same figure. I'm very new to TikZ and I can't figure out yet how to make my figures look like the ones below. Could anyone help me with this please?

spy. All you need to do is to clip the various different magnifications correctly, put them in a tabular, and add the yellow frame on the bigger picture.spyis useful if these are magnifications of the same graphics, but this seems to be the case for at most one of them. And anyone trying to write an answer neither knows your document class not has your graphics. – Apr 03 '20 at 19:23spylibrary, just add new node positioned relative to node with image. – Zarko Apr 03 '20 at 19:30