\begin{tikzpicture}[spy using outlines]

    \pgfmathsetmacro{\offsetx}{2.8};
    \pgfmathsetmacro{\offsety}{-3.5};
    \pgfmathsetmacro{\imagewidth}{0.27};
    \pgfmathsetmacro{\leftshift}{-1.7};

    \pgfmathsetmacro{\spyonexshift}{0.8};
    \pgfmathsetmacro{\spyoneyshift}{-1.};
    \pgfmathsetmacro{\spytwoxshift}{-0.7};
    \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] (gt2) at (-1*\offsetx,2*\offsety) {\includegraphics[width=\imagewidth\linewidth,trim={250 0 250 0},clip]{source/noga/gt_view2}}; 
    \node[inner sep=0pt] (text3) at (-1*\offsetx,0.5*\offsety+0.25) {\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] (im8) at (0*\offsetx,2*\offsety) {\includegraphics[width=\imagewidth\linewidth,trim={250 0 250 0},clip]{source/noga/ssm_view2}}; 
    \node[inner sep=0pt] (s8) at (0*\offsetx+\spytwoxshift,2*\offsety+\spytwoyshift) {}; 
    \node[inner sep=0pt] (spy8) at (1*\offsetx,2*\offsety) {}; 

    \node[inner sep=0pt] (text3) at (0.5*\offsetx,0.5*\offsety+0.25) {\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.55) -- (1.5*\offsetx-0.05,1*\offsety-0.5*\offsety+0.55) -- (1.5*\offsetx-0.05,3*\offsety-0.5*\offsety+0.05) -- (-0.5*\offsetx+0.05,3*\offsety-0.5*\offsety+0.05) -- (-0.5*\offsetx+0.05,1*\offsety-0.5*\offsety+0.55);
    


    \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] (im6) at (2*\offsetx,2*\offsety) {\includegraphics[width=\imagewidth\linewidth,trim={250 0 250 0},clip]{source/noga/ours_view2}}; 
    \node[inner sep=0pt] (s6) at (2*\offsetx+\spytwoxshift,2*\offsety+\spytwoyshift) {}; 
    \node[inner sep=0pt] (spy6) at (3*\offsetx,2*\offsety) {}; 

    \node[inner sep=0pt] (text3) at (2.5*\offsetx,0.5*\offsety+0.25) {\large ours, $\bar{\xi}=3.368$};
    \node[inner sep=0pt] (view) at (-1.5*\offsetx-0.1,2*\offsety) {\includegraphics[width=0.08\linewidth,trim={250 0 250 0},clip]{source/noga/viewgreen2.png}};


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

    \node[inner sep=0pt] (im) at (1*\offsetx,2.5*\offsety-0.2) {\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 (s8) in node at (spy8);
    \spy [black,draw,height=2.5cm,width=0.15\linewidth,magnification=2,connect spies] on (s5) in node at (spy5);
    \spy [black,draw,height=2.5cm,width=0.15\linewidth,magnification=2,connect spies] on (s6) in node at (spy6);


\end{tikzpicture}