LAT Hologramm-Software 2.0
Loading...
Searching...
No Matches
test2.m
Go to the documentation of this file.
1tic
2for i=1:10
3r = logical(round(rand(30,30,8,1000)));
4end
5toc
6
7tic
8for i=1:100
9r = int8(randi([0,Hologram.grayLevels-1],1,30*30*100));
10r = logical(int2bit(r,8));
11r =reshape(r,log2(Hologram.grayLevels),30,30,100);
12r = permute (r,[2 3 1 4]);
13end
14
15toc
16
17tic
18maxrand=Hologram.grayLevels-1;
19depth = log2(Hologram.grayLevels);
20for i=1:100
21r = int8(randi([0,maxrand],1,30*30*100));
22r = logical(int2bit(r,8));
23r =reshape(r,depth,30,30,100);
24r = permute (r,[2 3 1 4]);
25end
26
27toc
28
29size(r)
Hologramme werden als Objekte vom Typ Hologram dargestellt.
Definition: Hologram.m:11
Property grayLevels
Anzahl der Graustufen.
Definition: Hologram.m:37