kinect depth image thresholding

9 visualizaciones (últimos 30 días)
subhash kumar
subhash kumar el 6 de Oct. de 2018
Respondida: Image Analyst el 17 de Nov. de 2024 a las 18:16
i have got depth image of the table. i want a fixed depth(in number) so that i can perform comparison with the depth of my finger tip. i have extracted co-ordinates of fingertip and depth also. but mismatch occurs due to depth variation of kinect. below figures are attached having different depths in same image. kinect changes its depth with addition of 4. if one pixel has depth of 1175 then some distant pixel has depth 1179. can anyone help even i cant get regions of same depth in the depth image.
<<
>>
  5 comentarios
Image Analyst
Image Analyst el 6 de Oct. de 2018
Can you attach your two images, like in a .mat file?
subhash kumar
subhash kumar el 6 de Oct. de 2018
dataa.mat contains depth and rgb image

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 17 de Nov. de 2024 a las 18:16
From the RGB image, it looks like it's looking at a flat computer screen. And since that's mostly flat it makes sense that there would not be much dynamic range in the depth image. As to why there are the vertical artifact in it, I do not know.
% Demo by Image Analyst.
% Initialization steps.
clc; % Clear the command window.
fprintf('Beginning to run %s.m ...\n', mfilename);
Beginning to run LiveEditorEvaluationHelperEeditorId.m ...
close all; % Close all figures (except those of imtool.)
clearvars;
workspace; % Make sure the workspace panel is showing.
format long g;
format compact;
fontSize = 16;
s = load('kinect dataa.mat')
s = struct with fields:
d1: [187x339 uint16] r1: [187x339x3 uint8]
depths = s.d1;
rgbImage = s.r1;
subplot(2, 1, 1);
imshow(rgbImage, []);
impixelinfo; % Let user mouse around and see values displayed on the figure.
title('RGB Color Image')
subplot(2, 1, 2);
imshow(depths, []);
impixelinfo; % Let user mouse around and see values displayed on the figure.
title('Depth Image')

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by