MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / getIRMap

Method getIRMap

Wrappers/OpenNI.java/src/org/openni/IRGenerator.java:97–110  ·  view source on GitHub ↗

Returns most recent IRMap output from the IRGenerator @return Most recent IRMap @throws GeneralException We are talking to a hardware sensor, so exceptions are possible

()

Source from the content-addressed store, hash-verified

95 * @throws GeneralException We are talking to a hardware sensor, so exceptions are possible
96 */
97 public IRMap getIRMap() throws GeneralException
98 {
99 int frameID = getFrameID();
100
101 if ((this.currIRMap == null) || (this.currIRMapFrameID != frameID))
102 {
103 long ptr = NativeMethods.xnGetIRMap(toNative());
104 MapOutputMode mode = getMapOutputMode();
105 this.currIRMap = new IRMap(ptr, mode.getXRes(), mode.getYRes());
106 this.currIRMapFrameID = frameID;
107 }
108
109 return this.currIRMap;
110 }
111
112 /**
113 * Retrieves the most recent IRMetaData object from the Generator

Callers

nothing calls this directly

Calls 6

xnGetIRMapMethod · 0.95
getXResMethod · 0.95
getYResMethod · 0.95
getMapOutputModeMethod · 0.80
getFrameIDMethod · 0.45
toNativeMethod · 0.45

Tested by

no test coverage detected