Which image contributes to the maximum intensity projection?

3 visualizzazioni (ultimi 30 giorni)
I have 3 images and am doing a maximum intensity projection for these 3 images. I want an image which shows the image number that contributed to this maximum intensity projection. How do I do that? Thanks

Risposte (1)

Kevin Holly
Kevin Holly il 27 Lug 2022
Images=rand(3,10,10);
[maxImage index] = max(Images);
size(maxImage)
ans = 1×3
1 10 10
imshow(squeeze(maxImage))
index
index =
index(:,:,1) = 2 1 2 3 3 1 2 2 2 1 index(:,:,2) = 3 1 3 1 2 2 3 1 3 2 index(:,:,3) = 2 3 3 2 2 2 1 2 3 1 index(:,:,4) = 3 3 2 1 1 2 1 2 2 2 index(:,:,5) = 1 3 3 2 3 2 1 3 2 3 index(:,:,6) = 2 3 2 2 3 2 1 2 1 3 index(:,:,7) = 2 1 3 3 3 2 2 3 3 3 index(:,:,8) = 3 3 3 2 2 2 1 3 3 1 index(:,:,9) = 1 3 3 1 2 3 3 3 2 3 index(:,:,10) = 1 1 1 3 2 3 3 1 3 3

Categorie

Scopri di più su Convert Image Type in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by