public Labeling Get(int processOrderNR, TimeSpan timeOfTest)
        {
            //create empty user object
            Labeling l = null;

            //query database
            using (SqlCommand cmd = new SqlCommand(GET_ONE, SQLConnectionSingleton.Instance.DbConnection))
            {
                //binding of relevent DB parameters
                cmd.Parameters.AddWithValue("@processOrdreNr", processOrderNR);
                cmd.Parameters.AddWithValue("@timeOfTest", timeOfTest);
                SqlDataReader reader = cmd.ExecuteReader();

                //while there's a result
                while (reader.Read())
                {
                    l = new Labeling()
                    {
                        ProcessOrderNR = reader.GetInt32(0),
                        TimeOfTest     = reader.GetTimeSpan(1),
                        LableNR        = reader.GetInt32(2),
                        ExpireyDate    = reader.GetDateTime(3),
                        WorkerToSign   = reader.GetInt32(4)
                    };
                }
                //the IO stream of data, comming from database is closed
                reader.Close();
            }
            //Return the User from database, or "null" if no user what Username = Uname
            return(l);
        }
示例#2
0
 private void TermsOfUseContentDialog_OnPrimaryButtonClick(ContentDialog sender,
                                                           ContentDialogButtonClickEventArgs args)
 {
     if (txtbox_Label.Text != "" ||
         txtbox_ExpireDate.Text != "")
     {
         Labeling l = new Labeling()
         {
             ExpireyDate    = DateTime.Now,
             LableNR        = Int32.Parse(txtbox_Label.Text),
             ProcessOrderNR = this.Id,
             TimeOfTest     = new TimeSpan(DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second),
             WorkerToSign   = 3
         };
         EtiketteArkVM.SaveLabelCheck(l);
         ET.LabelChecks.Add(new EtiketteArkVM.LabelCheck()
         {
             ExpireDate  = DateTime.Now,
             LabelNumber = Int32.Parse(txtbox_Label.Text),
             TimeOfTest  = new TimeSpan(DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second),
             Worker      = new Worker()
             {
                 WorkerID = 3, WorkerSign = "BOB"
             }
         });
     }
     else
     {
         //// TODO
         //// ERROR MSG
     }
 }
示例#3
0
    public LabelSession(SessionSave saveFile_inp)
    {
        Labeling.SetSavedLabelClasses(saveFile_inp._labelsession.GetLabelWorkingSet());
        _sessionName  = saveFile_inp._labelsession.GetSessionName();
        _currentCLoud = saveFile_inp._labelsession.GetCurrentCloudID();
        _pointClouds  = saveFile_inp._labelsession.GetPointClouds();

        Util.DataLoadInfo._accessMode        = Util.AccesMode.Load;
        Util.DataLoadInfo._dataType          = saveFile_inp._labelsession.GetSessionDataType();
        Util.DataLoadInfo._sourceDataPath    = saveFile_inp._labelsession.GetSessionSourcePath();
        Util.DataLoadInfo._sessionName       = saveFile_inp._labelsession.GetSessionName();
        Util.DataLoadInfo._sessionFolderPath = Application.persistentDataPath + "/" + Util.DataLoadInfo._sessionName;

        MovementOptions.ReducePoints      = saveFile_inp._ingameOptions._bDecreasePointsWhenMoving;
        MovementOptions.Twinkle           = saveFile_inp._ingameOptions._bSicknessPrevention_TeleportWithBlink;
        MovementOptions.RotAcceleration   = saveFile_inp._ingameOptions._fFreeFly_AccelerationRot;
        MovementOptions.TransAcceleration = saveFile_inp._ingameOptions._fFreeFly_AccelerationTrans;
        MovementOptions.RotSpeed          = saveFile_inp._ingameOptions._fFreeFly_MaxSpeedRot;
        MovementOptions.TransSpeed        = saveFile_inp._ingameOptions._fFreeFly_MaxSpeedTrans;
        MovementOptions.TeleportDistance  = saveFile_inp._ingameOptions._fSicknessPrevention_TeleportDistance;
        MovementOptions.TeleportAngle     = saveFile_inp._ingameOptions._fSicknessPrevention_TurnAngle;
        MovementOptions.MoveMode          = saveFile_inp._ingameOptions._movementMode;
        MovementOptions.SaveOptions();

        if (Util.DataLoadInfo._dataType == Util.Datatype.hdf5_DaimlerLidar)
        {
            MetaData.Hdf5_DaimlerLidar._tableIndexToID     = saveFile_inp._exportMetaData._hdf5_DaimlerLidar.GetTableIndexToID();
            MetaData.Hdf5_DaimlerLidar._importedContainers = saveFile_inp._exportMetaData._hdf5_DaimlerLidar.GetImportedContainers();
        }
    }
示例#4
0
        void RemoveLabelFromLabelingSerObj(Labeling labeling, List <string> commonLabels)
        {
            Dictionary <int, int> commonsIndexToLabelsIndex = new Dictionary <int, int>();

            for (int i = 0; i < labeling.labels.Count; i++)
            {
                string label = labeling.labels[i];

                for (int j = 0; j < commonLabels.Count; j++)
                {
                    string label2 = commonLabels[j];

                    if (string.Equals(label, label2) && !commonsIndexToLabelsIndex.ContainsKey(j))
                    {
                        commonsIndexToLabelsIndex.Add(j, i);
                    }
                }
            }

            var serializedLabelingObject2 = new SerializedObject(labeling);
            var serializedLabelArray2     = serializedLabelingObject2.FindProperty("labels");

            serializedLabelArray2.DeleteArrayElementAtIndex(commonsIndexToLabelsIndex[indexInList]);
            serializedLabelingObject2.ApplyModifiedProperties();
            serializedLabelingObject2.SetIsDifferentCacheDirty();
        }
        public List <Labeling> Get(int ProcessOrderNR)
        {
            List <Labeling> entries = new List <Labeling>();

            using (SqlCommand cmd = new SqlCommand(GET_BY_ProcessOrderNR, SQLConnectionSingleton.Instance.DbConnection))
            {
                //binding of relevent DB parameters
                cmd.Parameters.AddWithValue("@processOrdreNr", ProcessOrderNR);
                SqlDataReader reader = cmd.ExecuteReader();

                //while there's a result
                while (reader.Read())
                {
                    Labeling entry = new Labeling()
                    {
                        ProcessOrderNR = reader.GetInt32(0),
                        TimeOfTest     = reader.GetTimeSpan(1),
                        LableNR        = reader.GetInt32(2),
                        ExpireyDate    = reader.GetDateTime(3),
                        WorkerToSign   = reader.GetInt32(4)
                    };
                    entries.Add(entry);
                }
                //the IO stream of data, comming from database is closed
                reader.Close();
            }

            return(entries);
        }
示例#6
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);
                }
            }
        }
 /**
  * 画像処理オブジェクトの切り替え関数。切り替える場合は、この関数を上書きすること。
  * @param i_size
  * @
  */
 protected void setupImageDriver(NyARIntSize i_size)
 {
     //特性確認
     Debug.Assert(NyARLabeling_Rle._sf_label_array_safe_reference);
     this._labeling = new Labeling(i_size.w, i_size.h);
     this._cpickup  = new NyARContourPickup();
 }
示例#8
0
文件: LBDDNode.cs 项目: IrinaLen/SAT
 public LBDDNode(int v, int i, LBDDNode low, LBDDNode high, Labeling lab = Labeling.Non)
 {
     varId     = v;
     id        = i;
     this.low  = low;
     this.high = high;
     Label     = lab;
 }
        static void ReplaceLabel(Labeling labeling, string oldLabel, string newLabel)
        {
            var idx = labeling.labels.IndexOf(oldLabel);

            if (idx == -1)
            {
                return;
            }
            labeling.labels[idx] = newLabel;
        }
示例#10
0
 public InputFile(string completePath, Labeling label, Purpose purpose)
 {
     this.complete_path = completePath;
     this.directory     = Path.GetDirectoryName(completePath);
     this.filename      = Path.GetFileNameWithoutExtension(completePath);
     this.extension     = Path.GetExtension(completePath);
     this.label         = label;
     this.purpose       = purpose;
     this.instanceId    = ++instanceCounter;
 }
示例#11
0
    public void OnMainMenuClick()
    {
        LoadingScreen.Show();
        MovementOptions.SaveOptions();
        SessionSave.SaveSession(Util.DataLoadInfo._sessionFolderPath);
        Labeling.Reset();
        MetaData.Reset();

        SceneManager.LoadScene(0);
    }
示例#12
0
 public override VisualElement CreateInspectorGUI()
 {
     serializedObject.Update();
     m_Labeling = serializedObject.targetObject as Labeling;
     RefreshCommonLabels();
     RefreshSuggestedLabelLists();
     RefreshLabelConfigsList();
     SetupListsAndScrollers();
     return(m_Root);
 }
        //INPUT FILE
        public static InputFile InputFile(string complete_path, Labeling label, Purpose purpose, string lt_con, string hv_con, string biorep, string fraction, string techrep) // for neucode files. here both conditions are present in one file
        {
            InputFile f = new InputFile(complete_path, label, purpose);

            f.lt_condition         = lt_con;
            f.hv_condition         = hv_con;
            f.biological_replicate = biorep;
            f.fraction             = fraction;
            f.technical_replicate  = techrep;
            return(f);
        }
        public static bool SaveLabelCheck(Labeling labeling)
        {
            using (HttpClient client = new HttpClient())
            {
                string        json    = JsonConvert.SerializeObject(labeling);
                StringContent content = new StringContent(json, Encoding.ASCII, "Application/json");
                Task <HttpResponseMessage> response = client.PostAsync("http://localhost:54926/api/Labeling", content);

                return(response.Result.StatusCode == HttpStatusCode.OK);
            }
        }
示例#15
0
    public void UpdatePointerDisplay()
    {
        try
        {
            var info = Labeling.GetLabelClassNameAndMaterial(Labeling.currentLabelClassID);

            displayText.text = info.Item1;
            _oldPointerColor = rightPointerRenderer.validCollisionColor;
            rightPointerRenderer.validCollisionColor = info.Item2.color;
        }
        catch { }
    }
示例#16
0
 private void Update()
 {
     if (OVRInput.GetDown(OVRInput.Button.Two))
     {
         Labeling.SwitchToNextLabelClass();
         UpdatePointerDisplay();
     }
     else if (OVRInput.GetDown(OVRInput.Button.One))
     {
         Labeling.SwitchToPreviousLabelClass();
         UpdatePointerDisplay();
     }
 }
        public bool Put(int processOrderNr, Labeling l)
        {
            using (SqlCommand cmd = new SqlCommand(UPDATE, SQLConnectionSingleton.Instance.DbConnection))
            {
                cmd.Parameters.AddWithValue("@TimeOfTest", l.TimeOfTest);
                cmd.Parameters.AddWithValue("@LabelNR", l.LableNR);
                cmd.Parameters.AddWithValue("@ExpireyDate", l.ExpireyDate);
                cmd.Parameters.AddWithValue("@WorkerToSign", l.WorkerToSign);
                cmd.Parameters.AddWithValue("@ProcessOrderNR", l.ProcessOrderNR);

                int noRowsAffected = cmd.ExecuteNonQuery();

                return(noRowsAffected == 1);
            }
        }
 static void ReorderLabels(Labeling labeling, string label, int newIndex)
 {
     if (labeling.labels.Contains(label))
     {
         labeling.labels.Remove(label);
         if (newIndex < labeling.labels.Count)
         {
             labeling.labels.Insert(newIndex, label);
         }
         else
         {
             labeling.labels.Add(label);
         }
     }
 }
        /**
         * コンストラクタ
         * @param i_size
         * 入力画像のサイズ
         */
        public NyARSquareContourDetector_Rle(NyARIntSize i_size)
        {
            //特性確認
            Debug.Assert(NyARLabeling_Rle._sf_label_array_safe_reference);
            this._width  = i_size.w;
            this._height = i_size.h;
            //ラベリングのサイズを指定したいときはsetAreaRangeを使ってね。
            this._labeling = new Labeling(this._width, this._height);

            // 輪郭の最大長は画面に映りうる最大の長方形サイズ。
            int number_of_coord = (this._width + this._height) * 2;

            // 輪郭バッファ
            this._coord = new NyARIntCoordinates(number_of_coord);
            return;
        }
示例#20
0
        public static void WriteLabelWorkingSet(long fileId_inp, bool overwrite_inp)
        {
            var LabelClassInfos = Labeling.GetAllIdsNamesAndMaterials();

            int status = 0;

            ulong[] dims = new ulong[2];
            dims[0] = 2;
            dims[1] = (ulong)LabelClassInfos.Count;

            long group_id = 0;

            if (overwrite_inp)
            {
                group_id = H5G.open(fileId_inp, "labelWorkingSet");
            }
            else
            {
                group_id = H5G.create(fileId_inp, "labelWorkingSet");
            }

            for (int i = 0; i < LabelClassInfos.Count; i++)
            {
                GCHandle labelID = GCHandle.Alloc(LabelClassInfos.ElementAt(i).Key, GCHandleType.Pinned);

                string labelClassName = LabelClassInfos.ElementAt(i).Value.Item1;

                long attr_id = H5A.open(group_id, labelClassName);

                if (attr_id >= 0)
                {
                    //attribute exists
                    status = H5A.write(attr_id, H5T.NATIVE_UINT32, labelID.AddrOfPinnedObject());
                }
                else
                {
                    //attribute has to be created
                    attr_id = H5A.create(group_id, LabelClassInfos.ElementAt(i).Value.Item1, H5T.NATIVE_UINT32, H5S.create(H5S.class_t.SCALAR));
                    status  = H5A.write(attr_id, H5T.NATIVE_UINT32, labelID.AddrOfPinnedObject());
                }

                status = H5A.close(attr_id);
            }

            status = H5G.close(group_id);
        }
示例#21
0
        private void RunToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                bitmap = new Bitmap(OriginalBitmap);

                Fuzzsom fuzzsom = new Fuzzsom(bitmap);
                fuzzsom.Run();
                fuzzsom.Layer2();
                fuzzsom.Layer_Run();
                bitmap      = fuzzsom.getBitmap();       //단층
                bitmpaLayer = fuzzsom.getLayer_Bitmap(); //다층

                Labeling label = new Labeling(bitmap);
                label.AIRun();
                obser = label.GetBitmap();

                #region 원본 사진에 라벨링 사진 넣는 구문
                for (int x = 0; x < bitmap.Width; x++)
                {
                    for (int y = 0; y < bitmap.Height; y++)
                    {
                        if (obser.GetPixel(x, y) == Color.FromArgb(255, 0, 0))
                        {
                            obser.SetPixel(x, y, Color.FromArgb(255, 0, 0));
                        }
                        else
                        {
                            obser.SetPixel(x, y, OriginalBitmap.GetPixel(x, y));
                        }
                    }
                }
                #endregion

                //Part #3 이미지 View, Lookup Table
                pictureBox1.Image = OriginalBitmap;
                pictureBox2.Image = obser;
                pictureBox3.Image = bitmap;
                pictureBox4.Image = bitmpaLayer;
            }
            catch (Exception)
            {
                MessageBox.Show("open에서 이미지를 선택하세요");
            }
        }
 private void Update()
 {
     if (pointerActivated)
     {
         if (OVRInput.GetDown(OVRInput.Button.SecondaryThumbstick))
         {
             GameObject collidedObject = rightPointerRenderer.GetDestinationHit().collider.gameObject;
             var        attr           = collidedObject.GetComponent <CustomAttributes>();
             if (attr)
             {
                 if (Labeling.currentLabelClassID != attr._label)
                 {
                     Labeling.SetCurrentLabelClassID(attr._label);
                 }
             }
         }
     }
 }
示例#23
0
 public SettingColorGui(Labeling labeling)
 {
     foreach (var variable in ColorUtils.Instance.Colors)
     {
         AddElement(new ColorButton(
                        $"{ModEntry.GetInstance().GetTranslation("labeling.labelingGui.color")}:{variable.Name}",
                        ModEntry.GetInstance().GetTranslation("labeling.labelingGui.color"))
         {
             Color         = ColorUtils.Instance.Get(variable.Name),
             OnLeftClicked = () =>
             {
                 labeling.Color = variable.Name;
                 ModEntry.GetInstance().ConfigReload();
                 Game1.exitActiveMenu();
             }
         });
     }
 }
示例#24
0
        static void Main(string[] args)
        {
            //String url = "e:\\home\\hirokazu\\Pictures\\image03.png";
            //String url = "e:\\home\\hirokazu\\Dropbox\\hirokazu\\batsu01.bmp";
            //String url = "e:\\image01.png";
            String url = "c:\\Users\\hirokazu\\Dropbox\\hirokazu\\batsu04.png";

            //String url = "c:\\Users\\hirokazu\\Pictures\\image2.png";
            try {
                if (!System.IO.File.Exists(url))
                {
                    throw new ArgumentException(url + "is not exist.");
                }

                BitmapImage           image = new BitmapImage(new Uri(url));
                System.Drawing.Bitmap bmp   = new System.Drawing.Bitmap(url);

                CrossMarkDetector d = new CrossMarkDetector();
                d.SetImage(url, ImreadMode.Conservation);
                d.Binarize(30, ThresholdMode.Binary);
                d.AreaThreshold = 10000;
                d.Test();
                //System.Windows.Point p = d.GetCenter();
                //System.Console.WriteLine(string.Format("x,y={0},{1}", p.X, p.Y));
                //d.ShowWindow();

#if false
                Labeling l = new Labeling();
                l.SetImage(url, ImreadMode.Force3Color);
                l.Label(30, ThresholdMode.Binary);
                List <CircumBox> list = l.GetObjectListSortedByArea(0, 5);
                for (int i = 0; i < list.Count; ++i)
                {
                    System.Console.WriteLine(
                        string.Format("ID:{0}, Area:{1}, (sx, sy) = ({2}, {3}), (ex, ey) = ({4}, {5})",
                                      list[i].Id, list[i].Area, list[i].X0, list[i].Y0, list[i].X1, list[i].Y1));
                }
#endif
            } catch (ArgumentException ex) {
                System.Console.WriteLine(ex.Message);
            }
            System.Console.ReadLine();
        }
示例#25
0
        //copy QuantitationParam
        void Copy_Inter.LabelingCopy(Labeling slb, Labeling dlb)
        {
            dlb.Multiplicity_index = slb.Multiplicity_index;
            dlb.Multiplicity       = slb.Multiplicity;

            dlb.Light_label.Clear();
            for (int i = 0; i < slb.Light_label.Count; i++)
            {
                dlb.Light_label.Add(slb.Light_label[i]);
            }
            dlb.Medium_label.Clear();
            for (int i = 0; i < slb.Medium_label.Count; i++)
            {
                dlb.Medium_label.Add(slb.Medium_label[i]);
            }
            dlb.Heavy_label.Clear();
            for (int i = 0; i < slb.Heavy_label.Count; i++)
            {
                dlb.Heavy_label.Add(slb.Heavy_label[i]);
            }
        }
示例#26
0
    private void RefreshLabelClassView()
    {
        for (int i = 0; i < Instance.labelClassItems.Count; i++)
        {
            Destroy(Instance.labelClassItems[i]);
        }
        Instance.labelClassItems.Clear();

        var classInfos = Labeling.GetAllIdsNamesAndMaterials();

        foreach (var classInfo in classInfos)
        {
            GameObject classItem = Instantiate(labelClassItemPrefab, Instance.labelClassView.content.transform);

            var attributes = classItem.GetComponent <LabelClassItem>();
            attributes.ClassName  = classInfo.Value.Item1;
            attributes.ClassID    = classInfo.Key;
            attributes.ClassColor = classInfo.Value.Item2.color;

            Instance.labelClassItems.Add(classItem);
        }
    }
示例#27
0
    public static List <List <InternalDataFormat> > ReadHdf5_DaimlerLidar(string loadPath_inp, ref List <string> paths_ref)
    {
        string[] filePaths;

        List <List <InternalDataFormat> > listOfDataLists_out = new List <List <InternalDataFormat> >();

        if (loadPath_inp.Substring(loadPath_inp.Length - 5) == ".hdf5")
        {
            //single file
            string[] temp = new string[1];
            temp[0]   = loadPath_inp;
            filePaths = temp;
            paths_ref.Add(loadPath_inp);
        }
        else
        {
            //directory
            filePaths = Directory.GetFiles(loadPath_inp + "\\", "*.hdf5");
            for (int i = 0; i < filePaths.Length; i++)
            {
                paths_ref.Add(filePaths[i]);
            }
        }

        Debug.Log("Loading FIles: ");
        Debug.Log(filePaths);

        for (int i = 0; i < filePaths.Length; i++)
        {
            Hdf5Container_LidarDaimler container  = ReadContainer(filePaths[i]);
            List <InternalDataFormat>  listOfData = Processhdf5Container_DaimlerLidar(i, container);

            Labeling.SetNewLabelClasses(container._labelWorkingSet);
            listOfDataLists_out.Add(listOfData);
        }

        return(listOfDataLists_out);
    }
示例#28
0
        private void GemLabel(object sender, RoutedEventArgs e)
        {
            Labeling l = new Labeling()
            {
                ExpireyDate    = ET.SelectedLabel.ExpireDate,
                ProcessOrderNR = this.Id,
                LableNR        = ET.SelectedLabel.LabelNumber,
                TimeOfTest     = new TimeSpan(DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second),
                WorkerToSign   = 3
            };

            EtiketteArkVM.SaveLabelCheck(l);
            ET.LabelChecks.Add(new EtiketteArkVM.LabelCheck()
            {
                ExpireDate  = l.ExpireyDate,
                LabelNumber = l.LableNR,
                TimeOfTest  = new TimeSpan(DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second),
                Worker      = new Worker()
                {
                    WorkerID = 3, WorkerSign = "BOB"
                }
            });
        }
示例#29
0
        /// <summary>
        /// Perform a raycast using the worldSpaceRay in eventData.
        /// </summary>
        /// <param name="eventData"></param>
        /// <param name="resultAppendList"></param>
        public override void Raycast(PointerEventData eventData, List <RaycastResult> resultAppendList)
        {
            // This function is closely based on PhysicsRaycaster.Raycast

            if (eventCamera == null)
            {
                return;
            }

            if (!eventData.IsVRPointer())
            {
                return;
            }

            var ray = eventData.GetRay();

            float dist = eventCamera.farClipPlane - eventCamera.nearClipPlane;

            var hits = Physics.RaycastAll(ray, dist, finalEventMask);

            if (hits.Length > 1)
            {
                System.Array.Sort(hits, (r1, r2) => r1.distance.CompareTo(r2.distance));
            }

            if (hits.Length != 0)
            {
                for (int b = 0, bmax = hits.Length; b < bmax; ++b)
                {
//                    Debug.Log(hits[b].collider.gameObject.name);
                    oLabel = hits[b].collider.gameObject.GetComponent <Labeling>();

                    if (oLabel != null)
                    {
                        oLabel.ShowLabel();
//                        Debug.Log("Show from Raycaster");
                    }

                    var result = new RaycastResult
                    {
                        gameObject    = hits[b].collider.gameObject,
                        module        = this,
                        distance      = hits[b].distance,
                        index         = resultAppendList.Count,
                        worldPosition = hits[0].point,
                        worldNormal   = hits[0].normal,
                    };
                    resultAppendList.Add(result);
                }
            }
            else
            {
                objectLabels = GameObject.FindGameObjectsWithTag("gazeLabels");

                foreach (GameObject label in objectLabels)
                {
                    label.SetActive(false);
                }

/*                for (int i = 0; i < objectLabels.Length; i++)
 *              {
 *                  objectLabels[i].SetActive(false);
 *              }*/
            }
        }
 /**
  * 画像処理オブジェクトの切り替え関数。切り替える場合は、この関数を上書きすること。
  * @param i_size
  * @
  */
 protected void setupImageDriver(NyARIntSize i_size)
 {
     //特性確認
     Debug.Assert(NyARLabeling_Rle._sf_label_array_safe_reference);
     this._labeling = new Labeling(i_size.w, i_size.h);
     this._cpickup = new NyARContourPickup();
 }
示例#31
0
 private void ChangeLabelClass(LabelClassEditor.LabelCLassItemStruct editedLabelClass)
 {
     Labeling.EditSingleLabelClass(oldID, editedLabelClass.ID, editedLabelClass.Name, editedLabelClass.Color);
     ReferenceHandler.Instance.GetSessionHandler().Session.GetCurrentPointCloud().RefreshPointsOfLabelCLass(oldID, editedLabelClass.ID);
     RefreshLabelClassView();
 }