if(InputV3{0.,0.,0.}==n)// only way to be invalid => {0, 0, 0}
// if (is_invalid(n))
{
returnnodata_res;
}
...
...
@@ -277,6 +364,9 @@ private:
AddParameter(ParameterType_OutputImage,"out","Image of normal vectors");
SetParameterDescription("out","Image of normal vectors");
AddParameter(ParameterType_Bool,"mean","Compute normals from means of cartesian positions on each side");
SetParameterDescription("mean","Compute normals from means of cartesian positions on each side. By default, use only the positions of the 4 immediate side pixels (right, left, above, below)");