This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ofApp.h" | |
// グリッドの交点の数と一つのマスの大きさ | |
void ofApp::calcCameraCalibration(int width, int height, float squareSize) | |
{ | |
std::vector<cv::Point4f> objp; | |
std::vector<cv::Point3f> corner_pts; | |
std::vector<std::vector<cv::Point4f> > objpoints; | |
std::vector<std::vector<cv::Point3f> > imgpoints; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function padding3(num) { | |
var res; | |
if (eval(num) < 999) { | |
res = ("00"+num).slice(-3); | |
} else { | |
res = ""+num; //文字列に変換 | |
} | |
return res; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://members.chello.at/~easyfilter/bresenham.html | |
import math | |
size(420, 420) | |
noSmooth() | |
background(0) | |
stroke(255) | |
def plotLine(x0, y0, x1, y1): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System; | |
#if UNITY_5_3 || UNITY_5_3_OR_NEWER | |
using UnityEngine.SceneManagement; | |
#endif | |
using OpenCVForUnity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System; | |
#if UNITY_5_3 || UNITY_5_3_OR_NEWER | |
using UnityEngine.SceneManagement; | |
#endif | |
using OpenCVForUnity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System; | |
#if UNITY_5_3 || UNITY_5_3_OR_NEWER | |
using UnityEngine.SceneManagement; | |
#endif | |
using OpenCVForUnity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOR %1 in (all\*.png) DO magick -verbose %1 -resize 50% icon\%~xn1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Layer_Name = "レイヤー名"; | |
// SELECT LAYER ======================================================= | |
var idslct = charIDToTypeID( "slct" ); | |
var desc227 = new ActionDescriptor(); | |
var idnull = charIDToTypeID( "null" ); | |
var ref170 = new ActionReference(); | |
var idChnl = charIDToTypeID( "Chnl" ); | |
var idChnl = charIDToTypeID( "Chnl" ); | |
var idMsk = charIDToTypeID( "Msk " ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cTID = function(s) { return app.charIDToTypeID(s); }; | |
sTID = function(s) { return app.stringIDToTypeID(s); }; | |
fileImportDataSets = function(file) { | |
var desc = new ActionDescriptor(); | |
var ref = new ActionReference(); | |
ref.putClass( sTID( "dataSetClass" ) ); | |
desc.putReference( cTID( "null" ), ref ); | |
desc.putPath( cTID( "Usng" ), new File( file ) ); | |
desc.putEnumerated( cTID( "Encd" ), sTID( "dataSetEncoding" ), sTID( "dataSetEncodingAuto" ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "windows.h" | |
#include "stdafx.h" | |
#include "FreeImage.h" | |
#include "boost/foreach.hpp" | |
#include "boost/filesystem/path.hpp" | |
#include "boost/filesystem/operations.hpp" | |
void MakeStraight(boost::filesystem::path in_file_path, boost::filesystem::path out_path) | |
{ |
NewerOlder