sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
37ec1e308fbccb718c0fa2a155d0125b4779ebb7b4992ecaa96b0f7af0399942
C++
4,771
119
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
4817398cc160019ec20935da5974c6a6222f7b9e13bd8dac70d70c0f25df2462
C++
4,772
141
#include <algorithm> #include <vector> #include "caffe/filler.hpp" #include "caffe/layers/neuron_layer.hpp" #include "caffe/layers/prelu_layer.hpp" namespace caffe { template <typename Dtype> void PReLULayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { CHECK_GE(bot...
c2ecbbc6186d643b247ab180e0a0d9459c08cb521fc5495fb4580de34bf7e35c
C++
4,799
149
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2017 Imperial College London * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel * Copyright 2013-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
025fde0d03a5c0fd8a0e37e87d3f233098e9a7f60b0e480d594c66f294416dff
C++
4,816
134
#include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/concat_layer.hpp" #include "caffe/layers/flatten_layer.hpp" #include "caffe/layers/pooling_layer.hpp" #include "caffe/layers/split_layer.hpp" #include "caffe/layers/spp_l...
b20baca21cd3f1e0b9d4e2b34bd80f7f7eae11ec6233fbe3cf5e1de32b92ae80
C++
4,818
135
#include <QtTest> #include <QQuaternion> #include <QVector3D> #include "twistcalculator.h" #include <cmath> // Unit tests for the C++ port of Open Ephys's QuaternionToTwist. The purpose is // to pin two things that a port can silently get wrong: the SIGN (the commutator // must unwind, not wind up) and the quaternio...
e1a313c827423fdaa2df8e7efc4605f48cc72d64feab29edfce14cefa58b551a
C++
4,826
114
#include <vector> #include "caffe/filler.hpp" #include "caffe/layers/dummy_data_layer.hpp" namespace caffe { template <typename Dtype> void DummyDataLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { const int num_top = top.size(); const DummyDataParameter& para...
32b340f431cc92dace435118da881ae97f73c8df2a512668bfbcc4c7bb733bc7
C++
4,827
133
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
9dca4733b89ee19c74398e4e44e107c0b7e556b01a59480efe623f1cafc087a2
C++
4,862
159
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2017 Imperial College London * Copyright 2008-2015 Daniel Rueckert, Julia Schnabel * Copyright 2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
51a549578c9a321301687473c66ff802dae3125f0f13dcca082f178021e396e8
C++
4,869
121
#include <vector> #include "caffe/filler.hpp" #include "caffe/layers/bias_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void BiasLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { if (bottom.size() == 1 && this->bl...
93a82af7897e1ed81c66e932f68739cca2af4b397bbc7218219142a1dce1445e
C++
4,870
132
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
cdf364f4a0d607e48b6ab8b6bcf8438ed0c0ec8a2cb104944399edcdd445f767
C++
4,891
122
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
3de72a3ad93ffc58b7defa2a330b73c9c66d4c45e33e7fca6c0a1de1d67fd1ff
C++
4,911
133
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
360bd42997e9a13308c3ab1ed8a88b436e088e6c255aff1550ee333dcb24a6bb
C++
4,916
145
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
0804a054a6111fc73fa7ea222b444e677cf27e3fabc22ae9d301effd796c26e0
C++
4,922
123
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
598510872a8e560978c3e5c02990546a98696057e2381765cd3977fcc2d0b6b5
C++
4,967
137
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
bde30cf4670f74406e6c84d48d3364f7372a51192e94e0f6f5fc16d4f56fa786
C++
4,973
102
#ifdef _OPENMP #include <omp.h> #endif #include <RcppArmadillo.h> #include "bounds.h" #include "sim_pulse.h" #include "pulse_nll.h" using namespace Rcpp; //[[Rcpp::depends(RcppArmadillo)]] //[[Rcpp::plugins(openmp)]] //////////////////////////////////////////////// /* *** pulse model predictions *** */ ////////////...
064ed73e85c98c1da24eee59509613130b2d8066b7a73a254ad02a49170bc961
C++
5,001
128
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
aba85c668c9ca0c24cdd887525d60d1b61a5c061e39d57758d86c730248f8983
C++
5,026
170
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2015 Daniel Rueckert, Julia Schnabel * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
f0cb3274cc13f352cbfa0b2aaecfdf5b306b9f56d868fb853c2a441e305951f7
C++
5,027
140
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
ae419593550c721b0bf49a2f6d9dbe71d89a2548796a8194e042629d7eb582b2
C++
5,066
134
#include <vector> #include "caffe/layers/mvn_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void MVNLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { top[0]->Reshape(bottom[0]->num(), bottom[0]->channels(), bott...
fa9640dfdf1067380491d97a9db0cc54257b640aa9622e396b865be3732869e1
C++
5,079
126
#include <algorithm> #include <map> #include <sstream> #include <string> #include <utility> #include "caffe/common.hpp" #include "caffe/util/insert_splits.hpp" namespace caffe { void InsertSplits(const NetParameter& param, NetParameter* param_split) { // Initialize by copying from the input NetParameter. param_s...
621de4add8e1d4dd342d7fc9bc8322a13b7f2720310a629c1e09965844495422
C++
5,088
152
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2017 Imperial College London * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel * Copyright 2013-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
e27ee5138d8b7dec1f3256cccc83f8b01cb96aa4dee1fcfff9234cc147cc71f4
C++
5,106
146
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
2e9adbb4838011276912d420600ecba423e40a4daf578360568abd0c871ad064
C++
5,110
194
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
2d34477b3fa87894156eee1d6cc32bb078b9beb6227ddb77f452f07a551c70bf
C++
5,115
159
// This program converts a set of images to a lmdb/leveldb by storing them // as Datum proto buffers. // Usage: // convert_imageset [FLAGS] ROOTFOLDER/ LISTFILE DB_NAME // // where ROOTFOLDER is the root folder that holds all the images, and LISTFILE // should be a list of files as well as their labels, in the format...
c7e7931411403b1b4d14b46175f01f8391dcd33e05e608c256b06cb9c5b073b0
C++
5,137
167
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2017 Imperial College London * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses...
8cc9166b65fe1c51d9c7bd321c17742062681de4366ab5132c9e2d52ee692e94
C++
5,147
142
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
cd3880508fd6c36f6ffb0e6c0b2600a5fab4f10530519cf139cea926e8716d0c
C++
5,163
251
#include <math.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #include "newton.h" #ifndef min template <class T> static inline T min(T x,T y) { return (x<y)?x:y; } #endif #ifndef max template <class T> static inline T max(T x,T y) { return (x>y)?x:y; } #endif #ifdef __cplusplus extern "C" { #endif ex...
5762f0f0de291305b3a162fe788dbdfe8a981d588a618940494b8bb94aeb71b4
C++
5,165
152
#include <cmath> #include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/softmax_layer.hpp" #ifdef USE_CUDNN #include "caffe/layers/cudnn_softmax_layer.hpp" #endif #include "caffe/test/test_caffe_main.hpp" #include "caffe/te...
3ee0d1d501d1d2f4de5dad5bd66c064b607d36f1c6403095d0230e0095546466
C++
5,193
138
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
87625f9125166d381fe011361428a438ce6fe2ba6a83a4b47458e1759af594ad
C++
5,194
178
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2016 Imperial College London * Copyright 2016 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * htt...
d7c2ac70252755aea7227914d2df79412812aad4288101fa7413d010a317a4d9
C++
5,199
170
#include <algorithm> #include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/power_layer.hpp" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" namespace caffe { template <typename...
59097959cd4a0f0adafcd831327ddb417cecf7e77bc3dcfcf1aa52b024cabd21
C++
5,203
213
#include "mex.h" #include "math.h" #include "matrix.h" //#include <omp.h> #define SQRT_MAGIC_F 0x5f3759df // 64 Bit float magic number #define SQRT_MAGIC_D 0x5fe6ec85e7de30da inline double fastSqrt_Bab(const double x) { union { long i; double x; } u; u.x = x; u.i = (((long)1)<<61) + (u.i >> 1) - (...
471b6be1b5d9b94b596bf55842964ae41806ed0ddfed0582d93b4dafa8818603
C++
5,219
143
#include <algorithm> #include <functional> #include <map> #include <set> #include <vector> #include "caffe/layer.hpp" #include "caffe/layers/crop_layer.hpp" #include "caffe/net.hpp" namespace caffe { template <typename Dtype> void CropLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Bl...
28f1e2c1a5130ea57814dc78a89d0d65b91fd2b1bcacfec0180320b4bca775ff
C++
5,247
147
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
2789999b26c89436c950bbd0cd8a7caa764527e91f18eff6d455943c6531c5e3
C++
5,249
162
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
ddb46358ce956e9c0b988c37550ffb73302fb87b287d847a84a59574033d9cf3
C++
5,249
164
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
647df9681c7bc1f18d4b127c8b907558da0d3c0c385ad6f44d6a9182a6e1bc25
C++
5,250
174
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2015 Imperial College London * Copyright 2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * htt...
842f720f15bad7670260336dfda1a532afe3bfc5bd34d5d8431a1f0fc89cfe87
C++
5,297
178
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2016 Imperial College London * Copyright 2013-2016 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
088c40db5100928955b2d354c3944e837e52197edc9e442c87c9d7c5fa2a5486
C++
5,302
144
#include <algorithm> #include <cmath> #include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/contrastive_loss_layer.hpp" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" namespace...
2694ba742af24d878bf0c8fab1c1ba619abbe65e39733ecbecc0cc8e8dec1523
C++
5,315
182
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2016 Imperial College London * Copyright 2013-2016 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
532d87f3a5e60633e4241005c4e0f5049e8ec7cc81c72255cb8f355c2ae1c485
C++
5,340
165
#include "controlpanel.h" #include <QDebug> #include <QJsonArray> #include <QJsonValue> #include <QProcess> #include <QTime> ControlPanel::ControlPanel(QObject *parent, QJsonObject userConfig) : QObject(parent), m_userConfig(userConfig) { m_ucRecordLengthinSeconds = m_userConfig.value("recordLengthInSecon...
0421009cdde7fd22b1acfc8b84f6b0c1e3af6324c62987a37effb59002be666f
C++
5,385
130
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
e8b4bda40cec567e226b80483d0a3cf1bee583f80bbfe98793674f14ca36ca19
C++
5,392
159
/********************************************************************* * __ _ _ _ _____ * / _| | | /\ | | | |/ ____| * | |_ __ _ ___| |_ / \ | | | | | * | _/ _` / __| __| / /\ \| | | | | * | || (_| \__ \ |_ / ____ \ |__| | |____ * |_| \__,_|___/\__/_...
a6b09330c0d10915330d45a1b416b63278f591954b5640d9048bd020189138b6
C++
5,402
163
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2016 Imperial College London * Copyright 2016 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * htt...
96fd7a545990ddce1ae2b6ae297cd65575793d9bc52010703505e31759b91b70
C++
5,403
162
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
a09957a22427e0ff5cd6c9e651ccf4247a5f42d86ea5204087aa524c9f0b0f60
C++
5,430
190
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2015 Daniel Rueckert, Julia Schnabel * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
86628ad59bf1a4109d8d0f35b29d73fb1d7a83c7aca2b2d33ab79999693dcb5f
C++
5,440
145
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
670c9bf54dce148f3714934a2141d66b15071bdbc2b5d46679b5a2b8dbf9e7fb
C++
5,478
147
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
d657eb8cf79adc2e42985c7fcb40fd5c4ef0a2ed294d6b96dde076c43a7f14b6
C++
5,487
172
#include <vector> #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/mvn_layer.hpp" #include "google/protobuf/text_format.h" #include "gtest/gtest.h" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" namespace caffe { t...
800610ebfb954c279331b2d3a920a9cc8e01ff39cc2b431dbd7ed608d32316f6
C++
5,497
160
#include <cfloat> #include <vector> #include "caffe/layers/eltwise_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void EltwiseLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { CHECK(this->layer_param().eltwise_para...
53cd4848d4c32769f31c0674ad73eaefcac50839c97b6e38b2c16bdc6203ca63
C++
5,502
141
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
dc02bbcdf7fba4db4ceef7402fca465a4022863eeded2f9e7ed9c6704b27d470
C++
5,530
154
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
ebb194e630e28c02efb7feaa1baea08e5041860057b150829eced40f47a20ae1
C++
5,530
136
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
3ebd339af98038f9a1ed880e4eb69815f6f3376eee0ec2a3ce55db07600a05dd
C++
5,547
150
#include <vector> #include "caffe/filler.hpp" #include "caffe/layers/inner_product_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void InnerProductLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { const int num_out...
e9390a85296e2921394857beb16ad982e88bf9f724d06d6324cf887356da64bd
C++
5,564
161
#include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/tile_layer.hpp" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" namespace caffe { template <typename TypeParam> class Tile...
60a49e03e591871ed5deca89a8bcba93a722ea99548ff4b7dd9e229728a6b4a0
C++
5,570
155
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
1e048a11af8edf0c6dcd3163d11a23ce3f94553e0e58f67606b7dc9bb9641d59
C++
5,587
182
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2016 Imperial College London * Copyright 2016 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * htt...
5a88f8496c4a89236aa65e2dbdaa6ef430c5a130506d09e9815aa36c311e0383
C++
5,632
190
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
5f44fe083d46a44da6b085aba03ae9b782c6af3429e9d57d7a1ece722b3c6063
C++
5,666
144
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
2d3ca9fc2876dedaed883cc5ea773dc9f37fc8a0bbe642f057c43cca9b19c205
C++
5,668
168
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2017 Imperial College London * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel * Copyright 2013-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
f6c9d03cca134d28037bdb7413c76566664ac8371385fc633264b3f71a2d6dd4
C++
5,678
166
/* TODO: - load file in a separate thread ("prefetch") - can be smarter about the memcpy call instead of doing it row-by-row :: use util functions caffe_copy, and Blob->offset() :: don't forget to update hdf5_daa_layer.cu accordingly - add ability to shuffle filenames if flag is set */ #include <fstream> // NOLINT...
638ebd70eb81459bf5076a68eefa5fdd6cc76d0bd5af6866456fce3fb0af1d80
C++
5,690
149
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
338694f30060f3564b72831aad7d9f280e697203668317207200b57abad04832
C++
5,706
152
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
076fc1fba13d694a9df58397b6ad60930a515e8799cf722eb108f3035616e3f5
C++
5,737
158
#include <algorithm> #include <cfloat> #include <vector> #include "caffe/layers/softmax_loss_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void SoftmaxWithLossLayer<Dtype>::LayerSetUp( const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { LossL...
d5dd458ecefc3ca83ebffc112aa93f5323a34d236910e9c0ce23ed46eb935452
C++
5,737
202
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2019 Imperial College London * Copyright 2019 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * htt...
4eda59da2244cce8d8845d1d132b7c7eab82f0435862f04fdeab3aa4eda87c54
C++
5,746
182
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2017 Imperial College London * Copyright 2013-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
4adce6d88010504c383b6a62e458c87dfc2302962a2dbddff8b5a8e6b7e9f5ad
C++
5,774
129
#include "configvalidator.h" #include <QFile> #include <QJsonDocument> #include <valijson/adapters/qtjson_adapter.hpp> #include <valijson/schema.hpp> #include <valijson/schema_parser.hpp> #include <valijson/validation_results.hpp> #include <valijson/validator.hpp> QStringList migrateUserConfig(QJsonObject &config) {...
9234a2ea675f98fc113bbe3d4ec1dc12c615373976e1026867d2e58bd72db33e
C++
5,875
191
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
8631a65eff1d21d13a2571f40baff781f1a4837129c4a6fbc4c88234f8dfaaa8
C++
5,880
131
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
d9adb8dcace2ba0e832a9ac00ff8354dfb7a4d3b1077956b41bac4cfd839372c
C++
5,884
171
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2016 Imperial College London * Copyright 2016 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * htt...
48764a0e49f82df80532ac183a27f2da463edf53743c2e78a2b1c71d865e8b90
C++
5,886
177
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
c953b8e65e281f83ecd6921dd3920d8412eb5966fa4bc8fc7a82bb9bcf67b7d5
C++
5,920
209
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2016 Imperial College London * Copyright 2016 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * htt...
7b92cd7eb254ed143bce8ccc2b059433bdfb78865178cc50b845fb8cf1a0a7e1
C++
5,941
156
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
8a6401cdd23298e560b14eca20d2f035327d377a9ebef335672398640890d7a5
C++
5,948
222
//========================================================= // //This is a prog in the MutualInfo 0.9 package written by // Hanchuan Peng. // //Disclaimer: The author of program is Hanchuan Peng // at <penghanchuan@yahoo.com> and <phc@cbmv.jhu.edu>. // //The CopyRight is reserved by the author. // //Last modificat...
31af6d7b4a399f56b868d181436788fcb56d2d13f4ef1639c34516a5666da8ec
C++
5,971
188
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
918f3401c3207ae3b55e27960ea101428400811b905d87e22a595e36fe78218d
C++
5,971
190
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
108b0830afb13cca140d4ea03090c5e68bba7f6d7f14998e9577e9a2c91f05f9
C++
6,071
226
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2015 Daniel Rueckert, Julia Schnabel * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
3d20b955f18051ed9b28b65a70fee5d9ca29ec2c2d21a6715c7d09a8f1b07de6
C++
6,080
185
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
1a42de5b377f85129f14828b16a969943a656b0e9ca368dabafd16ecd8a0f493
C++
6,098
205
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2015 Daniel Rueckert, Julia Schnabel * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
beb6d8c65abc92e0f7161bb14c688df06a61b8b65c75a354a094bd923a01808b
C++
6,132
210
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
238dc6d9436d4b472b7d13d68919a2f3f2403f45c1e691884c012f84e8c6d4be
C++
6,199
175
#include <algorithm> #include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/pooling_layer.hpp" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" using std::min; namespace caffe { ...
029e18357fc51e72065453c2eb65a46176887990bfcdcd09130ce9ba7f09271a
C++
6,216
207
#include <math.h> #include <stdlib.h> #include "mex.h" double sqr(double x) { return x*x; } struct prvek{ double dat; int ind; }; struct prvekz{ int x1,y1,x2,y2; void set(int nx1,int ny1,int nx2,int ny2){ ...
2ce125e1541674848962c1b9f5609e8ace296d5722dda8ddcaa2108155e367af
C++
6,255
160
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
12f4fd919c48be83a0cc9b438dce2ae425d71115e8757fd5211a680d16382763
C++
6,257
165
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
b75054feedc3d0ff6816d0314dad9c624f3c9a5f1643f4f3f05ecc36fd8f6ac3
C++
6,273
178
#include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/im2col_layer.hpp" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" namespace caffe { template <typename TypeParam> class Im...
9d8bf1f8cdf533331ebd322c98d3d5106235577104663036a028017b7ccbf3d0
C++
6,290
187
#include "caffe/util/hdf5.hpp" #include <string> #include <vector> namespace caffe { // Verifies format of data stored in HDF5 file and reshapes blob accordingly. template <typename Dtype> void hdf5_load_nd_dataset_helper( hid_t file_id, const char* dataset_name_, int min_dim, int max_dim, Blob<Dtype>* blob)...
b4a86d1676c94b866d98900379dd748253ba44d8a02a36c36260b215d87a2d00
C++
6,381
183
#include <string> #include <vector> #include "boost/algorithm/string.hpp" #include "google/protobuf/text_format.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/net.hpp" #include "caffe/proto/caffe.pb.h" #include "caffe/util/db.hpp" #include "caffe/util/format.hpp" #include "caffe/util/io.hpp"...
d6a23e976e4cce671b5b106748715a68c344c82d589b9802de3223c1be99b856
C++
6,383
194
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
00643c3cdfa8fba966ca290443f9c916c54961b626d7d121af79c8a9fb2365c1
C++
6,385
176
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2017 Imperial College London * Copyright 2013-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
eb239ecdda9fadc7b1ff1b6391bdde5d78a6c51584208f22fa321d5d2242c93e
C++
6,389
211
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
0ef66d8d8044f386d63405ba32d1827b3798eab8ace07d638a2a6a0e29a42d72
C++
6,402
209
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2015 Daniel Rueckert, Julia Schnabel * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
895a2facb7b978f83bec36807e9437b82e9176218c78e10e482dd7c7ed554f15
C++
6,435
173
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
c771153bc0329025697074c0ba9fea431e02192327cc79dc76a457e07b39455c
C++
6,440
199
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
fd239f3ae48341214ea00e3041cde5b8337c48ded0d76877746e8d006e6d464e
C++
6,472
214
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2016 Imperial College London * Copyright 2013-2016 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
4c988979821c62880a63a7d9b23ea8caa929f5bc8bc29d53091b145a228d7785
C++
6,538
194
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2016 Imperial College London * Copyright 2013-2016 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
38df071cdf951292a4eda8ccfbd1519792734d05a7acbdd0a72f5c116ad83f40
C++
6,577
192
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
12b78af703e158fdf7be32c104856b8d82f1386659785147f1ca85ad0d0be062
C++
6,599
203
#include <stdint.h> // for uint32_t & uint64_t #include <time.h> #include <cmath> // for std::fabs #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/test/test_caffe_main.hpp" namespace caffe { templa...
0898bebdd92c742c58c851cc6ba98ceb06160f60989147e7e3e3dc9ca9851f42
C++
6,610
204
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
bb79b135d1c788545716b16d9016e163488fe12185943dd1835f1936c8cd13aa
C++
6,616
204
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...