Pfeile mit tikzpicture zeichnen?

Tabellen und Grafiken erstellen und anordnen


falke23

Pfeile mit tikzpicture zeichnen?

Beitrag von falke23 »

Hallo,
ich würde gerne mir Latex ein kleines Grafik zeichnen. Ich habe es gemacht aber ich weiß nicht wie man die Pfeile (g(x,y) vorne links und f^(x,y) hinten rechts) mit \pathline machen kann. Also ein Peifel geht rein in das Rechteck (inverse filtering) und ein Pfeil geht raus aus dem Rechtecke(Inverse Fourier transform).
ich wollte ein bild hochladen aber es ging leider nicht.
Ich würde mich freuen wenn eine/einer mir helfen würde.

schöne Grüße,
falke.






\tikzstyle{decision}=[diamond, draw, fill=red!50]
\tikzstyle{line}=[draw, -latex']
\tikzstyle{block}=[draw,rectangle,fill=red!50, text width=5em,minimum height=3em,text centered,node distance=5em]

\begin{tikzpicture}
\node[block](start){Fourier Tranform};
\node[block, right of=start,xshift=40](process1){Inverse Filter};
\node[block,right of=process1,xshift=40](process2){Inverse Fourier Tranform};

%arrows
\path[line] -- node[xshift=-70,yshift=10]{$g(x,y)$}(start);
\path[line](start)-- node[xshift=3,yshift=10]{$G(u,v)$}(process1);
\path[line](process1)--node[xshift=3,yshift=10]{$\hat{F}(u,v)$}(process2);
\path[line] -- node[xshift=160,yshift=10]{$\hat{f}(x,y)$}(process2);


\end{tikzpicture}

esdd
Forum-Meister
Forum-Meister
Beiträge: 2561
Registriert: So 7. Feb 2010, 16:36

Beitrag von esdd »

Hallo,

hier ist ein Vorschlag für deine Zeichnung:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning}

\tikzstyle{line}=[draw, -latex'] 
\tikzstyle{block}=[draw,fill=red!50, text width=5em,minimum height=3em,text centered] 

\begin{document}

\begin{tikzpicture} 
  \node[block](start){Fourier Transform}; 
  \node[block,right=2cm of start](process1){Inverse Filter}; 
  \node[block,right=2cm of process1](process2){Inverse Fourier Transform}; 
  %arrows 
  \path[line] ([xshift=-2cm]start.west)-- node[above]{$g(x,y)$}(start); 
  \path[line](start)-- node[above]{$G(u,v)$}(process1); 
  \path[line](process1)--node[above]{$\hat{F}(u,v)$}(process2); 
  \path[line] (process2)-- node[above]{$\hat{f}(x,y)$}([xshift=2cm]process2.east); 
\end{tikzpicture}

\end{document}
Bitte mache immer vollständige Minimalbeispiele und nutze den Codebutton.
Gruß
Elke

falke23

Pfeile mit tikzpicture zeichnen?

Beitrag von falke23 »

Danke esdd, jetzt sieht aus wie ich haben wollte :)

Freundliche Grüße,
falke23.

Antworten