View OLineChartMemo.cs
RingArray<PerformanceInfo>[] ring = new
RingArray<PerformanceInfo>[3]; ////RingArray型の配列を三個用意
//その箱の中の要素として扱いたい型を指定する。
EnumerableDataSource<PerformanceInfo>[] ds = new
EnumerableDataSource<PerformanceInfo>[3]; ////加算するデータソース型の配列を三個宣言
LineGraph[] chart = new LineGraph[3];
View getTemplateAreaLocation.cs
private OpenCvSharp.Point getTemplateAreaLocation(Mat matTarget, Mat matTemplate, int LocFlag) {
Mat result = new Mat(matTarget.Height - matTemplate.Height + 1, matTarget.Width - matTemplate.Width + 1, MatType.CV_8UC1);
OpenCvSharp.Point minPoint = new OpenCvSharp.Point();
OpenCvSharp.Point maxPoint = new OpenCvSharp.Point();
try {
Cv2.MatchTemplate(matTarget, matTemplate, result, TemplateMatchModes.CCoeff);
Cv2.MinMaxLoc(result, out minPoint, out maxPoint);
}
View HtmlFilter.java
class HtmlFilter extends FileFilter{
public boolean accept(File f){
if (f.isDirectory()){
return true;
}
String ext = getExtension(f);
if (ext != null){
if (ext.equals("html") || ext.equals("htm")){
return true;
}else{
View SamplePythonAsyncCall.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
View SamplePythonCall.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SamplePythonCall
{
View FPSManager.java
package org.ochilab.util.time;
import java.util.concurrent.TimeUnit;
/**
* FPSの表示・調整するクラス
*/
public class FPSManager {
// 1秒(ナノ秒単位)
private static long ONE_SEC_TO_NANO = TimeUnit.SECONDS.toNanos(1L);
View ICCBasic.R
icc2 <- function(a, b, theta) {
prob <- 1/(1+exp(-1.7*a*(theta-b)))
prob
}
x<- icc2(a=1.0,b=1.5,theta=0)
print(x)
View unity2dBtnClick.cs
using UnityEngine;
using System.Collections;
using UnityEngine; using UnityEngine.UI;
public class NewBehaviourScript : MonoBehaviour {
public Text TestText;
//ボタンクリック時のメソッド
public void ClickTest() {
View Kinect2MakeMaskImage.cs
// 各変数の宣言は省略してあります
maskStride = (int)(depthFrameDesc.Width * colorFrameDesc.BytesPerPixel);
var maskBuffer = new byte[depthFrameDesc.LengthInPixels * colorFrameDesc.BytesPerPixel];
//距離カメラの座標に対応するRGBカメラの座標を取得//
var colorSpace = new ColorSpacePoint[depthFrameDesc.LengthInPixels];
kinect.CoordinateMapper.MapDepthFrameToColorSpace(depthBuffer, colorSpace);
for (int i = 0; i < depthFrameDesc.LengthInPixels; i++) {
int colorx = (int)colorSpace[i].X;
View sampleFirstOpenCVSharp3.cs
/*
* 以下、OpenCVSharp3対応です
*/
//画像ファイル読み込み
Mat img = new Mat(@"C:\Users\ochi\Documents\temp\test.png");
Mat img2 = img.Clone();
Mat img3 = img.Clone();