<< NARVAL_IP_ImShow NARVAL NARVAL_IP_Moravec >>

NARVAL >> NARVAL > NARVAL_IP_MRA

NARVAL_IP_MRA

Perform a scale modification on a matrix (Multi Resolution Analysis).

Calling Sequence

[zo] = NARVAL_IP_MRA(im,z,o)

Parameters

im :

matrix.

z :

scale factor.

o :

mode.

zo :

output matrix.

Description

NARVAL_IP_MRA performs the following scale modification on the matrix im of size (nxm) (Multi Resolution Analysis). The output matrix zo size is z times smaller than the one of im. There are four different modes: o=1 : mean, o=2 : max, o=3 : min and o=4 : median. Thus a single value is calculated for each non-overlapping block of size (n/z,m/z) in respect with the defined mode.

Examples

dt=getdate();
seed=dt(10);
rand('seed',seed);//initialization of the random values generator
no=4;//quantity of obstacles (rectangle)
L=1000;//squared area side
hm=100;//minimal height
hM=250;//maximal height
wm=100;//minimal width
wM=250;//maximal width
Al=[0 %pi/2 %pi -%pi/2];//available angles for obstacles
[Xs,Ys,X,Y,H,W,A]=NARVAL_IP_RectObstacles(no,L,hm,hM,wm,wM);//generation of obstacles
[P]=NARVAL_IP_PotentialRot(X,Y,H,W,A,L);//generation of obstacle matrix
z=10;//zoom factor
o=2;// 1=mean, 2=max, 3=min, 4=median
Pz=NARVAL_IP_MRA(P,z,o);//application of NARVAL_IP_MRA
[Pzx,Pzy]=size(Pz);//image size
w1=1;//window index
scf(w1);
clf(w1);
grayplot(1:L,1:L,P);//graph visualization
xset("colormap",graycolormap(128));
w2=2;//window index
scf(w2);
clf(w2);
grayplot(1:Pzx,1:Pzy,Pz);//graph visualization
xset("colormap",graycolormap(128));

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_IP_ImShow NARVAL NARVAL_IP_Moravec >>