ColorSamplerV1

This node samples the color of an image and plot the values to a LookupCurve node. It also gives you some option to manipulate the data from the sampling including applying a Douglas-Peucker curve simplification algorithm.

Updated: 15 December 2015

Author: hdmoser

Compatible Nuke versions: 7.0 or later

Compatibility:

Input node | this node

You may either type the name of the node outputing the image to be sampled or check

the this node option to sample from the connected input.

 

ColorLookup | Create node | Selected node

You must enter the name of a LookupCurve node by typing it in the text field or by

selecting the node and then clicking the Selected node button.

You may also click the Create node button to create a new ColorLookup node and

automatically fill in the text field.

 

Threshold | reduce points

The reduce points option eliminate duplicate values and applies the DouglasPeucker

algorithm in order to reduce the number of points in your curve without losing the main

shape of the curve. You may adjust the number of points that will be kept by changing

the Threshold value. A smaller threshold will give you a more points,

so it will result in a curve closer to the original.

 

X normalization

The X-normalization value defines the total extent of the plotted curves in the X axis.

 

Pixel spacing

This value defines the space between each color sampled picked from the input node. A value of 1 would sample every single pixel of the image, but I would not recommending entering a value smaller then 5.

 

Sort | Reverse

Sort the sampled values in order from lowest to highest value. The reverse checkbox reverse the order of the sampled values. If the sort checkbox is marked on the result will be a list from high to low.

 

Analyze | r | g| b

The analyze button execute the sampling on the selected channels - r, g and b.

Sign in or register to download or rate.