how can find altered pixels?

Illustration
qasim mohammed - 2024-02-05T18:40:17+00:00
Question: how can find altered pixels?

Hi Dears, I have two images the first is the original while the second is the watermarked image. I altered some pixels in the watermarked image , then I extracted the watermark from the altered image and compared with the original wateremark using MSE , I couldnt find the exact altered pixels, also I want a way to calculate the values of False positive (FP), false negative (FN) and average of detection rate . with many thanks  

Expert Answer

Profile picture of Neeta Dsouza Neeta Dsouza answered . 2025-11-20

idx = find(OriginalImage ~= WaterMarkedImage);
[coords{1:ndims(OriginalImage)}] = ind2sub(size(OriginalImage), idx);
row_col_plane_idx = cell2mat(coords);

Now row_col_plane_idx(K,1) is a row number of a mismatch, row_col_plane_idx(K,2) is the corresponding column, row_col_plane_idx(K,3) is the corresponding color plane (R, G, B)


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!