courbe de progression du pixel
이전 댓글 표시
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
Rik
2021년 4월 8일
How does my answer not work for you?
Also, you should mention the release you're using if you're using a release as old as R2014b.
Amal Felhi
2021년 4월 8일
Rik
2021년 4월 8일
You have 25 images, each image being 2D. That means you can store it in a 3D array. If you didn't, how did you store your images?
Image Analyst
2021년 4월 8일
Might get more answers if it were translated into English. Some of us don't know what is being asked unless we take the trouble to go to Google Translate.
Amal Felhi
2021년 4월 8일
Rik
2021년 4월 8일
What size are your 25 images and how do you load them?
Amal Felhi
2021년 4월 8일
Please delete the zip file, as it seems to contain actual patient information.
I expect you can use this in your loop to load your images to a 3D array:
IM=dicomread(fullfile(rep, list(1).name));
IM(1,1,numel(list))=0;%extend array to fit all slices
for n=2:numel(list)
IM(:,:,n)=dicomread(fullfile(rep, list(n).name));
end
And your other block of code can be replaced by something this:
figure(1),clf(1)
WW_WL=[min(IM(:)) max(IM(:))];
for n=1:25
subplot(5,5,n)
imshow(IM(:,:,n),WW_WL)
end
Or simply:
montage(permute(IM,[1 2 4 3]),'DisplayRange',[0 1000])
Amal Felhi
2021년 4월 8일
Rik
2021년 4월 9일
The first two lines load an example image and the third line selects random coordinates. That means you only need the last two lines.
Amal Felhi
2021년 4월 9일
Rik
2021년 4월 9일
All the subplot code is not necessary, you can replace it with the loop.
You made the command window so small that I can't see the full error message. Did you define a value for x and y?
Amal Felhi
2021년 4월 9일
Rik
2021년 4월 9일
You're welcome. If you feel my answer solved your problem, please consider marking it as accepted answer. If not, feel free to comment with your remaining issues.
Amal Felhi
2021년 4월 9일
Rik
2021년 4월 9일
Amal Felhi
2021년 4월 9일
Rik
2021년 4월 9일
You can use the popmenu callback to update the image. You can store the 25 images in the guidata struct. What exactly is the part you have trouble with?
Amal Felhi
2021년 4월 9일
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).
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Neuroimaging에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



