Kinect V2 Depth Changes

Hi All,

I am currently working with the Kinect V2 to develop a method of tracking respiratory motion.

How can I model and plot the depth changes over time? From looking into the array the depth image stores, the depth seems to be an index between the height and width.

For simplicity I want to plot the depth changes of a 5x5 pixel square in the center of the screen over 300 frames, so roughly 10 seconds. (I’ll change the frequency to fixed 10 Hz later) but right now i’m stuck on the basics.

Any help would be appreciated!

Thank you in advance.

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Try This:

maxFrame = 300;
vid = videoinput('kinect', 2); %1 for color, 2 for depth
vid.FramesPerTrigger = 1;
vid.TriggerRepeat = maxFrame;
start(vid);
for nFrame = 1 : maxFrame
d = getdata(vid);
[h,w,p] = size(d);
hh = floor(h/2);
hw = floor(w/2);
d55 = d(hh-2:hh+2, hw-2:hw+2,:);
...
end

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Use Your Data: Automating Email Attachments Downloads

Making Census Data Open, Accessible and Useful for Real People

Metadata Definition and its types?

Installation Of Multi-Node Hadoop 3.2.1 Cluster on a Single Machine

Exploratory Analysis of FIFA 18 dataset using R

A very Bayesian interpretation of decision trees and other machine learning algorithms

Covid-19 Tweets Sentiment Classification

When We Discover the “Why” of Cancer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

How to find phase shift and do phase shift correction between two signals in frequency domain?

A sparse RVFL neural network using the Fast Iterative Shrinkage-Thresholding Algorithm (FISTA)

Living Things: Breathing pattern

Why Creativity is Essential in Deep Learning