1 |
% determine possible combinations of tile sizes |
% determine possible combinations of tile sizes |
2 |
clear all, close all, Nx=2880; Ny=2176; px=[]; py=[]; |
clear all, close all, Nx=2880; Ny=2176; px=[]; py=[]; |
3 |
for i=2:(Nx/30) |
for i=2:(Nx/15) |
4 |
if mod(Nx,i)==0, px=[px i]; end |
if mod(Nx,i)==0, px=[px i]; end |
5 |
end |
end |
6 |
for i=2:(Ny/30) |
for i=2:(Ny/15) |
7 |
if mod(Ny,i)==0, py=[py i]; end |
if mod(Ny,i)==0, py=[py i]; end |
8 |
end |
end |
9 |
n=0; |
n=0; |
24 |
|
|
25 |
|
|
26 |
npx*npy npx npy snx sny |
npx*npy npx npy snx sny |
27 |
|
384 48 8 60 272 |
28 |
|
384 96 4 30 544 |
29 |
|
384 192 2 15 1088 |
30 |
|
408 3 136 960 16 |
31 |
|
408 6 68 480 32 |
32 |
|
408 12 34 240 64 |
33 |
|
408 24 17 120 128 |
34 |
480 30 16 96 136 |
480 30 16 96 136 |
35 |
510 30 17 96 128 |
510 30 17 96 128 |
36 |
512 32 16 90 136 |
512 32 16 90 136 |