I will try to adapt this example to my segmentation problem, but I still have some unclear points like how to plot the segmented image using the clusters labels obtained using 'DBSCAN'.
For example : If I do like this seg=dbscan(img1,eps,minpts)
how I will plot the result? does it works like that : plot(img1,col=seg) or using function image(seg)?
I want to use the implemented version of DBSCAN in R to detect skin lesion. DBSCAN algorithm is used because it is able to detect arbitrary shaped clusters.