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
class Mark{ | |
private int x; | |
private int y; | |
public int X { | |
set { | |
this.x = value; | |
} | |
get { |
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
//Listにクラスを代入 | |
foreach (var item in blobs) { | |
markList.Add(new Marker(item.X,item.Y)); | |
} | |
//ソート実行(Yをソート対象とする場合) | |
markList.Sort(sortByY); | |
//出力例 | |
foreach (Marker mk in markList) { | |
Console.WriteLine(mk.X + "," + mk.Y); | |
} |
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
private IplImage trimming(IplImage src, int x, int y, int width, int height){ | |
IplImage dest = new IplImage(width, height, src.Depth, src.NChannels); | |
Cv.SetImageROI(src, new CvRect(x, y, width, height)); | |
dest = Cv.CloneImage(src); | |
Cv.ResetImageROI(src); | |
return dest; | |
} |
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
private IplImage binarize(IplImage src, int threshould) { | |
//グレースケールに変換 | |
IplImage gray = new IplImage(src.Width,src.Height, BitDepth.U8, 1); | |
src.CvtColor(gray, ColorConversion.BgrToGray); | |
//二値化処理 | |
Cv.Threshold(gray, gray, threshould, 255, ThresholdType.Binary); | |
return gray; | |
} |
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
package org.ochilab.ejassist.client.entity; | |
import com.google.gwt.user.client.rpc.IsSerializable; | |
public class EJExample implements IsSerializable { | |
private String itemName; | |
private String enSentence; | |
private String jaSentence; | |
private String[] enWord; |
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
package org.ochilab.cinii.entity; | |
public class CiNiiPaperRDF { | |
private String enTitle; | |
private String jaTitle; | |
private String enDescription; | |
private String jaDescription; | |
public CiNiiPaperRDF(){ |
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
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> | |
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" | |
xmlns:g="urn:import:com.google.gwt.user.client.ui" | |
xmlns:c="urn:import:com.google.gwt.canvas.client"> | |
<ui:style> | |
</ui:style> | |
<g:HTMLPanel> | |
<c:Canvas ui:field="canvas"/> | |
</g:HTMLPanel> |
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
package org.ochilab.jsonp.client; | |
import com.google.gwt.core.client.JavaScriptObject; | |
import com.google.gwt.core.client.JsArray; | |
class Feed extends JavaScriptObject { | |
protected Feed() {} | |
public final native JsArray<User> getTrends() /*-{ |
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 Amazon.DynamoDB.DataModel; | |
[DynamoDBTable("DynaTest")] | |
class SampleData { | |
[DynamoDBHashKey(AttributeName = "id")] | |
public string id { get; set; } | |
[DynamoDBRangeKey(AttributeName = "name")] | |
public String name { get; set; } | |
[DynamoDBProperty("value")] | |
public String value { get; set; } |
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 "StdAfx.h" | |
#include "ErrorList.h" | |
using namespace gazou1; | |
ErrorItem::ErrorItem() | |
{ | |
this->file = "" ; | |
this->page = 0 ; | |
this->errortype = "" ; | |
this->bangou = "" ; |