Skip to content

BrightnessProcessor incorrectly scales HalfSingle values. #1459

@maxvoxel8

Description

@maxvoxel8

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of ImageSharp
  • I have verified if the problem exist in both DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

Description

BrightnessProcessor simply scales values with no regard for values like HalfSingle whose minimum value is not zero. Presumably other FilterProcessors also have this problem.

Steps to Reproduce

Create an Image<HalfSingle> with -1 pixel values and apply a brightness scale to it. The image should remain the same, instead -1 values will be multiplied by the scale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions