Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image processing 如何在图像的特定区域应用阈值?_Image Processing_Matlab - Fatal编程技术网

Image processing 如何在图像的特定区域应用阈值?

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 %

我有一个240x20像素的图像。 我已经计算了一个适当的阈值来找到图像中的噪声。在观察到图像的特定区域包含x方向20到70的噪声之后


现在我想在那个特定的区域应用阈值。任何简单的方法都是可能的。

如果我正确理解了你的问题,这可能会奏效(仅在八度测试中):


你能详细说明一下这个问题吗?你能发布更多的图片吗?
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