Tag » Matlab

THE CORDIC ALGORITHM IMPLEMENTED IN OCTAVE AND VERILOG

I won’t describe the CORDIC algorithm in too much detail because there is a great Wikipedia article (http://en.wikipedia.org/wiki/CORDIC) along with an excellent paper describing CORDIC algorithms for implementing in an FPGA ( 276 more words

CORDIC

Morphological Image Processing

Hi,

It has been quite a while that I posted an article related to Matlab – IP, honestly because I do not come across using Matlab these days. 1.054 more words

Analysis & Simulations

Taking a Screenshot using Matlab!

Hi,

There are certain requirements while creating a Matlab GUI , to export the details of the results and analysis for generating a report or to use them for further processing on any other IDE . 193 more words

Analysis & Simulations

Edge Detection Algorithms in Matlab

Different edge detection algorithms written in Matlab -

% By Sahil Potnis
% Program for Prewits, sobel and Laplacian
clc;
clear all;
close all;

a= imread('cameraman.tif');
a= double(a);
a1=a;
a2=a;
a3=a;
a4=a;
a5=a;
a6=a;
a7=a;
a8=a;
=size(a);

w1 = [-1 -1 -1; 0 0 0; 1 1 1];
w2 = [-1 0 -1; -1 0 1; -1 0 1];
w3 = [-1 -2 -1; 0 0 0; 1 2 1];
w4 = [-1 0 1; -2 0 2; -1 0 1];
w5 = ;

for x= 2:1:row-1;    
for y= 2:1:col-1;
       
a1(x,y)=;

a2(x,y)=;

a4(x,y)=;

a5(x,y)=;

a7(x,y)=;

end
end

a3= a1+a2;
a6= a4+a5; 218 more words
Analysis & Simulations

Heart Animation in Matlab

Following is an interesting animation which I found on Matlab Central -

Analysis & Simulations

Piano Using Matlab GUI

Piano User Interface Developed in Matlab 
Code Developed by -
Gaurang Naik, IITB                
Shrikant Venkatramani, IITB and modified by me!

Analysis & Simulations

Compression using IGS Coding in Matlab

Compression Technique using Improved Grey Scale (IGS) Quantization in Matlab- 

By Sahil Potnis
% Compression using Improved Grey Scale (IGS) quantization

clc;
clear all;
aa=imread('coins.png');
a=double(aa);
=size(a);
temp = dec2bin(0,8);
for x=1:1:row-1
for y=1:1:col-1
q=dec2bin(a(x,y),8);
q1=;
a1(x,y)=bin2dec(q1);

if a(x,y)>=240
temp2=0;
else
temp1=;
temp2=bin2dec(temp1);
end

c=a(x+1,y+1)+temp2; 
c1=dec2bin(c,8);
temp=c1;
igs=;
code(x,y) = bin2dec(igs);
end
end

subplot(2,2,1)
imagesc(a)
colormap(gray)
title('Original image')

subplot(2,2,2)
imagesc(a1)
colormap(gray)
title('Image with lower 4 bits zero')

subplot(2,2,3)
imagesc(code)
colormap(gray)
title('IGS compressed image') 14 more words
Analysis & Simulations