sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
5263e0b5a3979d5ac3fb0756858ce96dad90737255946a2de91136b7960bc049 | C++ | 6,642 | 215 | //-------------------------------------------------------------------
#pragma hdrstop
//-------------------------------------------------------------------
// C-MEX implementation of SUMSKIPNAN - this function is part of the NaN-toolbox.
//
// This program is free software; you can redistribute it and/or modify
//... |
f7e7bb80d6edda60ad3a2130ec759f5d47508f7a1bd6a7d69c28779ab4e2bb67 | C++ | 6,687 | 180 | /*
* 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... |
dc56cb6092b8ecf7e4b0a8b31d5b020ff8baf7d65de1c913cdabe808c1dad113 | C++ | 6,691 | 180 | /*
* 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... |
ea46530f71c595d9f3e18f7e8d75fdf60a0f63de03336345f7f2bd1115c7399a | C++ | 6,692 | 180 | /*
* 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... |
1371c425e0393793d232d1b6efc3f64bf270806b5e1a53f1048379ff314b60cc | C++ | 6,699 | 180 | /*
* 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... |
b1367b38ad3787598292a69886e7f4c9db1ed367255f9e0e1696f936d6403062 | C++ | 6,723 | 174 | #ifdef USE_OPENCV
#include <opencv2/core/core.hpp>
#include <fstream> // NOLINT(readability/streams)
#include <iostream> // NOLINT(readability/streams)
#include <string>
#include <utility>
#include <vector>
#include "caffe/data_transformer.hpp"
#include "caffe/layers/base_data_layer.hpp"
#include "caffe/layers/imag... |
185c18a8c0c685a9e17ea3e6ee4352c439afeb3b005392f4f0003fdf6ed89bb5 | C++ | 6,792 | 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... |
2d702171bd1f129f1f6fcfd4303e82e15ab1baad00445a52cb0ac0e2e720934d | C++ | 6,808 | 178 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/embed_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename TypeParam>
class Emb... |
b70b14a88a75a2312f23546e8daf8be6ef319e23f50c09323287ef46ceb2202e | C++ | 6,889 | 200 | /*
* 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
*
... |
eb92872425704649c2207ecb526e5e64b22be6a536f0ff58dd750212bb1eb1b2 | C++ | 6,904 | 225 | #include <boost/thread.hpp>
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/data_transformer.hpp"
#include "caffe/internal_thread.hpp"
#include "caffe/layer.hpp"
#include "caffe/layers/base_data_layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/util/blocking_queue.hpp"
namespace caffe {
templa... |
cbcd3d3ccfd0feb621116ab55d6cce937971b848d688ca0b884569a0368350ca | C++ | 6,952 | 195 | /*
* 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
*
... |
e36a22fb4b71609a3bc593f84460c4538e4d5e5495a7e2b0a94c616d63723bd1 | C++ | 6,962 | 199 | /*
* 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 ... |
c7120e1986d47f6794b2e900aca11c4936df21f262af18fd097e8963e54ba789 | C++ | 7,051 | 222 | /*
* 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
*
... |
ca5bb8a094e91b3f83b79263e66e280d117574b517302765556d6563cbe94c92 | C++ | 7,089 | 208 | /*
* 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 ... |
6a9f057628b53efd448cae79d8f32a004a001c6cea14dde2856b6830befc5a36 | C++ | 7,130 | 241 | #include "gtest/gtest.h"
#include "caffe/filler.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
template <typename Dtype>
class ConstantFillerTest : public ::testing::Test {
protected:
ConstantFillerTest()
: blob_(new Blob<Dtype>(2, 3, 4, 5)),
filler_param_() {
filler_param_.se... |
6c31ad92e014dd4d4e84bb3a415496c097c63f40d3877f8bec7f9c56c6f5a666 | C++ | 7,165 | 197 | /*
* 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... |
9430765c79e97de1c3709c18790c496ca5f5ee882602ba70d9f8780dd16b31b2 | C++ | 7,182 | 217 | /*
* 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
*
... |
bba29e83bed89e2b1c78b69d350f53243d82798d90249ebe41eb314beb4d5a30 | C++ | 7,201 | 158 | // Bench-validation CLI for the macOS UVC control transport (uvccontrolmac).
//
// Purpose: prove, with a real Miniscope on the bench, that pipe-0 control
// requests work at sustained per-frame rates while the device streams - the
// two open questions of the macOS port. Run it (a) with the device idle and
// (b) whil... |
60d747982e55272eb40b5be4fd8a695026cadfc242daad158811fedb628da769 | C++ | 7,206 | 254 | /*
* 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... |
ec916dcccdd2d14487973dfe6014d547245bbd927af6eb77fb96812609499b64 | C++ | 7,238 | 212 | /*
* 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... |
1a11ddf70a518bf00e6373409b62a1919a466a79d2e170c5de0cdbc79dd0a775 | C++ | 7,288 | 186 | /*
* 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... |
8931ecc62e09a02035224523faed0c3d74117126cf97fd8bedea84fce697c184 | C++ | 7,313 | 216 | /*
* 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
*
... |
c2373e6111dac05ba347af7537e3ade2a33ec4be0e534f8cd03a409e1f7f3ba4 | C++ | 7,331 | 244 | /*
* 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 ... |
3f11303bc8cc481e2d18057b9c1caf7e59c09677f15e77ef67f795829f3fc99a | C++ | 7,355 | 203 | /*
* 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... |
f1de3fcfc73ed3cf79885c55bb37468405c36df97cac60415aeae5d1fc3bf3ab | C++ | 7,379 | 203 | /*
* 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... |
76bc35fd152324828c631c700e9e897bd2f8a8418987d7d0a40dad1b28d0a375 | C++ | 7,387 | 280 | //=========================================================
//
//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... |
dad725f515570518a17aec94cc1314b67f7c041908f530c2e6c70d14fac0a2c0 | C++ | 7,394 | 238 | #include <fcntl.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/text_format.h>
#ifdef USE_OPENCV
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/highgui/highgui_c.h>
#include <opencv2/imgproc/imgpro... |
6dcd0334bd016951725debde7bea9ba31eecebb25a8088e115111d24db3c8e54 | C++ | 7,396 | 201 | /*
* 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... |
2cbde06072977f10d0cbb1964a08f54e4180d1e1e2e9956d44f63a8957c05e2b | C++ | 7,410 | 193 | #include <string>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/layers/dummy_data_layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
template <typename Dtype>
class DummyDataLayerTest : public C... |
243fc7e3c2d55dab57bace60012357b4011b60ed98deb6c4a6fd406bd074a936 | C++ | 7,412 | 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... |
e980196b6b1bb95474e4ee9e9081ecb5896421f24361d9caab50d491506a3db9 | C++ | 7,446 | 219 | /*
* 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... |
569e4578fa18b35a8be710bf9a347a028be49c1d167a5d91b7ab0bdd7dbfa4a1 | C++ | 7,458 | 239 | /*
* 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... |
f25bbd000265ef22144f6b883c1f1838d7831b7fb827c94faf9571709807cd48 | C++ | 7,461 | 231 | /*
* 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... |
5e3ee24b80510664adc60c235d6bd6aaabbba2c529517827bebf533efee87d3c | C++ | 7,488 | 180 | /*
functions to get analytical first passage time distribution for
diffusion model with time varying boundary
from Voskuilen, Ratcliff & Smith (2016). J Math Psychol
*/
#ifdef _OPENMP
#include <omp.h>
#endif
#include <RcppArmadillo.h>
#include "bounds.h"
using namespace Rcpp;
// [[Rcpp::depends(RcppArmadillo)]]... |
5f3f191abb2a4cfc2a7667356b55037f2c024b05744a23160edd444b8c7ebb12 | C++ | 7,538 | 186 | /*
* 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... |
7c852b02ce853e6e945503190e025a78d424a87940ab26ebcc00399bad1b20e1 | C++ | 7,581 | 232 | /*
* 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... |
f899bc3c2b3afeb97c421f32657c31e523bfb576816cb978dab1657b7ad28c6c | C++ | 7,594 | 154 | /*
* 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
*
... |
c3fe797b1c14c5dab4ae7a08fab8b4b05a53977e22aac4c03795090b930bca7b | C++ | 7,605 | 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... |
b2d97e8dfdeb7a9ce047957fdb3b2d6b0f1df8dca28cc0f3feff6e6b94a704bd | C++ | 7,610 | 224 | /*
* 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
*
... |
a4d6f4bdde9c12fe3263f27736842321a1508bb81e861bb2db5ac414849fa1f9 | C++ | 7,612 | 260 | /*
* 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... |
097b81230f10e981af701982e984889237d5cc904aa9ac433e90a587d30621ea | C++ | 7,653 | 257 | /*
* 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... |
84576d144b60d7b47d5a27e5125cf0cb8de29cf6c7b5d8489e4060513388b1d8 | C++ | 7,672 | 219 | /*
* 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
*
... |
a74eb1d96840104d9229ac6a036aaa5ee5e4f8e0a3ae11a310166acb6192afcf | C++ | 7,737 | 176 | /*
* 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
*
... |
5a5037983fa6e9051670a33e777506df96551ae4a7cf35676410ae487b9a99d4 | C++ | 7,739 | 219 | /*
* 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... |
bdec65b60c4cfb19024603615ac002b85c525e4e30bd506c3bd3dec02f8ff7a2 | C++ | 7,779 | 207 | #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/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename TypeParam>
class Co... |
2c2a2ec59cf60165fd3b89af17dbd9dec48a02e30e613fdde4f4f1fead51d024 | C++ | 7,810 | 264 | /*
* 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... |
38d3344991a0831d998c94fe5bba7756e8f5370938510c75c7153a10329ab468 | C++ | 7,842 | 217 | #include <cstring>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/rnn_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename Typ... |
61b0dca3c1d9bc84bcd57f0ab510da13635fdd5cf64e06a163e57cab973cbc30 | C++ | 7,914 | 224 | /*
* 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... |
00567ab99e838933bbbdb3db9f0237e4a4c123a119ef3bc0ba949e7b24eb9269 | C++ | 7,930 | 219 | /*
* 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... |
e26591f4ccf2e86c2a1ac212fd1e481c98919bbbeb1a625318f45235dd7eff96 | C++ | 7,940 | 269 | /*
* 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
*
... |
41ba671cd4ef1be5d9f81198a339387103aa26ad8e6435ca6e09a176e49f2cad | C++ | 8,014 | 237 | /*
* 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... |
5ffb0671cbc9910b586f31a14b22c969023cbe25f33cb9516e0f0447510c7639 | C++ | 8,019 | 223 | /*
* 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
*
... |
2337d22c6c910dfef07263867c7d07e0b765883eca502d6f0e1447b8a8df5b5b | C++ | 8,030 | 207 | /*
* 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... |
0235af78b1c3f62648eb7b216c80ded46f5be196c467fd4c5f35baf7fefa727f | C++ | 8,060 | 216 | /*
* 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... |
b18cd6c5b90ce8be4685aec71a282a33c92ce4385733c593a8484833dbf466f3 | C++ | 8,103 | 229 | #include <QtTest>
#include "miniscopeprotocol.h"
using MiniscopeProtocol::packI2CPacket;
using MiniscopeProtocol::unpackBnoQuaternion;
// The expected values below are hand-computed from the wire format the DAQ
// firmware parses (see miniscopeprotocol.h). If one of these fails after an
// edit, the change would bre... |
e6ed1c2e85a898b06e17029e6d495064b99871d0d634cd52dc5e845ade3d2f91 | C++ | 8,104 | 228 | #include <algorithm>
#include <vector>
#include "caffe/layer.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_layer.hpp"
namespace caffe {
using std::min;
using std::max... |
2fc9b27c63785123cd89cf973d6cb7962332a6b52eda1fbb84fe19aade0c2be0 | C++ | 8,123 | 209 | #include <algorithm>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/eltwise_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typena... |
e840e408f64ac8c6579d72eb0d5cb4e6feb667f5592daf056e97d21d9525c2bc | C++ | 8,134 | 213 | /*
* 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... |
6f33c13afd1cc0d07ce2397b702083518adbb09afc21525422d6b2b2eb155a03 | C++ | 8,137 | 245 | /*
* 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
*
... |
7a590f54823e726cd6bc9ad3a141c44ccadc8fbc65cd726a284b6b6650b9650e | C++ | 8,137 | 215 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/slice_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename TypeParam>
class Sli... |
8b274376f15de3c9d1acbd7c11d424648b06f4eb89c34f5d066cfcf9daf827d7 | C++ | 8,146 | 228 | /*
* 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... |
b287183514062be02bc65c0d253e77cc3d500b92703585f635c694069c251c9b | C++ | 8,161 | 235 | /*
* 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 ... |
1eb85fdfba09b15c16f712029b09dac1b9cd3087df0e78709533ff9098a55b70 | C++ | 8,201 | 225 | /*
* 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... |
255e40935ab0ff08861d8c65a23cb4292c6191ad361c48b0c0e3907cdb023358 | C++ | 8,247 | 330 | /** \file znzlib.c
\brief Low level i/o interface to compressed and noncompressed files.
Written by Mark Jenkinson, FMRIB
This library provides an interface to both compressed (gzip/zlib) and
uncompressed (normal) file IO. The functions are written to have the
same interface as the standard file IO functi... |
fc31d86787ff1a197a061efc32abf2feddb5c9c4f5f203c06d3f6f97b2d96360 | C++ | 8,248 | 240 | /*
* 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
*
... |
f9fababc99817ad1b5e1067237d05185df47cbd54fe6eca5f3a049538cf8f785 | C++ | 8,290 | 218 | /*
* 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... |
0b068413b8b8f2ec1bf7137082043a1e219b98cd98feb3b8edb62e46553e8d51 | C++ | 8,353 | 248 | /*
* 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
*
... |
7c69ac35df26ad84f94168ce20ecf6a11fee2eccae477c6da40fb874a1189776 | C++ | 8,361 | 309 | /*
* 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... |
b977a89fbf4e8a46c0c784b7b61d4225b686681952dca905595a86d5cce02893 | C++ | 8,365 | 266 | /*
* 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
*
... |
845e28e88011e57c863eb8214d3708f7f4047921b39096a40758c2227035bfe4 | C++ | 8,368 | 208 | /*
* 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... |
4ae5f71cd0397225812d5d00cd5739008525f793a584a2248851b9c1a348e371 | C++ | 8,384 | 260 | /*
* 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
*
... |
ca2ae0ee9b9ffc68760203b4126ca61da4140e279b84a707f6b1f7f841e78fd7 | C++ | 8,405 | 281 | /*
* 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... |
8d9525b52bd92841fd242d0510f9ed852957244b0aed576df7397360d65a010d | C++ | 8,422 | 232 | /*
* 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
*
... |
39dd019d82dbeaab2e3b4d1b9d8b3baa17fa578f0e1091c3fc5f27bb3ede46a2 | C++ | 8,430 | 219 | /*
* 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... |
07a6cec0cbf96a2eef19f351b5df93ec52ceee7d663a647f692e4f60017ab097 | C++ | 8,445 | 219 | #ifdef USE_OPENCV
#include <map>
#include <string>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/image_data_layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/util/io.hpp"
#include "caffe/test/test_caffe_m... |
e71b9540d20a915c0a5f83da4addb90595dff08cf1194737041c47efa410c46b | C++ | 8,465 | 245 | /*
* 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
*
... |
fb0e0960d5fe1e083d475ff3b76e6456f0a942472d83a69e7312112ef9e36970 | C++ | 8,478 | 193 | #include <vector>
#include "caffe/layers/im2col_layer.hpp"
#include "caffe/util/im2col.hpp"
namespace caffe {
template <typename Dtype>
void Im2colLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
ConvolutionParameter conv_param = this->layer_param_.convolution_p... |
fe6fdf38bdad17d9d13513253a26be487e037adafe66fea03e35db6a9ca95706 | C++ | 8,499 | 244 | /*
* 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
*
... |
0529123c41aaeec9d18247d2acfc15a1a02a17dc8d1c3db1594201c56eb045c8 | C++ | 8,532 | 272 | #include "videostreamlibuvc.h"
#ifdef HAVE_LIBUVC
#include "miniscopeprotocol.h"
#include "monotonicclock.h"
#include "uvcrequest.h"
using namespace MiniscopeProtocol; // SEL_* selectors, kProcessingUnitId, VID/PID
#include <QDebug>
#include <QString>
#include <QThread>
#include <opencv2/imgproc.hpp>
#include <c... |
8eb336811b82213dabcb178345fe369c858d70b7ec10a2aa553ee4ed4a2b769e | C++ | 8,589 | 236 | #include <string>
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layer.hpp"
#include "caffe/layers/rnn_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void RNNLayer<Dtype>::RecurrentInputBlobNames(vec... |
ec6700402f9edb7988eb02edd09c63fe9662d2a1dfed509eef2e9d1a8afabac0 | C++ | 8,698 | 208 | /*
* 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... |
1528a18e8e253d98789827a16c5d27bd26b6691f93bbbd16f1849a2c741425e7 | C++ | 8,701 | 245 | /*
* 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... |
dbc10f637cc19d39fa05c337022b408dc97a8938ecb301f78ee373ddf1824c3e | C++ | 8,709 | 218 | /*
* 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... |
278a1c96f8719bf4fce8d93c32cce67140078a455a744b31fadd2deab1ea9c3a | C++ | 8,712 | 260 | // Make sure we include Python.h before any system header
// to avoid _POSIX_C_SOURCE redefinition
#ifdef WITH_PYTHON_LAYER
#include <boost/python.hpp>
#endif
#include <string>
#include "caffe/layer.hpp"
#include "caffe/layer_factory.hpp"
#include "caffe/layers/conv_layer.hpp"
#include "caffe/layers/lrn_layer.hpp"
#in... |
bdb85339dd1ea099d30f0df84f1ad896b32c56f841b2115ac9a4f9272580de32 | C++ | 8,735 | 238 | /*
* 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... |
dca26343341138ba7c0817d265e7708d72a691007d817d9ff81f475fb0175f74 | C++ | 8,737 | 242 | /*
* 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... |
e780dd47ea01bab6f1499577cc51cbde464d0b0432c599348b64ef21b4a98360 | C++ | 8,804 | 247 | /*
* 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
*
... |
0ccb2585aff0d70e327c192778559d4b4deed64ea911d0a9f0e307055c6bf578 | C++ | 8,855 | 292 | #include "videodisplay.h"
#include <QtQuick/qquickwindow.h>
#include <QtOpenGL/QOpenGLShaderProgram> // Qt6: moved from QtGui to Qt6::OpenGL
#include <QtGui/QOpenGLContext>
#include <QtOpenGL/QOpenGLTexture> // Qt6: moved from QtGui to Qt6::OpenGL
#include <QImage>
//! [7]
VideoDisplay::VideoDisplay()
: m_t(... |
4c9cca018a65799341d4e8682e4a73c6b94e553b901847023cf5b9deafc5a42c | C++ | 8,905 | 244 | #include <string>
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layer.hpp"
#include "caffe/layers/lstm_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void LSTMLayer<Dtype>::RecurrentInputBlobNames(v... |
1449666cf5415bab9bac8d28a985c1902f2209ddf12a6964d66601e052e6954b | C++ | 9,012 | 264 | /*
* 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... |
81474d667f52b603ee5661952b09d278c2f77afa9608a4bbcaec75afeed4ec59 | C++ | 9,064 | 244 | /*
* 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... |
ee21e47c43fb5400f32a10f580a4df679fb5400ad0e067c0dc206bcb9bd5e7e2 | C++ | 9,074 | 252 | /*
* 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... |
4fefa6b6fbb1444ecad443269d75abf2fc816f9f16e623fbcdc796a583ef89c8 | C++ | 9,107 | 249 | /*
* 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
*
... |
a592fa484d6c52731c6bea25a5eeac403343262fb65cda67b2145c2aee575d2f | C++ | 9,122 | 219 | #include <algorithm>
#include <vector>
#include "caffe/filler.hpp"
#include "caffe/layer_factory.hpp"
#include "caffe/layers/scale_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void ScaleLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<... |
b9bfd5f278a823a83e6f09a67bcdf73e6688e82bc5b2eed3ccdb5f9921f7299e | C++ | 9,177 | 232 | /*
* 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... |
80e5ec76196f0109b7dc0ef37180ee973b6209466791e3124c9cd3d4c23c4116 | C++ | 9,180 | 238 | #include "videostreammac.h"
#include "monotonicclock.h"
#include <QDebug>
#include <QCoreApplication>
#include <QLoggingCategory>
#include <QThread>
#include "avfenumeratormac.h"
using namespace MiniscopeProtocol;
VideoStreamMac::VideoStreamMac(QObject *parent, int width, int height, double pixelClock) :
VideoS... |
3a3544ac51dc628da2ddfddf264924c7abb687970c976153646addfa6d805b78 | C++ | 9,194 | 247 | /*
* 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... |
e00080026220f1d29787ee337da599ecfa8ed35507239616b0fdec44f17b687a | C++ | 9,199 | 326 | /*
* 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 ... |
c19a5c653dd593df59f01a943db5e5373373250f29a0c5240214e923c88f072c | C++ | 9,254 | 252 | /*
* 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... |
6f5003fb5e92647c4c4490c2d2a6b4752ea9b8b1ea83e98581b4d0a0223dc5bc | C++ | 9,255 | 230 | #include <QtTest>
#include "avfenumeratormac.h"
// parseAvfUsbUniqueId turns an AVFoundation uniqueID back into the USB
// identity that UVCControlMac opens; a wrong split here means the app opens
// the control channel of the WRONG Miniscope on multi-scope rigs.
class TestAvfEnumerator : public QObject
{
Q_OBJEC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.