static public Image <Rgb, byte> SetKeyPont(Image <Rgb, byte> image, OriantatioOnMap oriantation, Bgr color) { Image <Rgb, byte> result = image.Clone(); Features2DToolbox.DrawKeypoints(image, oriantation.VectorMapKeyPoint, result, color); return(result); }
public Navigation(OriantatioOnMap OoM, Icon baseIcon, Icon lostSignalIcon, Point cameraSize, Point?location = null) { this.OoM = OoM; this.baseIcon = baseIcon; this.lostSignalIcon = lostSignalIcon; this.lost = lostSignalIcon.Coordinate; this.cameraSize = cameraSize; this.k = cameraSize.X * 0.95 / (2 * Math.PI); this.Location = location; }
private void OpenFile_Click(object sender, RoutedEventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { try { Mat SourceMat = new Mat(openFileDialog.FileName, ImreadModes.AnyColor); Image <Rgb, byte> source = new Image <Rgb, byte>(SourceMat.Bitmap); oriantation = new OriantatioOnMap(source, parametrs, Compression, Diameter); SetMap(source); } catch { } } }