示例#1
0
        public void AssignLabelSessionValues()
        {
            SessionHandler sessionHandler = ReferenceHandler.Instance.GetSessionHandler();

            _sessionDataType   = Util.DataLoadInfo._dataType;
            _sessionSourcePath = Util.DataLoadInfo._sourceDataPath;
            _sessionName       = sessionHandler.Session._sessionName;
            _currentCLoud      = sessionHandler.Session.GetCurrentPointCloudIndex();
            _labelWorkingSet   = Labeling.GetAllIdsNamesAndSerializedColors();

            List <PointCloud> _pointClouds = sessionHandler.Session._pointClouds;

            for (int i = 0; i < _pointClouds.Count; i++)
            {
                List <GameObject> points = _pointClouds[i]._validPoints;
                _pathToPointCloudData.Add(_pointClouds[i]._pathToPointCloudData);
                _positionsX.Add(new List <float>());
                _positionsY.Add(new List <float>());
                _positionsZ.Add(new List <float>());
                _IDs.Add(new List <int>());
                _Label.Add(new List <uint>());
                _groundPoint.Add(new List <int>());
                for (int j = 0; j < points.Count; j++)
                {
                    Vector3          pos  = points[j].transform.position;
                    CustomAttributes attr = points[j].GetComponent <CustomAttributes>();
                    _positionsX[i].Add(pos.x);
                    _positionsY[i].Add(pos.y);
                    _positionsZ[i].Add(pos.z);
                    _IDs[i].Add(attr._ID);
                    _Label[i].Add(attr._label);
                    _groundPoint[i].Add(attr._groundPoint);
                }
            }
        }
示例#2
0
    private void Receive_HDF5Damiler_SessionName(string sessionName_inp)
    {
        datatype    = Util.Datatype.hdf5_DaimlerLidar;
        sessionName = sessionName_inp;
        string desktopPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop);
        string userInfo    = "Choose a directory or a file with HDF5-Data";

        FileBrowserScript.Show(desktopPath, ".hdf5", LoadFromPath, userInfo);
    }
示例#3
0
    private void Receive_PCD_SessionName(string sessionName_inp)
    {
        datatype    = Util.Datatype.pcd;
        sessionName = sessionName_inp;
        string desktopPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop);
        string userInfo    = "Choose a directory or a file with PCD-Data";

        FileBrowserScript.Show(desktopPath, ".pcd", LoadFromPath, userInfo);
    }