C# 클래스 TangoPointCloud, project-tango-poc

Point cloud visualize using depth frame API.
상속: MonoBehaviour, ITangoDepth
파일 보기 프로젝트 열기: stetro/project-tango-poc 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
m_updatePointsMesh bool
m_useAreaDescriptionPose bool

공개 메소드들

메소드 설명
FindClosestPoint ( Camera cam, Vector2 pos, int maxDist ) : int

Finds the closest point from a point cloud to a position on screen. NOTE: This is slow because it looks at every single point in the point cloud. Avoid calling this more than once a frame.

FindPlane ( Camera cam, Vector2 pos, Vector3 &planeCenter, Plane &plane ) : bool

Given a screen coordinate, find a plane that most closely fits depth values in that area. This assumes you are using this in an AR context.

OnTangoDepthAvailable ( TangoUnityDepth tangoDepth ) : void

Callback that gets called when depth is available from the Tango Service.

Start ( ) : void

Use this for initialization.

비공개 메소드들

메소드 설명
_SetUpCameraData ( ) : void

Sets up extrinsic matrixes and camera intrinsics for this hardware.

메소드 상세

FindClosestPoint() 공개 메소드

Finds the closest point from a point cloud to a position on screen. NOTE: This is slow because it looks at every single point in the point cloud. Avoid calling this more than once a frame.
public FindClosestPoint ( Camera cam, Vector2 pos, int maxDist ) : int
cam Camera The current camera.
pos Vector2 Position on screen (in pixels).
maxDist int The maximum pixel distance to allow.
리턴 int

FindPlane() 공개 메소드

Given a screen coordinate, find a plane that most closely fits depth values in that area. This assumes you are using this in an AR context.
public FindPlane ( Camera cam, Vector2 pos, Vector3 &planeCenter, Plane &plane ) : bool
cam Camera The Unity camera.
pos Vector2 The point in screen space to perform detection on.
planeCenter Vector3 Filled in with the center of the plane in Unity world space.
plane Plane Filled in with a model of the plane in Unity world space.
리턴 bool

OnTangoDepthAvailable() 공개 메소드

Callback that gets called when depth is available from the Tango Service.
public OnTangoDepthAvailable ( TangoUnityDepth tangoDepth ) : void
tangoDepth Tango.TangoUnityDepth Depth information from Tango.
리턴 void

Start() 공개 메소드

Use this for initialization.
public Start ( ) : void
리턴 void

프로퍼티 상세

m_updatePointsMesh 공개적으로 프로퍼티

If set, the point cloud's mesh gets updated (much slower, useful for debugging).
public bool m_updatePointsMesh
리턴 bool

m_useAreaDescriptionPose 공개적으로 프로퍼티

If set, the point cloud will be transformed using ADF pose (device with respect to ADF).
public bool m_useAreaDescriptionPose
리턴 bool