I am trying to achieve something very similar what is discussed here.
I have the following image, and I know the size of the box. West to East (366, 534), South to North (0.00565, 10.6) and the last direction (page normal) is (0, 19.9).
MWE
\documentclass[]{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[3d
box,xmin=0,xmax=10,ymin=366,ymax=534,
%grid=both,
minor z tick num=1]
\addplot3 graphics[points={%
( 0,366,0.00565) => (0, 227)
(19.9,534,0.00565) => (3804,0)
( 0,534,0.00565) => (3951,227)
( 0,366,-10.6) => (47,432)
}] {mwe.png};
\end{axis}
\end{tikzpicture}
\end{document}
My code is producing,
At the linked discussion there is a matlab script to get coordinates correctly, and I am thinking that's the part where I am messing up things, as I try to get the pixels using gimp.
Are there any other robust way to get the pixels rather than a Matlab script?
Or is it my perspective can not be handled via pgfplots?
I also admit that I am not quite sure if I am using good group of points to map coordinates into the pixels.





