<< NARVAL_IP_RectObstacles NARVAL NARVAL_IP_VisGraph >>

NARVAL >> NARVAL > NARVAL_IP_SpaceZoom

NARVAL_IP_SpaceZoom

Transform the image coordinates to their new coordinates (zoom in MRA).

Calling Sequence

[Xsz,Ysz,Xz,Yz,Hz,Wz,Az,Lz] = NARVAL_IP_SpaceZoom(Xs,Ys,X,Y,H,W,A,L,z)

Parameters

Xs :

x-coordinate of all obstacles corners.

Ys :

y-coordinate of all obstacles corners.

X :

x-coordinate of the main corner of each obstacle.

Y :

y-coordinate of the main corner of each obstacle.

H :

height of each obstacle.

W :

width of each obstacle.

A :

angle of each obstacle.

L :

square area side.

z :

scale factor.

Xsz :

x-coordinate of all obstacles corners in the reduced image.

Ysz :

y-coordinate of all obstacles corners in the reduced image.

Xz :

x-coordinate of the main corner of each obstacle in the reduced image.

Yz :

y-coordinate of the main corner of each obstacle in the reduced image.

Hz :

height of each obstacle in the reduced image.

Wz :

width of each obstacle in the reduced image.

Az :

angle of each obstacle in the reduced image.

Lz :

square area side in the reduced image.

Description

NARVAL_IP_SpaceZoom transforms the image coordinates [Xs,Ys,X,Y,H,W,A,L] to their new coordinates after a zoom (Multi Resolution Analysis) [Xsz,Ysz,Xz,Yz,Hz,Wz,Az,Lz].

Examples

stacksize(500000000);
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);//size reduction
w1=1;//window index
w2=2;//window index
scf(w1);
clf(w1);
[Pzx,Pzy]=size(Pz)
grayplot(1:Pzx,1:Pzy,Pz);
xset("colormap",graycolormap(128));
scf(w2);
clf(w2);
grayplot(1:L,1:L,P);
xset("colormap",graycolormap(128));
[Xsz,Ysz,Xz,Yz,Hz,Wz,Az,Lz]=NARVAL_IP_SpaceZoom(Xs,Ys,X,Y,H,W,A,L,z);//application of NARVAL_IP_SpaceZoom
[Xs;Xsz]
[Ys;Ysz]
[X;Xz]
[Y;Yz]
[H;Hz]
[W;Wz]
[A;Az]
[L;Lz]

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_RectObstacles NARVAL NARVAL_IP_VisGraph >>