HID services: Difference between revisions
No edit summary |
|||
Line 1,257: | Line 1,257: | ||
===== MomentStatistic ===== | ===== MomentStatistic ===== | ||
In sdknso GetMomentProcessorStates, this loops through each MomentProcessorState->MomentStatistic entry: <code>AverageIntensity *= scale;</code> The scale is calculated with: <code>scale = 76800.0f / (float)([[#PackedMomentProcessorConfig|WindowOfInterest]].width * [[#PackedMomentProcessorConfig|WindowOfInterest]].height);</code> Note that <code>76800 == 320*240</code>, hence with the default width/height the calculated scale is 1.0f. | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! Offset || Size || Description | ! Offset || Size || Description | ||
|- | |- | ||
| 0x0 || 0x4 || AverageIntensity | | 0x0 || 0x4 || float AverageIntensity | ||
|- | |- | ||
| 0x4 || 0x4 || CentroidX | | 0x4 || 0x4 || CentroidX |