-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.jl
60 lines (32 loc) · 887 Bytes
/
model.jl
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
p = "/home/kailukowiak/DataScienceProjects/mouse_skulls/src"
push!(LOAD_PATH, p)
using MRILables
f_names = readdir("data/MouseSkulls/")
match("*.nii", f_names)
f_names[1] |> typeof
"asome othe string 1234" |> typeof
match(r"^[*]+.nii", f_names[2])
match.(r"*.nii", f_names[1])
f_names = glob("*_landmarks.tag", "data/MouseSkulls/")
t1 = tagparser("data/MouseSkulls/1179_landmarks.tag")
t3 = VoxelArray(nil)
typeof(t3.img)
t3.xdim
typeof(t3)
T = typeof(t3)
for (name, typ) in zip(fieldnames(T), T.types)
println("type of the fieldname $name is $typ")
end
typeof(t3.vsizex)
t3.vsizex
test_dim = [500, 540, 800]
M = zeros(Int64, test_dim[1], test_dim[2], test_dim[3])
size(M) ./ 2 .-1
padarray(nil.raw)
A = ones(Int64, 15, 7)
padarray(A, Fill(0, (4,1), (4,4)))
test1 = imresize(nil.raw, 50, 50, 50)
imshow!(test1)
typeof(nil.raw)
typeof(test1)
imshow(test1)