GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AlbertoLanaro/ImagePatchExtractor: Image patch extractor with mask

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
samples
samples
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
patch_extractor.py
patch_extractor.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Patch Extractor with Masks

Simple python script that extract a given number of overlapping patches from a set of images and their corresponding masks (optionally). The script can be run with several input parameters:

  • --input_imgs_path: path to images folder [str - required]
  • --input_masks_path: path to masks folder [str - optional]
  • --n_patches: number of extracted patches per image. If None, the maximum number of patches is extracted [int - optional].
  • --patch_size: patch dimensions, i.e. (patch_size, patch_size) [int - required]

Dependencies

All the dependencies are detailed in the requirements.txt file and can be installed with pip and the following command: pip3 install -r requirements.txt

Example

The script can be launched as follows:

python3 patch_extractor.py -i samples/ -s 50

Here are two examples of patches extracted from a set if images and their correnspondent masks:

About

Image patch extractor with mask

Topics

computer-visiondeepextractorimage-processingimage-segmentationmachine-learningmaskpatch-extractionpreprocessingpython

Resources

Readme
MIT license
Activity

Stars

4 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.