public RawDataReader(string filename, RawReaderMode mode, RemoteDataStore remoteDataStore = null, bool camFastRead = false)
 {
     _FileName        = filename;
     _Mode            = mode;
     _Remote          = remoteDataStore != null;
     _RemoteDataStore = remoteDataStore;
     _CamFastRead     = camFastRead;
 }
Beispiel #2
0
        public static void ExporterSettingsVORemote(double fxO, double fyO, double cxO, double cyO, double fxN, double fyN, double cxN, double cyN, int width, int height, double k1, double k2, double k3, double k4, string outputPath, List <double> responseValues, byte[] vignette, string hostname, string ipAddress, string username, string password)
        {
            RemoteDataStore remoteDataStore = new RemoteDataStore(ipAddress, username, password);

            remoteDataStore.UploadContentToFile(string.Format("{0}/camera.txt", outputPath), string.Format(CultureInfo.InvariantCulture, "EquiDistant\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\n{8}\t{9}\n{10}\t{11}\t{12}\t{13}\t0\n{8}\t{9}", fxO / width, fyO / height, cxO / width, cyO / height, k1, k2, k3, k4, width, height, fxN / width, fyN / height, cxN / width, cyN / height));
            remoteDataStore.UploadContentToFile(string.Format("{0}/pcalib.txt", outputPath), string.Format("{0}\r\n", string.Join(" ", responseValues.Select(c => string.Format(CultureInfo.InvariantCulture, "{0}", c)))));
            remoteDataStore.UploadContentToFile(string.Format("{0}/vignette.png", outputPath), vignette);
            remoteDataStore.ExecuteCommands(new List <string>()
            {
                string.Format("mkdir {0}/log", outputPath)
            }, string.Format("{0}@{1}:.{{0,}}[$]", username, hostname));
        }