_segmentation.error: Could not create GDALDataset.

49 views
Skip to first unread message

Vincenzo Fiozzo

unread,
Jan 9, 2020, 11:22:24 AM1/9/20
to rsgislib...@googlegroups.com
Hi everyone,

a short time ago I asked a similar question, but now I find a similar problem when I do a normal segmentation with the "runShepherdSegmentation" function

I'm trying to get a segmentation with very small pixels from UAV images, the function seems to start well but during the clump deletion the following message appears:

Processing using Disk
Traceback (most recent call last):
    segutils.runShepherdSegmentation(img,img_clump,gdalformat='KEA',numClusters=1,minPxls=1)
  File "/home/ubuntu/anaconda3/envs/rsgislib/lib/python3.7/site-packages/rsgislib/segmentation/segutils.py", line 191, in runShepherdSegmentation
    rsgislib.segmentation.relabelClumps(elimClumpsFile, outputClumps, gdalformat, processInMem)
_segmentation.error: Could not create GDALDataset.

My starting commands are these

img='/home/ubuntu/Scrivania/Dataset/clip_image.kea'

img_clump='/home/ubuntu/Scrivania/Dataset/output_raster/segmentation.tif'

img_mean='/home/ubuntu/Scrivania/Dataset/shapard/output_raster'

segutils.runShepherdSegmentation(img,img_clump,img_mean,gdalformat='KEA', numClusters=20, minPxls=10)

I don't understand what I'm doing wrong.
Thanks for your help
Reply all
Reply to author
Forward
0 new messages