Which image contributes to the maximum intensity projection?

3 views (last 30 days)
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

Answers (1)

Kevin Holly
Kevin Holly on 27 Jul 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

Categories

Find more on Convert Image Type in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!