public GeometricCalibrator(GeometricCalibrator.Settings settings, MarkerDetector.Settings detectorSettings, MarkedPlane markedPlane, ProjectiveDevice projectiveDevice) { base.\u002Ector(); GeometricCalibrator geometricCalibrator1 = this; this.allObjectMarkers = new LinkedList(); this.allImageMarkers = new LinkedList(); this.tempImage = (object) null; this.lastDetectedMarkers = (Marker[]) null; GeometricCalibrator geometricCalibrator2 = this; throw new NoClassDefFoundError("com.googlecode.javacv.cpp.opencv_core$CvMat"); }
public ColorCalibrator(ProjectiveDevice device) { base.\u002Ector(); ColorCalibrator colorCalibrator = this; this.device = device; }
public override void setSettings(ProjectiveDevice.Settings settings) { base.setSettings(settings); this.settings = !(settings is ProjectiveDevice.CalibrationSettings) ? (!(settings is ProjectiveDevice.CalibratedSettings) ? (CameraDevice.Settings) new CameraDevice.SettingsImplementation(settings) : (CameraDevice.Settings) new CameraDevice.CalibratedSettings((ProjectiveDevice.CalibratedSettings) settings)) : (CameraDevice.Settings) new CameraDevice.CalibrationSettings((ProjectiveDevice.CalibrationSettings) settings); if (this.settings.getName() != null && String.instancehelper_length(this.settings.getName()) != 0) return; CameraDevice.Settings settings1 = this.settings; StringBuilder stringBuilder = new StringBuilder().append("Camera "); string str1 = "%2d"; object[] objArray = new object[1]; int index = 0; Integer deviceNumber = this.settings.getDeviceNumber(); objArray[index] = (object) deviceNumber; string str2 = String.format(str1, objArray); string str3 = stringBuilder.append(str2).toString(); settings1.setName(str3); }
public CalibrationSettings(ProjectiveDevice.CalibrationSettings settings) : base(settings) { CameraDevice.CalibrationSettings calibrationSettings = this; this.si = (CameraDevice.SettingsImplementation) new CameraDevice\u0024CalibrationSettings\u00241(this); if (!(settings is CameraDevice.CalibrationSettings)) return; this.si = new CameraDevice.SettingsImplementation((ProjectiveDevice.Settings) ((CameraDevice.CalibrationSettings) settings).si); }
public SettingsImplementation(ProjectiveDevice.Settings settings) : base(settings) { CameraDevice.SettingsImplementation settingsImplementation1 = this; this.deviceNumber = (Integer) null; this.deviceFile = (File) null; this.devicePath = (string) null; this.frameGrabber = (Class) null; this.format = ""; this.imageWidth = 0; this.imageHeight = 0; this.frameRate = 0.0; this.triggerMode = false; this.triggerFlushSize = 5; this.bpp = 0; this.colorMode = FrameGrabber.ColorMode.__\u003C\u003ERAW; this.timeout = 10000; this.numBuffers = 4; this.deinterlace = false; if (!(settings is CameraDevice.SettingsImplementation)) return; CameraDevice.SettingsImplementation settingsImplementation2 = (CameraDevice.SettingsImplementation) settings; this.deviceNumber = settingsImplementation2.deviceNumber; this.deviceFile = settingsImplementation2.deviceFile; this.devicePath = settingsImplementation2.devicePath; this.frameGrabber = settingsImplementation2.frameGrabber; this.format = settingsImplementation2.format; this.imageWidth = settingsImplementation2.imageWidth; this.imageHeight = settingsImplementation2.imageHeight; this.frameRate = settingsImplementation2.frameRate; this.triggerMode = settingsImplementation2.triggerMode; this.triggerFlushSize = settingsImplementation2.triggerFlushSize; this.bpp = settingsImplementation2.bpp; this.colorMode = settingsImplementation2.colorMode; this.timeout = settingsImplementation2.timeout; this.numBuffers = settingsImplementation2.numBuffers; this.deinterlace = settingsImplementation2.deinterlace; }
public ProCamGeometricCalibrator(ProCamGeometricCalibrator.Settings settings, MarkerDetector.Settings detectorSettings, MarkedPlane boardPlane, MarkedPlane projectorPlane, ProjectiveDevice camera, ProjectiveDevice projector) { ProCamGeometricCalibrator.Settings settings1 = settings; MarkerDetector.Settings detectorSettings1 = detectorSettings; MarkedPlane boardPlane1 = boardPlane; MarkedPlane projectorPlane1 = projectorPlane; GeometricCalibrator[] cameraCalibrators = new GeometricCalibrator[1]; int index = 0; GeometricCalibrator geometricCalibrator = new GeometricCalibrator((GeometricCalibrator.Settings) settings, detectorSettings, boardPlane, camera); cameraCalibrators[index] = geometricCalibrator; GeometricCalibrator projectorCalibrator = new GeometricCalibrator((GeometricCalibrator.Settings) settings, detectorSettings, projectorPlane, projector); // ISSUE: explicit constructor call this.\u002Ector(settings1, detectorSettings1, boardPlane1, projectorPlane1, cameraCalibrators, projectorCalibrator); }
public ProjectiveTransformer(ProjectiveDevice d1, ProjectiveDevice d2, object n, double[] referencePoints1, double[] referencePoints2) { // ISSUE: type reference ByteCodeHelper.DynamicCast(n, __typeref (ProjectiveTransformer), "com.googlecode.javacv.cpp.opencv_core$CvMat"); object K1 = d1.cameraMatrix; object obj1 = d2.cameraMatrix; object obj2 = d2.R; object obj3 = d2.T; object obj4 = n; double[] numArray1 = referencePoints1; double[] numArray2 = referencePoints2; double[] numArray3 = numArray1; object obj5 = obj4; object obj6 = obj3; object obj7 = obj2; object K2 = obj1; object R = obj7; object t = obj6; object n1 = obj5; double[] referencePoints1_1 = numArray3; double[] referencePoints2_1 = numArray2; // ISSUE: explicit constructor call this.\u002Ector(K1, K2, R, t, n1, referencePoints1_1, referencePoints2_1); }
public virtual void setSettings(ProjectiveDevice.Settings settings) { this.settings = settings; }
public virtual object getRectifyingHomography(ProjectiveDevice peer, object H) { // ISSUE: type reference ByteCodeHelper.DynamicCast(H, __typeref (ProjectiveDevice), "com.googlecode.javacv.cpp.opencv_core$CvMat"); // ISSUE: type reference object obj1 = ByteCodeHelper.DynamicCast(ProjectiveDevice.relativeR3x3.get(), __typeref (ProjectiveDevice), "com.googlecode.javacv.cpp.opencv_core$CvMat"); // ISSUE: type reference object obj2 = ByteCodeHelper.DynamicCast(ProjectiveDevice.relativeT3x1.get(), __typeref (ProjectiveDevice), "com.googlecode.javacv.cpp.opencv_core$CvMat"); object ca1_1 = this.R; object obj3 = peer.R; double num1 = 1.0; // ISSUE: variable of the null type __Null local = null; double num2 = 0.0; object obj4 = obj1; int num3 = 2; object obj5 = obj4; double num4 = num2; object obj6 = (object) local; double num5 = num1; object ca2_1 = obj3; double d1_1 = num5; object ca3_1 = obj6; double d2_1 = num4; object ca4_1 = obj5; int i1 = num3; opencv_core.cvGEMM(ca1_1, ca2_1, d1_1, ca3_1, d2_1, ca4_1, i1); object ca1_2 = obj1; object obj7 = peer.T; double num6 = -1.0; object obj8 = this.T; double num7 = 1.0; object obj9 = obj2; int num8 = 0; object obj10 = obj9; double num9 = num7; object obj11 = obj8; double num10 = num6; object ca2_2 = obj7; double d1_2 = num10; object ca3_2 = obj11; double d2_2 = num9; object ca4_2 = obj10; int i2 = num8; opencv_core.cvGEMM(ca1_2, ca2_2, d1_2, ca3_2, d2_2, ca4_2, i2); // ISSUE: type reference ByteCodeHelper.DynamicCast(ProjectiveDevice.R13x3.get(), __typeref (ProjectiveDevice), "com.googlecode.javacv.cpp.opencv_core$CvMat"); // ISSUE: type reference ByteCodeHelper.DynamicCast(ProjectiveDevice.P13x4.get(), __typeref (ProjectiveDevice), "com.googlecode.javacv.cpp.opencv_core$CvMat"); // ISSUE: type reference ByteCodeHelper.DynamicCast(ProjectiveDevice.R23x3.get(), __typeref (ProjectiveDevice), "com.googlecode.javacv.cpp.opencv_core$CvMat"); // ISSUE: type reference ByteCodeHelper.DynamicCast(ProjectiveDevice.P23x4.get(), __typeref (ProjectiveDevice), "com.googlecode.javacv.cpp.opencv_core$CvMat"); opencv_core.cvSize((peer.imageWidth + this.imageWidth) / 2, (peer.imageHeight + this.imageHeight) / 2); object obj12 = peer.cameraMatrix; object obj13 = this.cameraMatrix; object obj14 = peer.distortionCoeffs; object obj15 = this.distortionCoeffs; throw new NoClassDefFoundError("com.googlecode.javacv.cpp.opencv_core$CvSize"); }
public ProjectiveDevice(ProjectiveDevice.Settings settings) { base.\u002Ector(); ProjectiveDevice projectiveDevice = this; this.imageWidth = 0; this.imageHeight = 0; this.cameraMatrix = (object) null; this.distortionCoeffs = (object) null; this.extrParams = (object) null; this.reprojErrs = (object) null; this.R = (object) null; this.T = (object) null; this.E = (object) null; this.F = (object) null; this.colorOrder = "BGR"; this.colorMixingMatrix = (object) null; this.additiveLight = (object) null; this.colorR2 = 1.0; this.undistortMap1 = (object) null; this.undistortMap2 = (object) null; this.distortMap1 = (object) null; this.distortMap2 = (object) null; this.setSettings(settings); if (!(settings is ProjectiveDevice.CalibratedSettings)) return; this.readParameters(((ProjectiveDevice.CalibratedSettings) settings).parametersFile); }
public Settings(ProjectiveDevice.Settings settings) { ProjectiveDevice.Settings settings1 = this; this.name = ""; this.responseGamma = 0.0; this.name = settings.name; this.responseGamma = settings.responseGamma; }
public CalibrationSettings(ProjectiveDevice.CalibrationSettings settings) : base((ProjectiveDevice.Settings) settings) { ProjectiveDevice.CalibrationSettings calibrationSettings = this; this.initAspectRatio = 1.0; this.flags = 14720; this.initAspectRatio = settings.initAspectRatio; this.flags = settings.flags; }
public CalibratedSettings(ProjectiveDevice.CalibratedSettings settings) : base((ProjectiveDevice.Settings) settings) { ProjectiveDevice.CalibratedSettings calibratedSettings = this; this.parametersFile = new File("calibration.yaml"); this.parametersFile = settings.parametersFile; }
public static void write(string filename, params ProjectiveDevice[][] devices) { int length1 = 0; ProjectiveDevice[][] projectiveDeviceArray1 = devices; int length2 = projectiveDeviceArray1.Length; for (int index = 0; index < length2; ++index) { ProjectiveDevice[] projectiveDeviceArray2 = projectiveDeviceArray1[index]; length1 += projectiveDeviceArray2.Length; } ProjectiveDevice[] projectiveDeviceArray3 = new ProjectiveDevice[length1]; int num = 0; ProjectiveDevice[][] projectiveDeviceArray4 = devices; int length3 = projectiveDeviceArray4.Length; for (int index1 = 0; index1 < length3; ++index1) { ProjectiveDevice[] projectiveDeviceArray2 = projectiveDeviceArray4[index1]; int length4 = projectiveDeviceArray2.Length; for (int index2 = 0; index2 < length4; ++index2) { ProjectiveDevice projectiveDevice1 = projectiveDeviceArray2[index2]; ProjectiveDevice[] projectiveDeviceArray5 = projectiveDeviceArray3; int index3 = num; ++num; ProjectiveDevice projectiveDevice2 = projectiveDevice1; projectiveDeviceArray5[index3] = projectiveDevice2; } } ProjectiveDevice.write(filename, projectiveDeviceArray3); }
public SettingsImplementation(ProjectiveDevice.Settings settings) : base(settings) { ProjectorDevice.SettingsImplementation settingsImplementation1 = this; this.screenNumber = CanvasFrame.getScreenDevices().Length > 1 ? 1 : 0; this.latency = 120L; this.imageWidth = 0; this.imageHeight = 0; this.bitDepth = 0; this.refreshRate = 0; if (!(settings is ProjectorDevice.SettingsImplementation)) return; ProjectorDevice.SettingsImplementation settingsImplementation2 = (ProjectorDevice.SettingsImplementation) settings; this.screenNumber = settingsImplementation2.screenNumber; this.latency = settingsImplementation2.latency; this.imageWidth = settingsImplementation2.imageWidth; this.imageHeight = settingsImplementation2.imageHeight; this.bitDepth = settingsImplementation2.bitDepth; this.refreshRate = settingsImplementation2.refreshRate; }
public CalibrationSettings(ProjectiveDevice.CalibrationSettings settings) : base(settings) { ProjectorDevice.CalibrationSettings calibrationSettings1 = this; this.si = (ProjectorDevice.SettingsImplementation) new ProjectorDevice\u0024CalibrationSettings\u00241(this); this.brightnessBackground = 0.0; this.brightnessForeground = 1.0; if (!(settings is ProjectorDevice.CalibrationSettings)) return; ProjectorDevice.CalibrationSettings calibrationSettings2 = (ProjectorDevice.CalibrationSettings) settings; this.si = new ProjectorDevice.SettingsImplementation((ProjectiveDevice.Settings) calibrationSettings2.si); this.brightnessBackground = calibrationSettings2.brightnessBackground; this.brightnessForeground = calibrationSettings2.brightnessForeground; }