Skip to content

Implementation of Intensity Clipping Transform #7512

Closed

Description

@KumoLiu

Based on the implementation of the 'ScaleIntensityRangePercentiles' transform, we can add a new transform that only does intensity clipping.

clip: whether to perform clip after scaling.

Activity

  1. jmnolte commented on Mar 5, 2024

    @jmnolte
    Contributor

    I'd be open to create a PR. However, I'd propose adding a soft clipping option as described in this medium article. The advantage is that it preserves the natural ordering of the intensity values thus loosing less contextual information than in the hard clipped version.

  2. KumoLiu commented on Mar 6, 2024

    @KumoLiu
    ContributorAuthor

    Hi @jmnolte, your proposal looks good to me, and we'd be delighted to welcome your contribution. It would indeed be better to offer both soft and hard clipping options for added versatility.
    For your convenience, here is the contribution guide.
    Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions