UNCG-DAISY / tinyCamML

flooding on roadways with TinyML
MIT License
2 stars 1 forks source link

remap classes function #14

Closed ebgoldstein closed 2 years ago

ebgoldstein commented 2 years ago

Images have 7 classes:

water road building sidewalk vehicle people other

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)..

Bolewitz commented 2 years ago

added in 43746f4 as class_remapper.ipynb.