Skip to content

Errors in rotate_image function #5

@aashnapulla

Description

@aashnapulla

The current rotate_image function has several issues:

  • Rotates around the top-left corner instead of the image center, causing shifts and image may go out of bounds (FIXED)
  • Uses forward mapping (each pixel in the source is assigned to a destination pixels), which creates unassigned pixels (holes) in the rotated image.
  • Keeps the output size the same, which crops parts of the image for larger rotation
  • Integer rounding can cause aliasing and misalignment

The following fixes have been made:

  • Rotates around center now
  • Output size is more accommodating but not fully

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestharddifficult issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions