Compositor: How to get min/max over image

I am diving into compositor and can not find the way to calculate min/max value over image in some area (for example the most distant Z value over some masked object). Are there any way to do this?

There is level node which definitely calculates them (to get mean/std), but this values are not present in outputs.

Any help welcome

1 Like