How to find the nearest voxel of a 3D image based on some specific intensity value...

2 views (last 30 days)
So I want to replace the abnormal intensity values from a 3D image. If the intensity is >1800 then I will replace it with nearest voxel value less than 1800.
I believe I can do it with hard coding... but is there any function to do that simply??
  8 Comments
Rik
Rik on 14 May 2020
It is not clear to me what indices are tissue and which are electrodes. Do you mean all electrodes are marked with label 20?
banikr
banikr on 14 May 2020
Edited: banikr on 14 May 2020
>> unique(lab)
ans =
0
1
2
3
4
8
10
20
Here label 20 is electrodes.
0 is for background and rest are different tissue labels.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!