Skip to content

Commit d693724

Browse files
committed
Sample_selection
1 parent 856326a commit d693724

32 files changed

+1011633
-2
lines changed

Jia_sample_selection/dataset/FOCTS-loc-3.txt

+5,037
Large diffs are not rendered by default.

Jia_sample_selection/dataset/FOCTS-loc-5.txt

+3,936
Large diffs are not rendered by default.

Jia_sample_selection/dataset/FOCTS-loc-6.txt

+2,896
Large diffs are not rendered by default.

Jia_sample_selection/dataset/ODS-loc-10.txt

+8,796
Large diffs are not rendered by default.

Jia_sample_selection/dataset/ODS-loc-15.txt

+11,599
Large diffs are not rendered by default.

Jia_sample_selection/dataset/ODS-loc-9.txt

+8,237
Large diffs are not rendered by default.

Jia_sample_selection/dataset/PEG-loc-1.txt

+12,006
Large diffs are not rendered by default.

Jia_sample_selection/dataset/PEG-loc-5.txt

+9,592
Large diffs are not rendered by default.

Jia_sample_selection/dataset/PEG-loc-7.txt

+10,322
Large diffs are not rendered by default.

Jia_sample_selection/experiment.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
cd D:\forClone\Hiwi\Microgel\Jia_sample_selection
44
%1) read the entire slide: (the three .3d files contain the data from the Nano Letters paper)
55
cloud_add{1} = 'LHA_FOCTS_NIPMAM_ALL.3d';
6-
cloud_add{2} = 'LHA_ODS_NIPMAM_ALL.3d.3d';
6+
cloud_add{2} = 'LHA_ODS_NIPMAM_ALL.3d';
77
cloud_add{3} = 'LHA_PEG_NIPMAM_ALL.3d';
88

99
save_add{1} = './dataset/focts/';
1010
save_add{2} = './dataset/ods/';
1111
save_add{3} = './dataset/peg/';
1212

1313

14-
for id_mg = 2:2
14+
for id_mg = 1:3
1515
cloud = read_point_cloud(cloud_add{id_mg});
1616
%2) detect individual microgels:
1717
[centers_x, centers_y, x_range, y_range] = detect_gels(cloud, 0);

Jia_sample_selection/save_locations.m

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
clear all;
2+
clc;
3+
cd D:\forClone\Hiwi\Microgel\Jia_sample_selection
4+
className{1} = 'FOCTS';
5+
className{2} = 'ODS';
6+
className{3} = 'PEG';
7+
save_add{1} = './dataset/focts/tr/';
8+
save_add{2} = './dataset/ods/tr/';
9+
save_add{3} = './dataset/peg/tr/';
10+
11+
className = className{3};
12+
index = 7;
13+
14+
if strcmp(className, 'FOCTS')
15+
max_index = 7;
16+
save_add_path = save_add{1};
17+
h_bias = 200;
18+
d_max = 600;
19+
h_max = 400;
20+
elseif strcmp(className, 'ODS')
21+
max_index = 10;
22+
save_add_path = save_add{2};
23+
h_bias = 400;
24+
d_max = 600;
25+
h_max = 800;
26+
else
27+
max_index = 8;
28+
save_add_path = save_add{3};
29+
h_bias = 400;
30+
d_max = 420;
31+
h_max = 800;
32+
end
33+
34+
35+
add = strcat(save_add_path,string(index),'.ply');
36+
37+
test_local = pcread(add);
38+
all_localiz = test_local.Location();
39+
zvec=all_localiz(:,3);
40+
xcoord=all_localiz(:,1);
41+
deltax = xcoord-median(xcoord);
42+
ycoord=all_localiz(:,2);
43+
deltay = ycoord-median(ycoord);
44+
%data = all_localiz;
45+
data = [deltax, deltay, zvec];
46+
47+
save_path = strcat(save_add_path, 'loc-', int2str(index),'.txt');
48+
writematrix(data, save_path)

0 commit comments

Comments
 (0)