I have the following code:
clear all
clc
faceDetector = vision.CascadeObjectDetector;
I = imread('visionteam.jpg');
figure, imshow(I), title('Input Image');
bboxes = step(faceDetector, I);
IFaces = insertObjectAnnotation(I, 'Rectangle', bboxes, 'Face');
figure, imshow(IFaces), title('Detected faces');
———————
I want to replace the pixel values of RGB image under bounding box with some random pixel values?
After replacing the pixel values under bounding box, how can i show the complete image with replaced pixel values under bounding box?
Best Answer