クラス XRSemanticsSubsystem
(Niantic.Lightship.AR.XRSubsystems.XRSemanticsSubsystem)
概要
セマンティックセグメンテーション機能と対話するためのインターフェースを定義します。
class XRSemanticsSubsystem:SubsystemWithProvider< XRSemanticsSubsystem, XRSemanticsSubsystemDescriptor, XRSemanticsSubsystem.Provider > {
public:
class Provider;
// プロパティ
uint TargetFrameRate;
uint?LatestFrameId;
bool IsMetadataAvailable;
// methods
XRSemanticsSubsystem();
bool TryGetSemanticChannel(
string channelName,
out XRTextureDescriptor semanticsChannelDescriptor,
out Matrix4x4 samplerMatrix,
XRCameraParams?cameraParams = null
);
bool TryAcquireSemanticChannelCpuImage(
string channelName,
out XRCpuImage cpuImage,
out Matrix4x4 samplerMatrix,
XRCameraParams?cameraParams = null
);
bool TryGetPackedSemanticChannels(
out XRTextureDescriptor packedSemanticsDescriptor,
out Matrix4x4 samplerMatrix,
XRCameraParams?cameraParams = null
);
bool TryAcquirePackedSemanticChannelsCpuImage(
out XRCpuImage cpuImage,
out Matrix4x4 samplerMatrix,
XRCameraParams?cameraParams = null
);
bool TryGetChannelNames(out IReadOnlyList<string> names);
bool TrySetChannelConfidenceThresholds(Dictionary<string, float> channelConfidenceThresholds);
static bool Register(XRSemanticsSubsystemCinfo semanticsSubsystemCinfo);
};
詳細資料
セマンティックセグメンテーション機能と対話するためのインターフェースを定義します。
プロパティ
TargetFrameRate
uint ターゲットフレームレート
セマンティックセグメンテーション推論を実行するプラットフォームのターゲットフレーム レートを指定します。
目標フレームレート。
**パラメーター
System.NotSupportedException
- 投げられたフレームレート設定はサポートされていません。
LatestFrameId
uint?最新フレームID
最新のセマンティックセグメンテーション予測のフレーム ID を返します。
フレームID。
**パラメーター
System.NotSupportedException
- フレーム ID の取得がサポートされていない場合にスローされます。