예제 #1
0
        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);
        }
예제 #2
0
 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;
 }
예제 #3
0
        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 { }
            }
        }