【问题标题】:Matlab 'image processing'Matlab'图像处理'
【发布时间】:2017-04-14 11:40:05
【问题描述】:

如果我从黑白图像中获取像素位置为[row, column] = find(bw2 == 1);然后我想将此位置移动到 RGB 图像然后如何删除此位置或在 RGB 图像中放置蒙版而不是此位置。如何做到这一点?

【问题讨论】:

  • 你想用什么替换它?
  • 我想在把这个像素位置放在 rgb 图像上后用邻居填充这个区域

标签: matlab rgb pixel mask hsv


【解决方案1】:

你有没有尝试过这样的事情

[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

【讨论】:

  • 希望对您有所帮助!如果它解决了您的问题,请您在我的答案旁边标记复选标记!
猜你喜欢
  • 2014-06-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多