How to scale kinect depth image to apply LBP on it in Matlab?

I have a CurtinFaces Dataset that was captured by Kinect. I want to apply LBP and 3DLBP on a depth image (just like this work ). LBP and 3DLBP work with 8-bit depth images (see Figure 2 in the document), but Kinect depth images are stored in dual format (16 bits). Here is my image + depth + RGB. I scaled the depth values ​​between 500..1500 to 0..255 to get an 8-bit depth image. Here is the code used to scale:

load('01.mat');
I = reshape(d(:,3),[480 640]);
a = 500; b = 1500; %determined by histogram
I(I > b) = NaN;
I(I < a) = NaN;
I = im2uint8(mat2gray(I));
I = imcomplement(I);

Here is my result: enter image description here

, LBP . (35%)! , , Kinect 8 , LBP ?

.

+4
1

. , , . , , . , .

0

Source: https://habr.com/ru/post/1535433/


All Articles