Skip to content

Transforms v2 documentation not congruent w/ fn parameters (padding_mode) #9149

@diaz-esparza

Description

@diaz-esparza

📚 The doc issue

In many geometric transformations (e.g.: ElasticTransform, RandomAffine, ...) there's a fill parameter specified, and its description states:

Pixel fill value used when the padding_mode is constant [...]

Issue is, the padding_mode parameter does not exist in the majority of these transforms' constructors! It's a very minor nitpick, but still 😉

Suggest a potential alternative/fix

The quickest fix is obviously removing the part that says 'when the padding_mode is constant', but it could also be turned into a very fun feature request!

A way to implement this functionality would be to just add a quick computation to find out the image size necessary to cover all the frame, perform the Pad transform, and finally complete the geometric transform. There might be a few edge cases though, so that could possibly require some testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy