mork 0.12.0 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +0,0 @@
1
- # Ignore everything in this directory
2
- *
3
- # Except this file
4
- !.gitignore
@@ -1,4 +0,0 @@
1
- # Ignore everything in this directory
2
- *
3
- # Except this file
4
- !.gitignore
@@ -1,4 +0,0 @@
1
- # Ignore everything in this directory
2
- *
3
- # Except this file
4
- !.gitignore
@@ -1,4 +0,0 @@
1
- # Ignore everything in this directory
2
- *
3
- # Except this file
4
- !.gitignore
@@ -1,4 +0,0 @@
1
- # Ignore everything in this directory
2
- *
3
- # Except this file
4
- !.gitignore
@@ -1,4 +0,0 @@
1
- # Ignore everything in this directory
2
- *
3
- # Except this file
4
- !.gitignore
data/test_reg.m DELETED
@@ -1,39 +0,0 @@
1
- clear
2
-
3
- i = imread('./spec/samples/angolo.jpg');
4
- ig = 255 - rgb2gray(i);
5
-
6
- % the horizontal signal
7
- hs = sum(ig, 1);
8
- % the vertical signal
9
- vs = sum(ig, 2);
10
-
11
- % kernel half size, to be determined
12
- khs = 15;
13
- % kernel X axis
14
- x = -khs:khs;
15
- % kernel full size
16
- ksize = length(x);
17
- % KERNEL
18
- y=sqrt(khs^2 - x.^2);
19
-
20
- % image YX sizes
21
- [vp, hp] = size(ig);
22
-
23
- xmin = nan(1, hp);
24
- ymin = nan(1, vp);
25
-
26
- for i = 1:hp-ksize;
27
- tx = hs(i:i+ksize-1); % the X values for the current step
28
- y=sqrt(khs^2 - x.^2)/khs*max(tx);
29
- xmin(i+khs) = sum((hs(i:i+ksize-1)-y ) .^ 2);
30
- % ymin(i+khs) = sum((vs(i:i+ksize-1)-y') .^ 2);
31
- end
32
-
33
- % plot(1:hp, [hs; xmin])
34
- plot(1:hp, xmin)
35
-
36
- cx = find(xmin==nanmin(xmin));
37
- cy = find(ymin==nanmin(ymin));
38
- fprintf('X: %d; Y: %d\n', cx, cy);
39
-