M.H
M.H

Reputation: 5

Matlab 'image processing'

If I Get a Pixel Location from black and white image as [row, column] = find(bw2 == 1); then I want to move this location to RGB image then how to remove this location or put mask instead of this location in RGB image. How to do this?

Upvotes: 0

Views: 47

Answers (1)

qbzenker
qbzenker

Reputation: 4652

Have you tried something like this

[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

Upvotes: 1

Related Questions