/articles/toma

To get this branch, use:
bzr branch http://darksoft.org/webbzr/articles/toma
34 by Suren A. Chilingaryan
Fix cross-references and some latex complaints
1
\begin{algorithm}[htb]
32 by Suren A. Chilingaryan
Fix algorithms and separate them into the files as well
2
\DontPrintSemicolon
3
\caption{\label{alg:stdalg} Standard implementation of the back-projection kernel}
4
%\begin{algorithmic}
5
%\KwIn {$\vdata{m}_g$ - a thread index in a computational grid as reported by CUDA or OpenCL frameworks; geometrical configuration including number of projections in data set - $n_p$, center of rotational axis - $v_a$; 2D texture mapped onto the sinogram and the parameters $\cmem{c}_*$ in the constant memory storing the per-projection correction for rotational axis and sine \& cosine of the projection angle }
6
\KwIn {\algsimpleinput}
7
\KwOut {Reconstructed slice $\gmem{\vfloat{r}}$}
8
\Begin {
9
	$\vfloat{r} \eq 0$ \;
10
% 	$\vdata{m}_g \eq \vdata{m}_b \vmul \vdata{n}_t + \vdata{m}_t$ \;
11
	$\vdata{f}_g \eq \vdata{m}_g - \vdata{v}_a$ \;
12
	\ForTo{p}{0}{n_p}{
13
    		$h \eq \cmem{c_a}[p] + \vx{f_g} \mul \cmem{c_c}[p] - \vy{f_g} \mul \cmem{c_s}[p]$ \;
14
		$\vfloat{r} \aeq $ \KwTex{$h + \fconst{0.5}$, $p + \fconst{0.5}$} \;
15
	}
16
	$\gmem{\vfloat{r}}[\vy{m_g},\vx{m_g}] \eq \vfloat{r}$  \;
17
}
18
\end{algorithm}