2 2 Gtk+ GUI (widget ) GUI Gtk+ GUI Gtk+ GUI 2.2 Gtk GUI sample1.c Web ( tani/class/mech enshu/) enshu2009gui1.tar.gz

Size: px
Start display at page:

Download "2 2 Gtk+ GUI (widget ) GUI Gtk+ GUI Gtk+ GUI 2.2 Gtk GUI sample1.c Web (http://www.cyber.t.u-tokyo.ac.jp/ tani/class/mech enshu/) enshu2009gui1.tar.gz"

Transcription

1 B4 GUI TA tani/class/mech enshu/ C GUI(Graphical User Interface) X Window System GUI 5 GUI 2 Gtk+ GUI 2.1 GUI GUI GUI (event driven) GUI GUI GUI GUI GUI GUI

2 2 2 Gtk+ GUI (widget ) GUI Gtk+ GUI Gtk+ GUI 2.2 Gtk GUI sample1.c Web ( tani/class/mech enshu/) enshu2009gui1.tar.gz % tar xvzf enshu2009gui1.tar.gz % cd 2009gui1 % make 1 1 sample1.c Gtk+ Gtk+ gtk.h sample1.c 12 #include<gtk/gtk.h> gtk.h Gtk+ *1 54 Gtk *1 gtk.h gtk.h

3 2.3 3 ( ) Gtk int main (int argc, char* argv[]) { { } gtk_set_local(); /* gtk_init(&argc, &argv); /* gtk_get_rc_parse(" "); /* Gtk... sample1.c gtk_init() argv Gtk gtk_init() Gtk+ GUI ( ) GUI ( ) ( ) GUI Gtk+ GUI GtkWidget gtk_widget_show() gtk_widget_show() gtk_widget_show() GUI Gtk 125 gtk_main() gtk_main() main() 2.3 Gtk+ 3

4 4 2 Gtk+ GUI window Gtk+ sample1.c /* GtkWidget *window; /* window window = gtk_window_new(gtk_window_toplevel); /* gtk_window_set_title(gtk_window(window), " "); /* gtk_container_border_width(gtk_container(window), 10); label label label /* GtkWidget *label; /* label label = gtk_label_new(" "); sample3.c label label gtk_label_set(gtk_label(label), " "); button

5 2.4 5 /* GtkWidget *button; /* button button = gtk_button_new_with_label(" "); 2.4 GUI OS Gtk+ ( ) 2 gint gtk_signal_connect( GtkObject object name func gchar GtkSignalFunc *object, *name, func, gpointer func_data ); : GTK ( ) : : func_data : void callback_func( GtkWidget *widget, gpointer data ); widget : data :

6 6 2 Gtk+ GUI gint gtk_signal_connect_object( GtkObject object name func gchar GtkSignalFunc *object, *name, func, GtkObject *slot_object ); : GTK ( ) : : slot_object : func GTK void callback_func( GtkWidget *widget ); widget : gtk_signal_connect() gtk_signal_connect_object() 1 1 Gtk+ pressed released clicked enter leave sample1.c counter 1 1. sample1.c. 2. sample1.c button GUI

7 GUI Gtk+ GUI Gtk+ (= ) 3 4 gtk_hbox_new() gtk_box_pack_start() gtk_box_pack_end()

8 8 3 gtk_vbox_new() gtk_box_pack_start() gtk_box_pack_end() 2 1. sample2.c C( ) ( 5) 2. (+,-,*,/) 3. ( ) sample3.c sample3

9 sample3.c 2. sample3.c image_proportion() 6 3. sample3.c image_skew() 7 4. sample3.c image_radial() 8 ( ) image_processing() image_processing() PNG, JPEG, TIFF, BMP, GIF PNM(Portable anymap) PGM(Portable Grayscale Map) PPM(Portable Pixel Map) P x y ( RGB )... PGM

10 10 3 P ( )... 1 P5 P6 P5 P pixel 255 pixel bit(=1 byte) 1pixel 1byte 1pixel RGB 8bit 3byte 3.3 GTK GDK (GIMP Drawing Kit) GDK (X Window system XLib ) (Wrapper) GDK DrawingArea GtkWidget* gtk_drawing_area_new ( void ); /* void gtk_drawing_area_size ( GtkDrawingArea *darea, gint width, gint height); realize size allocate expose event RGB ( ) GDK GdkRgb GdkRgb gdk_rgb_init()

11 core (GtkPreview ) GdkRgb GTK+ (class_init) gdk_rgb_init() GdkRgb void gdk_rgb_init (void); void gdk_draw_rgb_image ( GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *rgb_buf, gint rowstride ); void gdk_draw_gray_image ( GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *buf, gint rowstride ); drawable gc x y width height dith rgb_buf : GdkDrawable ( GdkWindow) : ( GDK ) : drawable X : drawable Y : : : GdkRgbDither : Packed24 (Packed : Depth ) rowstride : rgb_buf

12 12 3 gdk_draw_rgb_image () Drawable RGB gdk_draw_gray_image () Drawable rowstride 0 <= i < width 0 <= j < height pixel(x+i, y+j) (R) = rgb_buf[j*rowstride + i*3] (G) = rgb_buf[j*rowstride + i*3 + 1] (B) = rgb_buf[j*rowstride + i*3 + 2] 3.4 GUI / entry scale entry entry entry /* GtkWidget *entry; /* entry entry = gtk_entry_new_with_max_length (50); entry gchar *entry_text; entry_text = gtk_entry_get_text (GTK_ENTRY(entry)); scale entry GUI scale scale scale adjustment adjustment gtk_adjustment_new()

13 GtkObject* gtk_adjustment_new ( gfloat value, gfloat lower, gfloat upper, gfloat step_increment, gfloat page_increment, gfloat page_size ); value : lower : upper : step_increment : page_increment : page_size : upper upper - page_size scale adjustment /* GtkObject *adjustment; GtkWidget *scale; /* adjustment adjustment = gtk_adjustment_new(0, 0, 255, 1, 1, 0); /* on_slider_moved() gtk_signal_connect(gtk_object(adjustment), "value_changed", GTK_SIGNAL_FUNC(on_slider_moved), adjustment); /* scale adjustment scale = gtk_vscale_new(gtk_adjustment(adjustment)); /* gtk_scale_set_digits(gtk_scale(scale), 0); scale

14 14 3 void on_slider_moved(gtkwidget * widget, GtkAdjustment *adj) { int scale_value; } scale_value = adj->value; 4 1. sample4.c sample4.c load_pgm() 9 lena.pgm 2. entry T T 1 0 (binarization).

15 x x f y = f(x) [x m in, x m ax] 10 x max x y = y max x min x < x max y = y max y min (x x min ) + y min x max x min x < x min y = y min ymax ymin xmin xmax ( ) ( ) 3 3 f(i, j) g(i, j) (i, j) g(i, j) = m= 1 n= 1 f(i + m, j + n)

16 16 3 Sobel Sobel 1 1 ( 11) 3 3 f(i, j) 2 2 f(i, j) {f(i + 1, j) f(i, j)} {f(i, j) f(i 1, j)} i2 2 f(i, j) {f(i, j + 1) f(i, j)} {f(i, j) f(i, j 1)} j2 2 2 f(i, j) + f(i, j) i2 j2 3 3

17 17 11 (A),(B) ( ) (B) ( ) sample5.c scale sample5.c image_filter() ( ) 3. Sobel ( ) 4. ( ) (/dev/video) mmap videocapture.c GUI

18 gtk capture videocapture gui.c OpenCV OpenCV OpenCV 2 binarization()

19 4.1 OpenCV 19 // 2 void binarization(void){ // BGR cvcvtcolor( sourceimage, grayimage, CV_BGR2GRAY ); // 2 cvthreshold( grayimage, binaryimage, levels, THRESHOLD_MAX_VALUE, CV_THRESH_BINARY ); } // cvshowimage( windownamebinarization, binaryimage); // void on_change( int pos ){ binarization(); } GTK (GTK scale ) char windownamebinarization[] = "Binarization" // int levels = 128; // (2 ) char trackbarnamethreshold[] = "Threshold"; // // cvnamedwindow( windownamebinarization ); // cvcreatetrackbar( trackbarnamethreshold, windownamebinarization, &levels, TRACKBAR_MAX_VALUE, on_change ); // cvdestroywindow( windownamebinarization );

20 binarization opencv OpenCV ( )

TA tani/class/mech enshu/ X Window System GUI(Graphical User Interface) GUI (event driven) 2 Gtk

TA   tani/class/mech enshu/ X Window System GUI(Graphical User Interface) GUI (event driven) 2 Gtk 1 2011 8 TA http://www.cyber.t.u-tokyo.ac.jp/ tani/class/mech enshu/ 2011 7 7 1 X Window System GUI(Graphical User Interface) GUI (event driven) 2 Gtk+ GUI 2.1 GUI GUI GUI (event driven) GUI GUI GUI GUI

More information

2 2 GtkWidget* gtk_drawing_area_new ( void ); /* */ void gtk_drawing_area_size ( GtkDrawingArea *darea, gint width, gint height); realize size allocat

2 2 GtkWidget* gtk_drawing_area_new ( void ); /* */ void gtk_drawing_area_size ( GtkDrawingArea *darea, gint width, gint height); realize size allocat 200 B3 GUI TA http://www.cyber.t.u-tokyo.ac.jp/ tani/class/mech enshu/ 200 7 6 X Window System GUI(Graphical User Interface) GUI (event driven) C GUI(Graphical User Interface) X Window System GUI GUI 2

More information

ÆþÌçGTK+

ÆþÌçGTK+ GTK+ 2016 11 1 iii GTK+ GUI GIMP GIMP GTK+ Windows GNOME GTK+ GTK+ GNOME KDE Qt GTK+ GTK+ GUI GUI Glade Anjuta GUI GUI GTK+, GUI GTK+, GTK+ 2 2009., GTK+ 3, 2., 2009 GTK+ 3,. 2016 10 iv C GUI GTK+ GUI

More information

GLS user s reference 19 8 21 1 3 1.1....................................................... 3 1.2....................................................... 3 1.3.......................................................

More information

ÆþÌçGTK+

ÆþÌçGTK+ GTK+ 2012 10 10 iii GTK+ GUI GIMP GIMP GTK+ Windows GNOME GTK+ GTK+ GNOME KDE Qt GTK+ GTK+ GUI GUI Glade Anjuta GUI GUI GTK+ GTK+ GTK+ GUI 2009 10 iv C GUI GTK+ GUI GTK+ GTK+ GTK+ GTK+ 1 GTK+ GTK+ Ubuntu

More information

表紙

表紙 GUI Application Programming using GTK+/GNOME GTK+/GNOME による GUI アプリケーションプログラミング 菅谷保之著 THE TEO PROJECT PROGRAMMER S NOTEBOOK GTK+/GNOME GUI THE TEO PROJECT iii GTK+ GIMP (GNU Image Manipulation Program)

More information

OpenCV IS Report No Report Medical Information System Labratry

OpenCV IS Report No Report Medical Information System Labratry OpenCV 2014 8 25 IS Report No. 2014090201 Report Medical Information System Labratry Abstract OpenCV OpenCV 1............................ 2 1.1 OpenCV.......................... 2 1.2......................

More information

2 Eclipse 2.1 Eclipse 1. Eclipse 2. 3 ( 4) E:Yworkspace OK 3 Eclipse 4 3. Eclipse 5 5 Eclipse Eclipse 2. 7 C 2

2 Eclipse 2.1 Eclipse 1. Eclipse 2. 3 ( 4) E:Yworkspace OK 3 Eclipse 4 3. Eclipse 5 5 Eclipse Eclipse 2. 7 C 2 3: 1 1. PC 2. Phantasys 201209 ( 1) 1 PC 2 Windows 3. Windows ID ( 2) 4. Web (Firefox Internet Explorer) 5. A 6. http:// http://www.cv.ics.saitama-u.ac.jp/yosinori/lecture/seminar/ Web 1 7. USB PC USB

More information

1 1 Pixel 0 n 1 n=8 56 R G B RGB M RGB (1) M = 0.99R G B (1) () 4 π d 4 B = L cos φ () 4 ID B L d ID φ d / ID F R φ (3) R

1 1 Pixel 0 n 1 n=8 56 R G B RGB M RGB (1) M = 0.99R G B (1) () 4 π d 4 B = L cos φ () 4 ID B L d ID φ d / ID F R φ (3) R I-07 404 137, Email:dsusuki@ipc.shizuoka.ac.jp When preparing the manuscript, read and observe carefully this sample as well as the instruction manual for the manuscript (1) OS of the Transaction of Japan

More information

t.dvi

t.dvi T-1 http://adapt.cs.tsukuba.ac.jp/moodle263/course/view.php?id=7 (Keisuke.Kameyama@cs.tsukuba.ac.jp) 29 10 11 1 ( ) (a) (b) (c) (d) SVD Tikhonov 3 (e) 1: ( ) 1 Objective Output s Known system p(s) b =

More information

GUI プログラムは これまでのおさらい 初期化 無限ループ 終了処理 低レベルから高レベルまで Xlib Xt gtk+ 等々 言語も自由自在 C C++ C# VB.NET Python 等々 Shell Script でもできる zenity 使ってね

GUI プログラムは これまでのおさらい 初期化 無限ループ 終了処理 低レベルから高レベルまで Xlib Xt gtk+ 等々 言語も自由自在 C C++ C# VB.NET Python 等々 Shell Script でもできる zenity 使ってね GUI プログラム入門 (3) Makefile を使ってみよう (Windows の話ではありません ) 西尾太 @Momonga Project GUI プログラムは これまでのおさらい 初期化 無限ループ 終了処理 低レベルから高レベルまで Xlib Xt gtk+ 等々 言語も自由自在 C C++ C# VB.NET Python 等々 Shell Script でもできる zenity 使ってね

More information

TA TA TA abcdefgh abcdefgh C PC Wii bluetooth 2.2 Bluetooth USB Princeton PTM-UBT3S 1 1

TA TA TA abcdefgh abcdefgh C PC Wii bluetooth 2.2 Bluetooth USB Princeton PTM-UBT3S 1 1 1 22 (2) TA: 2010 12 13 1 OpenGL Wii Wii OpenGL USB (3DCG) 1.1 http://www.cyber.t.u-tokyo.ac.jp/~kuni/enshu2010/ URL USB 2 2 1.2 TA 16 15 TA TA mireport@cyber.t.u-tokyo.ac.jp 20101213 abcdefgh abcdefgh

More information

第3章 OpenGL の基礎

第3章 OpenGL の基礎 3 OpenGL April 11, 2017 1 / 28 3.1 ( ) OpenGL OpenGL 2 / 28 3.2 OpenGL OpenGL OpenGL (Open Graphics Library) Silicon Graphics, Inc. 2 3 API (Application Program Interface) [4] UNIX OS Windows Macintosh

More information

1 CUI CUI CUI 1.1 cout cin 1.1.1 redirect.cpp #i n c l u d e <s t r i n g > 3 using namespace std ; 5 6 i n t main ( void ) 7 { 8 s t r i n g s ; 10 c

1 CUI CUI CUI 1.1 cout cin 1.1.1 redirect.cpp #i n c l u d e <s t r i n g > 3 using namespace std ; 5 6 i n t main ( void ) 7 { 8 s t r i n g s ; 10 c C/C++ 007 6 11 1 CUI 1.1....................................... 1................................ 3 1.3 argc argv................................. 5.1.............................................. 5...............................................

More information

第3章 OpenGL の基礎

第3章 OpenGL の基礎 3 OpenGL April 20, 2012 1 / 23 31 ( ) OpenGL OpenGL 2 / 23 32 OpenGL OpenGL OpenGL (Open Graphics Library) Silicon Graphics, Inc 2 3 API (Application Program Interface) [4] UNIX OS Windows Macintosh CAD

More information

1 bmp gif,png,jpg bmp gif,png jpg BPG 2014 jpg *3 RAW TIFF RAW CCD CMOS R,G,B TIFF net *4 1.1 JPEG HP JPEG 3 1 4, 1 8, 1 16 JPEG SD jpeg JPEG RGB YCrC

1 bmp gif,png,jpg bmp gif,png jpg BPG 2014 jpg *3 RAW TIFF RAW CCD CMOS R,G,B TIFF net *4 1.1 JPEG HP JPEG 3 1 4, 1 8, 1 16 JPEG SD jpeg JPEG RGB YCrC Viewmat SHIMURA Masato 2015 6 12 viewnmat viewmat QT J8x 400 RGB CMYK *1 *2 RGB CMYK *1 CMYK,, *2 1 1 bmp gif,png,jpg bmp gif,png jpg BPG 2014 jpg *3 RAW TIFF RAW CCD CMOS R,G,B TIFF net *4 1.1 JPEG HP

More information

double float

double float 2015 3 13 1 2 2 3 2.1.......................... 3 2.2............................. 3 3 4 3.1............................... 4 3.2 double float......................... 5 3.3 main.......................

More information

Microsoft Word - C.....u.K...doc

Microsoft Word - C.....u.K...doc C uwêííôöðöõ Ð C ÔÖÐÖÕ ÐÊÉÌÊ C ÔÖÐÖÕÊ C ÔÖÐÖÕÊ Ç Ê Æ ~ if eíè ~ for ÒÑÒ ÌÆÊÉÉÊ ~ switch ÉeÍÈ ~ while ÒÑÒ ÊÍÍÔÖÐÖÕÊ ~ 1 C ÔÖÐÖÕ ÐÊÉÌÊ uê~ ÏÒÏÑ Ð ÓÏÖ CUI Ô ÑÊ ÏÒÏÑ ÔÖÐÖÕÎ d ÈÍÉÇÊ ÆÒ Ö ÒÐÑÒ ÊÔÎÏÖÎ d ÉÇÍÊ

More information

画像研修

画像研修 20 7 ... 2 1.1... 2 1.1.1... 2 1.1.2... 2 1.1.3... 3 1.1.4... 3 1.1.5... 3 1.1.6... 3 1.1.7... 3 1.2... 4 1.3... 4 1.3.1... 4... 5 2.1... 5 2.2... 6 2.3Word... 7 2.3.1Word... 7 2.3.2... 8 2.3.3... 8 2.3.4...

More information

ÆþÌçGTK+

ÆþÌçGTK+ 1 1 GTK+ 1.1 GTK+ GTK+ *1 GUI Graphical User Interface GIMP * 2 1.1 GIMP GNOME *3 GTK+ + GTK+ 2 Pango ATK cairo 2 GTK+ GLib... 1.1 GIMP *1 GTK+ The GIMP Toolkit : http://www.gtk.org/ *2 GIMP The GNU Image

More information

BIT -2-

BIT -2- 2004.3.31 10 11 12-1- BIT -2- -3-256 258 932 524 585 -4- -5- A B A B AB A B A B C AB A B AB AB AB AB -6- -7- A B -8- -9- -10- mm -11- fax -12- -13- -14- -15- s58.10.1 1255 4.2 30.10-16- -17- -18- -19-6.12.10

More information

RaVioli SIMD

RaVioli SIMD RaVioli SIMD 17 17115074 i RaVioli SIMD PC PC PC PC CPU RaVioli RaVioli CPU RaVioli CPU SIMD RaVioli RaVioli SIMD RaVioli SIMD RaVioli SIMD 1 1 2 RaVioli 2 2.1 RaVioli.......................................

More information

main.dvi

main.dvi A PostScript y 1997 1 Silicon Graphics i-station ( vhsgi) 1 i-station LaserMaster DisplayMaker-J DisplayMaker-J A dpi( ) PostScript 2 PostScript DisplayMaker-J i-station i-station ( AVS) PostScript i-station

More information

2008 DS T050049

2008 DS T050049 DS T050049. PSP DS DS DS RPG DS OS Windows XP DevkiPro OS DS CPU ARM devkitarm MSYS MinGW MSYS MinGW Unix OS C++ C++ make nds nds DS DS micro SD Card nds DS DS DS nds C Java C++ nds nds DS 2008 DS T050049

More information

line(x1, y1, x2, y2); (x1, y1) rect(x, y, width, height); (x, y) (x1, y1) (x2, y2) height width (x2, y2) ellipse(x, y, width, height); rectmode(corners); rect(x1, y1, x2, y2); (x,y) width height strokeweight(4);

More information

GUI GUI Ruby GUI Ruby/Tk Ruby/Gtk GUI Ruby GUI

GUI GUI Ruby GUI Ruby/Tk Ruby/Gtk GUI Ruby GUI Ruby Workshop Ruby GUI GUI GUI Ruby GUI Ruby/Tk Ruby/Gtk GUI Ruby GUI GUI Graphical User Interface ( CUI) GUI : Tk, Gtk, Motif, Qt GUI C : : TkMandel : Imlib GUI GUI GUI GUI 7 8 : GUI Ruby GUI GUI Ruby

More information

もう少し詳しい説明 1. アルゴリズムを構築するための 4 枚のサンプル画像を次々と読み込むここで重要なことは画像を順番に読み込むための文字列操作 for 文の番号 i を画像の番号として使用している strcpy は文字列のコピー,sprinf は整数を文字列に変換,strcat は文字列を繋げる

もう少し詳しい説明 1. アルゴリズムを構築するための 4 枚のサンプル画像を次々と読み込むここで重要なことは画像を順番に読み込むための文字列操作 for 文の番号 i を画像の番号として使用している strcpy は文字列のコピー,sprinf は整数を文字列に変換,strcat は文字列を繋げる サンプルプログラムの概要 1. アルゴリズムを構築するための 4 枚のサンプル画像を次々と読み込む 2. RGB 分離を行い,R 画像を用いて閾値 40 で 2 値化 3. ラベリングを行う ( ここで対象物の数を数えることになる ) 4. ラベル付された対象の重心を計算 5. ラベル値と重心位置を 2 値画像に表示 ( 赤い数字がラベル値, 緑色の点が重心位置を表している ) 6. テキストファイルに結果を書き出し

More information

スライド 1

スライド 1 知能制御システム学 画像処理の基礎 (1) 基礎概念と OpenCV の導入 東北大学大学院情報科学研究科鏡慎吾 swk(at)ic.is.tohoku.ac.jp http://www.ic.is.tohoku.ac.jp/~swk/lecture/ 2012.06.12 ディジタル画像 撮像面における入射光強度のアナログ分布 2 次元離散化 ( 画素 への分割 ) 量子化 (A/D 変換 ) ディジタル画像

More information

r07.dvi

r07.dvi 19 7 ( ) 2019.4.20 1 1.1 (data structure ( (dynamic data structure 1 malloc C free C (garbage collection GC C GC(conservative GC 2 1.2 data next p 3 5 7 9 p 3 5 7 9 p 3 5 7 9 1 1: (single linked list 1

More information

ohp07.dvi

ohp07.dvi 19 7 ( ) 2019.4.20 1 (data structure) ( ) (dynamic data structure) 1 malloc C free 1 (static data structure) 2 (2) C (garbage collection GC) C GC(conservative GC) 2 2 conservative GC 3 data next p 3 5

More information

210 資料 TI 89 (1) TI 89 2nd ON HOME ( ) ( ) HOME =! ENTER ( ) = (10) ENTER ( ) [ ] { } ( )! 2 =! ( ) ( ) 2 3x ( 2y + yz) ( ) 3x ( ( ) 2y + y z)

210 資料 TI 89 (1) TI 89 2nd ON HOME ( ) ( ) HOME =! ENTER ( ) = (10) ENTER ( ) [ ] { } ( )! 2 =! ( ) ( ) 2 3x ( 2y + yz) ( ) 3x ( ( ) 2y + y z) 210 資料 TI 89 (1) TI 89 2nd ON HOME () () HOME =! ENTER () = 3 10 3 (10) ENTER ( ) [ ] { } ( )! 2 =! ( ) () 2 3x ( 2y + yz) ( ) 3x ( ( ) 2y + y z) ENTER () 2nd 9 2nd 9) ENTER ( ) 2nd 7) ENTER 7 7 ) ENTER

More information

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」 ALTIMA Company, MACNICA, Inc Nios II HAL API Modular Scatter-Gather DMA Core Ver.17.1 2018 8 Rev.1 Nios II HAL API Modular Scatter-Gather DMA Core...3...3...4... 4... 5 3-2-1. msgdma... 6 3-2-2. On-Chip

More information

1.ppt

1.ppt /* * Program name: hello.c */ #include int main() { printf( hello, world\n ); return 0; /* * Program name: Hello.java */ import java.io.*; class Hello { public static void main(string[] arg)

More information

第5回お試しアカウント付き並列プログラミング講習会

第5回お試しアカウント付き並列プログラミング講習会 qstat -l ID (qstat -f) qscript ID BATCH REQUEST: 253443.batch1 Name: test.sh Owner: uid=32637, gid=30123 Priority: 63 State: 1(RUNNING) Created at: Tue Jun 30 05:36:24 2009 Started at: Tue Jun 30 05:36:27

More information

N08

N08 CPU のキモチ C.John 自己紹介 英語きらい 絵かけない 人の話を素直に信じない CPUにキモチなんてない お詫び 予告ではCとC# とありましたがやる気と時間の都合上 C++のみを対象とします 今日のネタ元 MSDN マガジン 2010 年 10 月号 http://msdn.microsoft.com/ja-jp/magazine/cc850829.aspx Windows と C++

More information

P05.ppt

P05.ppt 2 1 list0415.c forfor #include int i, j; for (i = 1; i

More information

t 2 2 t 2 t F ( ) p- 2 2 F 2 G F ( ) 2 2 F 2 G F ( ) 2 2 2

t 2 2 t 2 t F ( ) p- 2 2 F 2 G F ( ) 2 2 F 2 G F ( ) 2 2 2 1 2 2 0 1 2 2 2 2 2 2 2 2.1 2 2 F={f ij }, G {g ij } t f ij t g ij = 1 f ij < t g ij = 0 t p- p S 0 S p = S 0 /S t p 2 t 1 t 2 2 t 2 t 2 2 3 3 1 2 F ( ) p- 2 2 F 2 G 3 2 2 F ( ) 2 2 F 2 G 3 3 2 F ( ) 2

More information

joho07-1.ppt

joho07-1.ppt 0xbffffc5c 0xbffffc60 xxxxxxxx xxxxxxxx 00001010 00000000 00000000 00000000 01100011 00000000 00000000 00000000 xxxxxxxx x y 2 func1 func2 double func1(double y) { y = y + 5.0; return y; } double func2(double*

More information

main

main RaVioli 21 21115135 25 2 12 i RaVioli CPU RaVioli RaVioli CPU RaVioli RaVioli RaVioli RaVioli RaVioli 1 1 2 2 2.1........................................... 2 2.1.1.......................... 2 2.1.2.....

More information

23_33.indd

23_33.indd 23 2TB 1TB 6TB 3TB 2TB 3TB 3TB 2TB 2TB 1TB 1TB 500GB 4TB 1TB 1TB 500GB 2TB 2TB 1TB 1TB RT RT RT RT RT RT RT MAC 10. 10. 10.6 10.5 MAC 10. 10. 10.6 10.5 MAC 10. 10.6 10.5 MAC 10. 10. 10.6 10.5 MAC 10. 10.6

More information

mstrcpy char *mstrcpy(const char *src); mstrcpy malloc (main free ) stdio.h fgets char *fgets(char *s, int size, FILE *stream); s size ( )

mstrcpy char *mstrcpy(const char *src); mstrcpy malloc (main free ) stdio.h fgets char *fgets(char *s, int size, FILE *stream); s size ( ) 2008 3 10 1 mstrcpy char *mstrcpy(const char *src); mstrcpy malloc (main free ) stdio.h fgets char *fgets(char *s, int size, FILE *stream); s size ( ) stream FILE ( man ) 40 ( ) %./a.out String : test

More information

はじめに ハンズオンだと思う者にはハンズオンであり もくもく会だと思う者にはもくもく会である

はじめに ハンズオンだと思う者にはハンズオンであり もくもく会だと思う者にはもくもく会である 5 分で学ぶ GTK+ Ruby/GTK2 のサンプルもあるよ! @myokoym Ruby-GNOME2 Project Team デスクトップアプリケーションを作る会 2014/03/16 はじめに ハンズオンだと思う者にはハンズオンであり もくもく会だと思う者にはもくもく会である もくもく会だと思う もくもくしてください 相談などはいつでもどうぞ :-) ハンズオンだと思う スライドにサンプルコードを映すので

More information

Linux XScreenSaver T020074

Linux XScreenSaver T020074 Linux XScreenSaver T020074 Linux XScreenSaver XScreenSaver Linux Linux Linux X Window System X Window System Xlib XScreenSaver X Window System Xlib XScreenSaver Xlib vroot.h Xlib XScreenSaver Linux Linux

More information

untitled

untitled 16 Edge emphasis filter of images that uses Histogram 1050307 2005 2 18 RGB 9,, i Abstract Edge emphasis filter of images that uses Histogram Noriaki Okamoto Theedgeemphasisfilter is usually used to recognize

More information

r03.dvi

r03.dvi 19 ( ) 019.4.0 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void... argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0 a a \0 b b b \0 c c c \0 1: // argdemo1.c ---

More information

第7章 レンダリング

第7章 レンダリング 7 April 11, 2017 1 / 59 7.1 ( ) CG 3 ( ) 2 / 59 7.2 7.2.1 ( ) 3 (rendering) 1 / (hidden line/surface calculation) a (outer normal algorithm) b Z (Z-buffer algorithm) c (scan-line algorithm) 2 (shading)

More information

第7章 レンダリング

第7章 レンダリング 7 May 18, 2012 1 / 60 71 ( ) CG 3 ( ) 2 / 60 72 71 ( ) 3 (rendering) 1 / (hidden line/surface calculation) a (outer normal algorithm) b Z (Z-buffer algorithm) c (scan-line algorithm) 2 (shading) a (flat

More information

Garment Creator

Garment Creator Garment Creator ... 5... 5... 5 PDF... 5... 6... 7... 9... 9... 9... 9... 9... 11 T... 12 T... 12 T... 13... 13... 13... 16... 17... 17 USB... 17 USB... 17 /... 18... 19... 19... 19... 20... 21... 21...

More information

ÆþÌçGTK+

ÆþÌçGTK+ 249 10 & 10.1 10.1.1 void gtk_ widget_ set_ events ( GtkWidget * widget, gint events); 1 2 GtkEventMask typedef enum { GDK_ EXPOSURE_ MASK = 1

More information

2

2 2 485 1300 1 6 17 18 3 18 18 3 17 () 6 1 2 3 4 1 18 11 27 10001200 705 2 18 12 27 10001230 705 3 19 2 5 10001140 302 5 () 6 280 2 7 ACCESS WEB 8 9 10 11 12 13 14 3 A B C D E 1 Data 13 12 Data 15 9 18 2

More information

TI 89

TI 89 T89 1 3 1.1 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 3 1.2 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 3 1.3 : : : : : : : : : : : : : : : : : : : :

More information

ohp03.dvi

ohp03.dvi 19 3 ( ) 2019.4.20 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void int main(int argc, char *argv[]) {... 2 (2) argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0

More information

endo.PDF

endo.PDF MAP 18 19 20 21 3 1173 MAP 22 700800 106 3000 23 24 59 1984 358 358 399 25 12 8 1996 3 39 24 20 10 1998 9,000 1,400 5,200 250 12 26 4 1996 156 1.3 1990 27 28 29 8 606 290 250 30 11 24 8 1779 31 22 42 9

More information

08+11Extra

08+11Extra A - - #8 bit, Byte, Yutaka Yasuda bit : データの最小単位 1bit = 最小状態の単位 = 二進一桁 コンピュータ内部は電気配線 配線に電気が通っている いな い だけで処理 状態は2種 二値 二進 動作にうまく対応 二進一桁を配線一本で実現 0と1 二進数 で動作 の実体 1bit = 二進一桁 = 配線一本 Byte : Byte bit 8 1 Byte

More information

TEX American Mathmastical Society WINDOWS Microsoft Corporation Adobe Illustrator Acrobat Adobe Systems Incorporated TM L A TEX 2ε(pL A TEX 2ε) L A TE

TEX American Mathmastical Society WINDOWS Microsoft Corporation Adobe Illustrator Acrobat Adobe Systems Incorporated TM L A TEX 2ε(pL A TEX 2ε) L A TE Expanded AMeDAS Weather Data Program DVD 2013 ColorMap Color Map Drawing Tool & GmConv Gray-Map Converting Tool for ColorMap (enc. Extended Set 2) Software Users Manual Version 1.0: May, 2013 Meteorological

More information

Ł½’¬24flNfix+3mm-‡½‡¹724

Ł½’¬24flNfix+3mm-‡½‡¹724 571 0.0 31,583 2.0 139,335 8.9 310,727 19.7 1,576,352 100.0 820 0.1 160,247 10.2 38,5012.4 5,7830.4 9,5020.6 41,7592.7 77,8174.9 46,425 2.9 381,410 24.2 1,576,352 100.0 219,332 13.9 132,444 8.4 173,450

More information

Safari AppletViewer Web HTML Netscape Web Web 15-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web up

Safari AppletViewer Web HTML Netscape Web Web 15-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web up Safari AppletViewer Web HTML Netscape Web Web 15-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web update Event Driven paint Signature Overwriting Overriding

More information

(new) (Opens) Processing (Saves) (Exports) Java Java HTML Getting Started with Processing Casey Reas and Ben Fry. Processing: A Programming Handbook for Visual Designers and Artists Casey Reas and Ben

More information

untitled

untitled Clutter Overview 2009/09/11 Youngsik Yoon Software Application Engineer Agenda Moblin UI Clutter Clutter 2 Moblin UI Moblin UI Services Customer Provided UI / Apps WM + Clutter Compositor Platform Specific

More information

I J

I J I 065763J 8 7 7 31 jikken/ +----- accumulation_demupa.c +----- accumulation_rain.c +----- frequency_demupa.c +----- frequency_rain.c +----- go.sh +----- graph_maker.sh +----- mesure-ryudai/ 2007/4/1 2007/6/30

More information

I 2 tutimura/ I 2 p.1/??

I 2   tutimura/ I 2 p.1/?? I 2 tutimura@mist.i.u-tokyo.ac.jp http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/ 2002 4 25 I 2 p.1/?? / / Makefile I 2 p.2/?? Makefile make GNU make I 2 p.3/?? Makefile L A T E X I 2 p.4/?? core (1) gcc,

More information

untitled

untitled Visual Basic.NET 1 ... P.3 Visual Studio.NET... P.4 2-1 Visual Studio.NET... P.4 2-2... P.5 2-3... P.6 2-4 VS.NET(VB.NET)... P.9 2-5.NET... P.9 2-6 MSDN... P.11 Visual Basic.NET... P.12 3-1 Visual Basic.NET...

More information

Microsoft PowerPoint - CV03.ppt [互換モード]

Microsoft PowerPoint - CV03.ppt [互換モード] コンピュータビジョン 特 論 Advanced Computer Vision 第 3 回 今 回 の 内 容 OpenCVのインストール 方 法 基 本 的 な 使 い 方 について 学 ぶ 資 料 (New 浅 見 君 より): http://www.wakayama-u.ac.jp/~wuhy/how_to_install_opencv.html 資 料 (New2): http://cvwww.ee.ous.ac.jp/oc20inst.html

More information

FX ) 2

FX ) 2 (FX) 1 1 2009 12 12 13 2009 1 FX ) 2 1 (FX) 2 1 2 1 2 3 2010 8 FX 1998 1 FX FX 4 1 1 (FX) () () 1998 4 1 100 120 1 100 120 120 100 20 FX 100 100 100 1 100 100 100 1 100 1 100 100 1 100 101 101 100 100

More information

2 3

2 3 Sample 2 3 4 5 6 7 8 9 3 18 24 32 34 40 45 55 63 70 77 82 96 118 121 123 131 143 149 158 167 173 187 192 204 217 224 231 17 285 290 292 1 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

More information

...... 3... 3... 3... 4... 5... 6...... 3... 7... 35... 44... 45... 6... 68... 74... 84... 85... 87... 9... 97... 98......... 3... 6... 7... 6 3 4 5 4 69 4. 97 3.6 74 8. 7 7.3% 74 8.% 69 4.% 97 3.6%

More information

ProVisionaire Control V3.0セットアップガイド

ProVisionaire Control V3.0セットアップガイド ProVisionaire Control V3 1 Manual Development Group 2018 Yamaha Corporation JA 2 3 4 5 NOTE 6 7 8 9 q w e r t r t y u y q w u e 10 3. NOTE 1. 2. 11 4. NOTE 5. Tips 12 2. 1. 13 3. 4. Tips 14 5. 1. 2. 3.

More information

PowerPoint Presentation

PowerPoint Presentation p.130 p.198 p.208 2 double weight[num]; double min, max; min = max = weight[0]; for( i= 1; i i < NUM; i++ ) ) if if ( weight[i] > max ) max = weight[i]: if if ( weight[i] < min ) min = weight[i]: weight

More information

関数のグラフを描こう

関数のグラフを描こう L05(2010-05-07) 1 2 hig3.net ( ) L05(2010-05-07) 1 / 16 #i n c l u d e double f ( double x ) ; i n t main ( void ){ i n t n ; i n t nmax=10; double x ; double s =0.0; } x = 1.0; s=s+x ;

More information

Abstract Kinect for Windows RGB Kinect for Windows v Kinect for Windows v2

Abstract Kinect for Windows RGB Kinect for Windows v Kinect for Windows v2 Kinect 2014 9 19 IS Report No. 2014092901 Report Medical Information System Laboratory Abstract Kinect for Windows 2012 2 RGB Kinect for Windows v2 2014 7 Kinect for Windows v2 1............................

More information

13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir

13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir 13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software 37.1 37.1 Nspire Nspire Nspire 37.1: Student Software 13 2 13 Student Software esc

More information

Local variable x y i paint public class Sample extends Applet { public void paint( Graphics gc ) { int x, y;... int i=10 ; while ( i < 100 ) {... i +=

Local variable x y i paint public class Sample extends Applet { public void paint( Graphics gc ) { int x, y;... int i=10 ; while ( i < 100 ) {... i += Safari AppletViewer Web HTML Netscape Web Web 13-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web update Event Driven paint Signature Overwriting Overriding

More information

II ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D

II ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D II 8 2003 11 12 1 6 ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 Daisuke 8 =>. 73 Daisuke 35 Hiroshi 64 Ichiro 87 Junko

More information

新版明解C言語 実践編

新版明解C言語 実践編 2 List - "max.h" a, b max List - max "max.h" #define max(a, b) ((a) > (b)? (a) : (b)) max List -2 List -2 max #include "max.h" int x, y; printf("x"); printf("y"); scanf("%d", &x); scanf("%d", &y); printf("max(x,

More information

untitled

untitled 1. 2. 3. 4. 5. 6. 7. Intelligent Electronic Systems Group 4 PC bitmap.bmp (255,0,0)"" p8-2forint.c or p8-2formot.cdl (printf) (R,G,B)=(127,127,0) (R,G,B)=(255,127,0) viewer bitmap.bmp 1616 24bit (R,G,B)

More information

untitled

untitled a9027@city.tokorozawa.saitama.jp 104-2998-9027 1042-973-2111 104-2953-1111 104-2964-1111 1042-979-1121 c o n t e n t s A B C D E F 1 2 3 4 0 5000m 299 407 16 463 16 463 463 254 3 4 5 Event MAP F-4 6 MAP

More information

2-1 2-2 2-3 2-4 2-5 2-6 3-1 3-2 3-3 3-4 3-5 3-6 3-7 3-8 4-1 5-1 5-2

2-1 2-2 2-3 2-4 2-5 2-6 3-1 3-2 3-3 3-4 3-5 3-6 3-7 3-8 4-1 5-1 5-2 2-1 2-2 2-3 2-4 2-5 2-6 3-1 3-2 3-3 3-4 3-5 3-6 3-7 3-8 4-1 5-1 5-2 1 JB 2 001 002 003 004 005 010 2-1 2-2 -1 2-3 2-4 2-5 2-6 3 3-1 5. 3-2 1,000 100200 300500KB Pixel 1,280 960 1,600 1,200 120 SXGA 200

More information

A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B

A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B A/B (2018/10/19) Ver. 1.0 kurino@math.cst.nihon-u.ac.jp http://edu-gw2.math.cst.nihon-u.ac.jp/ kurino/2018/soft/soft.html 2018 10 19 A/B 1 2018 10 19 2 1 1 1.1 OHP.................................... 1

More information

Qt4.0 GUI Nishio 2007 8 29 3 1 Hello Qt! 5 1.1 Hello Qt!................................. 5 1.2 (QLabel)........................ 7 1.3 (QPushButton)................ 8 1.4 (QFont)................... 9

More information

(300, 150) 120 getchar() HgBox(x, y, w, h) (x, y), w, h #include <stdio.h> #include <handy.h> int main(void) { int i; double w, h; } HgO

(300, 150) 120 getchar() HgBox(x, y, w, h) (x, y), w, h #include <stdio.h> #include <handy.h> int main(void) { int i; double w, h; } HgO Handy Graphic for Handy Graphic Version 0.5 2008-06-09 1 Handy Graphic Handy Graphic C Handy Graphic Handy Graphic Mac OS X Handy Graphic HgDisplayer Handy Graphic HgDisplayer 2 Handy Graphic 1 Handy Graphic

More information

- - Microsoft Windows Microsoft Corporation - Windows Vista Microsoft Corporation - TANDD

- - Microsoft Windows Microsoft Corporation - Windows Vista Microsoft Corporation - TANDD T&D Recorder for Windows Copyright T&D Corporation. All rights reserved. 2015.10 16500000011 27 - - Microsoft Windows Microsoft Corporation - Windows Vista Microsoft Corporation - TANDD - - - - - - - T&D

More information

C C UNIX C ( ) 4 1 HTML 1

C C UNIX C ( ) 4 1 HTML 1 C 2007 4 18 C UNIX 1 2 1 1.1 C ( ) 4 1 HTML 1 はじめ mkdir work 作業用ディレクトリーの作成 emacs hoge.c& エディターによりソースプログラム作成 gcc -o fuga hoge.c コンパイルにより機械語に変換 コンパイルエラー./fuga 実行 実行時エラー 完成 1: work hooge.c fuga 1 4 4 1 1.

More information

第5章 システム内部設計                            

第5章 システム内部設計                             GIS 1.0 Web Map Server Interface 5-23 GIS 5-24 ConvertCoordinates Coordinate coordinates inputcrs outputcrs Coordinate Coordinate ConvertImageCoordinates width height x y BoundingBox bbox crs Coordinate

More information

2 1 2 3 27 2 6 2 5 19 50 1 2

2 1 2 3 27 2 6 2 5 19 50 1 2 1 2 1 2 3 27 2 6 2 5 19 50 1 2 2 17 1 5 6 5 6 3 5 5 20 5 5 5 4 1 5 18 18 6 6 7 8 TA 1 2 9 36 36 19 36 1 2 3 4 9 5 10 10 11 2 27 12 17 13 6 30 16 15 14 15 16 17 18 19 28 34 20 50 50 5 6 3 21 40 1 22 23

More information

comment.dvi

comment.dvi ( ) (sample1.c) (sample1.c) 2 2 Nearest Neighbor 1 (2D-class1.dat) 2 (2D-class2.dat) (2D-test.dat) 3 Nearest Neighbor Nearest Neighbor ( 1) 2 1: NN 1 (sample1.c) /* -----------------------------------------------------------------

More information

ORiN CAO USB (3) CAO CAO USB ORiN CAO USB 1 2 (4) CAO 3 CAO USB 4 PC OS 1 CPU:Pentium IV 2. 8GHz :512MByte Windows XP SP2 Professional ORiN2 SDK USB D

ORiN CAO USB (3) CAO CAO USB ORiN CAO USB 1 2 (4) CAO 3 CAO USB 4 PC OS 1 CPU:Pentium IV 2. 8GHz :512MByte Windows XP SP2 Professional ORiN2 SDK USB D ORiN FA ORiN USB ORiN 1 1 ORiN CAO 1 1 USB USB ORiN 2 3 2 ( ) 3 1 Web ORiN USB ( ) ( ) ( ) ORiN CAO USB (3) CAO CAO USB ORiN CAO USB 1 2 (4) CAO 3 CAO USB 4 PC OS 1 CPU:Pentium IV 2. 8GHz :512MByte Windows

More information

8 / 0 1 i++ i 1 i-- i C !!! C 2

8 / 0 1 i++ i 1 i-- i C !!! C 2 C 2006 5 2 printf() 1 [1] 5 8 C 5 ( ) 6 (auto) (static) 7 (=) 1 8 / 0 1 i++ i 1 i-- i 1 2 2.1 C 4 5 3 13!!! C 2 2.2 C ( ) 4 1 HTML はじめ mkdir work 作業用ディレクトリーの作成 emacs hoge.c& エディターによりソースプログラム作成 gcc -o fuga

More information

C B

C B C 095707B 2010 6 8 1 LEVE1 2 1.1 LEVEL 1.1................................................ 2 1.1.1 1................................................ 2 1.1.2 1.2..............................................

More information

/* sansu1.c */ #include <stdio.h> main() { int a, b, c; /* a, b, c */ a = 200; b = 1300; /* a 200 */ /* b 200 */ c = a + b; /* a b c */ }

/* sansu1.c */ #include <stdio.h> main() { int a, b, c; /* a, b, c */ a = 200; b = 1300; /* a 200 */ /* b 200 */ c = a + b; /* a b c */ } C 2: A Pedestrian Approach to the C Programming Language 2 2-1 2.1........................... 2-1 2.1.1.............................. 2-1 2.1.2......... 2-4 2.1.3..................................... 2-6

More information