public DetectionHelper(NodeHandle node, int cameraNumber, MainWindow w) { sub = node.subscribe <imgDataArray>("/camera" + cameraNumber + "/detects", 1000, detectCallback); this.cameraNumber = cameraNumber; primary = w.mainImages[cameraNumber]; secondary = w.subImages[cameraNumber]; }
private int whichIsIt(object sender) { ROS_ImageWPF.CompressedImageControl c = (sender as ROS_ImageWPF.CompressedImageControl); if (c == null) { return(-1); } for (int i = 0; i < mainImages.Length; i++) { if (mainImages[i] == c) { return(i); } } return(-1); }
public DetectionHelper(NodeHandle node, int cameraNumber, MainWindow w) { sub = node.subscribe<imgDataArray>("/camera" + cameraNumber + "/detects", 1000, detectCallback); this.cameraNumber = cameraNumber; primary = w.mainImages[cameraNumber]; secondary = w.subImages[cameraNumber]; }