コード例 #1
0
ファイル: CAMFrame.cs プロジェクト: yehia2amer/Alter-Native
        // 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;
        }
コード例 #2
0
ファイル: CAMFrame.cs プロジェクト: KAW0/Alter-Native
        // 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;
        }
コード例 #3
0
        public Geolocation(CAMProperties camera, GPSProperties gps)
        {
            this.camera = camera;
            this.gps    = gps;

            this.nedFrame = new LNEDFrame(gps);
            this.camFrame = new CAMFrame(camera);
        }
コード例 #4
0
ファイル: Geolocation.cs プロジェクト: KAW0/Alter-Native
        public Geolocation(CAMProperties camera, GPSProperties gps)
        {
            this.camera = camera;
            this.gps = gps;

            this.nedFrame = new LNEDFrame(gps);
            this.camFrame = new CAMFrame(camera);
        }
コード例 #5
0
ファイル: IrViMapper.cs プロジェクト: KAW0/Alter-Native
        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;
        }
コード例 #6
0
ファイル: IrViMapper.cs プロジェクト: yehia2amer/Alter-Native
        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;
        }
コード例 #7
0
ファイル: UASProperties.cs プロジェクト: KAW0/Alter-Native
 static UASProperties()
 {
     irCamProperties = new CAMProperties();
     viCamProperties = new CAMProperties();
     gpsProperties = new GPSProperties();
 }
コード例 #8
0
ファイル: Segmentation.cs プロジェクト: KAW0/Alter-Native
        float refArea;     // Reference area for estimation of the hot spot magnitude

        public Segmentation(CAMProperties camera)
        {
            this.camera = camera;
        }
コード例 #9
0
ファイル: Fusion.cs プロジェクト: KAW0/Alter-Native
 public Fusion(CAMProperties irCam, CAMProperties viCam)
 {
     this.map = new IrViMapper(irCam, viCam);
 }
コード例 #10
0
 static UASProperties()
 {
     irCamProperties = new CAMProperties();
     viCamProperties = new CAMProperties();
     gpsProperties   = new GPSProperties();
 }
コード例 #11
0
        float refArea;     // Reference area for estimation of the hot spot magnitude

        public Segmentation(CAMProperties camera)
        {
            this.camera = camera;
        }
コード例 #12
0
ファイル: Fusion.cs プロジェクト: yehia2amer/Alter-Native
 public Fusion(CAMProperties irCam, CAMProperties viCam)
 {
     this.map = new IrViMapper(irCam, viCam);
 }