nuketesting.image_checks.sample_comparator

Module for in memory pixel comparisons.

Classes

SampleComparator

Image comparator that uses nuke.sample for processing image data.

Module Contents

class SampleComparator

Image comparator that uses nuke.sample for processing image data.

This comparison is quite slow. It needs to compute the full image of both nodes.

static assert_equal(node_a: nuke.Node, node_b: nuke.Node) None

Assert that both nodes output the same pixels.

Parameters:
  • node_a – first test node.

  • node_b – second test node.

Raises:

AssertionError – the two nodes are not equal based on the testing criteria.