sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
0d7b03c0713c82368125cb86851218a9cb10dc3674b0bf546bd8d331366bc313 | C++ | 3,541 | 132 | //=========================================================
//
//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... |
9ce29e73fbb01d64ad9bfe8a062b273f304ef23f43b045452a0f284cf1751664 | C++ | 3,543 | 132 | //=========================================================
//
//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... |
a11dcf46030a5a43045ada1ff1d75b10069ae3537cf791e65db118b6c1e1cd8d | C++ | 3,543 | 93 | /*
* 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
*
... |
4fc141601a5c752139126e68f33ae7495a4a623f2824310f7216241c41c6d788 | C++ | 3,545 | 123 | #include <stdint.h>
#include <algorithm>
#include <string>
#include <utility>
#include <vector>
#include "boost/scoped_ptr.hpp"
#include "gflags/gflags.h"
#include "glog/logging.h"
#include "caffe/proto/caffe.pb.h"
#include "caffe/util/db.hpp"
#include "caffe/util/io.hpp"
using namespace caffe; // NOLINT(build/name... |
f7ec57afa6afad4b529ae182fab9a85d706f5ade7047507afd036956f0485595 | C++ | 3,560 | 125 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/common.hpp"
#include "caffe/syncedmem.hpp"
#include "caffe/util/device_alternate.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
class SyncedMemoryTest : public ::testing::Test {};
TEST_F(SyncedMem... |
6a83c3574e4761d704d956e56174e94bf88b3204107552d56a07b167955948df | C++ | 3,573 | 118 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Wenzhe Shi, 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 Li... |
2feffd67a41c2bf56d6ff15e30d0025f19c482fcc47ccd207e5635f3d0fd4640 | C++ | 3,578 | 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... |
554d095930e36b4a2bf2704e9c122c9fe10a6785a5fd2548e6182cc6f8a87fb2 | C++ | 3,578 | 92 | #include <QtTest>
#include <QOffscreenSurface>
#include <QOpenGLContext>
#include <QOpenGLShaderProgram>
#include <QFile>
// Compile + link every custom GLSL program the renderers use
// (videodisplay.cpp, tracedisplay.cpp, behaviortracker.cpp), in an offscreen
// context matching what Qt Quick's OpenGL RHI backend c... |
9d0c12eff8b33657686085620f5a3a06c1ab330e9ae30ad9a0ff983f806756f1 | C++ | 3,590 | 89 | /*
* 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... |
c4062687d1fa0d3c42b0bf51f753ca6adf72a0a780a4ca4fe35e4757bf4c7141 | C++ | 3,591 | 102 | #include <vector>
#include "caffe/layers/power_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void PowerLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
NeuronLayer<Dtype>::LayerSetUp(bottom, top);
power_ = this... |
7f329dd6609152badc3947e4234cdf6f0d2aaa5b1ed135e44a5e5224706ab48e | C++ | 3,593 | 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... |
ad46fa66f37032fdbe14709039fe0f561daa45efde2fa60fc2bedde1116d3256 | C++ | 3,594 | 134 | /*
* 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... |
0155eccc9abf2bd51b6242d3dd9159b9aa682dcc23b30d683a9d8f448aa52199 | C++ | 3,617 | 106 | /*
* 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... |
17a8480739bdbca311a478a105f3e265634f06aa25f20a9c6d41c111fdbe2a50 | C++ | 3,671 | 96 | /*
* 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... |
871918f2b4facf651556ac3e0b3803c0eb165b413df7127eea9d25fc93ce45a6 | C++ | 3,679 | 110 | #ifdef USE_OPENCV
#include <opencv2/core/core.hpp>
#endif // USE_OPENCV
#include <stdint.h>
#include <vector>
#include "caffe/data_transformer.hpp"
#include "caffe/layers/data_layer.hpp"
#include "caffe/util/benchmark.hpp"
namespace caffe {
template <typename Dtype>
DataLayer<Dtype>::DataLayer(const LayerParameter... |
7e025319ce3c9357d6a10b6e8ad51093069dbee427588f471dab60278004c094 | C++ | 3,680 | 121 | /*
* 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... |
6a4f8d8b2a55092af45cbb4cdb983e99c1652cf8243df3ee58ae448f177783bb | C++ | 3,700 | 100 | /*
* 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
*
... |
56aa6fd1eff7a2594fde4d63457c6ca80ebb551e75f6200e7b80de6608c9c27a | C++ | 3,711 | 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... |
a402fc3cc7c72ab16465390d8b6149432749d2818be20483c6fc7d472c10018e | C++ | 3,717 | 87 | /*
* 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... |
7d5b831b6609b41b86329d12917b9ce45d63d26fc601f0ba77bfd64742040c8d | C++ | 3,720 | 101 | /*
* 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... |
8bfb67e28912d320cd14e8523452a6a89b760bda19fa3d8160e888727f31930b | C++ | 3,731 | 168 | #include <boost/date_time/posix_time/posix_time.hpp>
#include "caffe/common.hpp"
#include "caffe/util/benchmark.hpp"
namespace caffe {
Timer::Timer()
: initted_(false),
running_(false),
has_run_at_least_once_(false) {
Init();
}
Timer::~Timer() {
if (Caffe::mode() == Caffe::GPU) {
#ifndef CPU_ONL... |
52fcd2f5b6874e6cb57a1b931d862f19ec91b8c6b406c8ec447262e8b090b183 | C++ | 3,745 | 99 | /*
* 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... |
77fe067cb3b4deae1d664b405d56ae592876464100a1c1c632b5b9673f670a7a | C++ | 3,754 | 114 | /*
* 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
*
... |
8edef1299a10d44a761a28b5be1773c5142ec8491ddc91f84ca35c1a6f9a63e7 | C++ | 3,759 | 108 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/flatten_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename TypeParam>
class F... |
870ff09715e6cf8593fa08a39389e7881a13a03747d4c35173042c064f0ec600 | C++ | 3,764 | 120 | /*
* 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
*
... |
717c2671c5c46d0e1b3f539cdb56687baabd30bd6d6844c4dddc0e18a4d87896 | C++ | 3,769 | 100 | #include "newquickview.h"
#include <QQmlError>
QStringList NewQuickView::loadFailureMessages(const QQuickView *view, const QString &windowLabel)
{
if (view->rootObject())
return {};
QStringList messages;
messages << "ERROR: " + windowLabel + " failed to load ("
+ view->source().toS... |
4643caae1c295a31ab4c9b0e2f158f13fff54b96caf297f7385027eb8bf6addb | C++ | 3,792 | 127 | /*
* 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... |
2ef8826e4f8ed2f75421a6a9be0a262c28063887141e06c634f683c1d8214855 | C++ | 3,793 | 136 | #if defined(USE_LEVELDB) && defined(USE_LMDB) && defined(USE_OPENCV)
#include <string>
#include "boost/scoped_ptr.hpp"
#include "gtest/gtest.h"
#include "caffe/common.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/util/db.hpp"
#include "caffe/util/io.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace ... |
b4b99705913bbe612b853c043aa12c3afcf34f7a564b87cb9399e0f143a01cdf | C++ | 3,793 | 112 | /*
* 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 ... |
bd68022f603ff2e8d80068fb655c9b5f6a8c091d045bc4b5b093e9ec493ed87b | C++ | 3,814 | 102 | /*
* 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... |
7338175e2967004d3b86d0d0d189f158ac60a0c1ee725f34797d6b7f9345d3c2 | C++ | 3,856 | 109 | /*
* 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... |
5710df939580d363dc474cf7abfa74713258ba91bed64cebc41278639dc3e0fb | C++ | 3,857 | 105 | /*
* 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... |
9a5cd960b46227da83577436d6784f0b62b9c6a469eb4367f0e76044fe3da2fe | C++ | 3,867 | 121 | #include <string>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/layers/hdf5_output_layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/util/hdf5.hpp"
#include "caffe/util/io.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
... |
aa2db7491f4525bf5c9d91a589d64a143bb248ba0b060314ffaa8a42c04fcf2c | C++ | 3,867 | 135 | /*
* 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... |
11fac61a3d0ad4af1ca717a6b2c5e49c60a4706072ab4e3d9752ee354613bb6d | C++ | 3,886 | 135 | /*
* 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... |
c68ab6079e3806bab00f1208d9c2b8573dd28af30d28eb731cdc1ff78829b5f9 | C++ | 3,902 | 110 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Stefan Pszczolkowski Parraguez, 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 obt... |
febbe90d2c55528ea875a08d2d2727c9438f65e24c711013206e5ddcdf22a20a | C++ | 3,902 | 121 | /*
* 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... |
d665980b330b9981561f1ae0310fca8e0cfffbcef306aa744f3aa58a775ede55 | C++ | 3,904 | 108 | #include <cmath>
#include <vector>
#include "boost/scoped_ptr.hpp"
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/softmax_loss_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
us... |
1e2aac1e45fe362663e2ddb9e7205e3238a9d4ba1d77850c4c12347d77ada1db | C++ | 3,919 | 132 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2015 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... |
62510ed749caee93411e17c87bdfbe5ba438f003cf1a735ded875c6d79c462d2 | C++ | 3,923 | 115 | /*
* 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 ... |
9f0e50a5d7b9c08ac20e66ea9a03d97267d4cf87ebea024de10d9fcd019c0093 | C++ | 3,937 | 108 | #include <functional>
#include <utility>
#include <vector>
#include "caffe/layers/accuracy_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void AccuracyLayer<Dtype>::LayerSetUp(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
top_k_ = this->l... |
2bd3a4677bf32e7115fc451effa5eb244fac6a2b80ab0b340257e75d801c4e4a | C++ | 3,949 | 116 | /*
* 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... |
3422d4bc2275d35066156e2325f80eb667f2ea5f45551dcf91915425eaba231c | C++ | 3,984 | 112 | #include <vector>
#include "caffe/sgd_solvers.hpp"
namespace caffe {
template <typename Dtype>
void AdaDeltaSolver<Dtype>::AdaDeltaPreSolve() {
// Add the extra history entries for AdaDelta after those from
// SGDSolver::PreSolve
const vector<Blob<Dtype>*>& net_params = this->net_->learnable_params();
for (i... |
0c4f45211d68750ebf7946ac4d6390d94748fd401ee25094dc46868691b2fe64 | C++ | 3,995 | 104 | #include <vector>
#include "caffe/layers/concat_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void ConcatLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
const ConcatParameter& concat_param = this->layer_param_.c... |
b908b1a828d9fc5f74cd7d3ed4acc3c8f69ea6473450f5bf708be9126944721f | C++ | 4,002 | 126 | /*
* 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... |
407af709590b8fab3e69b11c08e5354ccd6c4cf99b859f6126dbcb444c392e90 | C++ | 4,005 | 96 | #include <vector>
#include "caffe/layers/reshape_layer.hpp"
namespace caffe {
template <typename Dtype>
void ReshapeLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
CHECK_NE(top[0], bottom[0]) << this->type() << " Layer does not "
"allow in-place computation... |
a155dfef0dc4ca91fc191f2410d22ccf11351b03ddf2657ba9d5fba038e6fec1 | C++ | 4,020 | 128 | /*
* 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 ... |
b1174b80252a367f8e4b7cac9834fe707a809a597346b852436ea7f89b03c198 | C++ | 4,029 | 133 | #include <algorithm>
#include <cstring>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/batch_norm_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
#define BATCH... |
0291ecd97ed4b5f4a8a89153c0e2e6796ab1171f9d007d49906eba08101759e5 | C++ | 4,062 | 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... |
6e92b4641511cf1546c859a44803f5b58ed076b5cd0bf3df990a7a133a62e889 | C++ | 4,069 | 108 | /*
* 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... |
b1339eeae21c77b81280349730b9088710052ba4f250360c0308c30b6a7cc1f4 | C++ | 4,071 | 140 | /*
* 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 ... |
55fee5a5dba5a6828f878f576c4f828346feaa650b56357bccf994d75ca7cf51 | C++ | 4,076 | 124 | /*
* 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... |
08e554c87c5bd54e44968222789e77abd2e0a54d1b9c89d066f98f42c3359d0b | C++ | 4,082 | 145 | /*
* 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
*
... |
d4bcad9c9f4b5fa3ff5259cc254580da551eedb3012bc3598e1bfc2f38109d9c | C++ | 4,082 | 112 | /*
* 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... |
6b0f33fdfb37da7c109fe7aecad389350c81e4b0be511244a77fcb5f5910663a | C++ | 4,097 | 114 | /*
* 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... |
01c26182889343f0e60fad638e858d5bb1ee6f260c264cef50093965dba050c9 | C++ | 4,102 | 103 | /*
* 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... |
2bdca6067ee8d3be688d38ce9bbaa9df3a0813cdb6ce0a409edadea08b0981fb | C++ | 4,112 | 176 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2015 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... |
042d386f327db31f847a8e7c4763618f836519db4de6d5ddd67cbad232ece832 | C++ | 4,127 | 145 | /*
* 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 ... |
4508a5e93e4c96bda98a0731c676ce466a412f7ca5ddd055962e3aad6727e29b | C++ | 4,155 | 125 | #include "bundlepaths.h"
#include <QCoreApplication>
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QStandardPaths>
namespace BundlePaths {
QString bundleResourcesDir(const QString &appDir)
{
// <Bundle>.app/Contents/MacOS -> <Bundle>.app/Contents/Resources
const QDir resou... |
15cc20309365b7bb1ccac911726928d7c41628127904603f36a3760429fc1480 | C++ | 4,162 | 131 | #include <algorithm>
#include <cmath>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/layers/lstm_layer.hpp"
namespace caffe {
template <typename Dtype>
inline Dtype sigmoid(Dtype x) {
return 1. / (1. + exp(-x));
}
template <typename Dtype>
inline Dtype tanh(Dtype x) {
return 2. * sigmoid(2. * x) -... |
e22449ab787f3cd5df5b77800c6b27c892adc7d2d9f1662350affe3a3f6cd399 | C++ | 4,162 | 120 | #include <algorithm>
#include <vector>
#include "caffe/layers/contrastive_loss_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void ContrastiveLossLayer<Dtype>::LayerSetUp(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
LossLayer<Dtype>::Lay... |
7af55cbde2c5381a2fbf3137ed95f91505131839e82fe015eb5b5667217aebf4 | C++ | 4,190 | 147 | #include <RcppArmadillo.h>
using namespace Rcpp;
// [[Rcpp::depends(RcppArmadillo)]]
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//' Collapsing boundary functions
//'
//' @... |
0d00c7cef3b5c9c391e05e31ea38d72461b565588114c50357bd5dbac9470373 | C++ | 4,191 | 195 | #include "mex.h"
#include "math.h"
#include "matrix.h"
double intpow( double base, int exponent ){
if (exponent == 0)
return 1;
else
{
double curpwr = base;
int i;
for(i=1; i<exponent; ++i)
curpwr = base * curpwr;
return curpwr;
}
}
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{... |
db76eb9c3449eca3d4c15b0149459f9e977127ced82902fb406b92df9f0d7aa0 | C++ | 4,204 | 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... |
5641423cf0e6ddbb3abc179fd3b6f2189f6d12bb05b79cfe2a2d9d7dd8c20119 | C++ | 4,210 | 139 | /*
* 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... |
157f94a9de5d20e53643fa166740fdaf16564353b31bcaba3d029c8b57d4f622 | C++ | 4,218 | 125 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 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/LICE... |
86d519b94d054d64ba0a0163abbdde0fba40fdee20da6f0c480b6d99f69d5c6c | C++ | 4,224 | 120 | /*
* 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
*
... |
5f72255d71a921319c19b2de3e19ae5bc8ade1de7a1acadfcfd7370f7f3d2257 | C++ | 4,232 | 94 | #include <QtTest>
#include "commutator.h"
#include <cmath>
#include <limits>
// Wire format of the commutator's JSON command protocol
// (open-ephys.github.io/commutator-docs -> User Guide -> Remote Control).
//
// This is the layer that failed silently in the field: the port opened, the
// status LED obeyed, and th... |
a30ef85de2b9afa04d1245fd9aef3974c3ccbac4886ceadd13f063bcd577f110 | C++ | 4,236 | 118 | #include <QtTest>
#include <QTemporaryDir>
#include "bundlepaths.h"
// The .app bundle's runtime path setup (macOS packaging). Wrong behavior here
// means a packaged app silently loses device configs on upgrade or clobbers a
// user's edited configs - so the copy semantics are pinned down by test:
// * refreshWork... |
68560b95eac279ba8e6e49e6f8cfb730b12e8efa6c4583df7e30eb1e26327518 | C++ | 4,251 | 119 | #include <vector>
#include "caffe/filler.hpp"
#include "caffe/layers/embed_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void EmbedLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
N_ = this->layer_param_.embed_pa... |
5fa963fe675d0c3d7f7e254941e2ee4c81562ff1459ce9c006726d71917b165f | C++ | 4,267 | 142 | /*
* 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... |
0ad25d2328f39da929bca3f80a7c54f356bb11411b95732660bc948d0672a328 | C++ | 4,286 | 142 | /*
* 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... |
73a31e5f185e901c6cd082026dbe18bcfec80f5f8621fac53ac22bcb2b979068 | C++ | 4,307 | 129 | #include <vector>
#include "caffe/layers/reduction_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void ReductionLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
op_ = this->layer_param_.reduction_param().operation... |
c455b42ed5a4682278297b052f7067640752aebf2da565ebd5d92d0fc89837f5 | C++ | 4,339 | 120 | #include <cmath>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/sigmoid_cross_entropy_loss_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
t... |
770cc646b64a999842c6eb2bf75b70b8af5cb4c0a003f3ee032ed9ad330211d5 | C++ | 4,375 | 134 | /*
* 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... |
f1b9700a90762ebb1d5290e935f65c0b9e6f586b03fb0b6364b4f5d74ed0a78f | C++ | 4,375 | 136 | #include <string>
#include <vector>
#include "hdf5.h"
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/layers/hdf5_data_layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
template <typename TypeParam>
class HDF5Dat... |
013e5c04c498a8bdfb3f459a9d921ce3a3dd5cd810baf298b46c8c1ecec5a163 | C++ | 4,414 | 123 | #ifdef USE_OPENCV
#include <opencv2/core/core.hpp>
#endif // USE_OPENCV
#include <vector>
#include "caffe/layers/memory_data_layer.hpp"
namespace caffe {
template <typename Dtype>
void MemoryDataLayer<Dtype>::DataLayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
batch_size_ =... |
6abf6269aaea1481ee6c2976ca20b6c60681e7cc8abaf8c6769deb7611e9950c | C++ | 4,422 | 123 | #include <vector>
#include "caffe/layers/sigmoid_cross_entropy_loss_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void SigmoidCrossEntropyLossLayer<Dtype>::LayerSetUp(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
LossLayer<Dtype>::Laye... |
1b6beffecb0fd5caa742bdb8b2c7e9361dadaaf81389668d24f020e3d86733f2 | C++ | 4,431 | 156 | /*
* 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
*
... |
f88a339ddd3a633a0e5f56a7c5241edb9eb22b66a8c2eade023e079d2ed927ed | C++ | 4,451 | 126 | /*
* 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... |
3e44c6f160780a0a46053babf424bd1d53df6ab810917ef59ac5742d45a3ed0d | C++ | 4,560 | 131 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Stefan Pszczolkowski Parraguez, 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 obt... |
b07f62220c4c3076467277f9d55d702835261c8b6edda4f35530af42a95d0a46 | C++ | 4,566 | 123 | /*
* 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... |
b2df7d4312d897620d7eb1807d9aa8f55b44b40bd78790796c923f59fa79697f | C++ | 4,572 | 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... |
4131a6f06e8e4a87b33f0c3915b152871680c4eadcda2da736ff3871543de6d7 | C++ | 4,578 | 126 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/filter_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename TypeParam>
class Fi... |
e26b7dd86a1836221a736f0e0a54b11a34e01cb9d80274cff7d699ad70042461 | C++ | 4,586 | 132 | /*
* 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 ... |
580913bffb66a611976d023822072730a3fea43ee6fabf4e4d7d82c42f49c86f | C++ | 4,591 | 124 | #include <algorithm>
#include <vector>
#include "caffe/layers/slice_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void SliceLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
const SliceParameter& slice_param = thi... |
51243e0403a61742d7a1bacd80b7b91b841651ec2cee653c6d7e326a450c3341 | C++ | 4,593 | 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... |
26e7f57722a3f698f1e3aa5d23532d2517885f19afe28f5769828a5371d964a3 | C++ | 4,599 | 139 | /*
* 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
*
... |
86b6ab0a2d27d823ce95c22d31b65c46773d42850906d0fcabaa8f8d578d2bdb | C++ | 4,620 | 142 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2017 Imperial College London
* 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 License.
* You may obtain a copy of the License at
*
* htt... |
f64de01772e60f01dfc9eecfdbf4309eff93042f966d0e67f24d45e8d761959d | C++ | 4,626 | 127 | #include <algorithm>
#include <map>
#include <set>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/net.hpp"
#include "caffe/layers/auto_crop_layer.hpp"
namespace caffe {
template <typename Dtype>
void AutoCropLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& t... |
b1f70c31be7d2955b83f710777829ab9d6d37017a4850ebafe780d754d4b61d9 | C++ | 4,633 | 132 | #ifndef CPU_ONLY // CPU-GPU test
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/util/device_alternate.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
extern cudaDeviceProp CAFFE_TEST_CUDA_PROP;
template <typename TypeParam>
class GemmT... |
6b0e9dae979c879b6a65fd84414c412670c1b39d4eb7640581bb955340816aa7 | C++ | 4,647 | 129 | /*
* 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... |
3fbefde8292b72f2992d1e912cccf2445f7b37fb3af08af421a2938eaac01104 | C++ | 4,662 | 127 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/dropout_layer.hpp"
#include "caffe/layers/pooling_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caff... |
6dd4a72e2d2506ad8b60c649a39bd92ad25d91d5d148472ae90cbb4c3fc8b6cb | C++ | 4,663 | 125 | #include <vector>
#include "caffe/layers/filter_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void FilterLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
CHECK_EQ(top.size(), bottom.size() - 1);
first_reshape_ ... |
9516ac596f906ef948ef2c3da5023468fe184d71b014d25ec165cd9fb9fce072 | C++ | 4,675 | 136 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2015 Imperial College London
* Copyright 2008-2015 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 ... |
11f5f66f27611e32573d3f59d4335562bdc5d8ccf5d9e9bc35212b7c6c9068f4 | C++ | 4,696 | 133 | /*
* 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
*
... |
92f1ef844a2ea322a6938e5ba59707925f3c33c76d427b5afd3e57bb5f206ae6 | C++ | 4,717 | 126 | /*
* 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... |
ac7b1de5f0265436857418dd0427b3994ce554cf07a0a410f644a70a4ca06ba2 | C++ | 4,725 | 150 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2017 Imperial College London
* Copyright 2008-2015 Daniel Rueckert, Julia Schnabel
* Copyright 2015-2017 Andreas Schuh
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... |
d780dbc2ee310fd92d9dc331a8236469089830736d75d77325ffc9beee0ea705 | C++ | 4,751 | 139 | /*
* 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
*
... |
6b1e4a0dadab21774230ce22a7a001856771d97199cc81fa6cf4b06428356e69 | C++ | 4,754 | 183 | //=========================================================
//
//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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.