-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.m
83 lines (80 loc) · 2.67 KB
/
main.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FPM app
% version 1.1
%
% Application for performing Fourier ptychography reconstruction.
% Run this script to launch FPM app
%
% This app was created as a part of master's thesis at Faculty of
% Mechatronics, Warsaw University of Technology, Warsaw, Poland
%
% Created by:
% Miko³aj Rogalski; [email protected]
%
% Last modified:
% 15.03.2021
%
% In case of any problem with FPM app, try to find a soluction in
% FPM_app_documentation.pdf or contact author by e-mail
%
% FPM app github page:
% https://github.com/MRogalski96/FPM-app
%
% Our exemplary datasets:
% https://bit.ly/2MxNpGb
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% FPM app reconstruction code was based on Lei Tian implementation of:
% "Fourier ptychography reconstruction algorithm with Quasi-Newton’s
% method"
% which can be downloaded here:
% http://sites.bu.edu/tianlab/open-source/
% Article:
% "L. Tian, X. Li, K. Ramchandran, and L. Waller, “Multiplexed coded
% illumination for Fourier Ptychography with an LED array microscope,”
% Biomed. Opt. Express, vol. 5, no. 7, p. 2376, Jul.2014,
% doi: 10.1364/BOE.5.002376."
%
% FPM app Synthetic data generation was inspired by codes attached to:
% "G. Zheng, Fourier Ptychographic Imaging A MATLAB tutorial.
% IOP Publishing, 2016"
% These codes may be downloaded here:
% https://smartimaging.uconn.edu/fourier-ptychtography/#
%
% FPM app uses block-matching and 3D filtering (BM3D) digital denoising
% algorithm, which may be downloaded here:
% http://www.cs.tut.fi/~foi/GCF-BM3D/
% Article:
% "K. Dabov, A. Foi, and K. Egiazarian, “Video denoising by sparse 3D
% transform-domain collaborative filtering,” Eur. Signal Process. Conf.,
% vol. 16, no. 8, pp. 145–149, 2007."
%
% FPM app uses Douglas M. Schwarz sort_nat sorting algorithm to sort
% strings in natural order. This algorithm may be downloaded here:
% https://uk.mathworks.com/matlabcentral/fileexchange/10959-sort_nat-natural-order-sort
%
% All licenses may be found in LICENSES directory.
% BM3D and sort_nat licenses are also respectively in:
% Algorithm functions/BM3D
% or in:
% Algorithm functions/sort_nat
% directories, where those algorithms are located
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear
close all
clc
f0 = waitbar(0,'Opening FPM app. It may take up to a minute.');
addpath('./Algorithm functions');
addpath('./Algorithm functions/BM3D');
addpath('./Algorithm functions/sort_nat');
addpath('./GUI functions');
% pth = ChangeSlash(pwd);
load(fullfile(pwd,'/initialization.mat'));
load(fullfile(pwd,'/initialization2.mat'));
GUI1;
try
close(f0)
end
clear f0