Log polar transformation in torchvision.transforms
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17.9k
- Forks
- 7.3k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 13
Description
🚀 The feature
Log polar transformation for images, which maps an image from the 2D Cartesian coordinate system to the log-polar system.
This transformation each pixel [x, y] to the (ρ, θ) coordinate system, where ρ is the log of the distance from the center and θ is the angle.
Motivation, pitch
I've been researching ways of making one of my CNNs rotation invariant and happened to find this paper. I looked all over the docs for a similar transformation but couldn't find any, so I was wondering if this transformation could be included in the torchvision.transforms module in order to make it easier to do this type of preprocessing on images.
Alternatives
No response
Additional context
I already have a minimal implementation for my personal use that is based on existing transformations in the package. If you think this feature will be useful, I could polish it up and open a pull request to merge it.
cc @vfdev-5 @datumbox
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the torchvision.transforms module by reviewing the existing image transformations and the proposed minimal implementation mentioned in the issue. Define the transform's log-polar coordinate behavior and verify that it maps image pixels as described, including the distance and angle outputs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100