combine three scalars into an RGB image
module DVcombine_rgb {
Mesh_Unif+Dim2+Byte+Space2+Node_Data+Iparam &in1;
Mesh_Unif+Dim2+Byte+Space2+Node_Data+Iparam &in2;
Mesh_Unif+Dim2+Byte+Space2+Node_Data+Iparam &in3;
Node_Data+Byte out_nd {
nnodes => in1.nnodes;
nnode_data = 1;
node_data {
veclen = 3;
id = 669;
values+nres => combine_array(in1.node_data[0].values,
in2.node_data[0].values,
in3.node_data[0].values);
};
};
Mesh_Unif+Dim2+Byte+Space2+Node_Data+OPort2 &out =>
merge(out_nd, in1, in2, in3);
};
DVcombine_rgb combines three scalar 2D, 2-space byte input fields into an RGB image. It sets the resulting vector node data set's ID to tell the renderer that it is an RGB image.
Mesh_Unif+Dim2+Byte+Space2+Node_Data. This field represents the red channel of the image.
Mesh_Unif+Dim2+Byte+Space2+Node_Data. This field represents the green channel of the image.
Mesh_Unif+Dim2+Byte+Space2+Node_Data. This field represents the blue channel of the image.
Mesh_Unif+Dim2+Byte+Space2+Node_Data+OPort2. The output vector (image) field containing the combined three scalar fields.