[英]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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.