How to calculate random shift intensity difference (RSID) feature?
조회 수: 12 (최근 30일)
이전 댓글 표시
Hi,
I have 3D patients volumes saved in a matlab variable.
I need to extract random shift intensity difference (RSID) feature, this feature compares the intensity of the current voxel x and another
voxel x + u with random offset u, ` f(x, u) = I(x + u) − I(x)`, where u is a random offset vector.
My question is
- How many neighbors of a specific voxel needs to be considered to calculate RSID?
- How to find them with matlab code?
Your help is appreciated
댓글 수: 0
답변 (1개)
Image Analyst
2018년 12월 9일
I think you'd have to scan your 3-D value one voxel at a time.
If you just want the intensity difference over all the neighbors, you can simply use convn with a kernel of all -1 excel the center being 26
kernel = -1 * ones(3,3,3);
kernel(2,2,2) = 26;
kernel = kernel / 26; % So output is in same intensity range as input.
output = convn(inputImage, kernel, 'same');
Why do you want the difference at just one randomly located pixel instead of the average over ALL neighbors?
댓글 수: 6
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!