Compare commits

...

6 Commits

Author SHA1 Message Date
29438be69c
Merge branch 'main' into studipsync 2022-11-03 18:01:27 +01:00
425eebceee Stud.IP Sync at 03/11/2022 13:16:40
6 files were unmodified
5 files were created
2022-11-03 13:16:32 +01:00
5d62b67c66
Finished exercise 1 2022-10-27 18:21:42 +02:00
e7413809a6
Merge branch 'studipsync' 2022-10-27 17:33:25 +02:00
f1cb5a7594
Solved task 1 to 10, missing final exercise 2022-10-25 12:36:57 +02:00
81772831a9
Extracted exercise 1 2022-10-25 12:12:00 +02:00
7 changed files with 3568 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -0,0 +1,46 @@
using Images
using PyPlot
using FFTW
N = 64
x = shepp_logan(N)
figure(1)
clf()
subplot(2,2,1)
imshow(x)
X = fft(x)
subplot(2,2,2)
imshow(abs.(X))
Y = fftshift(X)
subplot(2,2,3)
imshow(abs.(Y))
Y[1:div(N,4)+1,:] .= 0.0
Y[3*div(N,4):end,:] .= 0.0
Y[:,1:div(N,4)+1] .= 0.0
Y[:,3*div(N,4):end] .= 0.0
subplot(2,2,4)
imshow(abs.(Y))
figure(2)
clf()
imshow(abs.(ifft(ifftshift(Y))))
function mydft(x)
N = length(x)
y = zeros(ComplexF64,N)
for l=1:N
for n=1:N
y[l] += x[n]*exp(-2*pi*im*(n-1)*(l-1)/N)
end
end
return y
end

Binary file not shown.

Binary file not shown.

1692
tutorials/webcam.jl Normal file

File diff suppressed because it is too large Load Diff