Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Add two augmentation functions: rotate and light change #1170

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

qizhen816
Copy link

@qizhen816 qizhen816 commented Dec 2, 2019

  1. bounding box and polygon/mask rotate
  • Using OpenCV getRotationMatrix2D to get rotaton matrix from the angle given by config files.

  • Bounding box points are calculated as well as polygon instance points.

  • Binary mask rotate code is uploaded but note tested yet due to the lack of dataset.

  • before:

image

  • after(-20 degree):

image

  1. image vertical/horizontal linear light change
  • Given a linear light interval limit L, then the image light will be linearly adjusted within [-L, L].
  • The function is separated to work vertically or horizontally.
  • before:
    image
  • after(L=100, vertical):
    image
  • after(L=100, horizontal):
    image

bounding box and polygon/mask rotate
image vertical/horizontal linear light change
@facebook-github-bot
Copy link

Hi qizhen816! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Dec 2, 2019
@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants