我已使用此代码在matlab中应用regiongrowing函数来选择用于肺分割的种子点,而得到的只是几张原始图像图像(显示为灰色),并在选择了种子点后生成了空白的白色图像。 ..am正在处理dicom格式的图像...有帮助吗?
% read image
reg_maxdist = 0.2;
I = im2double(dicomread('000001.dcm'));
subplot(121);
imshow(I);
% let the user pick one point
[x,y] = ginput(1);
% round to integer to match required input by regiongrowing function
x = round(x);
y = round(y);
% plot point on original image
hold on;
plot(x,y,'xg','MarkerSize',20,'LineWidth',2);
hold off;
% get region from seed point
J = regiongrowing(I,y,x,reg_maxdist);
% plot region
subplot(122);
imshow(J);