public static Disparity CreateFromNode(XmlNode node) { Disparity disp = new Disparity() { DX = int.Parse(node.Attributes["dx"].Value), DY = int.Parse(node.Attributes["dy"].Value), SubDX = double.Parse(node.Attributes["subdx"].Value), SubDY = double.Parse(node.Attributes["subdy"].Value), Cost = double.Parse(node.Attributes["cost"].Value), Confidence = double.Parse(node.Attributes["confidence"].Value), Flags = ParseDisparityFlags(node.Attributes["flags"].Value) }; return disp; }
public void Set(int y, int x, Disparity d) { Disparities[y, x] = d; }