How to draw rectangles along the tampered region of an image ?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have already determined the blocks of an image which are tampered.I want to draw a box over around this blocks and show the same in original image.Can any one please suggest any method for the same.
for i=1:64
if(abs(H(i)-Hm3(i))>1)
imshow(Block0(:,:,i); %tampered block i
[x]=FirstPositionBlock(i,:); %coordinate values of the first pixel of tampered block
end
end
If J is the original image how can i get the box drawn on the image corresponding to the tempered blocks of the image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147059/image.jpeg)
0 Commenti
Risposta accettata
Più risposte (2)
Erik S.
il 8 Feb 2015
Hi, I just saw in the documentation that the inputs should be normalized. Try to divide x(1) width image width and x(2) with image height, same for rectangle width and height.
3 Commenti
Erik S.
il 8 Feb 2015
Hi,
Can you upload the file please and state the coordinates where you want the rectangle?
Vedere anche
Categorie
Scopri di più su Computer Vision with Simulink in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!