Creating binary 3D mask from MR volume
이전 댓글 표시
Hello All,
I am trying to create a 3D binary mask for MR head volume. The image has 0 intensity for background and the tissue inside the image has integers. Morphological operations provide me very noisy output.

This is after bwconncomp, thresholding and imerode options.
Are there better ways to get volumetric masks?
댓글 수: 8
darova
2020년 4월 26일
What about imdilate?
banikr
2020년 4월 26일
darova
2020년 4월 26일
What about binarization? Did you try small threshold?
load clown
rgb = ind2rgb(X,map); % convert indexed image to RGB
I = im2bw(rgb,0.2); % binarize
imshowpair(rgb,I)
banikr
2020년 4월 26일
Image Analyst
2020년 4월 26일
It might not matter that it's "noisy". What do you plan on using the mask for?
Image Analyst
2020년 4월 27일
I don't think the noise on the mask is the issue. Why did your classification routine quit classifying stuff below that line other than the blue stuff? For some reason, you have a mask that just quits below that line, and that has nothing to do with little noisy blips on it.
banikr
2020년 4월 27일
답변 (2개)
Mrutyunjaya Hiremath
2020년 4월 27일
Hello banikr,
I think this is what you want ... if I am not wrong.
load mri;
% load mriVolume; %3D MRI data with data variable name 'mriVolume'
mriVolume = D;
% Assuming background pixels are 0
bwMask = false(size(mriVolume));
pixIndex = find(mriVolume > 0);
bwMask(pixIndex) = 1;
댓글 수: 3
banikr
2020년 4월 27일
Mrutyunjaya Hiremath
2020년 4월 27일
@ banikr,
ok got it, if MRI data is possible to share, please share. love to work on it.
banikr
2020년 4월 27일
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


