mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-10 22:38:34 +02:00
Working on depth data processing.
This commit is contained in:
parent
3b3801915b
commit
de52342a14
1 changed files with 7 additions and 3 deletions
|
@ -596,10 +596,14 @@ void FrameGrabber::grabFrame() {
|
||||||
_faceDepth.create(ENCODED_FACE_WIDTH, ENCODED_FACE_HEIGHT, CV_8UC1);
|
_faceDepth.create(ENCODED_FACE_WIDTH, ENCODED_FACE_HEIGHT, CV_8UC1);
|
||||||
warpAffine(_grayDepthFrame, _faceDepth, transform, _faceDepth.size());
|
warpAffine(_grayDepthFrame, _faceDepth, transform, _faceDepth.size());
|
||||||
|
|
||||||
uchar* dest = (uchar*)_encodedFace.data() + vpxImage.stride[0] * ENCODED_FACE_HEIGHT;
|
uchar* dline = (uchar*)_encodedFace.data() + vpxImage.stride[0] * ENCODED_FACE_HEIGHT;
|
||||||
|
uchar* src = _faceDepth.ptr();
|
||||||
for (int i = 0; i < ENCODED_FACE_HEIGHT; i++) {
|
for (int i = 0; i < ENCODED_FACE_HEIGHT; i++) {
|
||||||
memcpy(dest, _faceDepth.ptr(i), ENCODED_FACE_WIDTH);
|
uchar* dest = dline;
|
||||||
dest += vpxImage.stride[0];
|
for (int j = 0; j < ENCODED_FACE_WIDTH; j++) {
|
||||||
|
*dest++ = *src++;
|
||||||
|
}
|
||||||
|
dline += vpxImage.stride[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue