I need a C# script in Unity to manipulate pixels in a image (increase / decrease) grayscale.

Job ID: 34526320

Budget: $30 – $250 USD

What I need is a "Windowing" script, to do what they call "Windowing" on medical images. (don't need to load medical images, just apply the effect on pre-loaded Texture2Ds).

All the details that you need about "windowing" including some codes are in this link:
https://towardsdatascience.com/a-matter-of-grayscale-understanding-dicom-windows-1b44344d92bd

At the end, I need to be able to import any image as Texture2D or RawImage in Unity and be able to change 2 values: Window Level (WL) and Window Width (WW), changing this values we can see the pixels more or less "white".

You can see a working example on that link:
https://www.dicomlibrary.com/meddream/?study=1.2.826.0.1.3680043.8.1055.1.20111102150758591.92402465.76095170

(Just Left Click on the image and drag the mouse to left / right, up / down and see the image color intensity changing). You can also see the values "W:" and "L:" on the botton left of screen.
What I need for now is only this, change de "W:" and "L:" values and see the color intensity changing on image.

I'll provide a Image for you to test and the visible results in Unity need to be the same as see on a medical viewer like this one on the link.

Any doubts, just ask me.
Related categories: C# Programming Unity 3D Unity