Analyzing textures for certain colored pixels

Hey community,

I’m looking for a way to analyse a 2D texture that comes in through a capture card. Think of it a bit like an image mask, starting with pure black from the bottom and at some point, pure white. I now need to know at which y-value in this texture this change occurs.

Is there any way to make that happen inside of Unreal? I don’t need a full script or block, some hints as to where I could build myself such a functionality would be really appreciated.

I’m pretty new to all of this.

Best wishes