This blog consists of some of the very important study materials which you will need during your studies, projects, preparing for your exams, preparing for your viva and for placement preparations. Also you can find some of the Pspice simulations for basic circuits and some Matlab codings that you can use it as reference for doing your lab experiments.
Wednesday, August 17, 2011
Sunday, August 7, 2011
Image Processing with MATLAB (Basic)
In this section: We processing the image with MATLAB code.
We will start with the basic and to make progress to advance level together.
MATLAB: lesson1 "load image to MATLAB"
Getting Start
Don't forget "The file must be in the current directory or on the MATLAB path"
(In this blog Comment are green texts start after %(comment))
FunctionDon't forget "The file must be in the current directory or on the MATLAB path"
(In this blog Comment are green texts start after %(comment))
:imread
Description
:reads a greyscale or color image from the file specified by the string 'filename'
Note: Please download bubbles.jpg to your computer first (ex. E:\Blog)
Example 1
read image
>>M=imread('bubbles.jpg'); %(imread returns the image-file data in the array 'M')
View this image with
>>imshow(M); %(displays the intensity image M)
or
>>imview(M); %(displays the intensity image M)
like this Fig.


Example 2
read image sequence
download This File to your computer first
(this contain image01.tif-image05.tif & Read_image_Series.m)
%%%%%%%%%%
clear all
b = 1; %(first image)
npic = 5; %( last image)
for i=b:npic;
str = num2str(i); %(convert number 'i' to string)
name = strcat('','image0',str,'.tif'); %(('','image0',str,'.tif') :''=directory contain file.'image0'=incomplete file name. str = string mean that 1.'.tif'= file format all of this mean that name is image0str.tif=image01.tif)
MAT = imread(name);
figure() %( reserve figure)
imshow(name); %(display image name)
title(i); %( show title in each image with the no.)
end
%%%%%%%%%%
Function
:aviread
Description
:Read an Audio/Video Interleaved (AVI) file
Example 3read avi file
download avi file to your computer
%%%%%%%%%%
>>Ar=aviread('movie01.avi');
Example 4make avi file
download Image Series to your computer%%%%%%%%%%
clear all
b = 16;
npic = 60;
mov = avifile('MakeVi01.avi') %MakeVi01.avi name of avi-file save to your comp.
for i=b:npic;
str = num2str(i);
name = strcat('ImageSe/','SPT200',str,'.tif'); % ex. image1.tiff : (file name= 'SPT200')
MAT = imread(name);
imshow(MAT);
axis off;
title(i);
F(i) = getframe(gca);
mov = addframe(mov,F(i));
end
mov = close(mov)
=============================================================
MATLAB: lesson2"Filtering in MATLAB"
Function
:Y= filter2(filter,image,shape)
Description
:returns the part of Y specified by the shape parameter. shape is a string
with one of these values:
'full' Returns the full two-dimensional correlation. In this case, Y is larger than X.
'same' (default) Returns the central part of the correlation. In this case, Y is the same size as X.
'valid' Returns only those parts of the correlation that are computed without zero-padded edges. In this case, Y is smaller than X
Example 1download file
%%%%%%%%%%
>> clear all
>> a=imread('cute01.tif');
>> imshow(a);
>> Fil=fspecial('average');% function fspecial is one(3,3)/9
>> aFilter=filter2(Fil,a);
>> imshow(aFilter/255);


Image Series
Saturday, August 6, 2011
Sherlock Holmes 2 : A Game of Shadows trailor
Sherlock Holmes 2: A Game of Shadows Trailer 2011 HD
In theaters: December 16th, 2011
Genre: Action and Adventure, Thriller
Official Site: http://www.sherlockholmes2.com
Director: Guy Ritchie
Cast: Robert Downey Jr., Jude Law, Noomi Rapace, Jared Harris, Eddie Marsan, Stephen Fry, Gilles Lellouche
Writers: Kieran Mulroney, Michele Mulroney
Storyline:
Sherlock Holmes and his sidekick Dr. Watson join forces to outwit and bring down their fiercest adversary, Professor Moriarty.
Subscribe to:
Posts (Atom)
Google : The top most search engine
Google : MAGIC BOX