필터 지우기
필터 지우기

How to apply Region Growing function on DICOM images ?

조회 수: 2 (최근 30일)
Ahmad Alenezi
Ahmad Alenezi 2019년 10월 22일
댓글: Ahmad Alenezi 2019년 11월 4일
Hi all
I have a DICOM file (128*128*16) consisted of 16 sequencial images. I want to apply Region Growing function ( a function created by Dirk-Jan Kroon for segmenting by growing a region from seed point using intensity mean measure) on my set of images (n=16). I am getting this error every time i try to run this function:
Error using images.internal.imageDisplayValidateParams>validateCData (line 115)
Multi-plane image inputs must be RGB images of size MxNx3.
Error in images.internal.imageDisplayValidateParams (line 27)
common_args.CData = validateCData(common_args.CData,image_type);
Error in images.internal.imageDisplayParseInputs (line 78)
common_args = images.internal.imageDisplayValidateParams(common_args);
Error in imshow (line 246)
images.internal.imageDisplayParseInputs({'Parent','Border','Reduce'},preparsed_varargin{:});
Error in regiongrowing (line 29)
if(exist('y','var')==0), figure, imshow(I,[]); [y,x]=getpts; y=round(y(1)); x=round(x(1)); end
Error in Untitled1111 (line 3)
J = regiongrowing(I);
After i saved Region Growing script, i used this code to call the Region Growing function:
I = im2double(squeeze(dicomread('MUGA.dcm')));
figure, imshow(I,[]);
J = regiongrowing(I);
figure, imshow(I,[]+J);
The function can be found in this link:
Can you please tell what should be the problem ?

채택된 답변

Subhadeep Koley
Subhadeep Koley 2019년 10월 29일
Hi, it seems that the regiongrowing() function can only handle images of size MxNx3. Where as your DICOM file has a dimension of MxNx16.
When I tried calling the same function with a DICOM image of size MxNx3, it ran without any error.
Therefore, please try calling the same with image of maximum size MxNx3.
  댓글 수: 9
Subhadeep Koley
Subhadeep Koley 2019년 11월 4일
Ahmad, regiongrowing() is a MATLAB File Exchange contribution by a MATLAB Central community user. I am not aware of the detail implementation of that function. You can post your quaries about the regiongrowing() function in that File Exchange submission page so that the author can help you.
Ahmad Alenezi
Ahmad Alenezi 2019년 11월 4일
Hi Subhadeeb
Thank you for your help, it is appreciated.
Ahmad

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by