segutils.runShepherdSegmentation runs & gives clumps file but clumps are colored

28 views
Skip to first unread message

Alpesh

unread,
Jun 4, 2019, 8:06:45 AM6/4/19
to RSGISLib Support
Hi,

I have run the ShepherdSegmentation  in RSGISlib with 15_SegData.py. 

But the clump image shows the segmets with different colors.

It makes it difficult to identify the region of the input  image.

I have checked the RSGISLib segmentation module but I can't find from where these colors came.

I need the output (Segmented) image with highlighted boundaries of each segments.

What changes I need to make for this ?



Peter Bunting

unread,
Jun 4, 2019, 8:15:32 AM6/4/19
to Alpesh, RSGISLib Support
The output is a raster and therefore you cannot visualise just the boundaries. The colours are randomly allocated to visualise the clumps associated with the segmentation. If you want to visualise then outline then you can vectorise the segmentation:

rsgislib.vectorutils.polygoniseRaster(inputImg, outShp, imgBandNo=1, maskImg=None, imgMaskBandNo=1)

--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
To post to this group, send email to rsgislib...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsgislib-support.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rsgislib-support/c6ff5078-fc84-4fa4-aa1f-0cf704e5ec16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages