【发布时间】:2013-05-01 20:35:42
【问题描述】:
嗨,我是 matlab 的新手……我想检测图像中的病态细胞。
首先我通过以下代码分割图像: 现在我想提取它的特征......我该怎么办? 请指导我? 谢谢
he = imread('hestain.png');
imshow(he), title('H&E image');
text(size(he,2),size(he,1)+15,...
'Image courtesy of Alan Partin, Johns Hopkins University', ...
'FontSize',7,'HorizontalAlignment','right');
cform = makecform('srgb2lab');
lab_he = applycform(he,cform);
ab = double(lab_he(:,:,2:3));
nrows = size(ab,1);
ncols = size(ab,2);
ab = reshape(ab,nrows*ncols,2);
nColors = 3;
% repeat the clustering 3 times to avoid local minima
[cluster_idx cluster_center] = kmeans(ab,nColors,'distance','sqEuclidean', ...
'Replicates',3);
pixel_labels = reshape(cluster_idx,nrows,ncols);
imshow(pixel_labels,[]), title('image labeled by cluster index');
segmented_images = cell(1,3);
rgb_label = repmat(pixel_labels,[1 1 3]);
for k = 1:nColors
color = he;
color(rgb_label ~= k) = 0;
segmented_images{k} = color;
end
imshow(segmented_images{1}), title('objects in cluster 1');
imshow(segmented_images{2}), title('objects in cluster 2');
imshow(segmented_images{3}), title('objects in cluster 3');
图片如下:
现在我想提取它的特征......我应该怎么做? 请指导我? 谢谢
【问题讨论】:
-
在 Google 上搜索“matlab for初学者”
-
另外阅读这篇博客,blogs.mathworks.com/steve
-
你要提取哪些特征?
-
我想提取癌细胞的特征。这张图片中的一些细胞是癌细胞。癌细胞的颜色有一个特殊的颜色范围。在上图中,有些细胞变成了癌细胞,有些不是。我想区分癌细胞。我到底想做的是,“像上面这样的病理学图片是不是癌症”。请帮帮我..非常感谢。
-
@saeedtalaee:这听起来更像是组织学问题,而不是信号处理问题。
标签: matlab image-processing computer-vision