Skip to content

Instantly share code, notes, and snippets.

@PratyushTripathy
Last active September 3, 2019 11:18
Show Gist options
  • Save PratyushTripathy/ceb0210824cd4790c39a27732e042015 to your computer and use it in GitHub Desktop.
Save PratyushTripathy/ceb0210824cd4790c39a27732e042015 to your computer and use it in GitHub Desktop.
from pyrsgis.convert import changeDimension
featuresBangalore = changeDimension(featuresBangalore)
labelBangalore = changeDimension (labelBangalore)
featuresHyderabad = changeDimension(featuresHyderabad)
nBands = featuresBangalore.shape[1]
labelBangalore = (labelBangalore == 1).astype(int)
print("Bangalore multispectral image shape: ", featuresBangalore.shape)
print("Bangalore binary built-up image shape: ", labelBangalore.shape)
print("Hyderabad multispectral image shape: ", featuresHyderabad.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment