Testing with different segmentation function

39 views
Skip to first unread message

Vincenzo Fiozzo

unread,
Dec 12, 2019, 3:07:32 PM12/12/19
to RSGISLib Support
Hi everyone,

I am using different segmentation functions of the scikit-image modules to evaluate the one that best suits my case, with performQuickshiftSegmentation I had no problem, while with Slic and Felsenszwalb I receive the following error message for both:

>>> rsgislib.segmentation.skimgseg.performFelsenszwalbSegmentation(inputImg, outputImg, gdalformat='KEA',scale=1, sigma=0.8, min_size=20)
       File "/home/ubuntu/anaconda3/envs/rsgislib/lib/python3.7/site-packages/rsgislib/segmentation/skimgseg.py", line 34, in performFelsenszwalbSegmentation
       rsgislib.imageutils.createCopyImage(inputImg, outputImg, 1, 0, gdalformat, rsgislib.TYPE_32UINT)
      _imageutils.error: Could not create GDALDataset.

The file paths is correct and I tried it with both a multispectral and RGB image, 'uint32'.
I have a linux machine and would like to try out the other segmentation functions as well.
Congratulations to the administrators on their work
Reply all
Reply to author
Forward
0 new messages