text stringlengths 5.71k 33.7k |
|---|
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp"
#include <iostream>
#include <sstream>
class Camera;
cv::Mat getUndistortedRectified(const cv::Mat& D, const cv::Mat M, const cv::Mat R, const cv::Mat P, cv... |
#include "DRconstructor.h"
ddDRcalo::DRconstructor::DRconstructor(xml_det_t& x_det)
: fX_det(x_det),
// no default initializer for xml_comp_t
fX_barrel( x_det.child( _Unicode(barrel) ) ),
fX_endcap( x_det.child( _Unicode(endcap) ) ),
fX_sipmDim( x_det.child( _Unicode(sipmDim) ) ),
fX_struct( x_det.child( _Un... |
#include <cerrno>
#include <stdio.h>
#include <list>
#include <vector>
#include <string>
#include <set>
#include <algorithm>
using namespace std;
#include <iostream>
#include <fstream>
#include "incop.h"
#include "incoputil.h"
#include "csproblem.h"
#include "narycsproblem.h"
#include "autotuning2.h"
extern ofstream... |
// Copyright (c) Lawrence Livermore National Security, LLC and other Conduit
// Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
// other details. No copyright assignment is required to contribute to Conduit.
//-----------------------------------------------------------------------------
///... |
#include <iostream>
#include <string>
#include <iomanip>
#include <sstream>
#include <chrono>
#include "AsnJ2735Lib.h"
#include "dsrcConsts.h"
#include "json/json.h"
#include "BasicVehicle.h"
#include "SignalRequest.h"
#include "SignalStatus.h"
#include "TransceiverEncoder.h"
#include "Timestamp.h"
const double MPS_TO... |
#include <iostream>
#include <sstream>
#include <cmath>
#include "CMUgraphicsLib\CMUgraphics.h"
#include "CMUgraphicsLib\auxil.h" // where Pause is found
// Function to wait for a mouse click and clear the screen
void WaitNClear(window &inputWindow);
int main()
{
int iX, iY;
// Create a new... |
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
/************************************************************************
*
* 22.locale.codecvt.mt.cpp
*
* test exercising the thread safety of the codecvt facet
*
* $Id$
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under o... |
#include <Application.h>
#include <Button.h>
#include <CheckBox.h>
#include <Menu.h>
#include <MenuBar.h>
#include <MenuField.h>
#include <MenuItem.h>
#include <PopUpMenu.h>
#include <Screen.h>
#include <SerialPort.h>
#include <TextControl.h>
#include <stdio.h>
#include "globals.h"
#include "initwindow.h"
const uint... |
//
// Created by kellerberrin on 7/6/20.
//
#include "kgl_analysis_age.h"
#include "kgl_variant_factory_vcf_evidence_analysis.h"
#include <numeric>
namespace kgl = kellerberrin::genome;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////... |
// iPodTest.cpp : Defines the entry point for the console application.
//
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.
#endif
#pragma warning(disable:49... |
//
// 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 and the following disclaimer.
// * Redistributions in bin... |
#include <iostream>
#include <Windows.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc.hpp>
#include <algorithm>
#include <string.h>
/*
mineBot.cpp
T.Lloyd
An attempt at an openCV minesweeper bot...
*/
using namespace cv;... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2014-, Open Perception, Inc.
*
* 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 mus... |
/*-
* SPDX-License-Identifier: Zlib
*
* Copyright (c) 2009-2018 <NAME> <<EMAIL>>
* For conditions of distribution and use, see LICENSE file
*/
#include <machine/param.h>
#include <ananas/types.h>
#include <ananas/errno.h>
#include <ananas/elf.h>
#include <ananas/flags.h>
#include "kernel/exec.h"
#include "kernel/k... |
#include "MeasureView.h"
#include <QPaintEvent>
#include <QPainter>
#include <QPainterPath>
#include "ViewHelper.h"
#include "editor/ComboOptions.h"
#include "editor/Settings.h"
MeasureView::MeasureView(PxtoneClient *client, MooClock *moo_clock,
QWidget *parent)
: QWidget(parent),
... |
/*
* This file is part of the ProVANT simulator project.
* Licensed under the terms of the MIT open source license. More details at
* https://github.com/Guiraffo/ProVANT-Simulator/blob/master/LICENSE.md
*/
/**
* @file This file contains the implementation of the ControllerNode class.
*
* @author <NAME>
* @autho... |
/*
This is the source code of MLP
*/
#include <iostream>
#include <fstream>
#include <ostream>
#include <istream>
#include <sstream>
#include <string>
#include <vector>
#include <cstdlib>
#include <assert.h>
#include <time.h>
#include <sys/time.h>
#include <pthread.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#inc... |
/*
Copyright (c) 2013, Intel Corporation
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 and the following disclaimer.
... |
//
// cut_tree.cc
//
// Given a tree and a table of leaf sizes, identify the largest subtrees of size
// (over all their children) less than specified threshold.
//
// <NAME>
// Wednesday, May 24, 2017
//
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <ctype... |
/*******************************************************************************
Copyright (c) 2009, Limbic Software, Inc.
All rights reserved.
******************************************************************************/
#include "lamb/math/camera.h"
#include <stdio.h>
#include <cmath>
#include "lamb/math/m... |
#include <st.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <linux/version.h>
// @see https://www.kernel.org/doc/html/latest/networking/msg_zerocopy.html#notification-reception
#inclu... |
#include "Arduino.h"
#include <WebSocketsServer.h>
#include <ArduinoJson.h>
#include "embeddedWoT_WebSocket.h"
embeddedWoT_WebSocket::embeddedWoT_WebSocket(int portSocket): ac_doc(2000), ia_doc(1000), ipia_doc(2000), e_doc(1000), es_doc(20), ipe_doc(2000), webSocket(portSocket) {
// events data
ipe_arr = i... |
#include <thread>
#include <fstream>
#include "tools/system.hpp"
#include "data/compare.hpp"
#include "tools/gtf_data.hpp"
#include "RnaQuin/RnaQuin.hpp"
#include "RnaQuin/r_assembly.hpp"
using namespace Anaquin;
// Defined for cuffcompare
Compare __cmp__;
static FileName __QForSyn__;
static FileName __QForGen__;
st... |
/*
* conversion between BIG5 and Mule Internal Code(CNS 116643-1992
* plane 1 and plane 2).
* This program is partially copied from lv(Multilingual file viewer)
* and slightly modified. lv is written and copyrighted by <NAME>
* (<EMAIL>).
*
* 1999/1/15 <NAME>
*
* src/backend/utils/mb/conversion_procs/euc_tw_an... |
/**
* \file
* \date Oct 28, 2013
* \brief Test the implementation of class MeshNodeSearch.
*
* \copyright
* Copyright (c) 2012-2022, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://... |
/*
* Copyright (C) 2014 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... |
#include "stdafx.h"
#include "CenterLineGenerator.h"
#include <float.h>
#include "vislib/Array.h"
#include <time.h>
#include "vislib/sys/PerformanceCounter.h"
CenterLineGenerator::CenterLineGenerator(void) {
}
CenterLineGenerator::~CenterLineGenerator(void) {
delete[] theNodes;
delete[] theEdges;
}
void Cen... |
#include "ocean_model_interfaces/fvcom/FVCOMStructure.h"
#include <gtest/gtest.h>
using namespace ocean_model_interfaces;
FVCOMStructure structure("./ocean_model_interfaces/test_data/box_plume_split", 10, 10, 10, 10);
FVCOMStructure structureAxial("./ocean_model_interfaces/test_data/axial_data_test", 1000, 1000, 10, ... |
#include <QMenu>
#include <QMenuBar>
#include <QStatusBar>
#include <QToolBar>
#include <QTabWidget>
#include "documenteditor.h"
#include "global.h"
#include "fileops.h"
#include "simplecalculator.h"
#include "configops.h"
#include "vmwidgets.h"
#include "system_init.h"
#include "documenteditorwindow.h"
#include "text... |
#define S_FUNCTION_LEVEL 2
#define S_FUNCTION_NAME sfun_trajgen_vel
// Need to include simstruc.h for the definition of the SimStruct and
// its associated macro definitions.
#include "simstruc.h"
#include <ReflexxesAPI.h>
#include <RMLVelocityFlags.h>
#include <RMLVelocityInputParameters.h>
#include <RMLV... |
/*/////////////////////////////////////////////////////////////////////////////
// MDTraj: A Python Library for Loading, Saving, and Manipulating
// Molecular Dynamics Trajectories.
// Copyright 2012-2013 Stanford University and the Authors
//
// Authors: <NAME>
// Contributors: <NAME>, <NAME>, <NAME>,
// ... |
#include<bits/stdc++.h>
using namespace std;
const int N = 3e5 + 9, mod = 1e9 + 7;
struct base {
double x, y;
base() { x = y = 0; }
base(double x, double y): x(x), y(y) { }
};
inline base operator + (base a, base b) { return base(a.x + b.x, a.y + b.y); }
inline base operator - (base a, base b) ... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
//Copyright(c) 2015 <NAME>[<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, publish, dist... |
#include <rynx/math/matrix.hpp>
#include <rynx/math/math.hpp>
#include <cstring>
#include <immintrin.h>
#ifdef _WIN32
#include <intrin.h>
#endif
static float length(float x, float y, float z) { return rynx::math::sqrt_approx(x * x + y * y + z * z) + 0.00000001f; }
rynx::matrix4::matrix4(const matrix4& other) { std:... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2018 <NAME>, University of Lausanne
//
// 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 wi... |
/* https://github.com/michalmonday/CSV-Parser-for-Arduino */
#include "CSV_Parser.h"
#ifndef CSV_PARSER_DONT_IMPORT_SD
#include <SD.h>
#endif
//#include "mem_check.h" // COMMENT-OUT BEFORE UPLOAD
//Stream * CSV_Parser::debug_serial = &Serial;
/* Helper function useful for handling unsigned format specifiers... |
#include "SpaceTimeAStar.h"
void SpaceTimeAStar::updatePath(const LLNode* goal, vector<PathEntry> &path)
{
num_collisions = goal->num_of_conflicts;
const LLNode* curr = goal;
if (curr->is_goal)
curr = curr->parent;
path.reserve(curr->g_val + 1);
while (curr != nullptr)
{
path.emplace_back(cu... |
#include "GameDemo.h"
#include <stdexcept>
#include <fstream>
// need to include this for reseting and querying mouse position
#include <QCursor>
#include <cstdlib>
#include <sstream>
#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
#include "../Terrain/TerrainGenerator.h"
#include "../Terrain/PerlinNoi... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
//===========================================================================
// f... |
/******************************Module*Header*******************************\
* Module Name: lfntobj.cxx
*
* Non-inline methods for logical font objects.
*
* Created: 30-Oct-1990 09:32:48
* Author: <NAME> [gilmanw]
*
* Copyright (c) 1990-1999 Microsoft Corporation
*
\*******************************************... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <cmath>
#include <pow.h>
#include <arith_uint256.h>
#include <chain.h>
#include ... |
//This is a modified version of BVLC Caffe's "classification.cpp"
// Created by <NAME>
// Copyright © 2015 <NAME>. All rights reserved.
//This software is for video demonstration purposes only. Please DO NOT use this to pilot a car!
#include <iostream>
#include <caffe/caffe.hpp>
#define USE_OPENCV = 1;
#ifdef USE_... |
#include "mmdpi_bullet.h"
int mmdpiBullet::advance_time_physical( int fps, float frametime )
{
// 1ループにかかった時間を計測
float wait_time_local = 1.0f / fps;
float fMilliSec = frametime * 1000.0f * wait_time_local;
getDynamicsWorld()->stepSimulation( fMilliSec, _MMDPI_BULLET_STEP_/*, wait_time_local / 1000.0f*... |
/***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... |
#include "instruction_decoder.h"
#include "instruction.h"
#include "micro_op.h"
extern "C" {
#include <xed-reg-class.h>
#if PIN_REV >= 62732
# include <xed-decoded-inst-api.h>
#endif
}
void InstructionDecoder::addSrcs(std::set<xed_reg_enum_t> regs, MicroOp * currentMicroOp) {
for(std::set<xed_reg_enum_t>::iterato... |
/*
* Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient>
*
* 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... |
#include <cmath>
#include <iostream>
#include "Solver.hpp"
#include "p3dfft.h"
void print_all_P3D(double *A,long int nar);
void print_res(double *A, const Topology* topo);
int main(int argc, char *argv[]) {
//-------------------------------------------------------------------------
// Initialize MPI
... |
#include "World.h"
#include "SimplexNoise.h"
#include <complex>
#define USE_PLANE 0
#define USE_SPHERE 1
#define USE_FRACTAL_2D 2
#define USE_FRACTAL_3D 3
#define USE_FRACTAL_SPHERE 4
#define USE_HEIGHTMAP 5
float World::global_size = 0.0f;
float World::global_size_inverse = 0.0f;
int World::sample_type = USE_HEIGHTM... |
#include "report.hpp"
using namespace rapidjson;
using namespace std;
Report::Report() {
doc.SetObject();
}
Report::~Report() {
}
bool Report::parseJson(Value& data) {
doc.CopyFrom(data,doc.GetAllocator());
if(doc.IsObject())
return true;
return false;
}
Value* Report::getJson() {
retu... |
//
// Distributed Linear Algebra with Future (DLAF)
//
// Copyright (c) 2018-2021, ETH Zurich
// All rights reserved.
//
// Please, refer to the LICENSE file in the root directory.
// SPDX-License-Identifier: BSD-3-Clause
//
#include "dlaf/eigensolver/reduction_to_band.h"
#include <cmath>
#include <gtest/gtest.h>
#i... |
#include "StVKTensionFieldMaterial.h"
double StVKTensionFieldMaterial::stretchingEnergy(
const MeshConnectivity &mesh,
const Eigen::MatrixXd &curPos,
double lameAlpha, double lameBeta, double thickness,
const Eigen::Matrix2d &abar,
int face,
Eigen::Matrix<double, 1, 9> *derivative, // F(fac... |
#include "chip_8.h"
#include <fstream>
#include <cstring>
#include <cstdint>
#include <cstdlib>
#include <ctime>
const unsigned int START_ADDRESS = 0x200;
// Fontset for CHIP-8
unsigned char fontset[80] =
{
0xF0, 0x90, 0x90, 0x90, 0xF0, // 0
0x20, 0x60, 0x20, 0x20, 0x70, // 1
0xF0, 0x10, 0xF0, 0x8... |
/*
Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the License.
This program is distributed i... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Create and display a win panel at the end of a round displaying interesting stats and info about the round.
//
// $NoKeywords: $
//=============================================================================//
#include "cbase... |
/*
Written by <NAME>
*/
/*
TODO: trilinear interpolation
TODO: remove "wrong grid select" bug from bilinear_interp
TODO: better 2D and 3D interpolation; FFN-specific accurate interpolation
*/
//#define EXTRAPOLATE 0
//#define ZERO_OUT_OF_DOMAIN 1
#include <math.h>
#include "terrain/Interpolation.hpp"
//#include <std... |
#include "InertiaTensor.h"
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <vector>
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/matrix_access.hpp"
#include "glm/gtc/type_ptr.hpp"
/*
============================================================================
... |
#include "vtkApproximateDHT.h"
#include "hyperbolic_trajectories/approximate_dht.h"
#include "hyperbolic_trajectories/continuous_svd.h"
#include "simple/central_differences_jacobian.h"
#include "simple/system_adapter.h"
#include "simple/trilinear_interpolator.h"
#include "simple/vtk_grid_3d.h"
#include "util/default_r... |
/*
* Copyright (c) 2017-2021, Alibaba Group Holding 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 applica... |
#include "CSCFileReader.h"
#include <cerrno>
#include <cstdlib>
#include <cstring>
#include <IORawData/CSCCommissioning/src/CSCFileReader.h>
#include <DataFormats/FEDRawData/interface/FEDHeader.h>
#include <DataFormats/FEDRawData/interface/FEDTrailer.h>
#include <DataFormats/FEDRawData/interface/FEDNumbering.h>
#in... |
#include "software.hpp"
#include <spdlog/spdlog.h>
#include "backends/manager.hpp"
#include "wm/frame.hpp"
#include "wm/input.hpp"
#include "wm/server.hpp"
#include "protocols/wl/pointer.hpp"
#include "protocols/zwp/dmabuf.hpp"
#include <libdrm/drm_fourcc.h>
#include <string.h>
#include "egl.hpp"
#include <iostr... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
//
// Video.cpp
// Clock Signal
//
// Created by <NAME> on 14/04/2018.
// Copyright 2018 <NAME>. All rights reserved.
//
#include "Video.hpp"
using namespace Apple::II::Video;
VideoBase::VideoBase(bool is_iie, std::function<void(Cycles)> &&target) :
VideoSwitches<Cycles>(is_iie, Cycles(2), std::move(target)),
... |
/**
* \file QryBrlyLocList.cpp
* job handler for job QryBrlyLocList (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 11 Jan 2021
*/
// IP header --- ABOVE
#ifdef BRLYCMBD
#include <Brlycmbd.h>
#else
#include <Brlyd.h>
#endif
#include "QryBr... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
#include "stdafx.h"
#include <stdint.h>
extern double alpha0;
extern int KHID;
extern int *NX;
extern int STGD_batch_size;
extern bool print;
using namespace Eigen;
using namespace std;
static int
accumulate_matricization(MatrixXd &Ta, VectorXd Wc, unsigned int length, double a0, VectorXd m1, unsigned int kstart, unsi... |
//--------------------------------------------------------------------------------------
// File: Graphics.cpp
//
// This file contains the Implementations for the rendering of game objects
//--------------------------------------------------------------------------------------
#include "Graphics.h"
//---------------... |
#include "scene.hpp"
#include <vector>
#include <set>
#include <map>
using namespace std;
// Aufgabe 6.5
Scene open_sdf_datei(string const& filename){
Scene scene; // 重要
ifstream inf;
inf.open(filename);
string sline;
string differ_string;
if(!inf){
cerr<<"open failed"<<endl;
}
while(getline(inf,sli... |
#include "World.h"
#include "Room.h"
#include "Player.h"
#include "Exit.h"
#include "NPC.h"
#include "globals.h"
#include "Weapon.h"
#include "Creature.h"
#include "Container.h"
#include "Item.h"
#include "Consumable.h"
#include <vector>
#include <string>
#include <iostream>
using namespace std;
World::World()
: st... |
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk 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; ei... |
#include "Modeler3D.h"
#include <cmath>
#include <iostream>
#include <boost/filesystem.hpp>
#include <GL/glew.h>
#include "GUI/AllWidgets.h"
#include "GUI/IAction.h"
#include "Math/ModelerMath.h"
#include "FileIO.h"
#include "GuiRenderer.h"
#include "ModelerActions.h"
using namespace std;
using namespace Core;
usi... |
/**
* ============================================================================
*
* Copyright (C) 2018-2020, Hisilicon Technologies Co., Ltd. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:... |
/******************************************************************************
Copyright 2017-2020 typed_python Authors
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://ww... |
/*
Copyright 2011 <NAME>. All rights reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it would be useful, but
WITHOUT ... |
/****************************************************************************
*
* Copyright (C) 2017 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
/*================================================================
* Copyright (C)2020 All rights reserved.
* FileName : TspGenetic.cc
* Author : elonkou
* Email : <EMAIL>
* Date : Tue Nov 2 19:36:29 2021
================================================================*/
#include "TspGenetic.hh"
#includ... |
using namespace std;
/// [headers]
// ROS
#include <ros/ros.h>
#include <std_msgs/Float32.h>
// Kinect drivers
#include <libfreenect2/libfreenect2.hpp>
#include <libfreenect2/frame_listener_impl.h>
#include <libfreenect2/registration.h>
#include <libfreenect2/packet_pipeline.h>
// Openpose API (including opencv)
#d... |
/*
* BatteryTech
* Copyright (c) 2010 Battery Powered Games LLC.
*
* This code is a component of BatteryTech and is subject to the 'BatteryTech
* End User License Agreement'. Among other important provisions, this
* license prohibits the distribution of source code to anyone other than
* authorized parti... |
#include <cmath>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <vtkDataSetAttributes.h>
#include <vtkType.h>
#include <vtkDataSetAttributes.h>
#include <vtkDataSet.h>
//#include <ttkContourForests.h>
#include <ttkFTMTree.h>
#include "imgui-1.49/imgui.h"
#include <SDL.h>
#include <glm/ext.hpp>... |
// BasenSpectrum.cpp: CBasenSpectrum クラスのインプリメンテーション
//
//////////////////////////////////////////////////////////////////////
#include "knetascii.h"
#include "BasenSpectrum.h"
//#include "four1.h"
#include "FastFourierTransform.h"
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <ctime>
#inc... |
#include "hg_io.h"
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <iostream>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/serialization/shared_ptr.hpp>
#include "fast_lexical_cast.hpp"
#include "tdict.h"
#include "hg.h... |
// Copyright (c) 2006-2008 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 "chrome/common/gfx/chrome_canvas.h"
#include <limits>
#include "base/gfx/rect.h"
#include "base/logging.h"
#include "skia/include/SkSh... |
int
bJybAa//3jk
/*xso*/,
kmFs
, eTds , jf , wFKM ,ED , uXC ,
kMd ,k
,JrDw,A
,
G,nk2M,Xez,jVkv
//7G
,/*u*/fc8 , zWS
,/*CtVL*/kse ,at,
cVRf,
PUNE,po//4J
,
bO,
iY
,/*7NT*/JEuI, /*w*/nOn
,
VhZ ,
/*q*/ Z9Ph ,
bWO , Uhq ,
TD4O
,//9U
QVC ,AVI,IX/*d*/ ,ialk
, pU0b ,vr
, OK, N6Gy
, YC ,hd ; void f_... |
#include "sensor_prototype.h"
#include "xml_rpc_server.h"
void prepare_server_push_data(const std::unordered_map<std::string, std::string>& /*query_strings*/, bool /*not_first_call*/, std::map<std::string, std::string>& server_push_headers, std::string& data, bool& is_end)
{
#ifdef DEBUG
printf("Query:\n");
std::uno... |
#include <math.h>
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <GLUT/glut.h>
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#endif
#include "tractor.h"
#include "drawScene.h"
#de... |
#include "wasi_impl.h"
#include "fastinterp/wasm_memory_ptr.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-id-macro"
#pragma clang diagnostic ignored "-Wc11-extensions"
#include "wasi_core.h"
#pragma clang diagnostic pop
#include <sys/uio.h>
template<typename T>
using WasmMemPtr = Po... |
/* -*-C++-*-
*******************************************************************************
*
* File: textindex.C
* Description: Text indexing tool
* Author: <NAME>
*
* (C) Copyright 2006, Hewlett-Packard Development Company, LP, all rights reserved.
*
***************************************************... |
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
//
///** @function main */
//int main(int argc, char** argv)
//{
// cv::Mat src, src_gray;
//
// /// Read the image
// //src = cv::imread(argv[1], 1);
// src = cv::imread("C:/Users/djorna.Pokedex/Docume... |
/*******************************************************************\
Module: Symbolic Execution of ANSI-C
Author: <NAME>, <EMAIL> <NAME>,
<EMAIL>
\*******************************************************************/
#include <assert.h>
#include <expr_util.h>
#include <i2string.h>
#include <cprover_pref... |
/*
* Copyright (c) 2016 Shanghai Jiao Tong University.
* 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.... |
#include "ros/ros.h"
#include "cv_bridge/cv_bridge.h"
#include "image_transport/image_transport.h"
#include "sensor_msgs/Image.h"
#include "sensor_msgs/image_encodings.h"
#include "eigen3/Eigen/Core"
#include "eigen3/Eigen/Dense"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/... |
#include <iostream>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <string>
#include <ctime>
#include <vector>
/* --- sfml remove console ---
Include the sfml-main.lib and sfml-main-d.lib
Linker->System->SubSystem (change to windows) */
// window width/height
const int WIDTH = 250;
const int MENUWI... |
/* Copyright (c) 2021 M.A.X. Port 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, modify, merge, ... |
// COpenGL.cpp -
#include "main.h"
COpenGL::COpenGL()
{
memset( states, 0, sizeof(states)*FREQUENT_STATES );
memset( state_was, 0, sizeof(states)*FREQUENT_STATES );
mode2d = false;
}
COpenGL::~COpenGL()
{
}
//////////////////////////////////////////////////////////////////////////////... |
//
// spoutDX12.cpp
//
// Functions to manage DirectX 12 texture sharing by way of D3D11On12
// Base class spoutDX for sending and receiving functions.
//
// ====================================================================================
// Revisions :
// 04.12.20 - start class
// 26.01.21 - First working ve... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... |
/***************************************************************************
machine.c
Functions to emulate general aspects of the machine (RAM, ROM, interrupts,
I/O ports)
***************************************************************************/
#if 1
#define RELEASE
#endif
#define MAKE_ITEMS_EASY
/* co... |
#include "aggregation_tree.h"
#include <glm/ext.hpp>
#include <tbb/parallel_sort.h>
#include "bat_file.h"
#include "fixed_array.h"
#include "profiling.h"
AggregationTree::AggregationTree(const Box &bounds,
const uint64_t num_points,
const ArrayHandle<Ag... |
#include "stdafx.h"
#include "BackgroundCache.h"
#include "..\DataObjects\CMap.h"
// size of cache piece in mapcells
#define BKGCACHE_PIECE_WIDTH 8
#define BKGCACHE_PIECE_HEIGHT 8
IMPLEMENT_DYNAMIC(CBackgroundCache, CObject);
// Constructor
CBackgroundCache::CBackgroundCache() :
m_semaphoreQueue(0, 0xF000000)
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.