C# 클래스 Kinect.Kinect1Interface

상속: DepthSensorInterface
파일 보기 프로젝트 열기: BrainProject/UnityTemp

공개 메소드들

메소드 설명
AddGrammarPhrase ( string sFromRule, string sToRule, string sPhrase, bool bClearRulePhrases, bool bCommitGrammar ) : int
ClearRecognizedPhrase ( ) : void
CloseSensor ( KinectInterop sensorData ) : void
FinishBackgroundRemoval ( KinectInterop sensorData ) : void
FinishFaceTracking ( ) : void
FinishSpeechRecognition ( ) : void
FixJointOrientations ( KinectInterop sensorData, KinectInterop &bodyData ) : void
FreeMultiSourceFrame ( KinectInterop sensorData ) : void
FreeSensorInterface ( bool bDeleteLibs ) : void
GetAnimUnits ( long userId, float>.Dictionary &dictAU ) : bool
GetFaceModelTriangles ( bool bMirrored, int &avTriangles ) : bool
GetFaceModelTrianglesCount ( ) : int
GetFaceModelVertices ( long userId, Vector3 &avVertices ) : bool
GetFaceModelVerticesCount ( long userId ) : int
GetFaceRect ( long userId, Rect &rectFace ) : bool
GetForegroundFrameLength ( KinectInterop sensorData, bool isHiResPrefered ) : int
GetForegroundFrameRect ( KinectInterop sensorData, bool isHiResPrefered ) : Rect
GetHeadPosition ( long userId, Vector3 &headPos ) : bool
GetHeadRotation ( long userId, Quaternion &headRot ) : bool
GetJointIndex ( KinectInterop joint ) : int
GetMultiSourceFrame ( KinectInterop sensorData ) : bool
GetNextJoint ( KinectInterop joint ) : KinectInterop.JointType
GetParentJoint ( KinectInterop joint ) : KinectInterop.JointType
GetPhraseConfidence ( ) : float
GetRecognizedPhraseTag ( ) : string
GetSensorPlatform ( ) : KinectInterop.DepthSensorPlatform
GetSensorsCount ( ) : int
GetShapeUnits ( long userId, float>.Dictionary &dictSU ) : bool
InitBackgroundRemoval ( KinectInterop sensorData, bool isHiResPrefered ) : bool
InitFaceTracking ( bool bUseFaceModel, bool bDrawFaceRect ) : bool
InitSensorInterface ( bool bCopyLibs, bool &bNeedRestart ) : bool
InitSpeechRecognition ( string sRecoCriteria, bool bUseKinect, bool bAdaptationOff ) : int
IsBRHiResSupported ( ) : bool
IsBackgroundRemovalActive ( ) : bool
IsBackgroundRemovalAvailable ( bool &bNeedRestart ) : bool
IsBodyTurned ( KinectInterop &bodyData ) : bool
IsDrawFaceRect ( ) : bool
IsFaceTracked ( long userId ) : bool
IsFaceTrackingActive ( ) : bool
IsFaceTrackingAvailable ( bool &bNeedRestart ) : bool
IsPhraseRecognized ( ) : bool
IsSensorAvailable ( ) : bool
IsSpeechEnded ( ) : bool
IsSpeechRecognitionAvailable ( bool &bNeedRestart ) : bool
IsSpeechStarted ( ) : bool
LoadSpeechGrammar ( string sFileName, short iLangCode, bool bDynamic ) : int
MapColorFrameToDepthCoords ( KinectInterop sensorData, Vector2 &vDepthCoords ) : bool
MapDepthFrameToColorCoords ( KinectInterop sensorData, Vector2 &vColorCoords ) : bool
MapDepthPointToColorCoords ( KinectInterop sensorData, Vector2 depthPos, ushort depthVal ) : Vector2
MapDepthPointToSpaceCoords ( KinectInterop sensorData, Vector2 depthPos, ushort depthVal ) : Vector3
MapSpacePointToDepthCoords ( KinectInterop sensorData, Vector3 spacePos ) : Vector2
OpenDefaultSensor ( KinectInterop dwFlags, float sensorAngle, bool bUseMultiSource ) : KinectInterop.SensorData
PollBodyFrame ( KinectInterop sensorData, KinectInterop &bodyFrame, Matrix4x4 &kinectToWorld ) : bool
PollColorFrame ( KinectInterop sensorData ) : bool
PollDepthFrame ( KinectInterop sensorData ) : bool
PollForegroundFrame ( KinectInterop sensorData, bool isHiResPrefered, Color32 defaultColor, bool bLimitedUsers, ICollection alTrackedIndexes, byte &foregroundImage ) : bool
PollInfraredFrame ( KinectInterop sensorData ) : bool
SetSpeechConfidence ( float fConfidence ) : void
UpdateBackgroundRemoval ( KinectInterop sensorData, bool isHiResPrefered, Color32 defaultColor ) : bool
UpdateFaceTracking ( ) : bool
UpdateSensorData ( KinectInterop sensorData ) : bool
UpdateSpeechRecognition ( ) : int
VisualizeFaceTrackerOnColorTex ( Texture2D texColor ) : void

비공개 메소드들

메소드 설명
AddGrammarPhraseNative ( [ sFromRule, [ sToRule, [ sPhrase, bool bClearRule, bool bCommitGrammar ) : int
ClearRecognizedPhraseNative ( ) : void
DrawLine ( Texture2D a_Texture, Vector2 ptStart, Vector2 ptEnd, Color a_Color ) : void
FinishBackgroundRemovalNative ( ) : void
FinishFaceTrackingNative ( ) : void
FinishKinectInteraction ( ) : void
FinishSpeechRecognizerNative ( ) : void
GetAnimUnitsCountNative ( ) : int
GetAnimUnitsNative ( IntPtr afAU, int &iAUCount ) : bool
GetBackgroundRemovalFrameDataNative ( IntPtr btVideoBuf, uint &iVideoBufLen, bool bGetNewFrame ) : bool
GetBackgroundRemovalFrameLengthNative ( ) : int
GetColorFrameData ( IntPtr btVideoBuf, uint &iVideoBufLen, bool bGetNewFrame ) : bool
GetColorStreamHandle ( ) : IntPtr
GetDepthFrameData ( IntPtr shDepthBuf, uint &iDepthBufLen, bool bGetNewFrame ) : bool
GetDepthStreamHandle ( ) : IntPtr
GetFacePointsCountNative ( ) : int
GetFacePointsNative ( IntPtr avPoints, int &iPointsCount ) : bool
GetFaceRectNative ( FaceRect &pRectFace ) : bool
GetFaceTrackingIDNative ( ) : uint
GetHandStateAndConf ( uint skeletonId, bool isRightHand, uint handState, InteractionHandEventType handEvent, InteractionHandEventType>.Dictionary &lastHandEvent, KinectInterop &refHandState, KinectInterop &refHandConf ) : void
GetHeadPositionNative ( Vector4 &pvHeadPos ) : bool
GetHeadRotationNative ( Vector4 &pvHeadRot ) : bool
GetHeadScaleNative ( Vector4 &pvHeadScale ) : bool
GetInfraredFrameData ( IntPtr shInfraredBuf, uint &iInfraredBufLen, bool bGetNewFrame ) : bool
GetInteractorsCount ( ) : uint
GetKinectElevationAngle ( ) : int
GetLeftHandEvent ( uint player ) : InteractionHandEventType
GetLeftHandState ( uint player ) : uint
GetModelPointsCountNative ( ) : int
GetModelPointsNative ( IntPtr avPoints, int &iPointsCount ) : bool
GetNextSkeletonFrame ( uint dwWaitMs ) : int
GetNuiErrorString ( int hr ) : string
GetPhraseConfidenceNative ( ) : float
GetRecognizedPhraseTagNative ( ) : IntPtr
GetRightHandEvent ( uint player ) : InteractionHandEventType
GetRightHandState ( uint player ) : uint
GetShapeUnitsCountNative ( ) : int
GetShapeUnitsNative ( IntPtr afSU, int &iSUCount ) : bool
GetSkeletonFrameData ( Kinect.NuiSkeletonFrame &pSkeletonData, uint &iDataBufLen, bool bNewFrame ) : bool
GetSkeletonFrameLength ( ) : int
GetSkeletonTrackingID ( uint player ) : uint
GetTriangleCountNative ( ) : int
GetTrianglesNative ( IntPtr aiTriangles, int &iPointsCount ) : bool
InitBackgroundRemovalNative ( ) : int
InitFaceTrackingNative ( ) : int
InitKinectInteraction ( ) : int
InitKinectSensor ( NuiInitializeFlags dwFlags, bool bEnableEvents, int iColorResolution, int iDepthResolution, bool bNearMode ) : int
InitSpeechRecognizerNative ( [ sRecoCriteria, bool bUseKinect, bool bAdaptationOff ) : int
IsBackgroundRemovalActiveNative ( ) : bool
IsFaceTrackedNative ( ) : bool
IsPhraseRecognizedNative ( ) : bool
IsSpeechEndedNative ( ) : bool
IsSpeechStartedNative ( ) : bool
LoadSpeechGrammarNative ( [ sFileName, short iNewLangCode, bool bDynamic ) : int
NuiGetSensorCount ( int &pCount ) : int
NuiImageGetColorPixelCoordinatesFromDepthPixelAtResolution ( NuiImageResolution eColorResolution, NuiImageResolution eDepthResolution, Kinect.NuiImageViewArea &pcViewArea, int lDepthX, int lDepthY, ushort sDepthValue, int &plColorX, int &plColorY ) : int
NuiImageResolutionToSize ( NuiImageResolution res, int &refWidth, int &refHeight ) : bool
NuiSkeletonGetNextFrame ( uint dwMillisecondsToWait, Kinect.NuiSkeletonFrame &pSkeletonFrame ) : int
NuiTransformDepthImageToSkeleton ( float fDepthX, float fDepthY, int depthValue ) : Vector3
NuiTransformSkeletonToDepthImage ( Vector3 vPoint, float &pfDepthX, float &pfDepthY, float &pfDepthZ ) : void
NuiTransformSmooth ( Kinect.NuiSkeletonFrame &pSkeletonFrame, Kinect.NuiTransformSmoothParameters &pSmoothingParams ) : int
SetKinectElevationAngle ( int sensorAngle ) : int
SetSpeechConfidenceNative ( float fConfidence ) : void
ShutdownKinectSensor ( ) : void
UpdateBackgroundRemovalNative ( ) : int
UpdateFaceTrackingNative ( ) : int
UpdateKinectSensor ( ) : int
UpdateSpeechRecognizerNative ( ) : int

메소드 상세

AddGrammarPhrase() 공개 메소드

public AddGrammarPhrase ( string sFromRule, string sToRule, string sPhrase, bool bClearRulePhrases, bool bCommitGrammar ) : int
sFromRule string
sToRule string
sPhrase string
bClearRulePhrases bool
bCommitGrammar bool
리턴 int

ClearRecognizedPhrase() 공개 메소드

public ClearRecognizedPhrase ( ) : void
리턴 void

CloseSensor() 공개 메소드

public CloseSensor ( KinectInterop sensorData ) : void
sensorData KinectInterop
리턴 void

FinishBackgroundRemoval() 공개 메소드

public FinishBackgroundRemoval ( KinectInterop sensorData ) : void
sensorData KinectInterop
리턴 void

FinishFaceTracking() 공개 메소드

public FinishFaceTracking ( ) : void
리턴 void

FinishSpeechRecognition() 공개 메소드

public FinishSpeechRecognition ( ) : void
리턴 void

FixJointOrientations() 공개 메소드

public FixJointOrientations ( KinectInterop sensorData, KinectInterop &bodyData ) : void
sensorData KinectInterop
bodyData KinectInterop
리턴 void

FreeMultiSourceFrame() 공개 메소드

public FreeMultiSourceFrame ( KinectInterop sensorData ) : void
sensorData KinectInterop
리턴 void

FreeSensorInterface() 공개 메소드

public FreeSensorInterface ( bool bDeleteLibs ) : void
bDeleteLibs bool
리턴 void

GetAnimUnits() 공개 메소드

public GetAnimUnits ( long userId, float>.Dictionary &dictAU ) : bool
userId long
dictAU float>.Dictionary
리턴 bool

GetFaceModelTriangles() 공개 메소드

public GetFaceModelTriangles ( bool bMirrored, int &avTriangles ) : bool
bMirrored bool
avTriangles int
리턴 bool

GetFaceModelTrianglesCount() 공개 메소드

public GetFaceModelTrianglesCount ( ) : int
리턴 int

GetFaceModelVertices() 공개 메소드

public GetFaceModelVertices ( long userId, Vector3 &avVertices ) : bool
userId long
avVertices Vector3
리턴 bool

GetFaceModelVerticesCount() 공개 메소드

public GetFaceModelVerticesCount ( long userId ) : int
userId long
리턴 int

GetFaceRect() 공개 메소드

public GetFaceRect ( long userId, Rect &rectFace ) : bool
userId long
rectFace UnityEngine.Rect
리턴 bool

GetForegroundFrameLength() 공개 메소드

public GetForegroundFrameLength ( KinectInterop sensorData, bool isHiResPrefered ) : int
sensorData KinectInterop
isHiResPrefered bool
리턴 int

GetForegroundFrameRect() 공개 메소드

public GetForegroundFrameRect ( KinectInterop sensorData, bool isHiResPrefered ) : Rect
sensorData KinectInterop
isHiResPrefered bool
리턴 UnityEngine.Rect

GetHeadPosition() 공개 메소드

public GetHeadPosition ( long userId, Vector3 &headPos ) : bool
userId long
headPos Vector3
리턴 bool

GetHeadRotation() 공개 메소드

public GetHeadRotation ( long userId, Quaternion &headRot ) : bool
userId long
headRot UnityEngine.Quaternion
리턴 bool

GetJointIndex() 공개 메소드

public GetJointIndex ( KinectInterop joint ) : int
joint KinectInterop
리턴 int

GetMultiSourceFrame() 공개 메소드

public GetMultiSourceFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
리턴 bool

GetNextJoint() 공개 메소드

public GetNextJoint ( KinectInterop joint ) : KinectInterop.JointType
joint KinectInterop
리턴 KinectInterop.JointType

GetParentJoint() 공개 메소드

public GetParentJoint ( KinectInterop joint ) : KinectInterop.JointType
joint KinectInterop
리턴 KinectInterop.JointType

GetPhraseConfidence() 공개 메소드

public GetPhraseConfidence ( ) : float
리턴 float

GetRecognizedPhraseTag() 공개 메소드

public GetRecognizedPhraseTag ( ) : string
리턴 string

GetSensorPlatform() 공개 메소드

public GetSensorPlatform ( ) : KinectInterop.DepthSensorPlatform
리턴 KinectInterop.DepthSensorPlatform

GetSensorsCount() 공개 메소드

public GetSensorsCount ( ) : int
리턴 int

GetShapeUnits() 공개 메소드

public GetShapeUnits ( long userId, float>.Dictionary &dictSU ) : bool
userId long
dictSU float>.Dictionary
리턴 bool

InitBackgroundRemoval() 공개 메소드

public InitBackgroundRemoval ( KinectInterop sensorData, bool isHiResPrefered ) : bool
sensorData KinectInterop
isHiResPrefered bool
리턴 bool

InitFaceTracking() 공개 메소드

public InitFaceTracking ( bool bUseFaceModel, bool bDrawFaceRect ) : bool
bUseFaceModel bool
bDrawFaceRect bool
리턴 bool

InitSensorInterface() 공개 메소드

public InitSensorInterface ( bool bCopyLibs, bool &bNeedRestart ) : bool
bCopyLibs bool
bNeedRestart bool
리턴 bool

InitSpeechRecognition() 공개 메소드

public InitSpeechRecognition ( string sRecoCriteria, bool bUseKinect, bool bAdaptationOff ) : int
sRecoCriteria string
bUseKinect bool
bAdaptationOff bool
리턴 int

IsBRHiResSupported() 공개 메소드

public IsBRHiResSupported ( ) : bool
리턴 bool

IsBackgroundRemovalActive() 공개 메소드

public IsBackgroundRemovalActive ( ) : bool
리턴 bool

IsBackgroundRemovalAvailable() 공개 메소드

public IsBackgroundRemovalAvailable ( bool &bNeedRestart ) : bool
bNeedRestart bool
리턴 bool

IsBodyTurned() 공개 메소드

public IsBodyTurned ( KinectInterop &bodyData ) : bool
bodyData KinectInterop
리턴 bool

IsDrawFaceRect() 공개 메소드

public IsDrawFaceRect ( ) : bool
리턴 bool

IsFaceTracked() 공개 메소드

public IsFaceTracked ( long userId ) : bool
userId long
리턴 bool

IsFaceTrackingActive() 공개 메소드

public IsFaceTrackingActive ( ) : bool
리턴 bool

IsFaceTrackingAvailable() 공개 메소드

public IsFaceTrackingAvailable ( bool &bNeedRestart ) : bool
bNeedRestart bool
리턴 bool

IsPhraseRecognized() 공개 메소드

public IsPhraseRecognized ( ) : bool
리턴 bool

IsSensorAvailable() 공개 메소드

public IsSensorAvailable ( ) : bool
리턴 bool

IsSpeechEnded() 공개 메소드

public IsSpeechEnded ( ) : bool
리턴 bool

IsSpeechRecognitionAvailable() 공개 메소드

public IsSpeechRecognitionAvailable ( bool &bNeedRestart ) : bool
bNeedRestart bool
리턴 bool

IsSpeechStarted() 공개 메소드

public IsSpeechStarted ( ) : bool
리턴 bool

LoadSpeechGrammar() 공개 메소드

public LoadSpeechGrammar ( string sFileName, short iLangCode, bool bDynamic ) : int
sFileName string
iLangCode short
bDynamic bool
리턴 int

MapColorFrameToDepthCoords() 공개 메소드

public MapColorFrameToDepthCoords ( KinectInterop sensorData, Vector2 &vDepthCoords ) : bool
sensorData KinectInterop
vDepthCoords Vector2
리턴 bool

MapDepthFrameToColorCoords() 공개 메소드

public MapDepthFrameToColorCoords ( KinectInterop sensorData, Vector2 &vColorCoords ) : bool
sensorData KinectInterop
vColorCoords Vector2
리턴 bool

MapDepthPointToColorCoords() 공개 메소드

public MapDepthPointToColorCoords ( KinectInterop sensorData, Vector2 depthPos, ushort depthVal ) : Vector2
sensorData KinectInterop
depthPos Vector2
depthVal ushort
리턴 Vector2

MapDepthPointToSpaceCoords() 공개 메소드

public MapDepthPointToSpaceCoords ( KinectInterop sensorData, Vector2 depthPos, ushort depthVal ) : Vector3
sensorData KinectInterop
depthPos Vector2
depthVal ushort
리턴 Vector3

MapSpacePointToDepthCoords() 공개 메소드

public MapSpacePointToDepthCoords ( KinectInterop sensorData, Vector3 spacePos ) : Vector2
sensorData KinectInterop
spacePos Vector3
리턴 Vector2

OpenDefaultSensor() 공개 메소드

public OpenDefaultSensor ( KinectInterop dwFlags, float sensorAngle, bool bUseMultiSource ) : KinectInterop.SensorData
dwFlags KinectInterop
sensorAngle float
bUseMultiSource bool
리턴 KinectInterop.SensorData

PollBodyFrame() 공개 메소드

public PollBodyFrame ( KinectInterop sensorData, KinectInterop &bodyFrame, Matrix4x4 &kinectToWorld ) : bool
sensorData KinectInterop
bodyFrame KinectInterop
kinectToWorld UnityEngine.Matrix4x4
리턴 bool

PollColorFrame() 공개 메소드

public PollColorFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
리턴 bool

PollDepthFrame() 공개 메소드

public PollDepthFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
리턴 bool

PollForegroundFrame() 공개 메소드

public PollForegroundFrame ( KinectInterop sensorData, bool isHiResPrefered, Color32 defaultColor, bool bLimitedUsers, ICollection alTrackedIndexes, byte &foregroundImage ) : bool
sensorData KinectInterop
isHiResPrefered bool
defaultColor UnityEngine.Color32
bLimitedUsers bool
alTrackedIndexes ICollection
foregroundImage byte
리턴 bool

PollInfraredFrame() 공개 메소드

public PollInfraredFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
리턴 bool

SetSpeechConfidence() 공개 메소드

public SetSpeechConfidence ( float fConfidence ) : void
fConfidence float
리턴 void

UpdateBackgroundRemoval() 공개 메소드

public UpdateBackgroundRemoval ( KinectInterop sensorData, bool isHiResPrefered, Color32 defaultColor ) : bool
sensorData KinectInterop
isHiResPrefered bool
defaultColor UnityEngine.Color32
리턴 bool

UpdateFaceTracking() 공개 메소드

public UpdateFaceTracking ( ) : bool
리턴 bool

UpdateSensorData() 공개 메소드

public UpdateSensorData ( KinectInterop sensorData ) : bool
sensorData KinectInterop
리턴 bool

UpdateSpeechRecognition() 공개 메소드

public UpdateSpeechRecognition ( ) : int
리턴 int

VisualizeFaceTrackerOnColorTex() 공개 메소드

public VisualizeFaceTrackerOnColorTex ( Texture2D texColor ) : void
texColor UnityEngine.Texture2D
리턴 void