How to sample image data from a node?

Is there a way to sample a node’s values via Python in Natron?

What I’m hoping to find is a similar function to Nuke’s node.sample functionality.


Hello again;

Just bumping this item…is there a way to sample image data using Python in Natron?

I notice I can swipe an area within the viewer using shift+click-drag and it appears to give me an average RGB value within the bounds of the area…is it possible to do something like this with python?

Many thanks!

not quite - there’s no access to images from Python.
What you can do is connect an ImageStatistics node, set the analysis rectangle to a single pixel, and read out the Mean value.