@@ -114,7 +114,8 @@ def perform_felsenszwalb_segmentation(
114
114
if not ((gdalDS .RasterCount == 1 ) or (gdalDS .RasterCount == 3 )):
115
115
gdalDS = None
116
116
raise rsgislib .RSGISPyException (
117
- "Input image should have either a single band or three (RGB). Consider performing PCA to reduce."
117
+ "Input image should have either a single band or three "
118
+ "(RGB). Consider performing PCA to reduce."
118
119
)
119
120
120
121
pxlValsArr = []
@@ -237,7 +238,8 @@ def perform_quickshift_segmentation(
237
238
if not (gdalDS .RasterCount == 3 ):
238
239
gdalDS = None
239
240
raise rsgislib .RSGISPyException (
240
- "Input image should have three bands (RGB). Consider performing PCA to reduce."
241
+ "Input image should have three bands (RGB). "
242
+ "Consider performing PCA to reduce."
241
243
)
242
244
243
245
pxlValsArr = []
@@ -409,7 +411,8 @@ def perform_slic_segmentation(
409
411
if not ((gdalDS .RasterCount == 1 ) or (gdalDS .RasterCount == 3 )):
410
412
gdalDS = None
411
413
raise rsgislib .RSGISPyException (
412
- "Input image should have either a single band or three (RGB). Consider performing PCA to reduce."
414
+ "Input image should have either a single band or three (RGB). "
415
+ "Consider performing PCA to reduce."
413
416
)
414
417
415
418
pxlValsArr = []
@@ -568,7 +571,8 @@ def perform_watershed_segmentation(
568
571
if not ((gdalDS .RasterCount == 1 ) or (gdalDS .RasterCount == 3 )):
569
572
gdalDS = None
570
573
raise rsgislib .RSGISPyException (
571
- "Input image should have either a single band or three (RGB). Consider performing PCA to reduce."
574
+ "Input image should have either a single band or three (RGB). "
575
+ "Consider performing PCA to reduce."
572
576
)
573
577
574
578
pxlValsArr = []
@@ -730,7 +734,8 @@ def perform_random_walker_segmentation(
730
734
if not ((gdalDS .RasterCount == 1 ) or (gdalDS .RasterCount == 3 )):
731
735
gdalDS = None
732
736
raise rsgislib .RSGISPyException (
733
- "Input image should have either a single band or three (RGB). Consider performing PCA to reduce."
737
+ "Input image should have either a single band or three (RGB). "
738
+ "Consider performing PCA to reduce."
734
739
)
735
740
736
741
multichannel = True
0 commit comments