IceMan Reference Guide |
Strictly speaking, these are not "operators" in the conventional sense, because they create new IceImage instances. They are accessed from the scripting language by sending the class name IceImage the messages below. This would be analogous to using a static member function in C++.
All these operations create a leaf node: a node with no inputs forming the leaves of an image processing expression.
Create a card, or an image of constant color. Cards are evaluated upon creation, unlike other images.
Create an image of a specified type, ply and size that's filled with a specified color. This is like a card, except that it has finite dimensions, and is not allocated until used.
Create an image filled with Gaussian noise in the specified range. Mean and standard deviation are specified as a pair of floating point values.
Create an image with a filled polygon. Edges are anti-aliased using a super-sampling grid specifed in samples. (5, 5) is usually sufficient.
color := IceImage Card(IceComponentType Float, 1.0, 0.5, 0.3) vertices := list(list(228, 343), list(387, 218), list(478, 357), list(682, 233), list(746, 338), list(778, 450), list(629, 547), list(391, 545), list(388, 348), list(332, 331), list(275, 398), list(189, 386)) samples := list(5, 5) p := IceImage PolygonFill(color, vertices, samples) |
Create an image filled with values uniformly distributed in the specified range.
size := list(0, 0, 300, 200) range := list(0.4, 0.6) seed := 398493 p := IceImage UniformNoise(IceComponentType Fractional, 3, size, range, seed) |
This is a function to create a general color ramp. The angle is specified in degrees from the vertical. The center of the ramp is where the pixel value is exactly half-way between minimum and maximum values. The width is specified in pixels along the direction of variation. The range of values in the ramp is restricted to clampVal. The parameter easeInOut contains the ease-in point, below which the ramp smoothly reduces to the minimum value, and the ease-out point, above which the ramp smoothly "decelerates" to the maximum value. Ease-in/out points are expressed as fractions of the total ramp width.
In the example shown below, the angle of the ramp is 32.3, its center is at pixel coordinates (150.6, 100.1), its width is 363.4 pixels, its values are clamped between 0 and 0.85, and the ease-in and ease-out points are 36.34 pixels from either end of the ramp.
size := list(0, 0, 300, 200) center := list(156.2, 100.1) minAndMax := list(0, 0.85) ease := list(0.1, 0.1) p := IceImage Ramp(IceComponentType Float, 3, size, 32.3, center, 363.4, minAndMax, ease) |
Given the values of a function f(x, y) at arbitrary points on the 2D pixel planes, compute values for all points on the pixel grid by radial basis function interpolation.
size := list(0, 0, 300, 200) centers := list(list(10, 10), list(50,50), list(200,100)) valuesAtCenters := list(0.4, 0.6, 0.8) sphereOfInfluence := .5 freezeEdges := 0 p := IceImage RBFInterp(size, centers, valuesAtCenters, sphereOfInfluence, freezeEdges) |
Sparkle and glow kernels for selective convolution. This operation produces 3-channel kernels for sparkle and glow effects. It is typically used in conjunction with ConvolveSelective and ConvolveTrig.
sizePoint := list(300, 200) center := list(150,100) slitAngle := 23 kind := IceSparkleType FraunhoferSlits p := IceImage Sparkle(kind, sizePoint, center, IceComponentType Fractional, slitAngle) |
Pixar Animation Studios
|