Skip to content

Sobel edge detection implemented on PyTorch, You'll know how to have hand engineered parameters. A good file to know about the workings of PyTorch.

Notifications You must be signed in to change notification settings

Joshi-Atharva/sobel-operator-pytorch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sobel-operator-python

Introduction

This repo is Sobel edge detection implemented on PyTorch. Sobel edge detection works by sliding a kernel and performing cross correlation operation.

Since Conv2d in PyTorch (and other frameworks like Tensorflow or Keras) is essentially an optimized implementation of cross correlation operation, we can take advantage of this to perform Sobel Edge detector in a very quick and optimized way.

This is expandable to other filters that utilizes cross correlation operation such as Gaussian Blur, and Laplacian.

Running the Code

python main.py

Requirements

torch 1.4.0 numpy 1.18.1 opencv-python 4.2.0.34 

Results

About

Sobel edge detection implemented on PyTorch, You'll know how to have hand engineered parameters. A good file to know about the workings of PyTorch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%