MATLAB Answers

Extracting Multiple Points In Successive Images in a 3D Matrix

14 views (last 30 days)
I have a 3D Matrix, say 100 x 100 x 25. These are 25 images, 100 x 100 each stacked on top of eachother.
The simplest version of what I am trying to achieve: Say I want to see how a point (say point [50,50]) of one of the images changes as a function of how the images progress. To clarify: this would make a 1D array, and if plotted would show how the values of that point change from image to image over 25 images.
I want to be able to track around 30 points, so I do not mind doing it manually for each point but a way to do it all at once would be great.

Accepted Answer

Matt Gaidica
Matt Gaidica on 18 Jan 2021
Edited: Matt Gaidica on 18 Jan 2021
You would just build a 100 x 100 x 25 matrix (assuming these images are gray/binarized) and then something like:
figure;
plot(myImages(50,50,:));
Is there a more specific piece you need more help with?
  2 Comments

Sign in to comment.

More Answers (0)

Categories

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!