2012-06-13 41 views
0

我有一個240x20像素的圖像。 我已經計算出一個最大閾值來查找圖像中的噪點。在觀察圖像的特定區域在x方向上包含從20到70的噪聲之後。如何在圖像的特定區域應用閾值?

現在我想在該特定區域應用閾值。有任何簡單的方法可能。

+2

你能精心製作的問題嗎?你能發佈更多圖片嗎? –

回答

2

如果我正確理解你的問題,這可能做的伎倆(僅在八度測試):

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