-
Notifications
You must be signed in to change notification settings - Fork 5
/
README
58 lines (47 loc) · 2.05 KB
/
README
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
=================================
= README =
=================================
Link to my presentation: https://www.youtube.com/embed/2OS8EFP9fng
The file structure currently contains three main folders that looks like:
index.html #webpage
README
|--src/ #where all the matlab code is in. main.m is in here.
|--images/ #input images
|--output/ # output images
Instructions:
In order to run all my code, I have a main.m which is currently configured with boolean variables toggled to true to run each individual part. This is located in my "src" folder. Everything should be run from the src folder. In the src folder,
I currently have 1 "main" file, initialize.m which will do most of the "heavy-lifting."
The file has boolean variables at the beginning which you can toggle.
The two main variables are SAVE, GRAPH
It is currently toggled to be:
SAVE = false; # when toggled true, it will save to the corresponding output folders.
GRAPH = false;
========
main.m
========
Run main.m which will run through each of the files listed above earlier.
============
initialize.m
============
Runs through the code where you can choose to use brute-force or jitter sampling methods
=================
luminance_remap.m
=================
Remaps luminance values from A to B - used formula
===========================
Files for naive/brute-force
===========================
image_colorization_brute_force.m - main file for doing brute-force method
transform_fv.m - used to transfer AB channel values after finding best match
compute_fv.m - concatenates fvs used
sd_neighborhood.m - calculates std of each pixel in image around a certain neighborhood
===========================
Files for jitter sampling
===========================
image_colorization_jitter_sampling.m - main file for doing jitter sampling
transfer_sample_fv.m - used to transfer AB channel values after finding best match
============================
Helper files for misc things
============================
load_images.m # loads appropriate images
save_image.m # saves images