How to calculate the mean and standard deviation of the 27 neighbourhood of a voxel in a 3D matrix?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello everybody!
I have a matrix 336*336*65. I want to create two new matrices of the same size, one representing the mean value of the 27-neighboor of each voxel and another one representing the standard deviation for the same neighbors.
Can anyone help me?
댓글 수: 0
채택된 답변
Image Analyst
2017년 4월 25일
Use convn() and stdfilt().
kernel = ones(3,3,3);
out = convn(inputImage, kernel, 'same')
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
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!