The program have perform crop operation without in built functions.Without in-built function,the work is not easy.There are more function to use.
The below steps to perform the crop operations:
- first identify location which we needs to remove.
- Then tack the picture information from the starts points.
- Then move the row and tack value.
- draw images.
CODE:
clear all;
close all;
clc;
a=imread('cameraman.tif');
x=0;
y=0;
for
n=95:130
x=x+1;
y=0;
for
m=38:73
y=y+1;
b(y,x)=a(m,n);
end
end