Exemple #1
0
        // Constructor. CameraProperties remain constant during the mission
        public CAMFrame(CAMProperties camera)
        {
            zeroCamDistance = RTDPSettings.geolocationSettings.zeroCamDistance;
            zeroCamPanRoll  = RTDPSettings.geolocationSettings.zeroCamPanRoll;

            camPosition = camera.camPosition;

            scaleFactor = camera.pixelPitch;
            offsetX     = (camera.imageHeight - 1) * scaleFactor / 2;
            offsetY     = (camera.imageWidth - 1) * scaleFactor / 2;
            focalLength = camera.focalLength;

            camAngles = camera.camAngles;
            cosPitch  = Math.Cos(camAngles.Pitch);
            sinPitch  = Math.Sin(camAngles.Pitch);
            if (zeroCamPanRoll)
            {
                cosYaw = cosRoll = 1;
                sinYaw = sinRoll = 0;
            }
            else
            {
                cosYaw  = Math.Cos(camAngles.Yaw);
                sinYaw  = Math.Sin(camAngles.Yaw);
                cosRoll = Math.Cos(camAngles.Roll);
                sinRoll = Math.Sin(camAngles.Roll);
            }

            R_BODY_CAM = null;
            R_CAM_BODY = null;
        }
Exemple #2
0
        // Constructor. CameraProperties remain constant during the mission
        public CAMFrame(CAMProperties camera)
        {
            zeroCamDistance = RTDPSettings.geolocationSettings.zeroCamDistance;
            zeroCamPanRoll = RTDPSettings.geolocationSettings.zeroCamPanRoll;

            camPosition = camera.camPosition;

            scaleFactor = camera.pixelPitch;
            offsetX = (camera.imageHeight - 1) * scaleFactor / 2;
            offsetY = (camera.imageWidth - 1) * scaleFactor / 2;
            focalLength = camera.focalLength;

            camAngles = camera.camAngles;
            cosPitch = Math.Cos(camAngles.Pitch);
            sinPitch = Math.Sin(camAngles.Pitch);
            if (zeroCamPanRoll)
            {
                cosYaw = cosRoll = 1;
                sinYaw = sinRoll = 0;
            }
            else
            {
                cosYaw = Math.Cos(camAngles.Yaw);
                sinYaw = Math.Sin(camAngles.Yaw);
                cosRoll = Math.Cos(camAngles.Roll);
                sinRoll = Math.Sin(camAngles.Roll);
            }

            R_BODY_CAM = null;
            R_CAM_BODY = null;
        }
        public Geolocation(CAMProperties camera, GPSProperties gps)
        {
            this.camera = camera;
            this.gps    = gps;

            this.nedFrame = new LNEDFrame(gps);
            this.camFrame = new CAMFrame(camera);
        }
Exemple #4
0
        public Geolocation(CAMProperties camera, GPSProperties gps)
        {
            this.camera = camera;
            this.gps = gps;

            this.nedFrame = new LNEDFrame(gps);
            this.camFrame = new CAMFrame(camera);
        }
Exemple #5
0
        Rectangle viLockRectangle; // VI rectangle corresponding to the IR image

        public IrViMapper(CAMProperties irCam, CAMProperties viCam)
        {
            // Camera properties remain constant during the flight
            irCamera = irCam;
            viCamera = viCam;

            // IR and VI image size
            M_ir = irCamera.imageHeight;
            N_ir = irCamera.imageWidth;
            M_vi = viCamera.imageHeight;
            N_vi = viCamera.imageWidth;
        }
        Rectangle viLockRectangle; // VI rectangle corresponding to the IR image

        public IrViMapper(CAMProperties irCam, CAMProperties viCam)
        {
            // Camera properties remain constant during the flight
            irCamera = irCam;
            viCamera = viCam;

            // IR and VI image size
            M_ir = irCamera.imageHeight;
            N_ir = irCamera.imageWidth;
            M_vi = viCamera.imageHeight;
            N_vi = viCamera.imageWidth;
        }
Exemple #7
0
 static UASProperties()
 {
     irCamProperties = new CAMProperties();
     viCamProperties = new CAMProperties();
     gpsProperties = new GPSProperties();
 }
Exemple #8
0
        float refArea;     // Reference area for estimation of the hot spot magnitude

        public Segmentation(CAMProperties camera)
        {
            this.camera = camera;
        }
Exemple #9
0
 public Fusion(CAMProperties irCam, CAMProperties viCam)
 {
     this.map = new IrViMapper(irCam, viCam);
 }
 static UASProperties()
 {
     irCamProperties = new CAMProperties();
     viCamProperties = new CAMProperties();
     gpsProperties   = new GPSProperties();
 }
        float refArea;     // Reference area for estimation of the hot spot magnitude

        public Segmentation(CAMProperties camera)
        {
            this.camera = camera;
        }
Exemple #12
0
 public Fusion(CAMProperties irCam, CAMProperties viCam)
 {
     this.map = new IrViMapper(irCam, viCam);
 }