-
Notifications
You must be signed in to change notification settings - Fork 0
/
Overlay ICC.ijm
34 lines (29 loc) · 1.29 KB
/
Overlay ICC.ijm
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
// OPEN BLUE, split and discard channels.
open("/Users/dmtr13/Google Drive/TMTLM/Year 2/Thesis/Cell Lab/NES/ICC_AstraAb/hAstro_P5_A10_1_b.tif");
run("Split Channels");
selectWindow("hAstro_P5_A10_1_b.tif (green)");
close();
selectWindow("hAstro_P5_A10_1_b.tif (red)");
close();
// OPEN GREEN, split and discard channels.
open("/Users/dmtr13/Google Drive/TMTLM/Year 2/Thesis/Cell Lab/NES/ICC_AstraAb/hAstro_P5_A10_1_g.tif");
selectWindow("hAstro_P5_A10_1_g.tif");
run("Split Channels");
selectWindow("hAstro_P5_A10_1_g.tif (blue)");
close();
selectWindow("hAstro_P5_A10_1_g.tif (red)");
close();
selectWindow("hAstro_P5_A10_1_g.tif (green)");
//run("Brightness/Contrast...");
run("Enhance Contrast", "saturated=0.35");
// OPEN RED, split and discard channels.
open("/Users/dmtr13/Google Drive/TMTLM/Year 2/Thesis/Cell Lab/NES/ICC_AstraAb/hAstro_P5_A10_1_r.tif");
selectWindow("hAstro_P5_A10_1_r.tif");
run("Split Channels");
selectWindow("hAstro_P5_A10_1_r.tif (blue)");
close();
selectWindow("hAstro_P5_A10_1_r.tif (green)");
close();
run("Merge Channels...", "c1=[hAstro_P5_A10_1_r.tif (red)] c2=[hAstro_P5_A10_1_g.tif (green)] c3=[hAstro_P5_A10_1_b.tif (blue)] create keep");
run("Stack to RGB");
//saveAs("Tiff", "/Users/dmtr13/Google Drive/TMTLM/Year 2/Thesis/Cell Lab/NES/Try3/ICC_20180405/NORM/LD+_C1.tif");