﻿ Transform Templates - Tile

# Transform Templates - Tile

This topic discusses application of the Transform Dialog with Tables on a tile field in a table. See the Transform Dialog and Transform Templates topics for use and for links to lists of templates for other data types for tables and use of the Transform Dialog with other components, such as Drawings and Images.

Many tile functions are the tile equivalents of mathematical functions operating on numeric fields.  In the case of tiles, the computation is performed upon the tile pixel value within a tile and put into the corresponding tile pixel in the target.   Tile functions are all GPGPU enabled.

 Absolute Value Take the absolute value of the tile pixel value in the source field and put it into the target field.  Absolute value leaves positive numbers unchanged and converts negative numbers into their positive equivalents. Add Add two values and put the result into the target field. Arc Cosine Take the arc cosine (inverse cosine) of the source field and put it into the target field. Arc Sine Take the arc sine (inverse sine) of the source field and put it into the target field. Arc Tangent Take the arc tangent (inverse tangent) of the source field and put it into the target field. Arc Tangent of Ratio Take the arc tangent (inverse tangent) of the ratio between the DY field and the DX field and put into the target field. Base 10 Logarithm Put the base 10 logarithm (also called the common logarithm) of the source field into the target field. Base 2 Logarithm Put the base 2 logarithm (also called the binary logarithm) of the source field into the target field. Bessel J0 A Bessel function of the first kind: Put the result of the Bessel function J0(x) using the source field as x into the target. Bessel J1 A Bessel function of the first kind: Put the result of the Bessel function J1(x) using the source field as x into the target. Bessel Jn The nth Bessel function of the first kind: Put the result of the Bessel function Jn(x) for Order n using the source field as x into the target.  Specifying 2 for Order uses a J2(x) Bessel function.  Using 0 or 1 for the Order is equivalent to using J0(x) or J1(x), respectively. Bessel Y0 A Bessel function of the second kind: Put the result of the Bessel Function Y0(x) using the source field as x into the target. Bessel Y1 A Bessel function of the second kind: Put the result of the Bessel Function Y1(x) using the source field as x into the target. Bessel Yn The nth Bessel function of the second kind: Put the result of the Bessel Function Yn(x) for Order n using the source field as x into the target.  Specifying 2 for Order uses a Y2(x) Bessel function.  Using 0 or 1 for the Order is equivalent to using Y0(x) or Y1(x), respectively. Blur Take the source field, Interpolate pixel values based on radius and power, averaging pixel values over a square array of pixels, and place the result in the target field.  The Radius value sets the number of pixels from the center pixel to the edge:  A Radius of 1 results in a 3x3 pixel array. The Power value is the weight to give the center pixel: a weight of 1 means not to emphasize it.  A weight of 5 means to give the center pixel's value five times the value in averaging compared to other pixels in the array. Ceiling Put the rounded up integer value of the source field into the target field. Ceiling up to Decimals Put the value of the source field rounded up to the specified number of Decimal positions into the target field. Complementary Error Function Take the complementary error function (also called erfc(z) ) of the source field and put it into the target field. Cosine Take the cosine of the source field and put it into the target field. Cube Root Take the cube root of the source field and put it into the target field. Divide Divide the source field by the divide field and put the result into the target field. Divide and Truncate Divide the source field by the divide field and put the integer part of the result into the target field. Error Function Take the error function (also called erf(z) ) of the source field and put it into the target field. Exponent The exponential function: Take e to the power of the source field and place result into the target field. For anything but small numbers in the source field such exponentiation very rapidly results in numbers larger than can be represented in most types and thus stores a NULL in the target. Floor Put the rounded down integer value of the source field into the target field. Floor down to Decimals Put the value of the source field rounded up to the specified number of Decimal positions into the target field. Fractional Part Take only the decimal fraction portion of the source and put into the target field. Fractional Part from Decimals Take only the decimal fraction portion of the source beyond the specified number of Decimal positions and put into the target field. Gamma Function Put the gamma function for the source field into the target field. Hyperbolic Arc Cosine Put the hyperbolic arc cosine of the source field into the target field. Hyperbolic Arc Sine Put the hyperbolic arc sine of the source field into the target field. Hyperbolic Arc Tangent Put the hyperbolic arc tangent of the source field into the target field. Hyperbolic Cosine Put the hyperbolic cosine of the source field into the target field. Hyperbolic Sine Put the hyperbolic sine of the source field into the target field. Hyperbolic Tangent Put the hyperbolic tangent of the source field into the target field. Hypotenuse The great and ancient Pythagorean theorem: The square root of the sum of the squares of the two sides of a right triangle.  Save into the target the value of the hypotenuse taking two given source fields as DX and DY. Log-gamma Function The log-gamma function takes the natural logarithm of the gamma function for the source field and stores the result into the target field. Logarithm Put the base e logarithm (also called the natural logarithm) of the source field into the target field. Maximum Value Take the maximum, that is the greater value, of either the source field or the comparison field and save into the target field. Modulo The remainder (of a congruence) function: Take what is left over by the integral division of the source field by the given Divide by value and place into the target field. Multiply Multiply the two source fields and place the result into the target field. Negate Multiply the source field by -1 and place the result into the target field. Noise Place random noise values into pixels over the given range. Parse Base64 String Takes a base64-encoded string that encodes a tile value, convert it back into the original value and store into the tile. Parse Hex String Takes a hex-encoded string that encodes a tile value, convert it back into the original value and store into the tile. Power Compute the source field to the power of the specified Power value and put the result into the target field. A Power of 2 is the source field squared while a Power of 3 is the source field cubed. Power of 10 Compute 10 to the power of the source field and put the result into the target field.  If the source field has values 1, 2, 3,... the result of Power of 10 will be 10, 100, 1000,....   For anything but small numbers in the source field such exponentiation very rapidly results in numbers larger than can be represented in most types and thus stores a NULL in the target. Power of 2 Compute 2 to the power of the source field and put the result into the target field.  If the source field has values 1, 2, 3,... the result of Power of 2 will be 2, 4, 8,....   For anything but small numbers in the source field such exponentiation very rapidly results in numbers larger than can be represented in most types and thus stores a NULL in the target. Reciprocal Cube Root Also known as the inverse cube root: Take 1 divided by the cube root of the source field and put the result into the target field. Reciprocal Square Root Also known as the inverse square root: Take 1 divided by the square root of the source field and put the result into the target field. Round Round a source field with a fractional part up or down to the nearest integer and put the result into the target field. Round to Decimals Round a source field with a fractional part up or down to the number of decimals specified by  Decimals and put the result into the target field. Sign For a source field that is positive or negative put a 1 or -1 respectively into the target field. Sine Take the sine of the source field and put it into the target field. Square Root Take the square root of the source field and put it into the target field. Subtract Subtract one source field from the other and put the result into the target field. Tangent Take the tangent of the source field and put it into the target field. Truncate Take the integer part of the source field, discarding any decimal fraction part, and put the result into the target field. Truncate to Decimals Take the integer part of the source field as well as any decimal fraction up to the specified number of Decimal places, discarding any decimal fraction part beyond, and put the result into the target field.

## Notes

Everything Math - For a handy reference to anything in mathematics, see the Wolfram MathWorld site.   Thank you Wolfram!

Transform Dialog

Transform Options

Transform Templates - Drawings

Transform Templates - Images

Transform Templates - Binary

Transform Templates - Boolean

Transform Templates - Datetime

Transform Templates - Geom

Transform Templates - Numeric

Transform Templates - Text

Transform Templates - Tile

Transform: Center and Centroids

Transform: Escape Templates

Transform: Overlay Topology

Transform: Voronoi Diagrams