This is RenderMan 21 Documentation you are viewing. The Rmanwiki home page will redirect you to the current documentation.

Page tree

Contents

list BoundingBox(pixel)

Find the bounding box of all pixels that are greater than the specified threshold.

It makes no sense for the threshold to be anything but a card

The list returned has four elements that are; (origin x, origin y, size x, size y)

Parameters

pixel

Threshold (ice.Image).

 

ice.Image Mean(box)

Computes the average value of each channel over a specified rectangular region. An image is returned, but it is always 1x1, the single pixel representing the mean.

Parameters

box

Mean computed over this region (list).

 

list Histogram(nBins, range)

Returns an List of histograms, one for each channel. Each histogram is a List

For efficiency reasons, Fractional (8-bit) images always return histograms with 256 bins.

Parameters

nBins

Number of bins in histogram (int). 

range

Range of values to bin (list).

ice.Image Range(computeBox, interval)

Computes the range of each channel in the image. Values outside of the interval have no effect on the result. The result is an image with two pixels: the first at (0,0) contains minimum values for each channel, and the second at (1,0) the maximum values. The result image has the same ply as the input image. You can pass this range image directly to the Normalize operator

This operation is not lazy-evaluated: if called on an existing expression, it will trigger evaluation.

 

Parameters

computeBox

Region over which range is computed (list). 

interval

Minimum and maximum pixel value to consider (list).