text stringlengths 5.71k 33.7k |
|---|
#include <roytracker/trackers/mean_shift_tracker.h>
#include <opencv2/imgproc.hpp>
void Tracker::setTargetObject(const cv::Mat &image, cv::Rect selection)
{
type = TYPE_GENERIC;
currentIteration = 0;
currentSubIteration = 0;
lastError = 0.0;
lastTime = 0.0;
converged = false;
trackingWindow = selection;... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
/******************************************************************************
** Copyright (C) 1999 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 19/12/2011
**
** File: cf_ana.cc
*... |
#include "VHud.h"
#include "CellPhone.h"
#include "HudNew.h"
#include "Utility.h"
#include "TextureMgr.h"
#include "MenuNew.h"
#include "HudColoursNew.h"
#include "FontNew.h"
#include "TextNew.h"
#include "WeaponSelector.h"
#include "CTimer.h"
#include "CClock.h"
#include "CWorld.h"
CCellPhone CellPhone;
const char*... |
// Copyright (c) 2015-2020 FreeHackQuest <<EMAIL>>
#include <unistd.h> // getpass
#include <iostream>
#include <string>
// #include <stdio.h>
// #include <stdlib.h>
// #include <string.h>
// #include <signal.h>
// #include <sys/stat.h>
// #include <sys/types.h>
// #include <sys/time.h>
// #include <errno.h>
// #in... |
#include "ros/ros.h"
#include "object_msgs/ObjectsInBoxes.h"
#include "KalmanFilter.h"
// Eigen library and the header that contains my functions
#include <eigen3/Eigen/Core>
#include <fstream> // To write data into files
typedef Eigen::Matrix<int8_t, 1, Eigen::Dynamic> MatrixXi8_layer;
typedef Eigen::Matrix<int, E... |
/**
* @file
*
* Linux implementation of thread event.
*/
/******************************************************************************
* Copyright (c) 2009-2012, AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without... |
/*************************************************************************
* Copyright (C) [2020] by Cambricon, Inc. All rights reserved
*
* 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 a... |
/*
A multi-threaded ray tracing demo using GLFW for windowing.
<NAME>
*/
#define _USE_MATH_DEFINES
#include "color.hpp"
#include "ray_math.hpp"
#include "entity.hpp"
#include "vec3.hpp"
#include <GLFW/glfw3.h>
#include <algorithm>
#include <thread>
#include <chrono>
#include <cmath>
#include <iostream>
#in... |
/*==========================================================================
©
Date: 01/05/2015
Author(s): <NAME> (<EMAIL>)
==========================================================================*/
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
/* Standard includes */
#include <tclap/CmdLin... |
#include "Application.h"
bool Key::operator==(const Key& rhs) const {
if (type != rhs.type)
return false;
switch (type) {
case Key::Type::Null:
return true;
case Key::Type::Keyboard:
return keyboard == rhs.keyboard;
case Key::Type::Mouse:
return mouse == rhs.mouse;
case Key::Type::Controller:
return j... |
#include "particles.hpp"
#include <petscviewerhdf5.h>
#include "utilities/petscError.hpp"
#include "utilities/petscOptions.hpp"
ablate::particles::Particles::Particles(std::string name, int ndims, std::shared_ptr<particles::initializers::Initializer> initializer,
std::vector<std... |
//+--------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1997 - 1999.
//
// File: ctplus.c
//
// Contents: Contains character type (orthography) data and routine
// to get at it.
//
// History:... |
/*
* Copyright (c) 2009-2016, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list of conditions an... |
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <cstdio>
#include "arvoreb.h"
using namespace std;
/* estrutura e seus dados que seram utilizados */
struct registro
{
long int chave; /* a chave, ÚNICA, que será utilizada como referencia para todos os métodos apresentados.*... |
#include <assert.h>
#ifdef GB_USE_HARFBUZZ
#include <harfbuzz/hb.h>
#endif
#include "text.h"
#include "context.h"
#include "cache.h"
#include "font.h"
#include "glyph.h"
// 26.6 fixed to int (truncates)
#define FIXED_TO_INT(n) (uint32_t)(n >> 6)
namespace gb {
// cp is a utf32 codepoint
static bool IsSpace(uint32_t ... |
#include <algorithm>
#include <ctime>
#include <fstream>
#include <iostream>
#include <cmath>
#include <random>
#include <string>
#include <vector>
#include <utility>
enum class Orientation {TOP,RIGHT};
std::pair<int,int> seek_parent(int act, std::vector<int> &v){
int p = v[act];
int old = act;
int dept... |
/*
* Copyright 2019 Xilinx, Inc.
*
* 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/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
//////////////////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2020, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// pgAdmin4.cpp - Main application entry point
//
/////////////////////////////////////... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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/LICENSE-2.0
*
* Unless required by app... |
// Copyright (c) 2011-2020 The Rain Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/transactionrecord.h>
#include <chain.h>
#include <interfaces/wallet.h>
#include <key_io.h>
#include <policy/policy... |
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include "crypto_sha1.h"
static const unsigned char *CRYPTO_SHA1_body(CRYPTO_SHA1_CTX *ctx, const unsigned char *data,
size_t size);
void
CRYPTO_SHA1_Init(CRYPTO_SHA1_CTX *ctx)
{
ctx->a = 0x67452301;
ctx->b = 0xefcdab89;
ctx->c ... |
/*
* Copyright (C) 2020 The Android Open Source Project
*
* 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/LICENSE-2.0
*
* Unless required by app... |
/* $Id: USBIdDatabaseGenerator.cpp 69500 2017-10-28 15:14:05Z vboxsync $ */
/** @file
* USB device vendor and product ID database - generator.
*/
/*
* Copyright (C) 2015-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file... |
#include "SimpleRing.h"
#include <inttypes.h>
#include "BTInterface.h"
#include <ns3/node-list.h>
NS_LOG_COMPONENT_DEFINE ("SimpleRing");
using namespace ns3;
using namespace std;
SimpleRing::SimpleRing()
{
NS_LOG_DEBUG("Starting SimpleRing");
}
SimpleRing::~SimpleRing()
{
NS_LOG_DEBUG("Destroy SimpleRing");
}
... |
#include "pch.h"
#include "DeviceResources.h"
#include "roapi.h"
using namespace D2D1;
using namespace DirectX;
using namespace Microsoft::WRL;
// Constructor for DeviceResources.
DX::DeviceResources::DeviceResources() :
m_screenViewport(),
m_d3dFeatureLevel(D3D_FEATURE_LEVEL_9_1),
m_logicalSize(1, 1)
{... |
/*
Copyright (c) 2004-2016 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modi... |
/* Copyright 2001, 2019 IBM Corporation
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following d... |
#include <iostream>
#include <sstream>
#include <tuple>
#include <array>
#include <string>
#include <SDL.h>
#include <entityx/entityx.h>
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#include <tinyxml2.h>
#include "gl_core_3_3.h"
#include "util.h"
#include "interleavedbuffer.h"
#include "interleavedtexbuffer.h"
#includ... |
/*
#
# ----------------------------------------------------------------------------
#
# Copyright 2019 IBM Corporation
#
# 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.or... |
/* netlink-monitor-rmem.cc - Testbed for MVLC Eth data rate throttling
*
* <EMAIL>
*
* Uses the Linux netlink API to get detailed information about the data socket buffer
* size and fill level from the kernel (SK_MEMINFO). The buffer memory information is then
* used to calculate a delay value to send to the MVLC... |
/*
* mafExternalDataCodecBrickedVolume.cpp
* mafSerialization
*
* Created by <NAME> on 24/02/12.
* Copyright 2012 University of Bedfordshire. All rights reserved.
*
* See License at: http://tiny.cc/QXJ4D
*
*/
#include "mafExternalDataCodecBrickedVolume.h"
#include "mafVolume.h"
using namespace mafCore;
... |
/*
* Main authors:
* <NAME> <<EMAIL>>
*
* Copyright:
* <NAME>, 2010
*
* Last update: May, 4th, 2013
*/
/// Limits on numbers
#include <limits>
using std::numeric_limits;
#include <vector>
using std::vector;
#include <gecode/driver.hh>
/// Use Cliquer to find all maximal clique in the conflict gra... |
/******************************************************************************
* Copyright (c) 2021 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restricti... |
/*****************************************************************************
* $Id: createClassifier.cc 10976 2007-07-25 11:09:23Z alex $
* This file is used in conjunction with RAVL, Recognition And Vision Library
* Copyright (C) 2006, OmniPerception Ltd.
* This code may be redistributed under the terms of the G... |
/*
* Copyright (c) 2013-2015 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
*/
#in... |
/*
* Copyright (C) 2017 EEnginE project
*
* 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/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.... |
/*
Windows XP CD Key Verification/Generator v0.03
by z22
Compile with OpenSSL libs, modify to suit your needs.
http://gnuwin32.sourceforge.net/packages/openssl.htm
History:
0.03 Stack corruptionerror on exit fixed (now pkey is large enough)
More Comments added
0.02 Changed name the *.cpp;
Fixed minor bu... |
/**
* Copyright 2017 BlackBerry, Limited.
*
* 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/LICENSE-2.0
*
* Unless required by applicable law or ... |
/*
* Copyright (c) 2020 Karim, <EMAIL>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... |
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "helpers.h"
#include "json.hpp"
#include "spline.h"
// for convenience
using nlohmann::json;
using std::string;
using std::vector;
doub... |
/*
* Copyright (C) 2008 The Android Open Source Project
* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
*
* 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... |
/*
* Copyright (c) 2020 <NAME>
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: <NAME>
*/
#include <cstddef>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <map>
#include <set>
#include <vector>
#include <limits>
#include <fcntl.h>
#include <sys/ty... |
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "helpers.h"
#include "json.hpp"
#include "spline.h"
// for convenience
using nlohmann::json;
using std::string;
using std::vector;
int curr_lane=1;
dou... |
/*
$Header: /u/drspeech/repos/pfile_utils/pfile_merge.cc,v 1.1.1.1 2002/11/08 19:47:07 bdecker Exp $
This program selects an arbitrary subset set of features from each
frame of a pfile and creates a new pfile with that
subset in each frame.
<NAME> <<EMAIL>>
*/
#include <stdlib.h>
#include <stdio... |
#include "StdAfx.h"
#include "ColorBasedPF.h"
ColorBasedPF::ColorBasedPF(void /* param giong setParamsAndInit */) { }
ColorBasedPF::~ColorBasedPF(void) {
delete[] objHistogram;
delete[] particles;
}
void ColorBasedPF::setParamsAndInit(int numParticles, int hx, int hy, CvPoint expectedPositionOfObj, doub... |
/****************************************************************************
* Copyright (C) 2021 by NQMCyber Ltd *
* *
* This file is part of EDGESec. *
* ... |
#include <iostream>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv_candidate_reconst3d/reconst3d.hpp>
#include <iomanip>
using namespace std;
using namespace cv;
const char checkDataMessage[] = "Please check the data! Sequential ... |
#include "color_interesting_points_tableware_alg.h"
ColorInterestingPointsTablewareAlgorithm::ColorInterestingPointsTablewareAlgorithm
(void)
{
pthread_mutex_init(&this->access_, NULL);
}
ColorInterestingPointsTablewareAlgorithm::~ColorInterestingPointsTablewareAlgorithm
(void)
{
pthread_mutex_destroy(&this... |
#include "Chat.h"
using namespace chat;
/*
* Start server instance. Saves port where the server will be running and defines the log level
*/
Server::Server( int port, FILE *log_level ) {
_user_count = 1;
_port = port;
_log_level = log_level;
pthread_mutex_init( &_user_list_mutex, NULL );
pthread_m... |
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use... |
// -*- C++ -*-
//
// Package: L1CaloTrigger
// Class: Phase1L1TJetProducer
//
/**\class Phase1L1TJetProducer Phase1L1TJetProducer.cc L1Trigger/L1CaloTrigger/plugin/Phase1L1TJetProducer.cc
Description: Produces jets with a phase-1 like sliding window algorithm using a collection of reco::Candidates in input.
*** INPUT... |
/*
* Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
*
* 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/LICENSE-2.0
*
* Unless ... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* The following code is based on the description in RFC 3174.
* http://www.ietf.org/rfc/rfc3174.txt
*/
#include "SkTypes.h"
#include "SkSHA1.h"
#include <string.h>
/** SHA1... |
#include "raylib.h"
#include <vector>
#include <cmath>
#include <stdio.h>
#include <string>
#include <stdlib.h>
// Default screen Width, Height and min widnow size
#define ScreenWidth 1200
#define ScreenHeight 800
#define MinWindowWidth 500
#define MinWindowHeight 800
// Piller's colors:
// TODO:
#define NORMAL 0... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2019 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
///////////////////////////////////////////////////... |
//! \file implicit_correction.cpp
// \brief vertical implicit roe solver
// C/C++ headers
#include <iostream>
#include <vector>
// Eigen headers
#include "../math/eigen335/Eigen/Core"
#include "../math/eigen335/Eigen/Dense"
// Athena++ headers
#include "../math/core.h" // sqr
#include "../mesh/mesh.hpp"
#include "... |
#include <cassert>
#include <cstdio>
#include <fstream>
#include <fstream>
#include <libff/common/rng.hpp>
#include <libff/common/profiling.hpp>
#include <libff/common/utils.hpp>
#include <libsnark/serialization.hpp>
#include <libff/algebra/curves/mnt753/mnt4753/mnt4753_pp.hpp>
#include <libff/algebra/curves/mnt753/mnt... |
#include "imgui.h"
#include "imgui_impl_sdl.h"
#include "imgui_impl_opengl3.h"
#include <stdio.h>
#include <iostream>
#include <emscripten.h>
#include <SDL.h>
#include <SDL_opengles2.h>
#include <ULIS>
SDL_Window* g_Window = NULL;
SDL_GLContext g_GLContext = NULL;
std::vector< std::string > g_sampleImag... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Realm Inc.
//
// 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/li... |
//---------------------------------------------------------------------
#include "cbase.h"
#include "nb_horiz_list.h"
#include "vgui_controls/ImagePanel.h"
#include "vgui_controls/ScrollBar.h"
#include "vgui_bitmapbutton.h"
#include "input.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/... |
#include <iostream>
#include <string>
#include <Windows.h>
#include <WinUser.h>
#include <WinNls32.h>
#include "imgui/imgui.h"
#include "imgui/imgui_impl_glfw.h"
#include "imgui/imgui_impl_opengl3.h"
// GLEW
#define GLEW_STATIC
#include <GL/glew.h>
// GLFW
#include <GLFW/glfw3.h>
#include <cmath>
#include <ctime>
... |
// Copyright (c) 2016, The University of Texas at Austin
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// n... |
/*
* See header file for a description of this class.
*
* \author <NAME> - INFN Torino
*/
#include "CalibMuon/DTCalibration/plugins/DTNoiseComputation.h"
#include "CalibMuon/DTCalibration/interface/DTCalibDBUtils.h"
// Framework
#include "FWCore/Framework/interface/IOVSyncValue.h"
#include "FWCore/Framework/int... |
/*========================== begin_copyright_notice ============================
Copyright (C) 2020-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include "BuildIR.h"
using namespace vISA;
bool IR_Builder::isNoMask(VISA_EMask_C... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 201... |
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <unistd.h>
#include <fstream>
#include <vector>
#include <math.h>
#include <sstream>
#include <string>
#include <map>
#include <unistd.h>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <string.h>
#include <algorithm>
#define MAX_QS 2048
... |
#include <gtest/gtest.h>
// #include "../src/kalman_filter.h"
#include "../src/Eigen/Dense"
#include "../src/tools.h"
#include "../src/kalman_filter.h"
#include <math.h>
TEST(KalmanFilter, RootMeanSquaredError)
{
std::vector<Eigen::VectorXd> estimations;
std::vector<Eigen::VectorXd> ground_truth;
Eigen::Ve... |
/*
*
* Copyright (c) 2020 <NAME> <<EMAIL>>
*
* Licensed under the zlib license. See LICENSE for more details.
*/
#include "BalanceToolkit.h"
#include <cstdio>
#include <iostream>
#include <fstream>
#include <cmath>
#include <sstream>
#include <rbdl/rbdl_errors.h>
#include <rbdl/rbdl_utils.h>
//#include <casser... |
#include "Enemy.h"
#include "App.h"
#include "Scene.h"
#include "Textures.h"
#include "Module.h"
#include "Render.h"
#include "Audio.h"
#include "Input.h"
#include "Animation.h"
#include "Physics.h"
#include "Player.h"
#include "Map.h"
#include "Pathfinder.h"
Enemy::Enemy(App* application, bool start_enabled) : Module... |
#include <cuda_runtime.h>
#include <helper_functions.h>
#include <helper_cuda.h>
#include <iostream>
#include <string>
#include <chrono>
#include "DoG3DFilter.cuh"
#include "Hessian3DFilter_element.cuh"
#include "CCL3D.cuh"
#include "Erosion3DFilter.cuh"
#include "RegionalFeatures.cuh"
#include "Eigenvalues.cuh"
#inclu... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
NLUNE - lune.cpp
Adapted from "moontool.c" by <NAME>, Release 2.5 (See http://www.fourmilab.ch/moontool/)
and Pyphoon by <NAME>, 2016 (See https://github.com/chubin/pyphoon)
Ported to C++ by <NAME> 2018
Permission is hereby granted, free o... |
/**********************************************************************
Audacity: A Digital Audio Editor
SpectrumAnalyst.cpp
<NAME>
<NAME> split from FreqWindow.cpp
*******************************************************************//**
\class SpectrumAnalyst
\brief Used for finding the peaks, for snapping... |
#include "Snake.h"
Snake::Snake()
{
NumOfClick = 0;
dir[0] = 0, dir[1] = 1, dir[2] = -1, dir[3] = 2, dir[4] = -2, dir[5] = 3, dir[6] = -3;
}
int Snake::NumOfClick = 0;
Point Snake::region[ConstraintPoint + 10];
Point Snake::_region[ConstraintPoint + 10];
Point Snake::init[ConstraintPoint + 10];
Point ... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
gui.setup();
camera.setPosition(0, RENDERING_SCALE * 2, -RENDERING_SCALE * 2);
loadAudio();
m1Decode.setPlatformType(Mach1PlatformOfEasyCam);
m1Decode.setDecodeAlgoType(Mach1DecodeAlgoSpat... |
/**
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by <NAME> (<EMAIL>)
*
* This file is part of SAFSlib.
*
* 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
... |
#include "acmacs-base/argv.hh"
#include "acmacs-base/fmt.hh"
#include "acmacs-base/date.hh"
#include "acmacs-base/string-split.hh"
#include "acmacs-base/read-file.hh"
#include "acmacs-base/range-v3.hh"
#include "acmacs-base/coredump.hh"
#include "acmacs-whocc-data/labs.hh"
#include "seqdb-3/seqdb.hh"
#include "seqdb-3/... |
#include <iostream>
#include <boost/thread/thread.hpp>
#include <pcl/common/common_headers.h>
#include <pcl/features/normal_3d.h>
#include <pcl/io/pcd_io.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/console/parse.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/conversions.h>
#include <pcl/PCLPoi... |
#include "sbvh.hpp"
#include "progressview.hpp"
SBVH::SBVH(std::vector<RTTriangle>* tris, SplitMode mode, ProgressView *progressView)
{
m_triangles = tris;
progress = progressView;
NodeSpec rootSpec;
rootSpec.refs = tris->size();
// Setup references for building
m_refs.resize(rootSpec.refs);
for (int i = 0; i... |
#include <iostream>
#include <random>
#include <mutex>
#include <shared_mutex>
#include <condition_variable>
#include <thread>
#include <sys/time.h>
template<class T>
class HashTable {
class Item {
public:
unsigned int key;
T *value;
bool free;
Item *old;
std::mutex mute... |
#include <cstdio>
#include <cstring>
#include "platform/platform.cc"
#include "protocol.cc"
static Thread thread;
struct ServerParam {
const char* ip;
const char* port;
};
static ServerParam thread_param;
#define MAX_GAMEQUEUE 128
#define GAMEQUEUE_SLOT(sequence) ((sequence) % MAX_GAMEQUEUE)
#define MAX_GAME 10... |
// 音视频结合的播放器,第一个参数为输入,可以为RTMP直播流,默认为四川卫视直播
#include <stdio.h>
#define __STDC_CONSTANT_MACROS
extern "C"
{
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <libswresample/swresample.h>
#include <libavutil/imgutils.h>
#include <libavdevice/avdevice.h>
#include ... |
// ------------------------------------------------------------------------
// Copyright (C)
// Universitat Politecnica de Catalunya BarcelonaTech (UPC) - Spain
// University of California Berkeley (UCB) - USA
//
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
// June 2014
// -------------------------------------------... |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
/*!
* Copyright (c) 2017-2020 by Contributors
* \file predictor.cc
* \author <NAME>
* \brief Load prediction function exported as a shared library
*/
#include <treelite/predictor.h>
#include <treelite/math.h>
#include <dmlc/logging.h>
#include <dmlc/io.h>
#include <dmlc/timer.h>
#include <cstdint>
#include <algor... |
// DeferredScene.cpp
// GLM Includes
#include <glm/gtc/matrix_transform.hpp>
// STL Includes
#include <iostream>
#include <time.h>
// Project Includes
#include "Geometry.hpp"
#include "Globals.hpp"
#include "DeferredScene.hpp"
// GLFW Includes
#include <GLFW\glfw3.h>
// SDL Includes
#include <SDL.h>
const GLuint c_Li... |
/**
LuaXML License
LuaXml is licensed under the terms of the MIT license reproduced below,
the same as Lua itself. This means that LuaXml is free software and can be
used for both academic and commercial purposes at absolutely no cost.
Copyright (C) 2007-2010 <NAME>, www.viremo.de
Permission is hereby granted, free... |
#include "layer.hpp"
#include <cassert>
#include <time.h>
#include "../gameobjects/brick.hpp"
#include "../gameobjects/floor.hpp"
#include <math.h>
#include "parking-area.hpp"
#include "level.hpp"
using namespace theseus::map;
using namespace theseus::gameobjects;
using namespace std;
Layer::Layer(unique_ptr<LevelDes... |
// MIT License
//
// Copyright (c) 2020 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merg... |
//
// Created by ByteFlow on 2019/7/30.
//
#include <gtc/matrix_transform.hpp>
#include "MultiLightsSample.h"
#include "../util/GLUtils.h"
glm::vec3 transPositions[] = {
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(2.0f, 2.0f, -1.0f),
glm::vec3(-1.5f, -2.2f, -1.5f),
glm::vec3(-1.8f, -2.0f, 1... |
#define FROM_LIB
#include <Arduino.h>
#include <float.h>
#include "mount_controller.h"
void MountController::initialize() {
_motors.initialize();
#ifdef DEBUG_MOUNT
Serial.println(F("Stepper motors initialized."));
#endif
_is_tracking = false;
_mount_orientation = {0, 0};
set_... |
/*!
* \file wall_model.cpp
* \brief File, which contains the implementation for the wall model functions
* for large eddy simulations.
* \author <NAME>, <NAME>, <NAME>
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation ... |
/*
pxCore Copyright 2005-2017 <NAME>
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/LICENSE-2.0
Unless required by applicable law or agreed to in... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdio.h>
#include <cmath>
#include <string>
#include "ppapi/c/pp_file_info.h"
#include "ppapi/c/ppb_file_io.h"
#include "ppapi/cpp/completio... |
/**********************************************************************
Copyright 2020 Advanced Micro Devices, Inc
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/L... |
/*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... |
/*
Minetest
Copyright (C) 2010-2015 kwolekr, <NAME> <<EMAIL>>
Copyright (C) 2010-2015 celeron55, <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the Lice... |
/*
"Kakuro" solver. For details of the game, see e.g.
http://www.kakuro.com
For instructions on using the program, see the attached README file and
example inputs.
Some definitions are in order: RUN: a horizontal or vertical sequence of
neighbouring cells adding up to a prespecified value. Each empty ce... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.