MATLAB Answers

plotting intensity over time

조회 수: 30(최근 30일)
Jenna
Jenna 31 May 2013
댓글: Hazmi Mazlaini 20 Jan 2017
I have 135 images, taken one after another. I want to plot the intensity of each pixel (let's say 25 x 25 pixels) as a function of time. How can I do that?

  댓글 수: 0

댓글을 달려면 로그인하십시오.

답변(2개)

Thomas
Thomas 31 May 2013
Eg:
s=rand(3,3,10); % 10 images of size 3x3 in a 3d matrix s
pixel1(1,:)=s(1,1,:); % pixel 1,1 from each matrix into variable pixel1
plot(pixel1) % plot pixel1
Hope this helps

  댓글 수: 0

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 31 May 2013
A plot of 625 curves (one curve for each of the 25 by 25 pixels) showing the pixel intensity as a function of image number (time the photo was taken) won't be very informative because it will be too cluttered. Why don't you take the mean of the 25 by 25 region and then plot only that one curve? Or else make the frames into a movie with the im2frame() function. I have demos for all that if you're interested.

  댓글 수: 5

표시 이전 댓글 수: 2
Hazmi Mazlaini
Hazmi Mazlaini 18 Jan 2017
this code is for the mean value for the whole area of the frames.
can you help me, if i want to plot a graph of the total red intensity over time in just a certain area of the frame?
Image Analyst
Image Analyst 18 Jan 2017
What area? Do you have bounding rows and columns? Or an irregular mask shape?
Hazmi Mazlaini
Hazmi Mazlaini 20 Jan 2017
I have video of a whole face, but only want to plot a graph of total redness in forehead as an example

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by