The aim of the present study is to analyze ERCP images (endoscopic retrograde cholangiopancreatography). This means images of a contrasted pancreatic duct obtained through an X-ray method. More precisely, this involves creating an algorithm performing the first stage of the analysis/separation of the object of interest.