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 축은 카메라의 광학 축을 따라 장면을 가리킵니다.
에 대한 android.graphics.ImageFormat.DEPTH_POINT_CLOUD
Java 설명서
이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.