Home > other >  Matlab will. Bin format image files
Matlab will. Bin format image files

Time:05-20

Z=4;
M=zeros (z, 64);
For I=1:1:6 4
Filename=[' D: \ iCentral _blockid, pictures, guti, 3 # 'num2str (I),' bin '].
Fid=fopen (filename, 'r');
[the Vector, the count]=fread (fid, 'uint8');
I=reshape (Vector, (64) ';
I=I (he, 33:34);
I=double (I)/255;
The Vector=reshape (I, 1, z) ';
M: I)=Vector;
End
Sum=[];
For j=1:2:6 3
Sum=[sum M (:, j) + M (:, j + 1)];
End
A=sum; % 2 ms pixel matrix, each as a frame image
Sum=[];
For j=1:2:31
Sum=[sum A (:, j) + A (:, j + 1)];
End
B=sum;
% 4 ms pixel matrixSum=[];
For j=1:2:15
Sum=[sum (B:, j) + B (:, j + 1)];
End
C=sum;
% 8 ms pixel matrixSum=[];
For j=1:2:7
Sum=[sum (C:, j) + C (:, j + 1)];
End
D=sum;
% 16 ms pixel matrixSum=[];
For j=syntactic sugar for 1:2:3
Sum=[sum D (:, j) + D (:, j + 1)];
End
E=sum;
% 32 ms pixel matrixF=E (:, 1) + E (:, 2);
% 64 ms pixel matrixK0=mean (SQRT ((STD (M. 0, 2))/(mean (M, 2))));
K1=mean (SQRT ((STD (A, 0, 2))/(scheme (A, 2))));
K2=mean (SQRT ((STD (B, 0, 2))/(scheme (B, 2))));
K3=mean (SQRT ((STD (C, 0, 2))/(mean (C, 2))));
K4=mean (SQRT ((STD (D, 0, 2))/(scheme (D, 2))));
K5=mean (SQRT ((STD (E, 0, 2))/(scheme (E, 2))));
K6=mean (SQRT ((STD (E, 0, 2))/(scheme (F, 2))));
Syms b p t v
X0=1/t; X1=2/t; X2=4/t; The x3=8/t; X4=16/t; X5=32/t; X6=64/t;
S0=b * p ^ 2 * (exp (2 * x0) - 1 + 2 * x0)/(2 * x0 ^ 2) + 4 * b * * (1 - p) * p (exp (x0) - 1 + x0)/x0 ^ 2 - K0 + v ^ 2;
S1=b * p ^ 2 * (exp (x1) - 2 * 1 + 2 * x1)/(2 * x1 ^ 2) + 4 * b * * (1 - p) * p (exp + x1 (x1) - 1)/x1 ^ 2 + v - K1 ^ 2;
S2=b * p ^ 2 * (exp (x2) - 2 * 1 + 2 * x2)/(2 * x2 ^ 2) + 4 * b * * (1 - p) * p (exp + x2 (x2) - 1)/2 x2 - K2 ^ ^ 2 + v;
S3=b * p ^ 2 * (exp (x3) - 2 * 1 + 2 * x3)/(2 * x3 ^ 2) + 4 * b * * (1 - p) * p (exp + x3 (x3) - 1)/x3 ^ 2 + v - K3 ^ 2;
S4=b * p ^ 2 * (exp (x4) - 2 * 1 + 2 * x4)/(2 * x4 ^ 2) + 4 * b * * (1 - p) * p (exp (x4) - 1 + x4)/x4 ^ 2 + v - K4 ^ 2;
S5=b * p ^ 2 * (exp (2 * x 5) - 1 + 2 * x 5)/(2 * x5 ^ 2) + 4 * b * * (1 - p) * p (exp (x5) - 1 + x 5)/x 5 ^ 2 + v - K5 ^ 2;
S6=b * p ^ 2 * (exp (x6) - 2 * 1 + 2 * x6)/(2 * x6 ^ 2) + 4 * b * * (1 - p) * p (exp + x6 (x6) - 1)/x6 ^ 2 + v - K6 ^ 2;
[] b, p, t, v=solve (s0 and s1, s2, s3, s4, s5 and s6, b, p, t, v)

Warning: always find explicit solution.
In solve (line 316)
In hecheng (line 65)

B=

The Empty sym: 0 - by - 1


P=

The Empty sym: 0 - by - 1


T=

The Empty sym: 0 - by - 1


V=

The Empty sym: 0 - by - 1
Synthesis of matlab will. Bin format image files, calculation of ratio, in according to the formula to calculate other unknown parameters, the result has been no solution, the bosses can help, please help
  • Related