Comments (4)
Looking at this site I guess I could have simplified this by asking for shearing in the Y direction not just the X. Perhaps this library already does that!
from imgaug.
What you want sounds like a transformation that moves two corners of the same image side closer together, similar to shear in the images, just applied to two sides at the same time.
I guess the easiest way to achieve that might be PiecewiseAffineTransform (see example), with the original image corners as source points and the new image corners (with two of them closer together) as the target points.
from imgaug.
from imgaug.
You can probably simulate that door effect with PiecewiseAffineTransform. The current Affine
augmenter has a shear parameter, but that one maps to AffineTransform's shear parameter. Their doc says about it just Shear angle in counter-clockwise direction as radians
, so not sure if it is x- or y-direction shear.
from imgaug.
Related Issues (20)
- Script takes over one hour to install through pycharm on 224GB 24CPUs DSVM HOT 1
- [Enhancement] Comment in imgaug/augmenters/_init_.py is not correct
- Customize image augmentation HOT 1
- Assigning Probability in imgaug OneOf HOT 1
- Add distortion/fisheye effect
- Project dependencies may have API risk issues
- Is this project abandoned? HOT 8
- how to use imgaug to aug single image just one time?
- Out Of Memory (OOM) error in perspective transformation
- Support for Oriented Bouding Boxes
- AttributeError: module 'imgaug.augmenters' has no attribute 'LinearmnContrast' HOT 1
- numpy 1.20 bool deprecation HOT 1
- AttributeError: 'FigureCanvasAgg' object has no attribute 'set_window_title' HOT 2
- PIL version leads to immutable error
- It doesnt support latestversion of numpy HOT 2
- Track Random Augmentations as They Are Applied
- how to generate such image effect from clear images? I want to simulate scanner effects
- ImportError: cannot import name 'QhullError' from 'scipy.spatial' (/opt/conda/lib/python3.10/site-packages/scipy/spatial/__init__.py) HOT 3
- [BUG] show_grid and draw_grid are incompatible
- AttributeError: 'Delaunay' object has no attribute 'vertices'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgaug.