Simple GUI in MATLAB guide

Here, an example of GUI creation utilizing GUIDE in MATLAB. Lay out and program of simple GUI were shown in Figure 1 and 2
Figure 1. Lay out design.

Figure 2. The testmenu program to open and display RGB image.

Please download m-file, fig-file and image. >>> Download1, Download2

Linear regression and R square in MATLAB

%Here, sample code for linear regression and R square calculation
close all
clear all
%---------- generate x-data and y-data ---------
x=[1,1.2,1.53,1.64,2.15,2.36];
y=[151.4,142.9,135.3,116.42,91.9,70.8];
%----------- Linear regression -----------------
p= polyfit(x,y,1);
f= polyval(p,x);
%----------- Call R-square function ------------
r2=Rsquare(x,y,p);


%------------- Plot data -----------------------
figure()
plot(x,y,'*k');hold on
plot(x,f,'-r'); % show linear fit
xlabel('index');
ylabel('Intensity a.u.');
title('Test: Linear regreesion && R-square');
%------- Show y-data on current figure ---------
[row col]=size(y);
for i=1:col
str=num2str(y(i));
text(x(i),y(i),str,'Color',[0 0 1]);
end
%--Show linear equation on current figure -------
m1=num2str(p(1));c1=num2str(p(2));Rsquare1=num2str(r2(1));
text(1.05,80,['y= ',m1,'x+',c1,' , R^2= ',Rsquare1,'.'],'FontSize',10,'FontName','Times New Roman');

save source code in function file

%---------The function return R-square value -------------
%--------- input data ==> x-data, y-data and p-data ----
%--------- output data ==> r2
function [r2]=Rsquare(x,y,p)

Ymeasure=y;
Ycalculate=(p(1)*x)+p(2);
meanY=mean(Ymeasure);
deltaY2=sum((Ycalculate-Ymeasure).^2);
distanceY2=sum((Ymeasure-meanY).^2);
r2=1-(deltaY2/distanceY2);
%-------------------------------------------------------

Browse file in MATLAB

% Here, example source code for browse image file from any where, then show the image.
close all
clear all
%-----------------------------------
[F,PathName,FilterIndex] = uigetfile({'*.*','All Files(*.*)'}, 'Select your File ');
loadimage = strcat(PathName,F);
input = importdata(loadimage);
%------------ Display --------------
figure()
image(input); axis off
title('Original image');

Image Processing

What is Image Processing?

"Image Processing involves changing the nature of an image for interprets image data to human understanding”

Alasdair McAndraw

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







Image Processing: Application to Dynamics Experiment

Biophysics Application Approach

One of important applications of image processing are in the areas of biophysical image processing. For example; study a trajectory path of drug delivery in living cell; study dynamics of nuclear in living cell; measure transport properties of bead in cytoskeletons network etc.


Particle Tracking:
Image processing technique used to follow the spot-like particle. The result from this technique is a positions of spot-like particle (or trajectory of spot-like particle). Most of this technique used to classification of motion and calculate transport properties.
=====================================================

Single Particle Tracking

Technique is used to adjacent to single particle or small cluster molecule, as a result positions of particle which is reveal the behavior of the particle.

Dynamics Theory : Diffusion through Mean Square Displacement (MSD)

Neville E. Sanjana lecture "Brownian motion is named for Robert Brownian, who published a paper on his observations of pollen particles. "

For more detail
(MSD)...>>>

Stochastic papers...>>>(Prof. Hanggi)

Image Processing Part 2

Fourier Transforms of Image

1D Discrete Fourier Transform





































































MATLAB function for Fourier Transform
- fft : take Discrete Fourier Transform of a vector
- ifft : take the inverse
Discrete Fourier Transform of a vector
-fft2 :
take Discrete Fourier Transform of a matrix
-ifft2 :
take the inverse Discrete Fourier Transform of a matrix

To study, How the Fourier Transform work? Should be down load This file to your computer.

the product of this function show below











...............................................................................................
We thanks
Prof. A. McANDRAW for image processing book
McANDRAW,A.,2004 Introduction to Digital Image Processing with MATLAB
(Thomson course technology)


My bookmarks

Bookmarks

Get Bookmark Add-ons

Bookmarks Toolbar Folder

Add bookmarks to this folder to see them displayed on the Bookmarks Toolbar

Free Hotmail
Annual Reviews: Annual Review of Genetics: Table of Contents
Table of Contents for Annual Review of Genetics. List of articles from both the latest and forthcoming / reviews in advance issues.
New Journal of Physics latest papers
Co-owned by the Institute of Physics and Deutsche Physikalische Gesellschaft, New Journal of Physics is an open-access, electronic-only research journal covering the whole of physics. The editorial scope encompasses pure, applied, theoretical and experimental research, as well as interdisciplinary topics related to the subject.
Annual Reviews: Annual Review of Biophysics: Table of Contents
Table of Contents for Annual Review of Biophysics. List of articles from both the latest and forthcoming / reviews in advance issues.
Physics Today magazine
The magazine for the physics community
SpringerLink - Journal



Mozilla Firefox

Help and Tutorials
Customize Firefox
Get Involved
About Us

MSN.com
Radio Station Guide

Travel Tour

Domain name registration packages available from Network Solutions
Domain name registration packages and WHOIS service from Network Solutions.
Domain Names, Domain Name Registration and Web Hosting | Network Solutions
Offers domain names and domain name registration for many TLDs including .com, .net, .us and many global domains. Affordable web hosting packages include domain names.


JAVA code

Java Programming Examples


Host & Domain name

Host , Web hosting , Cheap Hosting , Reseller , Dedicated Server , Domain , Domain name , เช่าโฮส , โฮสติ้ง , โฮส , ถูก , โดเมน , โดเมนเนม
บริการ Hosting Reseller Dedicated Server ราคาถูก แรงและเร็ว พร้อมจดโดเมนเนมราคาถูกมาก
Ewebland ::: host

ProxySurf.org - Banned? So What!? - Free Anonymous Surfing
ProxySurf - Banned? So What!? -- Free Anonymous Surfing

Leah Dizon

Leah Dizon > รูปน่ารัก - JaJaR.com
Jajar, รูปภาพ, สาวๆ, น่ารัก, สวย, เซ็กซี่, หนังโป้, torrent, japan, xxx, sexy, idol, idols, photo, photos, image, images, pic, pics, gallery, galleries, รูป, รูปภาพ, สาว, สาวๆ, หาเพื่อน, หาสาว, หาเพื่อนใหม่, น่ารัก, รูปโป้, Wallpaper, Leah Dizon


E.coli

EcoGene
The Key to E. coli
Johan Elf


E learning

LearnSquare :: Thai Opensource e-Learning :: แหล่งเรียนรู้แบบยกกำลังสองบนโลกยุคไอที
แหล่งเรียนรู้แบบยกกำลังสองบนโลกยุคไอที


Latex

เริ่มต้นกับ LaTeX | ichris.ws
Weblog and writings by Chrisada Sookdhis
Getting to Grips with Latex - Tables - Latex Tutorials by Andrew Roberts @ School of Computing, University of Leeds
The website of Andrew Roberts, School of Computing, University of Leeds. Research interests: Natural Language Learning (NLL), Grammar Inference, Natual Language Processing (NLP), Machine Learning, Clustering.
LaTeX Table Spacing and Caption Control


Tracking Software

The Condensation Algorithm Home Page
Tracking / Structure from Motion - Computer Vision CISC 689 - Homework #4 by Benjamin Berger
Advanced Vision Module
www.diplib.org - DIPimage & DIPlib main
DIPUM Toolbox


PHP BB

ทำเว็บบอร์ดแบบ phpBB ภาษาไทย


free Web Hosting

Web Hosting Control Panel - AWARDSPACE.COM - Free Web Hosting Provider


Robot MatLab

Robotics, Fall 2006 | Simulator

Electhai - Electronics Thailand
แหล่งรวมความรู้และสืบค้นด้าน Electronic Microcontroller Robot Circuit
ElecToday :: อิเล็กทูเดย์ :: Electronics & Microcontroller
ElecToday :: อิเล็กทูเดย์ :: Electronics & Microcontroller

Leah Dizon

Leah Dizon: Blogs, Photos, Videos and more on Technorati


Electronics

Science Fair - Medium-difficult science projects - THE SCIENCE CLUB
Physics and Electronics
Coils
Electronics Index Page
This site provides a wealth of technology information sheets for pupils and teachers
Welcome to the Electronics Club
The Electronics Club

Welcome to AdSense
AGLOCO THAILAND : How it works?
Agloco Thailand

LATEX

การติดตั้งภาษาไทยกับ MiKTeX


Water Rocket

Monkhon's Water Rocket : ฐานยิงสุนทร
Water Rocket.


Fluorescence microscope

The Fluorescence Microscope
Fluorescence Dye and Filter Database


Books


Lateral Diffusion
Johan Elf
HFSP Journal
The HFSP Journal is a scientific journal publishing interdisciplinary articles at the frontier of the life sciences