ImageFormat.DepthPointCloud フィールド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.
Android スパース深度ポイント クラウド形式。
[Android.Runtime.Register("DEPTH_POINT_CLOUD", ApiSince=23)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)]
public const Android.Graphics.ImageFormatType DepthPointCloud = 257;
[<Android.Runtime.Register("DEPTH_POINT_CLOUD", ApiSince=23)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)>]
val mutable DepthPointCloud : Android.Graphics.ImageFormatType
フィールド値
Value = 257- 属性
注釈
Android スパース深度ポイント クラウド形式。
3D ポイントと信頼度値の可変長リスト。各ポイントは 4 つの浮動小数点で表されます。最初に X、Y、Z 位置座標、次に信頼度値を指定します。
ポイントの数は (size of the buffer in bytes) / 16。
位置値の座標系と単位は、点群データのソースによって異なります。 信頼度の値は 0.f から 1.f までの範囲で、0 は 0% 信頼度を表し、1.f は測定された位置の値の 100% 信頼度を表します。
例として、次のコードは、DEPTH_POINT_CLOUD形式の android.media.Imageで最初の深度ポイントを抽出します。
FloatBuffer floatDepthBuffer = img.getPlanes()[0].getBuffer().asFloatBuffer();
float x = floatDepthBuffer.get();
float y = floatDepthBuffer.get();
float z = floatDepthBuffer.get();
float confidence = floatDepthBuffer.get();
android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT DEPTH_OUTPUT機能をサポートするカメラ デバイスの場合、DEPTH_POINT_CLOUD座標にはメートル単位があり、座標系はカメラの姿勢変換 (android.hardware.camera2.CameraCharacteristics#LENS_POSE_TRANSLATIONとandroid.hardware.camera2.CameraCharacteristics#LENS_POSE_ROTATION) によって定義されます。 つまり、原点はカメラ デバイスの光学中心であり、正の Z 軸はカメラの光軸に沿ってシーンを指します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。