Image processing 如何在图像的特定区域应用阈值?
我有一个240x20像素的图像。 我已经计算了一个适当的阈值来找到图像中的噪声。在观察到图像的特定区域包含x方向20到70的噪声之后Image processing 如何在图像的特定区域应用阈值?,image-processing,matlab,Image Processing,Matlab,我有一个240x20像素的图像。 我已经计算了一个适当的阈值来找到图像中的噪声。在观察到图像的特定区域包含x方向20到70的噪声之后 现在我想在那个特定的区域应用阈值。任何简单的方法都是可能的。如果我正确理解了你的问题,这可能会奏效(仅在八度测试中): 你能详细说明一下这个问题吗?你能发布更多的图片吗? bw = im2bw(I(y1:y2, x1:x2, :), threshold); % y1 = start row % y2 = end row % x1 = start column %
现在我想在那个特定的区域应用阈值。任何简单的方法都是可能的。如果我正确理解了你的问题,这可能会奏效(仅在八度测试中):
你能详细说明一下这个问题吗?你能发布更多的图片吗?
bw = im2bw(I(y1:y2, x1:x2, :), threshold);
% y1 = start row
% y2 = end row
% x1 = start column
% x2 = end row
% the last column is for color images, so you address all color channels
% bw is an extract from the image I with the threshold applied