This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<script> | |
L_NO_TOUCH = false; | |
L_DISABLE_3D = false; | |
</script> | |
<script src="https://cdn.jsdelivr.net/npm/leaflet@1.6.0/dist/leaflet.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from matplotlib.collections import PatchCollection | |
from matplotlib.patches import Polygon | |
import matplotlib.pyplot as plt | |
import numpy as np | |
############################################################################### | |
def plot_all_transforms(input_image, pixel_coords, mask_image, dist_image, | |
figsize=(8,8), plot_name='', add_global_title=False, | |
colorbar=False, add_titles=False, | |
poly_face_color='orange', poly_edge_color='red', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Dec 21 09:46:53 2016 | |
@author: avanetten | |
""" | |
''' | |
Transform SpaceNet geojson buidling labels data into raster masks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Dec 21 09:46:53 2016 | |
@author: avanetten | |
""" | |
''' | |
See https://github.com/SpaceNetChallenge/utilities/tree/master/python/spaceNet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
from matplotlib.collections import PatchCollection | |
from matplotlib.patches import Polygon | |
import matplotlib.pyplot as plt | |
import numpy as np | |
############################################################################### | |
def plot_building_mask(input_image, pixel_coords, mask_image, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
from matplotlib.collections import PatchCollection | |
from matplotlib.patches import Polygon | |
import matplotlib.pyplot as plt | |
import numpy as np | |
############################################################################### | |
def plot_truth_coords(input_image, pixel_coords, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
''' | |
See https://github.com/SpaceNetChallenge/utilities/tree/master/python/spaceNet | |
for more code | |
''' | |
from osgeo import gdal, ogr, gdalnumeric | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
from osgeo import gdal, ogr | |
############################################################################### | |
def create_building_mask(rasterSrc, vectorSrc, npDistFileName='', | |
noDataValue=0, burn_values=1): | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
from osgeo import gdal, osr | |
import numpy as np | |
import json | |
import sys | |
#################### | |
# download spacenet utilities from: |