|
5 | 5 | https://github.com/SchwarzNeuroconLab/DeepLabStream |
6 | 6 | Licensed under GNU General Public License v3.0 |
7 | 7 |
|
8 | | -Simba Feature extraction functions were provided by Simon Nillson from Golden Lab |
| 8 | +Simba Feature extraction functions were provided by Simon Nilsson from Golden Lab |
9 | 9 | Main developer of SiMBA https://github.com/sgoldenlab/simba |
10 | 10 | and integrated into the SimbaFeatureExtractor |
11 | 11 |
|
|
25 | 25 | ### EUCLIDIAN DISTANCES IN SINGLE FRAMES |
26 | 26 | @jit(nopython=True, cache=True) |
27 | 27 | def EuclidianDistCalc(inArr): |
28 | | - """provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
| 28 | + """provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
29 | 29 | Mouse_1_nose_to_tail = int( |
30 | 30 | np.sqrt( |
31 | 31 | ((inArr[-1][4] - inArr[-1][12]) ** 2 + (inArr[-1][5] - inArr[-1][13]) ** 2) |
@@ -111,7 +111,7 @@ def EuclidianDistCalc(inArr): |
111 | 111 | ### EUCLIDEAN DISTANCES BETWEEN CENTROIDS IN ROLLING WINDOWS |
112 | 112 | @jit(nopython=True, cache=True) |
113 | 113 | def distancesBetweenBps(bpArray, bp): |
114 | | - """provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
| 114 | + """provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
115 | 115 |
|
116 | 116 | frames2Process = bpArray.shape[0] |
117 | 117 | bps2process = int(bpArray.shape[1] / 2) |
@@ -180,7 +180,7 @@ def distancesBetweenBps(bpArray, bp): |
180 | 180 | ### EUCLIDEAN DISTANCES BETWEEN BODY-PARTS WITHIN EACH ANIMALS HULL |
181 | 181 | @jit(nopython=True, cache=True) |
182 | 182 | def bpDistancesInHull(animal1arraySplit): |
183 | | - """provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
| 183 | + """provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
184 | 184 |
|
185 | 185 | frames2process = animal1arraySplit.shape[0] |
186 | 186 | bps2process = animal1arraySplit[1].shape[0] |
@@ -209,7 +209,7 @@ def bpDistancesInHull(animal1arraySplit): |
209 | 209 | ### TOTAL MOVEMENT OF ALL ANIMALS IN ROLLING WINDOWS |
210 | 210 | @jit(nopython=True, cache=True) |
211 | 211 | def TotalMovementBodyparts(arrayConcat_Animal1, arrayConcat_Animal2): |
212 | | - """provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
| 212 | + """provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
213 | 213 |
|
214 | 214 | frames2process = arrayConcat_Animal2.shape[0] |
215 | 215 | bps2process = int(arrayConcat_Animal2.shape[1] / 2) |
@@ -273,7 +273,7 @@ def TotalMovementBodyparts(arrayConcat_Animal1, arrayConcat_Animal2): |
273 | 273 | ### MOVEMENTS OF INDIVIDUAL BODY-PARTS |
274 | 274 | @jit(nopython=True, cache=True) |
275 | 275 | def singleAnimalBpMovements(tail_1, tail_2, center_1, center_2, nose_1, nose_2): |
276 | | - """provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
| 276 | + """provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
277 | 277 |
|
278 | 278 | Tail_base_movement_M1_median_2, Tail_base_movement_M2_median_2 = ( |
279 | 279 | int(np.median(tail_1)), |
@@ -339,7 +339,7 @@ def set_input_array_length(self, new_input_array_length): |
339 | 339 | def extract_features(self, input_array): |
340 | 340 | """Takes bp coordinates of length input_list_length and extract features. |
341 | 341 | :return extracted feature list for input to classifier" |
342 | | - Adapted from code provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
| 342 | + Adapted from code provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba""" |
343 | 343 |
|
344 | 344 | def append2featureList(featureList, measures2add): |
345 | 345 | featureList.extend(measures2add) |
|
0 commit comments