\noindent
\parbox{\textwidth}{
\begin{algorithm}
\label{alg1}
\begin{algorithmic}[1]
\STATE Choose randomly a set of points.\\
\STATE Compute a model from these points.\\
\STATE Compute the fit of all points to this model; check how many of them are inliers.\\
\STATE Iterate until a maximum number of iterations has been reached or until a sufficiently high number of inliers have been found.\\
\STATE Choose the model that has the highest number of inliers.\\
\STATE Compute the final model using all the inliers.\\
\end{algorithmic}
\end{algorithm}
}
questo l’esempio dell’algoritmo a cui voglio dare una caption.
caption2 è nel file di esempio che ci hanno dato come base di partenza per la stesura della tesi, ho letto che è obsoleto ma spero non sia quello che crea problemi.. anche perchè caricando caption invece di caption2 mi da un altro tipo di errore.