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 MA
TLAB path"
(In this blog Comment are green texts start after %(comment))

Function
: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 3
read avi file
download avi file to your computer
%%%%%%%%%%

>>Ar=aviread('movie01.avi');


Example 4
make 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 1
download file
%%%%%%%%%%

>> clear all
>> a=imread('cute01.tif');
>> imshow(a);

>> Fil=fspecial('average');% function f
special is one(3,3)/9
>> aFilter=filter2(Fil,a);
>> imshow(aFilter/255);














Image Series







31 comments:

Kripssmart said...

Hey!!! Its cool...

Anonymous said...

This very valuable opinion

Anonymous said...

I converted an AVC MP4 file with HandBrake; the video quality is spot-on but the audio... well it's better to be said that there is no audio because the audio stream is so low pitched (like a very big man is talking with a very coarse voice) that it is very poor in quality... Anyone knows whats wrong???
[url=http://www.topvideoconverter.com/convert-x-to-dvd/]convert avi to dvd[/url]

Anonymous said...

How do I go about fixing this? Each of the files are about 5 gigs and just one won't fit on my 16 gig USB Flash. Any help will be greatly appreciated.
[url=http://www.topvideoconverter.com/dv-to-dvd-converter/]convert mini dv to dvd[/url]

Anonymous said...

The article about the video is good.

Anonymous said...

[url=http://ivlkrwnnz.com]fMNhVzpDrkhUF[/url] - QoxdUxufWSBLYoROf , http://yuxeflk.com

Anonymous said...

Awesome issues here. I am verу satisfied tο peer уοur article.

Thanκs sо much аnd I'm taking a look ahead to touch you. Will you kindly drop me a e-mail?

my homepage :: apartments near uf

Anonymous said...

Hі! I could have sworn ӏ've been to this site before but after browsing through some of the post I realized it's new to me.
Αnyways, I'm definitely happy I found it and I'll be booκmarking and checking
bаck often!

Here iѕ my web-site carρet cleaning machіnes []

Anonymous said...

I like the helpful information you provide in your articles.
I'll bookmark your weblog and check again here frequently. I'm quite
certain I'll learn a lot of new stuff right here! Best of luck for the next!

Also visit my blog free games unblocked

Anonymous said...

Just remembег tо ԁrink safe anԁ tгy not to get banned from уouг locаl bar because
of me. Νot сonsiderаbly meѕs can
bе bгοught оn by sitting at the comрutеr.
)Hoω many stepѕ per minutе ԁoes an аνeгage
toddler takе. The inіtial pаrticiрant plaуs uѕing thе arrow kеys аlongsіde
wіth the sеcond рlауer tеnds tο make use οf the ω,а,
s,ԁ kеys rounԁ thе κeyboard.

Anу settіng уοu сan think οf haѕ been сrеated fοr thе ѕystem.


my homepage - http://fununblockedgames.com/

Anonymous said...

Just rеmember tο dгinκ safe and trу
not to get banned from your local bar because of me.
They wеnt bаck to thе waterfall anԁ collected thеir
things, гeady to gο home. Usually
therе are different gameѕ fοr both
boys anԁ girls, ԁesigned еѕpeсially to suit
their specifiс рersonality. The inіtial pаrtіcipant plays
using thе arrow keys alongsidе with
the second playеr tends to make use of the w,a,s,d keys round the κeyboard.
Unlike your typical Kineсt dancing game there arе no breaks in between sοngs with
Zumba.

Visit my web-site: unblocked games

Anonymous said...

Nice blog! Is your theme custom made or did you download it from somewhere?
A design like yours with a few simple tweeks would really make my
blog jump out. Please let me know where you got your design.
With thanks

my page: free unblocked games

Anonymous said...

Fantаѕtic bеat ! I wiѕh to apprentice
while you amend уour ωеb site, how
can i subscribe for a blog sitе? Τhe acсοunt helped
me a acceptаble deal. I had bеen a little bіt аcquainteԁ of
thiѕ уour broadcaѕt prоνideԁ bгіght clear ideа

Haѵe a looκ at my homepage - 3dtattοoѕ.

net ()

Anonymous said...

can any one tell me how to get matlab software fo windows8

Anonymous said...

The inactive elements include lactose monohydrate, colloidal silicon dioxide, pregelatinized starch,
magnesium stearate and microcrystalline cellulose.

These diet pills help you to lose weight and bring your body mass index down to a normal healthy level.

Another common choice among dieters is herbal supplements,
and natural weight loss aids.

my page - pastillas para adelgazar sanas equilibradas para perder peso

Unknown said...

do you have any code for gray image segmentation using k-means algorithm

Anonymous said...

Hmm it looks like your website ate my first comment (it was extremely long) so I guess I'll just sum it
up what I submitted and say, I'm thoroughly enjoying your blog.
I too am an aspiring blog blogger but I'm still new to
everything. Do you have any tips and hints for beginner blog writers?

I'd certainly appreciate it.

Also visit my website; after effects optical flares tutorial

usman said...

hy
i have a scanned image of a txt page and i want do k-mean clutering in matlab to saparate my image ito three clusters of
1) Written txt
2) Back groung
3) and the area where page is dirty
Can u help me with that...i have seen ur matlab projct videos on youtube....i thnk it will help me alot...
regards
usman

Anonymous said...

Outsourcing Data Entry Services India actually function as contracting with those of outside consultants, software companies and them to do actually analysis of system programming and also data centre operations. Those professionals engaged in data entry operations can definitely feed all types of data.

Karthika Shree said...

Finding the time and actual effort to create a superb article like this is great thing. I’ll learn many new stuff right here! Good luck for the next post buddy..
Matlab Training in Chennai

ravinna said...

Nice blog.

Matlab Training in Chennai | Matlab Training Institute in Chennai

janathan said...

great blog....
foreach loop in node js
ywy cable
javascript integer max value
adder and subtractor using op amp
"c program to find frequency of a word in a string"
on selling an article for rs 1020, a merchant loses 15%. for how much price should he sell the article to gain 12% on it ?
paramatrix interview questions
why you consider yourself suitable for the position applied for

saishree said...

awesome post.
Industrial training for electronics and communication engineering students
Summer internship for ece students
Internship in bangalore for computer science students
Internships in bangalore for cse students 2019
Internship
Internship in kerala
Internship in chennai for eee with stipend
Internship in chandigarh for cse
Ethical hacking internship in chennai
Architecture firms in chennai for internship

Softgen Infotech said...

Thank you for sharing such a nice post!

Upgrade your career Learn SAP ABAP Training from industry experts get Complete hands-on Training, Interview preparation, and Job Assistance at Softgen Infotech Located in BTM Layout.

raju said...

awesome....!!
poland web hosting
russian federation web hosting
slovakia web hosting
spain web hosting
suriname
syria web hosting
united kingdom
united kingdom shared web hosting
zambia web hosting
inplant training in chennai













Arunvijay said...

nice post...

Intern Ship In Chennai
Inplant Training In Chennai
Internship For CSE Students
Online Internships
Coronavirus Update
Internship For MBA Students
ITO Internship

Quadsel Systems said...

Pretty article! I found some useful information in your blog....

so here we provide,

We provide you with flexible services and complete hybrid network solutions. It can provide your organisation with exceptional data speeds, advanced external security protection, and high-resilience by leveraging the latest SD-WAN and networking technologies to monitor, manage and strengthening your organisation’s existing network devices.

https://www.quadsel.in/networking/>
https://twitter.com/quadsel/
https://www.linkedin.com/company/quadsel-systems-private-limited/
https://www.facebook.com/quadselsystems/

#quadsel #network #security #technologies #managedservices #Infrastructure #Networking #OnsiteResources #ServiceDeskSupport #StorageServices #WarrantyAMCServices #datacentersolutions #DataCenterBuild #EWaste #InfraConsolidation #DisasterRecovery #NetworkingServices #ImagingServices #MPS #Consulting #WANOptimisation #enduserservices

Mrbk30 said...

Very Informative blog thank you for sharing. Keep sharing.

Best software training institute in Chennai. Make your career development the best by learning software courses.

Docker classes in Chennai
blue prism training in chennai
android course in chennai

teyslee said...

navigate to this websitesee this here Homepagemy latest blog post see herelearn this here now

wheigh said...

replica bags ebay replica bags nancy replica bags cheap

mcnene said...

next page g8i83j9g86 best replica bags replica goyard bags replica bags in uk replica hermes bags u1d56m9v81 replica bags online shopping Bonuses r2y39j9i32 7a replica bags wholesale replica bags us