Hi Dave,
It is the MorphologicalTransformation.structureWayTable property. See for example:
var P = new MorphologicalTransformation;
P.operator = MorphologicalTransformation.prototype.Erosion;
P.interlacingDistance = 1;
P.lowThreshold = 0.000000;
P.highThreshold = 0.000000;
P.numberOfIterations = 1;
P.amount = 1.00;
P.selectionPoint = 0.50;
P.structureName = "";
P.structureSize = 3;
P.structureWayTable = [ // mask
[[
0x01,0x01,0x01,
0x01,0x01,0x01,
0x01,0x01,0x01
]]
];
Elements of structureWayTable can be one or zero. Another example with a 3-way median filter:
var P = new MorphologicalTransformation;
P.operator = MorphologicalTransformation.prototype.Median;
P.interlacingDistance = 1;
P.lowThreshold = 0.000000;
P.highThreshold = 0.000000;
P.numberOfIterations = 2;
P.amount = 1.00;
P.selectionPoint = 0.50;
P.structureName = "5x5 Three-Way Structure";
P.structureSize = 5;
P.structureWayTable = [ // mask
[[
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00
]],
[[
0x00,0x00,0x01,0x00,0x00,
0x00,0x00,0x01,0x00,0x00,
0x01,0x01,0x00,0x01,0x01,
0x00,0x00,0x01,0x00,0x00,
0x00,0x00,0x01,0x00,0x00
]],
[[
0x01,0x00,0x00,0x00,0x01,
0x00,0x01,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x01,0x00,
0x01,0x00,0x00,0x00,0x01
]]
];