public LocalizationSession(MarkerDetectorSpatialLocalizer localizer, MarkerDetectorLocalizationSettings settings)
            {
                this.localizer = localizer;
                this.settings  = settings;

                this.localizer.markerDetector.SetMarkerSize(settings.MarkerSize);
                this.coordinateService = new MarkerDetectorCoordinateService(this.localizer.markerDetector, this.localizer.debugLogging);
            }
Example #2
0
 public static bool TryDeserialize(BinaryReader reader, out MarkerDetectorLocalizationSettings settings)
 {
     try
     {
         settings = new MarkerDetectorLocalizationSettings
         {
             MarkerID   = reader.ReadInt32(),
             MarkerSize = reader.ReadSingle(),
         };
         return(true);
     }
     catch
     {
         settings = null;
         return(false);
     }
 }
Example #3
0
 public Editor(MarkerDetectorLocalizationSettings settings)
 {
     this.settings = settings;
 }