courbe de progression du pixel

조회 수: 3 (최근 30일)
Amal Felhi
Amal Felhi 2021년 4월 7일
댓글: Rik 2021년 4월 10일
Bonjour à tous j'ai en entrée 25 images IRM(dicom).
je metsen un point fixe (x,y) et je garde l'emplacement de ce pixel pour les autres images.
je veux tracer la courbe de progression de ce pixel. comment programmer ça?
Hello everyone, I have 25 MRI images (dicom) as input. I put a fixed point (x, y) and I keep the location of this pixel for the other images. I want to plot the progression curve of this pixel. how to program that?
  댓글 수: 20
Amal Felhi
Amal Felhi 2021년 4월 9일
my problem the update of the 25 images on the popmenu.
can you send to me the code of the update?
Rik
Rik 2021년 4월 10일
You can either use imshow (use the axes object handle), or you can set the CData property of an image object (which is the output of the imshow function).

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

채택된 답변

Rik
Rik 2021년 4월 7일
%load an example image
S=load('mri');
I=squeeze(S.D);
x=randi(size(I,1));y=randi(size(I,2));
intensity=squeeze(I(x,y,:));
plot(intensity)
  댓글 수: 4
Amal Felhi
Amal Felhi 2021년 4월 7일
votre code me donne ce resultat:
Rik
Rik 2021년 4월 7일
You should put in your own image and coordinates. It can happen that an x-y-combination is 0 for all z values. This will happen around the edge. Unfortunately, this example image is about half edge, so if you want to use random coordinates, you will get this line about half the time.

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

추가 답변 (0개)

제품


릴리스

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by