image_doc module
- image_doc.classify_inventory_cnn(earthquake_inventory_features, rainfall_inventory_features, test_inventory_features)
function to give probability of testing inventory belonging to earthquake and rainfall class
- Parameters:
- earthquake_inventory_features (array_like)
is landslide images of known earthquake inventories landslides
- rainfall_inventory_features (array_like)
is landslide images of known rainfall inventories landslides
- test_inventory_features (array_like)
is landslide images of known testing inventory landslides
- Returns:
(array_like) probability of testing inventory landslides belonging to earthquake and rainfall class
- image_doc.increase_resolution_polygon(data)
function to increase the data points between two neighbouring vertex of landslide polygon to get smooth images
- Parameters:
- data (array_like)
easting and northing coordinates data of landslide polygon
- Returns:
(array_like) linear interpolated data of landslide polygon
- image_doc.latlon_to_eastnorth(lonlat_polydata)
function to convert the (longitude latitude) coordinates of polygons to (easting, northing) coordinates
- Parameters:
- lonllat_polydata (array_like)
longitude and latitude coordinates data
- Returns:
(array_like) easting and northing coordinates of landslide polygon data when polygon data has longitude latitude coordinates
- image_doc.make_ls_images(poly_data)
function to convert landslide polygon to images
- Parameters:
- poly_data
readed landslide inventory shapefile
- Returns:
(array_like) binary pixels values of landslide polygon Image
- image_doc.plot_geometric_results(predict_proba)
function to visualize the trigger prediction of landslides in testing inventory
- Parameters:
- predict_proba (array_like)
probability of each landslide in inventory class belonging to earthquake and rainfall class.
- Returns:
Visualization of landslide probabilities belong to earthquake and rainfall class and trigger prediction of entire landslide inventory
- image_doc.read_shapefiles(path_filename)
function to read the shapefile from the local file path of landslide inventory
- Parameters:
- path_filename (str)
path to local inventory shapefiles
- Returns:
read shapefile from file path
- image_doc.train_augment(train_data, train_label)
This function is used to augment the training data by rotating image by 90, 180, 270 degree and flipping image horizontally and vertically
- Parameters:
- train_data (array_like)
training data
- train_label (array_like)
training label
- Returns:
augmented training data and labels