MATLAB code to hide the information of the part of the image.

 The below program describe the image parts hides.The parts that are needs to remove from the images.We need to first the location of the image.The program parts have a location such a (45,100) to (85,130) location.

The location of the image is 2D. We need to two loop to content retrieve and update each pictures.The location are described the information in images.
There are below steps to describe the program.
First step to read the image
Second step to retrieve each pixel information.
Third is identify parts location that is remove.
Assign each pixel value as 0.
Show the images.


CODE:
clear all;
close all;
clc;
a=imread('cameraman.tif');
for m=45:85
    for n=100:130
        a(m,n)=0;
    end
end


imshow(a);