Get pixel value of one picture where it is white in another one...

asked 2019-03-27 07:24:59 -0500


I got two pictures with the same format.

That is the original picture:
image description

And that is the Black White Picture:
image description

In real case, both of this pictures have the same format.

Is it possible to get the value of every colored pixel at the location, where the Black/White Image has the white color? I need only this pixels to perform a histogramm calculation, without all the surrounding stuff. In the end it's important to have a performant way of doing that, as this operation is performed in a loop.

Thank you in advance, Jan

edit retag flag offensive close merge delete