IF i have pixel location for abject as [x, y] = find(Bw2 == 0); then how i remove it then filling with Original background
this my code
[x, y] = find(Bw2 == 0);
[row, colo, z]=size(RGB); %size of rgb image
for i=1:row
for j=1:colo
if any(i==x) %if the row of rgb image is the same of pixel location row
if any(j==y(i==x)) %if the colos of rgb image is the same of pixel loca colo
Free_image= imfill(RGB,i,j);
end
end
end
end