Matlab 'image processing'
Matlab 'image processing'
如果我从黑白图像中获取像素位置 [row, column] = find(bw2 == 1)
;然后我想将此位置移动到 RGB 图像,然后如何删除此位置或将蒙版而不是 RGB 图像中的此位置。如何做到这一点?
你试过这样的事情吗
[row, column] = find(bw2 == 1);
rgb_image(row,column) = 1; %assign value for the indices you found in your bw image; use 1 or whatever you want
bw2(row,column) = NaN; %or any other value, so next mask you won't select these indices
如果我从黑白图像中获取像素位置 [row, column] = find(bw2 == 1)
;然后我想将此位置移动到 RGB 图像,然后如何删除此位置或将蒙版而不是 RGB 图像中的此位置。如何做到这一点?
你试过这样的事情吗
[row, column] = find(bw2 == 1);
rgb_image(row,column) = 1; %assign value for the indices you found in your bw image; use 1 or whatever you want
bw2(row,column) = NaN; %or any other value, so next mask you won't select these indices