matlab - How a apply a threshold in particular area of an image? -
i have image of 240x20 pixels. have calculated oprtimum threshold find noise in image. after observing particular area of images contain noise 20 70 in x-direction.
now want apply threshold in particular area. easy way possible.
if understand question correctly, might trick (only tested in octave):
bw = im2bw(i(y1:y2, x1:x2, :), threshold); % y1 = start row % y2 = end row % x1 = start column % x2 = end row % last column color images, address color channels % bw extract image threshold applied
Comments
Post a Comment