Interface IMarkerDetector
Interface that should be implemented by any class that detects markers
Namespace: Microsoft.MixedReality.SpectatorView
Assembly: cs.temp.dll.dll
Syntax
public interface IMarkerDetector
Properties
MarkerPositionBehavior
Determines how the marker is expected to be positioned during detection.
Declaration
MarkerPositionBehavior MarkerPositionBehavior { get; set; }
Property Value
Type | Description |
---|---|
Marker |
Methods
SetMarkerSize(Single)
Set the physical size for markers being detected
Declaration
void SetMarkerSize(float size)
Parameters
Type | Name | Description |
---|---|---|
Single | size | The physical size (in meters) of markers being detected |
StartDetecting()
Starts marker detection
Declaration
void StartDetecting()
StopDetecting()
Stops marker detection
Declaration
void StopDetecting()
TryGetMarkerSize(Int32, out Single)
Tries to obtain the physical size of a detected marker. Returns true if the marker size is known and was determined through detection; otherwise, returns false.
Declaration
bool TryGetMarkerSize(int markerId, out float size)
Parameters
Type | Name | Description |
---|---|---|
Int32 | markerId | id of detected marker |
Single | size | The physical size (in meters) of the detected marker |
Returns
Type | Description |
---|---|
Boolean | True if the size was located |
Events
MarkersUpdated
Event called when any observed markers have been updated
Declaration
event MarkersUpdatedHandler MarkersUpdated
Event Type
Type | Description |
---|---|
Markers |