Skip to content

A python file to mask a georeferenced image with shapefile

Notifications You must be signed in to change notification settings

shresthaasim43/ImageMasking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ImageMasking

Introduction

Masking an image with our area of interest is a common approach in geospatial field. However, using heavy apps to perform this simple operation is a time consuming process. So, a user can use this python program to mask a georeferenced image with a user selected shapefile.

Working

At first compilation of this program, user is directed to a user interface of this program, with a window, contating four buttons as shown in the figure below:

rawimage

User guide

This user guide helps you to use the buttons on the user interface shown above for producing the masked image of your area of interest.

  1. Add Image: Press Add Image button to add the georeferenced image file from your local directory.

  2. Add Shape file: After pressing this button, you are directed to your local directories, where you shall choose the area of intrest(AOI) of your project in ".shp format"

  3. Mask Image: This button when pressed, masks the input image with AOI and saves the masked image to the user selected directory. Masked Successfully will be labelled to the right of this button after the task is completed.

  4. Plot Results: Click this button to visualize the user input image, masking shapefile of AOI overlayed on it, and the masked image in two subplot area. Snapshot of the plot is shown below: rawimage Futher a video, showing the working of this program is demonstrated below for better understanding: rawimage

About

A python file to mask a georeferenced image with shapefile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages