【发布时间】:2013-11-20 16:43:50
【问题描述】:
我正在使用一种算法来确定 MATLAB 中细胞核图像分析的阈值。该算法测量核内的所有像素强度并计算一个值,该值用作区分背景噪声和前景的截止值。我知道如何将此值应用于核图像以查看截止有什么影响,但我想将阈值应用于网格图。碰巧有人知道如何做到这一点,我还不能发布图像,但我添加了图像分析的示例代码
% First I load image
i = imread('nucleus.tif')
% I calculate the value of the threshold using my algorithm using my function
ci99 = getCI99('nucleus.tif')
% say for example that the calculated value is 100. I would apply this threshold to the image of the nucleus with the following command
imshow(picture , [ 100, inf]) % The resulting image only shows pixels at and above the calculated threshold.
我使用下面的代码来绘制一个原子核的网格图
% Mesh Plot
I=imread('nucleus.tif');
[x,y]=size(I);
X=1:x;
Y=1:y;
[xx,yy]=meshgrid(Y,X);
i=im2double(I);
figure;mesh(xx,yy,i);
colorbar
figure;imshow(i)
我正在尝试将截止值应用于网格图,类似于我将阈值应用于原始图像的方式。
非常感谢任何帮助。
谢谢
【问题讨论】:
标签: matlab image-processing mesh