class XRSemanticsSubsystem
(Niantic.Lightship.AR.XRSubsystems.XRSemanticsSubsystem)
概要
セマンティック セグメンテーション機能と対話するためのインターフェースを定義します。
class XRSemanticsSubsystem:
SubsystemWithProvider< XRSemanticsSubsystem, XRSemanticsSubsystemDescriptor, XRSemanticsSubsystem.Provider >,
ISubsystemWithModelMetadata {
public:
class Provider;
// properties
uint TargetFrameRate;
HashSet<string> SuppressionMaskChannels;
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 TryGetSuppressionMaskTexture(
out XRTextureDescriptor suppressionMaskDescriptor,
out Matrix4x4 samplerMatrix,
XRCameraParams?cameraParams = null
);
bool TryAcquireSuppressionMaskCpuImage(
out XRCpuImage cpuImage,
out Matrix4x4 samplerMatrix,
XRCameraParams?cameraParams = null
);
bool TryAcquireSuppressionMaskCpuImage(
out XRCpuImage cpuImage,
out Matrix4x4 samplerMatrix,
XRCameraParams?cameraParams,
Matrix4x4?referencePose
);
bool TryGetChannelNames(out IReadOnlyList<string> names);
bool TrySetChannelConfidenceThresholds(Dictionary<string, float> channelConfidenceThresholds);
bool TryResetChannelConfidenceThresholds();
static bool Register(XRSemanticsSubsystemCinfo semanticsSubsystemCinfo);
protected:
// メソッド
override void OnStop();
};
詳細なドキュメント
セマンティック セグメンテーション機能と対話するためのインターフェースを定義します。