Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPUImageSharpenFilter is different compare to CISharpenLuminance from iOS #542

Open
8kt8 opened this issue Apr 20, 2022 · 0 comments
Open

Comments

@8kt8
Copy link

8kt8 commented Apr 20, 2022

Hello I am trying to achieve a filter effect similar to iOS SharpenLuminescence:

extension SharpenLuminescence {
  func filter(_ image: CIImage) -> CIImage {
    image.applyingFilter(
      "CISharpenLuminance",
      parameters: [
        kCIInputSharpnessKey: sharpness,
        kCIInputRadiusKey: radius,
      ]
    )
  }
}

Using GPUImageSharpenFilter I am getting different results, any idea why and how to achieve a similar effect to iOS?

The left side photo is from ios, radius 20 sharpen 2, the right site is an image with GPUImageSharpenFilter applied.

Screenshot 2022-04-20 at 20 25 39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant