\documentclass{article}
\usepackage{amsmath}
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}
\makeatletter
\def\BState{\State\hskip-\ALG@thistlm}
\makeatother
\begin{document}
\begin{algorithm}
\caption{ROI}\label{euclid}
\begin{algorithmic}[1]
\Procedure{MyProcedure Region of interest (ROI_1)}{}
\State $\textit{Image_1} \gets \text{camera }\textit{image}$
\State $i \textit{ROI_1} \gets \text{trimmed}\textit{scale image}$
\BState \emph{image_1}
\State $i \textit{ROi_2} \gets \text{trimmed image}\textit{from ROI_1}$
\State $i \textit{image_2} \gets \text{ROI_2}$
\EndProcedure
\end{algorithmic}
\end{algorithm}
\end{document}
I wrote this referring to this Write pseudo code in latex. I included the below listed packages:
Could anyone help me correct this.

