\begin{tikzpicture}[spy using outlines]

    \pgfmathsetmacro{\offsetx}{2.8};
    \pgfmathsetmacro{\offsety}{-3.3};
    \pgfmathsetmacro{\imagewidth}{0.28};
    \pgfmathsetmacro{\leftshift}{-1.7};

    \pgfmathsetmacro{\spyonexshift}{0.8};
    \pgfmathsetmacro{\spyoneyshift}{-1.};
    \pgfmathsetmacro{\spytwoxshift}{-0.75};
    \pgfmathsetmacro{\spytwoyshift}{0.9};
    

    \node[inner sep=0pt] (gt1) at (-1*\offsetx,1*\offsety) {\includegraphics[width=\imagewidth\linewidth,trim={250 0 250 0},clip]{source/noga/gt_view1}}; 
    \node[inner sep=0pt] (text3) at (-1*\offsetx,0.5*\offsety+0.1) {\large EAM data};



    \node[inner sep=0pt] (im7) at (0,1*\offsety) {\includegraphics[width=\imagewidth\linewidth,trim={250 0 250 0},clip]{source/noga/ssm_view1}}; 
    \node[inner sep=0pt] (s7) at (0+\spyonexshift,1*\offsety+\spyoneyshift) {}; 
    \node[inner sep=0pt] (spy7) at (1*\offsetx,1*\offsety) {}; 
    \node[inner sep=0pt] (text3) at (0.5*\offsetx,0.5*\offsety+0.1) {\large \ssm};
    \node[inner sep=0pt] (view) at (-1.5*\offsetx-0.1,1*\offsety) {\includegraphics[width=0.08\linewidth,trim={250 0 250 0},clip]{source/noga/viewgreen1.png}};



    \draw [line width=0.15mm] (-0.5*\offsetx+0.05,1*\offsety-0.5*\offsety+0.4) -- (1.5*\offsetx-0.05,1*\offsety-0.5*\offsety+0.4) -- (1.5*\offsetx-0.05,2*\offsety-0.5*\offsety-0.05) -- (-0.5*\offsetx+0.05,2*\offsety-0.5*\offsety-0.05) -- (-0.5*\offsetx+0.05,1*\offsety-0.5*\offsety+0.4);
    


    \node[inner sep=0pt] (im5) at (2*\offsetx,1*\offsety) {\includegraphics[width=\imagewidth\linewidth,trim={250 0 250 0},clip]{source/noga/ours_view1}};     
    \node[inner sep=0pt] (s5) at (2*\offsetx+\spyonexshift,1*\offsety+\spyoneyshift) {}; 
    \node[inner sep=0pt] (spy5) at (3*\offsetx,1*\offsety) {}; 

    \node[inner sep=0pt] (text3) at (2.5*\offsetx,0.5*\offsety+0.1) {\large ours, $\bar{\xi}=3.368$};


    \draw [red,line width=0.15mm] (1.5*\offsetx+0.05,1*\offsety-0.5*\offsety+0.4) -- (3.5*\offsetx-0.05,1*\offsety-0.5*\offsety+0.4) -- (3.5*\offsetx-0.05,2*\offsety-0.5*\offsety-0.05) -- (1.5*\offsetx+0.05,2*\offsety-0.5*\offsety-0.05) -- (1.5*\offsetx+0.05,1*\offsety-0.5*\offsety+0.4);

    \node[inner sep=0pt] (im) at (1*\offsetx,1.5*\offsety-0.3) {\includegraphics[width=0.35\textwidth]{source/optical_comparison/colorbar2.png}}; 
    
    \spy [black,draw,height=2.5cm,width=0.15\linewidth,magnification=2,connect spies] on (s7) in node at (spy7);
    \spy [black,draw,height=2.5cm,width=0.15\linewidth,magnification=2,connect spies] on (s5) in node at (spy5);
\end{tikzpicture}
