Perform a scale modification on a matrix (fft).
[R] = NL_V_Zoom(I,Z)
Matrix.
Scale factor.
Output matrix.
NL_V_Zoom performs the scale modification Z on the matrix I (fft). The output matrix R size is Z times larger than the one of I. The scale change is done in respect with the Fast Fourier Transformation (fft).
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 index 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);//image size grayplot(1:Pzx,1:Pzy,Pz);//graph visualization xset("colormap",graycolormap(128)); scf(w2); clf(w2); grayplot(1:L,1:L,P);//graph visualization xset("colormap",graycolormap(128)); zo=2;//zoom factor Pzz=NL_V_Zoom(Pz,zo);//application of NL_V_Zoom w3=3;//window index scf(w3); clf(w3); [Pzzx,Pzzy]=size(Pzz);//image size grayplot(1:Pzzx,1:Pzzy,Pzz);//graph visualization xset("colormap",graycolormap(128)); | ![]() | ![]() |