Write a fn that reduces the 7 class image (all pixels 0-6) to a smller number of classses (i.e., 0-1 or 0-2) by merging classes in a user defined way..
Initially we will want to work with 3 classes: water, road and not-water-nor-road (i.e., all other classes).. so that would be an image where all pixels are either 0 (water), 1 (road), 2 (all other classes)..
Images have 7 classes:
Write a fn that reduces the 7 class image (all pixels 0-6) to a smller number of classses (i.e., 0-1 or 0-2) by merging classes in a user defined way..
Initially we will want to work with 3 classes:
water
,road
andnot-water-nor-road
(i.e., all other classes).. so that would be an image where all pixels are either 0 (water), 1 (road), 2 (all other classes)..