With graphs, images can be processed in many different ways. Images can be loaded and analysed, blurred and blended, copied, tiled and transformed. The most versatile node, though creates the image of an ocean statistical spectrum, similar to one you know from Hybrido and RealWave. The information for this image can be used to create force fields and displace surfaces. RealFlow's "Image" nodes support all colour depths from 1 bit to 32 bit per channel.
Nodes
Name | Description |
---|---|
ArrayImageConcat | This node concatenates the inputs 'array0' and 'array1' into a single 'out' array. |
ArrayImageConstant | This node returns a constant array. |
ArrayImageFilterByMask | This node returns the elements of the input 'array' at positions specified by the 'mask' parameter. |
ArrayImageFindAllElementIndices | This node returns all positions in the input 'array', which fit to the input 'element' values. |
ArrayImageFindElement | This node returns the first position of appearance of the input 'element' within the input 'array'. If the array does not contain the element, -1 is returned. |
ArrayImageInsertElement | This node inserts all elements from the 'element' input into the input 'array' at the position specified by 'position'. If 'position' is equal or lower than 0 then the elements are inserted at the beginning of the array. If 'position' is greater or equal than the inputs 'array' size, elements are appended at the end. |
ArrayImageMix | This node creates an output array based on the two inputs 'array0' and 'array1' and the input mask. If the mask value equals 0 then the value of 'array0' is used, if the mask value is 1 the value of 'array1' is used. |
ArrayImagePushElement | This node appends all the elements from the 'element' at the end of the input 'array'. |
ArrayImageRemoveElement | This node removes all elements of the 'by_value' from the input 'array'. The returned mask has the same size as the input 'array' and is set to 0 at removed positions. |
ArrayImageRemoveIndex | This node removes all input array positions by the 'index' input. |
ArrayImageRemoveRepeatedElements | This node removes all repetitions of elements from the input 'array'. The 'new_to_old' array can be used as an 'index' input for a GetArrayElement-Node to restore the original array. The returned mask has the same size as the input 'array' and is set to 0 at removed positions. |
ArrayImageResize | This node resizes the input 'array'. If the result is bigger than the input array, the last value is repeated accordingly. |
ArrayImageReverse | This node reverses the order of the input 'array'. |
ArrayImageSlice | This node returns an array containing the range of the input 'array' from the 'first' position with the given input 'size'.Thus, the output array is a subarray or slice of the input. |
GetArrayImageElement | This node returns the elements of the input 'array' at positions specified by the 'index' parameter. |
GetImageChannel | Returns a greyscale image, containing the selected channel. This node creates a new image. |
GetImageGlobalVariable | This node returns a reference to previously stored variables in global memory (using the SetGlobalVariable-Nodes). |
GetImageInfo | This node returns information about the input 'image'. |
GetImagePixel | This node returns the color of the image at the specified pixel. |
GetImagePixels | This node returns an array containing all the colors of the image. |
ImageBlend | Blend two images with the given factor. 0 result in image 0 and 1 result in image 1. Values in between interpolate the colors of both images. The alpha channel is not touched within this operation and remains the original alpha channel of image 0. |
ImageCanvasResize | Resizes the canvas of the actual image to the provided sizes. The canvas background is filled with the given color & alpha value. |
ImageColorClamp | Clamp color-range of image to 0..1. RealFlow allows colors to be negative and above 1. Thus, this function might be used, to clamp to a normalized color range. |
ImageComposeWithVectorMap | Creates an image, whereas each pixel is accessed by the velocity map (including negative values!). The vectors are encoded into the r & b color values. Can be used for velocity mapping or deforming an image by vectors and velocities. |
ImageComposition | Composition of two input images. Operation is fulfilled on a per pixel-basis. Output size corresponds to input image bottom! The compositions are defined similar to the Adobe Standards (e.g., Photoshop). |
ImageConvert | Converts image to image with given color depth and number of channels. The alpha value is used for 4 channel output images - only if the input image contains no alpha channel. Finally, using the mapping option, a color space transformation can be succeded. Thus, negative values can be encoded into the image. |
ImageCopy | This node duplicates the input value to the output. If you remove this node the output copy will not exist in the graph anymore. |
ImageCreate | Creates empty image with the given size, color depth, number of channels and given background color. In thecase of 4 channels, the alpha value is taken into account. |
ImageCreateTiles | Creates a tiled image with the given number of tiles in both directions. The size of the resulting image scales accordingly. |
ImageDrawCircle | This node draws a circle with the provided position and color into the image. |
ImageDrawQuad | This node draws a quad with the provided position and color into the image. |
ImageGaussianBlur | This node returns a blurred version of the input 'image'. |
ImageInvert | Inverts the colors of the input image. Each color (r, g, b, a) is tranformed according to the set invertion type to either (1-r, 1-g, 1-b, a) or (-r, -g, -b, a). Take note, that the data structure of images within realflow allows negative values. For example, the 'ImageStatisticalSpectrum'-Node creates an image containing negative values. In those cases, use the invertion type '-1*color' to get the expected results. |
ImageMirror | Mirrors image along chosen axis. |
ImageOceanStatisticalSpectrum | Creates an image containing a statistical spectrum similiar to the RealWave statistical spectrum.The input values are defined exactly as described there.The resulting image is 32Bit with 3 Channels. Keep note that the image may contains negative values in the area of -1..1. Thus,to use the result as an image, you may use the mapping function or the 'ImageConvert'-Node using the mapping functionality to map the color range to the area of 0..1. |
ImageRotate | Rotates image according to chosen angle. Note: This node always perform a copy of the image, to tread non-quadratic images correctly. |
ImageRotateFree | Rotates image freely according to chosen angle (in degrees). 'Keep Size' defines, if the original resolution of the image is kept (the image is cropped) or if the image size is increased to the minimum size, which may contain all possible angles, thus, the whole image is kept. Finally, 'color' and 'alpha' describesthe values, which are used for empty areas in the final image. Note: This node always perform a copy of the image. |
ImageScale | Scales image bilinearly to given height and width. Take Note: For downscaling it may be beneficial, to apply a Gaussian filter before scaling. |
ImageSubImage | Returns a subimage of the input image. The subimage is define by the offset and the width. If the subimage exceeds the proportions of the image, the given color & alpha values are set. |
ImageWaveEquation | This node executes the wave equation for the given input image. Thus, propagating waves can be simulated. For stability reasons, the simulation parameters must fulfill the following condition: v < h/dt, whereas h=1/imageResolution. An error is triggered, if the condition is breached. But in some cases, the simulation might explode even in cases, where the condition is fulfilled. In these cases, decrease the timestep and increase the number of steps per timestep. |
SetArrayImageElement | This node returns the elements of the input 'array' at positions specified by the 'index' parameter. |
SetImageChannel | Replaces the chosen channel of the input image with a given greyscale image. |
SetImageGlobalVariable | This node allows the user to create a reference or a copy of the input pin in global memory to be used within other RealFlow graph through the GetGlobalVariable nodes. |
SetImagePixel | This node set the color of the image at the specified pixel. |
SetImagePixels | This node sets the Image given by the input color array. |
ArrayImageConcat
This node concatenates the inputs 'array0' and 'array1' into a single 'out' array.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array0 | Image | The array0 | |
array1 | Image | The array1 |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out array | Image | The out array |
ArrayImageConstant
This node returns a constant array.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
constant | Image | The constant | |
size | Integer (1) | The size |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out array | Image | The out array |
ArrayImageFilterByMask
This node returns the elements of the input 'array' at positions specified by the 'mask' parameter.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array | |
mask | Bit | The mask |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
result | Image | The result |
ArrayImageFindAllElementIndices
This node returns all positions in the input 'array', which fit to the input 'element' values. .
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array | |
element | Image | The value to find in the input array |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
index | Integer | The index | |
mask | Bit | The mask |
ArrayImageFindElement
This node is executed in parallel according to its input pins size.
This node returns the first position of appearance of the input 'element' within the input 'array'. If the array does not contain the element, -1 is returned.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array | |
element | Image | The value to find in the input array | |
start index | Integer | The first index to search the element from |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
index | Integer | The index |
ArrayImageInsertElement
This node inserts all elements from the 'element' input into the input 'array' at the position specified by 'position'. If 'position' is equal or lower than 0 then the elements are inserted at the beginning of the array. If 'position' is greater or equal than the inputs 'array' size, elements are appended at the end.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array | |
element | Image | The value to insert | |
index | Integer (1) | The position to insert the input element on |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out array | Image | The out array |
ArrayImageMix
This node creates an output array based on the two inputs 'array0' and 'array1' and the input mask. If the mask value equals 0 then the value of 'array0' is used, if the mask value is 1 the value of 'array1' is used.
The size of the output is the same as mask's size.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array0 | Image | The array0 | |
array1 | Image | The array1 | |
mask | Bit | The mask |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out array | Image | The out array |
ArrayImagePushElement
This node appends all the elements from the 'element' at the end of the input 'array'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array | |
element | Image | The value to append at the end |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out array | Image | The out array |
ArrayImageRemoveElement
This node removes all elements of the 'by_value' from the input 'array'. The returned mask has the same size as the input 'array' and is set to 0 at removed positions.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array | |
element | Image | The value to remove all its instances from the input array |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out array | Image | The out array | |
mask | Bit | The mask |
ArrayImageRemoveIndex
This node removes all input array positions by the 'index' input. .
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array | |
index | Integer | The positions of the input array to remove |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out array | Image | The out array |
ArrayImageRemoveRepeatedElements
This node removes all repetitions of elements from the input 'array'. The 'new_to_old' array can be used as an 'index' input for a GetArrayElement-Node to restore the original array. The returned mask has the same size as the input 'array' and is set to 0 at removed positions.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
new to old | Integer | The new to old | |
mask | Bit | The mask | |
out array | Image | The out array |
ArrayImageResize
This node resizes the input 'array'. If the result is bigger than the input array, the last value is repeated accordingly.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array | |
size | Integer (1) | The size |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out array | Image | The out array |
ArrayImageReverse
This node reverses the order of the input 'array'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out array | Image | The out array |
ArrayImageSlice
This node returns an array containing the range of the input 'array' from the 'first' position with the given input 'size'.Thus, the output array is a subarray or slice of the input.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array | |
first | Integer (1) | The position of the element that will be the first of the output array | |
size | Integer (1) | The total number of elements to copy from the input array. If value is negative, all the elements from 'first' are copied to the output array |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out array | Image | The out array |
GetArrayImageElement
This node returns the elements of the input 'array' at positions specified by the 'index' parameter.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array | |
index | Integer | The index |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
element | Image | The element |
GetImageChannel
The algorithm to perform the operation of this node is multithreaded.
Returns a greyscale image, containing the selected channel. This node creates a new image.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
channel | The channel |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
GetImageGlobalVariable
This node returns a reference to previously stored variables in global memory (using the SetGlobalVariable-Nodes).
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
name | String (1) | The name |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out | Image | The out |
GetImageInfo
This node returns information about the input 'image'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
width | Integer | The width | |
height | Integer | The height | |
pix depth | Integer | The pix depth | |
bit depth | Integer | The bit depth | |
color planes | Integer | The number of channels of the image | |
gamma | Real | The gamma |
GetImagePixel
This node returns the color of the image at the specified pixel.
The pixel must be inside the range of the image height and with. Otherwise the output 'color' is set to black.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image (1) | The image | |
x | Integer | The x coordinate of the pixel. Starting from the left | |
y | Integer | The y coordinate of the pixel. Starting from the bottom |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
color | Color4 | The color |
GetImagePixels
This node returns an array containing all the colors of the image.
Pixel colors are sorted by rows. First pixel in the array is the bottom left pixel.
The output 'colors' array is a copy of the input data.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
colors | Color4 | The colors |
ImageBlend
The algorithm to perform the operation of this node is multithreaded.
Blend two images with the given factor. 0 result in image 0 and 1 result in image 1. Values in between interpolate the colors of both images. The alpha channel is not touched within this operation and remains the original alpha channel of image 0.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image 0 | Image | out image | The image 0 |
image 1 | Image | The image 1 | |
blend factor | Real (1) | The blend factor |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | image 0 | The out image |
ImageCanvasResize
The algorithm to perform the operation of this node is multithreaded.
Resizes the canvas of the actual image to the provided sizes. The canvas background is filled with the given color & alpha value.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
width | Integer (1) | The width | |
height | Integer (1) | The height | |
position | The position | ||
color | Color4 (1) | The color | |
alpha | Real (1) | The alpha |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageColorClamp
The algorithm to perform the operation of this node is multithreaded.
Clamp color-range of image to 0..1. RealFlow allows colors to be negative and above 1. Thus, this function might be used, to clamp to a normalized color range.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageComposeWithVectorMap
The algorithm to perform the operation of this node is multithreaded.
Creates an image, whereas each pixel is accessed by the velocity map (including negative values!). The vectors are encoded into the r & b color values. Can be used for velocity mapping or deforming an image by vectors and velocities.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
vector map | Image | out image | The vector map |
scale factor | Real (1) | The scale factor |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | vector map | The out image |
ImageComposition
The algorithm to perform the operation of this node is multithreaded.
Composition of two input images. Operation is fulfilled on a per pixel-basis. Output size corresponds to input image bottom! The compositions are defined similar to the Adobe Standards (e.g., Photoshop).
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image top | Image | The image top | |
image bottom | Image | image | The image bottom |
operation | The operation |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | PassThrough | image bottom | The image |
ImageConvert
The algorithm to perform the operation of this node is multithreaded.
Converts image to image with given color depth and number of channels. The alpha value is used for 4 channel output images - only if the input image contains no alpha channel. Finally, using the mapping option, a color space transformation can be succeded. Thus, negative values can be encoded into the image.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
color depth | The color depth | ||
channels | The channels | ||
alpha value | Real (1) | The alpha value | |
mapping | The mapping |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageCopy
This node duplicates the input value to the output. If you remove this node the output copy will not exist in the graph anymore.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | Image | The value to duplicate |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
copy | Image | A copy of the input |
ImageCreate
The algorithm to perform the operation of this node is multithreaded.
Creates empty image with the given size, color depth, number of channels and given background color. In thecase of 4 channels, the alpha value is taken into account.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
size x | Integer (1) | The size x | |
size y | Integer (1) | The size y | |
color depth | The color depth | ||
channels | The channels | ||
background color | Color4 (1) | The background color | |
background alpha | Real (1) | The background alpha |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image |
ImageCreateTiles
The algorithm to perform the operation of this node is multithreaded.
Creates a tiled image with the given number of tiles in both directions. The size of the resulting image scales accordingly.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
tiles x | Integer (1) | The tiles x | |
tiles y | Integer (1) | The tiles y |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageDrawCircle
The algorithm to perform the operation of this node is multithreaded.
This node draws a circle with the provided position and color into the image.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image (1) | The image | |
x | Integer | The x coordinate of the center of the circle. Starting from the left | |
y | Integer | The y coordinate of the center of the circle. Starting from the bottom | |
radius | Integer | The radius of the circle in pixel | |
color | Color4 | The color |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageDrawQuad
The algorithm to perform the operation of this node is multithreaded.
This node draws a quad with the provided position and color into the image.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image (1) | The image | |
x | Integer | The x coordinate of the center of quad. Starting from the left | |
y | Integer | The y coordinate of the center of quad. Starting from the bottom | |
size | Integer | The side length of the quad in pixel | |
color | Color4 | The color |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageGaussianBlur
The algorithm to perform the operation of this node is multithreaded.
This node returns a blurred version of the input 'image'.
The original 'image' remains the same after the node action, since 'out image' copies original data before performing the filter.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
radius | Integer | The radius |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageInvert
The algorithm to perform the operation of this node is multithreaded.
Inverts the colors of the input image. Each color (r, g, b, a) is tranformed according to the set invertion type to either (1-r, 1-g, 1-b, a) or (-r, -g, -b, a). Take note, that the data structure of images within realflow allows negative values. For example, the 'ImageStatisticalSpectrum'-Node creates an image containing negative values. In those cases, use the invertion type '-1*color' to get the expected results.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
invert type | The invert type |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageMirror
The algorithm to perform the operation of this node is multithreaded.
Mirrors image along chosen axis.
A vertical axis means that pixels from the left side are transposed to the right, using a vertical symmetry axis.
A horizontal axis means that pixels from the top side are transposed to the bottom, using a horizontal symmetry axis.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
axis | The axis for mirroring the image |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageOceanStatisticalSpectrum
The algorithm to perform the operation of this node is multithreaded.
Creates an image containing a statistical spectrum similiar to the RealWave statistical spectrum.The input values are defined exactly as described there.The resulting image is 32Bit with 3 Channels. Keep note that the image may contains negative values in the area of -1..1. Thus,to use the result as an image, you may use the mapping function or the 'ImageConvert'-Node using the mapping functionality to map the color range to the area of 0..1.
The normalize switch enables normalization of the map according to the first frame (time=0) - thus, the map results in exactly the same height values like e.g. in the hybrido displacement.
The white caps are define dy the jacobian of the spectrum. The resulting image is 32Bit with 1 channel. The intensity of the iwhite caps can be defined with the provided scale factor.
scale shouldn be greater than one for images. .
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
absolute time | Real | The absolute time | |
time factor | Real (1) | The time factor | |
scale | Vector3 (1) | The scale | |
normalize | Bit (1) | The normalize | |
map to 0-1 | Bit (1) | The map to 0-1 | |
resolution | The resolution | ||
depth | Real (1) | The depth | |
dimension | Real (1) | The dimension | |
wind speed | Real (1) | The wind speed | |
wind direction | Real (1) | The wind direction | |
wind alignment | Real (1) | The wind alignment | |
min wave length | Real (1) | The min wave length | |
weight against wind | Real (1) | The weight against wind | |
choppiness | Real (1) | The choppiness | |
seed | Integer (1) | The seed | |
white caps scale | Real (1) | The white caps scale | |
repeat u | Real (1) | The repeat u | |
repeat v | Real (1) | The repeat v |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
image spectrum | Image | The image spectrum | |
image white caps | Image | The image white caps |
ImageRotate
The algorithm to perform the operation of this node is multithreaded.
Rotates image according to chosen angle. Note: This node always perform a copy of the image, to tread non-quadratic images correctly.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
degree | The degree |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageRotateFree
The algorithm to perform the operation of this node is multithreaded.
Rotates image freely according to chosen angle (in degrees). 'Keep Size' defines, if the original resolution of the image is kept (the image is cropped) or if the image size is increased to the minimum size, which may contain all possible angles, thus, the whole image is kept. Finally, 'color' and 'alpha' describesthe values, which are used for empty areas in the final image. Note: This node always perform a copy of the image.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
degree | Real (1) | The degree | |
keep image size | Bit (1) | The keep image size | |
color | Color4 (1) | The color | |
alpha | Real (1) | The alpha |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageScale
The algorithm to perform the operation of this node is multithreaded.
Scales image bilinearly to given height and width. Take Note: For downscaling it may be beneficial, to apply a Gaussian filter before scaling.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
width | Integer (1) | The width | |
height | Integer (1) | The height | |
smooth | Bit | The smooth |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageSubImage
The algorithm to perform the operation of this node is multithreaded.
Returns a subimage of the input image. The subimage is define by the offset and the width. If the subimage exceeds the proportions of the image, the given color & alpha values are set.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image | The image | |
offs x | Integer (1) | The offs x | |
offs y | Integer (1) | The offs y | |
width | Integer (1) | The width | |
height | Integer (1) | The height | |
color | Color4 (1) | The color | |
alpha | Real (1) | The alpha |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
ImageWaveEquation
The algorithm to perform the operation of this node is multithreaded.
This node executes the wave equation for the given input image. Thus, propagating waves can be simulated. For stability reasons, the simulation parameters must fulfill the following condition: v < h/dt, whereas h=1/imageResolution. An error is triggered, if the condition is breached. But in some cases, the simulation might explode even in cases, where the condition is fulfilled. In these cases, decrease the timestep and increase the number of steps per timestep.
A flat surface is defined as RGB=(0.5f, 0, 0) - for a flat surface, you might start with an initial image filled up with that color. The height of the waves is stored after the propagation step in the green channel!To create waves, only paint into the green or red channel! For values below 0.5 negative waves are created and for values above 0.5 positive waves are created. To create reflective objects, paint them into the red channel with a value of 0.5.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image (1) | Input Image, with 32Bit color depth and at least 3 channels! Otherwise, an error is triggered | |
dt | Real (1) | Simulation Timestep | |
velocity | Real (1) | Wave Velocity | |
damping | Real (1) | Damping of wave height. Values from 0 (no Damping) to 1 (total Damping). Recommended are values between 0 and 0.1 | |
boundaries | Simulation Boundaries: Closed (negative) - Waves are reflected negatively at the borders, Closed (positive) - Waves are reflected positively at the borders, Open (fade out) - Waves are not reflected at the borders, but faded out at the border, Tiled - Waves continue on the opposite side of the grid | ||
no of steps | Integer (1) | Number of simulation steps per execution (can be used to increase propagation speed) |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
SetArrayImageElement
This node returns the elements of the input 'array' at positions specified by the 'index' parameter.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Image | The array | |
index | Integer | The index | |
element | Image | The element |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
result | Image | The result |
SetImageChannel
The algorithm to perform the operation of this node is multithreaded.
Replaces the chosen channel of the input image with a given greyscale image.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image input | Image | image | The image input |
image channel | Image | The image channel | |
channel | The channel |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | PassThrough | image input | The image |
SetImageGlobalVariable
This node allows the user to create a reference or a copy of the input pin in global memory to be used within other RealFlow graph through the GetGlobalVariable nodes.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
name | String (1) | The name | |
in | Image | through | The in |
store copy | Bit (1) | The store copy |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
through | PassThrough | in | The value connected to the input |
out copy | Image | The value copied in memory in case a copy has been performed. The same input value otherwise |
SetImagePixel
This node set the color of the image at the specified pixel.
The pixel must be inside the range of the image height and with.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
image | Image (1) | The image | |
x | Integer | The x coordinate of the pixel. Starting from the left | |
y | Integer | The y coordinate of the pixel. Starting from the bottom | |
color | Color4 | The color |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |
SetImagePixels
The algorithm to perform the operation of this node is multithreaded.
This node sets the Image given by the input color array.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
colors | Color4 | The colors | |
image | Image | The image |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out image | Image | The out image |