예제 #1
0
        // Methods

        /// <summary>
        /// Updates the undistortion thread with the <paramref name="images"/> and stops if there was an exception from this thread.
        /// </summary>
        protected virtual void ArucoCamera_UndistortRectifyImages(Cv.Mat[] images, byte[][] imageDatas)
        {
            try
            {
                remapThread.Update(imageDatas);
            }
            catch (Exception e)
            {
                StopController();
                throw e;
            }
        }
        // Methods

        /// <summary>
        /// Updates the tracking thread with <see cref="ArucoCamera.ImageDatas"/>, calls <see cref="DeactivateArucoObjects"/>
        /// and <see cref="UpdateTransforms"/> and stops if there was an exception from this thread.
        /// </summary>
        protected void ArucoCamera_ImagesUpdated()
        {
            try
            {
                trackingThread.Update(ArucoCamera.ImageDatas);
                if (trackingThread.ImagesUpdated)
                {
                    DeactivateArucoObjects();
                    if (ArucoCameraDisplay != null)
                    {
                        UpdateTransforms();
                    }
                }
            }
            catch (Exception e)
            {
                Debug.Log("Erroria pukkaa");
            }
        }
        // Methods

        /// <summary>
        ///     Updates the tracking thread with <see cref="ArucoCamera.ImageDatas" />, calls <see cref="DeactivateArucoObjects" />
        ///     and <see cref="UpdateTransforms" /> and stops if there was an exception from this thread.
        /// </summary>
        protected void ArucoCamera_ImagesUpdated()
        {
            try
            {
                trackingThread.Update(ArucoCamera.ImageDatas);
                if (trackingThread.ImagesUpdated)
                {
                    DeactivateArucoObjects();
                    if (ArucoCameraDisplay != null)
                    {
                        UpdateTransforms();
                    }
                }
            }
            catch (Exception e)
            {
                StopController();
                throw e;
            }
        }