Skip to content

MSc IT

MATLAB Program to apply Histogram Equalization on image

MATLAB Program to apply Histogram Equalization on image Code clear allclcI=imread(‘cameraman.tif’);I=double(I);maximum_value=max((max(I)));[row col]=size(I);c=row*col;h=zeros(1,300);z=zeros(1,300);for n=1:rowfor m=1:colif I(n,m) == 0I(n,m)=1;endendendfor n=1:rowfor m=1:colt = I(n,m);h(t) = h(t) + 1;endendpdf… Read More »MATLAB Program to apply Histogram Equalization on image

Geometric Transformations

Geometric Transformations A) Translation, Rotation ScalingB) bresenham lineC) Mid-Point Circle (A) Translation, Rotation Scaling Code #include<stdio.h>#include<conio.h>#include<math.h>#include<graphics.h>void main(){    int val,x1,y1,x2,y2,x1dash,x2dash,y1dash,y2dash,tx,ty,sx,sy,x,y,theta;    float rad;    char cont;    int gdriver=DETECT,gmode,errorcode;   … Read More »Geometric Transformations

error: Content is protected !!