Transform the image coordinates to their new coordinates (zoom in MRA).
[Xsz,Ysz,Xz,Yz,Hz,Wz,Az,Lz] = NL_V_RectanglesZoom(Xs,Ys,X,Y,H,W,A,L,Z)
X-coordinate of all obstacles corners.
Y-coordinate of all obstacles corners.
X-coordinate of the main corner of each obstacle.
Y-coordinate of the main corner of each obstacle.
Height of each obstacle.
Width of each obstacle.
Angle of each obstacle.
Square area side.
Scale factor.
X-coordinate of all obstacles corners in the reduced image.
Y-coordinate of all obstacles corners in the reduced image.
X-coordinate of the main corner of each obstacle in the reduced image.
Y-coordinate of the main corner of each obstacle in the reduced image.
Height of each obstacle in the reduced image.
Width of each obstacle in the reduced image.
Angle of each obstacle in the reduced image.
Square area side in the reduced image.
NL_V_RectanglesZoom transforms the image coordinates to their new coordinates after a zoom (Multi Resolution Analysis)
.
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]=NL_V_RectanglesCorners(no,L,hm,hM,wm,wM);//generation of obstacles [P]=NL_V_PotentialRectangles(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=NL_V_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]=NL_V_RectanglesZoom(Xs,Ys,X,Y,H,W,A,L,z);//application of NL_V_RectanglesZoom [Xs;Xsz] [Ys;Ysz] [X;Xz] [Y;Yz] [H;Hz] [W;Wz] [A;Az] [L;Lz] | ![]() | ![]() |