Esempio n. 1
0
        public static PinholeCamera getTestCamera()
        {
            var mat = new double[, ] {
                { 3479.3332725692153, 0, 1499.9382892470603 }, { 0, 3458.5791417359405, 1142.7454458370041 }, { 0, 0, 1 }
            };
            var m = new CameraIntrinsics(mat);
            var c = new PinholeCamera(m);

            c.PictureSize    = new Size(3072, 2304);
            c.Cv_DistCoeffs5 = new[] { 0.062813787874286389, -3.0485685802388809, -0.0017951735131834098, -0.00040688209299854, 14.91660690214403 };
            return(c);
        }
Esempio n. 2
0
        /// <summary>
        /// echt geteste camera Casio EX-Z120
        /// </summary>
        /// <returns></returns>
        public static PinholeCamera getTestCameraHuawei()
        {
            var mat = new double[, ] {
                { 3441.0667667434618, 0, 2090.8502187520326 }, { 0, 3432.3907417119017, 1561.5316432859202 }, { 0, 0, 1 }
            };
            var m = new CameraIntrinsics(mat);
            var c = new PinholeCamera(m);

            c.PictureSize    = new Size(4160, 3120);
            c.Cv_DistCoeffs5 = new[] { 0.24230691691999853, -0.92897577071991688, -0.00073617836680420852, 0.0015104681489398752, 1.0576231378646423 };
            return(c);
        }
Esempio n. 3
0
 public PinholeCamera(CameraIntrinsics m)
 {
     _intrinsics = m;
     _intrinsics.PropertyChanged += (o, s) => { OnPropertyChanged("Intrinsics." + s.PropertyName); };
 }
Esempio n. 4
0
 public PinholeCamera()
     : base()
 {
     _intrinsics = new CameraIntrinsics();
     _intrinsics.PropertyChanged += (o, s) => { OnPropertyChanged("Intrinsics." + s.PropertyName); };
 }