# I need help with optimization of a basic sharpening algorithm

**URL:** <https://discourse.processing.org/t/i-need-help-with-optimization-of-a-basic-sharpening-algorithm/14192>\
**Category:** Coding Questions\
**Created:** [September 25, 2019, 1:09am UTC](https://discourse.processing.org/t/i-need-help-with-optimization-of-a-basic-sharpening-algorithm/14192 "2019-09-25T01:09:12Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![F53](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f53/32/7118_2.png) [@F53](https://discourse.processing.org/u/F53)\
**Post date:** [September 26, 2019, 2:50pm UTC](https://discourse.processing.org/t/i-need-help-with-optimization-of-a-basic-sharpening-algorithm/14192/5 "2019-09-26T14:50:59Z")

</div>

Im going to leave this topic now, but Ill leave anyone in the future who needs this what I did find:

1. rufsketch1’s link goes in detail how shaders work in proccesing 3

> [@rufsketch1](#):
>
> For realtime performance, you’ll need to do this in a [shader](https://processing.org/tutorials/pshader/). That way, instead of looping through every pixel one at a time, the GPU can run the filter on every pixel simultaneously.

1. a sharpening filter developed for an older version of proccesing  
[Processing-Shader-Examples/sharpen\_shader at master · atduskgreg/Processing-Shader-Examples · GitHub](https://github.com/atduskgreg/Processing-Shader-Examples/tree/master/sharpen_shader)
2. another sharpening filter developed for an older version of processing  
[GitHub - couleurs/glsl-sharpen: GLSL module for image sharpening](https://github.com/couleurs/glsl-sharpen)

hopefully this helps in the future

---

_[View the full topic](https://discourse.processing.org/t/i-need-help-with-optimization-of-a-basic-sharpening-algorithm/14192)._
