SlideShare ist ein Scribd-Unternehmen logo
1 von 10
Downloaden Sie, um offline zu lesen
兼本研究室プログラム講義
4回目
丹野 嘉信
http://ytanno.herokuapp.com
資料等
目次
• 円を描く
• グレースケール変換
• 色データにアクセス
• USBカメラから画像データを採取
• 課題
円を描く
グレースケール変換
• 赤(0-255) 青(0-255) 緑(0-255) のデータを
白黒(0-255)データ変換
実行結果
色データにアクセス
USBカメラから画像データを取得
追記
_videoCapture.FrameHeight = 240;
_videoCapture.FrameWidth = 320;
のように書くとUSBカメラの取得サ
イズを変更できる
実行結果
課題
• 差分検知
• USBカメラから2枚の画像を取得
• 取得した画像をグレースケール変換
• 変換した画像同士の絶対値を使って新しく画像作成
• Bitmapに変換
• ヒント
• グローバル変数でUSBカメラの制御フラグ、変数などを用意
• Math.abs(value) で絶対値を求める
実行結果
http://www.youtube.com/watch?v=YjitqtKmock&feature=youtu.be

Weitere ähnliche Inhalte

Andere mochten auch

Kougi3
Kougi3Kougi3
Kougi3
ytanno
 
Be project
Be projectBe project
Be project
sneha94
 
2012 kanemotolablecture2
2012 kanemotolablecture22012 kanemotolablecture2
2012 kanemotolablecture2
ytanno
 
Sfm memo
Sfm memoSfm memo
Sfm memo
ytanno
 
2 adaptaciones curriculares
2 adaptaciones curriculares2 adaptaciones curriculares
2 adaptaciones curriculares
rethyyrethy
 
Heat Pump operations
Heat Pump operationsHeat Pump operations
Heat Pump operations
Cameron Young
 
Social Brand Presence
Social Brand PresenceSocial Brand Presence
Social Brand Presence
Shirika
 

Andere mochten auch (20)

Kougi3
Kougi3Kougi3
Kougi3
 
2013 kougi2
2013 kougi22013 kougi2
2013 kougi2
 
Be project
Be projectBe project
Be project
 
2012 kanemotolablecture2
2012 kanemotolablecture22012 kanemotolablecture2
2012 kanemotolablecture2
 
Reflexion modulo 2
Reflexion modulo 2Reflexion modulo 2
Reflexion modulo 2
 
Sfm memo
Sfm memoSfm memo
Sfm memo
 
Reflexion modulo 1
Reflexion modulo 1Reflexion modulo 1
Reflexion modulo 1
 
C# でブラウザ操作
C# でブラウザ操作C# でブラウザ操作
C# でブラウザ操作
 
K-means and X-means
K-means and X-meansK-means and X-means
K-means and X-means
 
First Step SVM
First Step SVMFirst Step SVM
First Step SVM
 
Youth Ideas - Sleepy Hollow
Youth Ideas - Sleepy HollowYouth Ideas - Sleepy Hollow
Youth Ideas - Sleepy Hollow
 
2 adaptaciones curriculares
2 adaptaciones curriculares2 adaptaciones curriculares
2 adaptaciones curriculares
 
Youth Ideas - Pumpkin Prayer
Youth Ideas - Pumpkin PrayerYouth Ideas - Pumpkin Prayer
Youth Ideas - Pumpkin Prayer
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 
Listado candidatos senadores mendoza
Listado candidatos senadores mendozaListado candidatos senadores mendoza
Listado candidatos senadores mendoza
 
Reunió pares 4t curs 13 14
Reunió pares 4t curs 13 14Reunió pares 4t curs 13 14
Reunió pares 4t curs 13 14
 
Heat Pump operations
Heat Pump operationsHeat Pump operations
Heat Pump operations
 
【消費税転嫁対策セミナー】Facebook編(滋賀県)米原市商工会
【消費税転嫁対策セミナー】Facebook編(滋賀県)米原市商工会【消費税転嫁対策セミナー】Facebook編(滋賀県)米原市商工会
【消費税転嫁対策セミナー】Facebook編(滋賀県)米原市商工会
 
Social Brand Presence
Social Brand PresenceSocial Brand Presence
Social Brand Presence
 
Valores
ValoresValores
Valores
 

Mehr von ytanno

Power shellmemo
Power shellmemoPower shellmemo
Power shellmemo
ytanno
 
Type scriptmemo
Type scriptmemoType scriptmemo
Type scriptmemo
ytanno
 
Sharing image prototype system
Sharing image prototype systemSharing image prototype system
Sharing image prototype system
ytanno
 

Mehr von ytanno (20)

How to be friend with Attiny202 which is small microcontroller
How to be friend with Attiny202 which is small microcontrollerHow to be friend with Attiny202 which is small microcontroller
How to be friend with Attiny202 which is small microcontroller
 
Process of Interval Photograph System
Process of Interval Photograph SystemProcess of Interval Photograph System
Process of Interval Photograph System
 
How to make an effort for good job
How to make an effort for good jobHow to make an effort for good job
How to make an effort for good job
 
How To Bind Cuda And OpenCV
How To Bind Cuda And OpenCV How To Bind Cuda And OpenCV
How To Bind Cuda And OpenCV
 
How to autorun graphic application
How to autorun graphic applicationHow to autorun graphic application
How to autorun graphic application
 
How to setup 3D printer (Ender 3 pro)
How to setup 3D printer (Ender 3 pro)How to setup 3D printer (Ender 3 pro)
How to setup 3D printer (Ender 3 pro)
 
How to set https server
How to set https serverHow to set https server
How to set https server
 
How to write code in Attiny10
How to write code in Attiny10How to write code in Attiny10
How to write code in Attiny10
 
How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841
 
How to write code on MachXO2
How to write code on MachXO2How to write code on MachXO2
How to write code on MachXO2
 
さるでも分かりたい9dofで作るクォータニオン姿勢
さるでも分かりたい9dofで作るクォータニオン姿勢さるでも分かりたい9dofで作るクォータニオン姿勢
さるでも分かりたい9dofで作るクォータニオン姿勢
 
PI制御を作ってみた
PI制御を作ってみたPI制御を作ってみた
PI制御を作ってみた
 
CharpTwitter
CharpTwitterCharpTwitter
CharpTwitter
 
MongoDBCSharp
MongoDBCSharpMongoDBCSharp
MongoDBCSharp
 
VisualStudinoの役に立ちそうな拡張機能をまとめてみた
VisualStudinoの役に立ちそうな拡張機能をまとめてみたVisualStudinoの役に立ちそうな拡張機能をまとめてみた
VisualStudinoの役に立ちそうな拡張機能をまとめてみた
 
ステレオカメラ作成の道
ステレオカメラ作成の道ステレオカメラ作成の道
ステレオカメラ作成の道
 
ReSharperを使ってみた
ReSharperを使ってみたReSharperを使ってみた
ReSharperを使ってみた
 
Power shellmemo
Power shellmemoPower shellmemo
Power shellmemo
 
Type scriptmemo
Type scriptmemoType scriptmemo
Type scriptmemo
 
Sharing image prototype system
Sharing image prototype systemSharing image prototype system
Sharing image prototype system
 

兼本研究室プログラム講義4回目