hi i have a programme matlab of region growing but it work just for png i need the same programme but for dicom images

1 回表示 (過去 30 日間)
clc;close all;clear all;
%croissance de region
a=imread('2.PNG');
a=rgb2gray(a);
b=im2double(a);
[n,m]=size(a);
x=round(n/2)
y=round(m/2)
Homog=0.15;
R1=regiongrow(b,x,y,Homog);
R2=regiongrow(b,x+60,y+70,0.2);
R1=imfill(R1,'holes');
R2=imfill(R2,'holes');
s=bwperim(R1,8);
[x,y]=find(s);
figure,subplot(131),imshow(a);title('image originale');
subplot(133),imshow(R1),title('image resultante');
subplot(132),imshow(R2),title('image resultante'),hold on
% % % %verifier la qualite de la segmentation
figure,subplot(131),imshow(a);title('image originale');
subplot(133),imshow(R1),title('image resultante');hold on;
[c h]=contour(R1),set(h,'Color','r','LineWidth',2)
hold off
subplot(132),imshow(R2),title('image resultante'),hold on
[c h]=contour(R2),set(h,'Color','r','LineWidth',2)
hold off
figure,imshow(a);hold on;
plot(y,x,'r.');

採用された回答

Walter Roberson
Walter Roberson 2016 年 4 月 9 日
Change
a=imread('2.PNG');
to
a=dicomread('2.dcm');

その他の回答 (1 件)

Asadullah Mumtaz
Asadullah Mumtaz 2017 年 3 月 1 日
hello, please give the method regiongrowing() which is used in this code

カテゴリ

Help Center および File ExchangeDICOM Format についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by