View OpenGL_window.cpp
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
/* ------------------------------------------------------ | |
Displayコールバック実験 | |
--------------------------------------------------------*/ | |
#include <GL/glut.h> | |
#include <iostream> | |
int display_num = 0; | |
// 描画処理が必要なときに呼ばれる |
View OpenGL_2d_display.cpp
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
/* ------------------------------------------------------ | |
基本図形による2D描画の実施 | |
--------------------------------------------------------*/ | |
#include <GL/glut.h> | |
#include <iostream> | |
int display_num = 0; | |
// 描画処理が必要なときに呼ばれる |
View OpenGL_3d_display.cpp
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
/* ------------------------------------------------------ | |
基本図形による3D描画の実施 | |
--------------------------------------------------------*/ | |
#include <GL/glut.h> | |
#include <iostream> | |
// 描画処理が必要なときに呼ばれる | |
void display(void) | |
{ |
View PCLtestSource1.cpp
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 <pcl/visualization/cloud_viewer.h> | |
#include <iostream> | |
using namespace std; | |
// ビューワー起動時の一回だけ呼ばれる | |
void viewerOneOff(pcl::visualization::PCLVisualizer& viewer) | |
{ | |
viewer.setBackgroundColor(0.2, 0.2, 0.2); | |
cout << "viewerOneOff" << std::endl; | |
} |
View savePCLFile.cpp
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 <pcl/visualization/cloud_viewer.h> | |
#include <pcl/io/pcd_io.h> | |
#include <iostream> | |
using namespace std; | |
// ビューワー起動時の一回だけ呼ばれる | |
void viewerOneOff(pcl::visualization::PCLVisualizer& viewer) | |
{ | |
viewer.setBackgroundColor(0.2, 0.2, 0.2); | |
cout << "viewerOneOff" << std::endl; |
View loadPCDfile.cpp
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 <pcl/visualization/cloud_viewer.h> | |
#include <pcl/io/pcd_io.h> | |
#include <iostream> | |
using namespace std; | |
// ビューワー起動時の一回だけ呼ばれる | |
void viewerOneOff(pcl::visualization::PCLVisualizer& viewer) | |
{ | |
viewer.setBackgroundColor(0.2, 0.2, 0.2); | |
cout << "viewerOneOff" << std::endl; |
View TrainAlexnet.py
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
import numpy as np | |
import keras | |
from keras.utils import np_utils | |
from keras.models import Sequential | |
from keras.layers.convolutional import Conv2D, MaxPooling2D | |
from keras.layers.core import Dense, Dropout, Activation, Flatten | |
from sklearn.model_selection import train_test_split | |
from PIL import Image | |
import glob | |
from keras.preprocessing.image import load_img, img_to_array |
View test.cpp
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> | |
using namespace std; | |
int main() | |
{ | |
cout << "Hello, World!"; | |
return 0; | |
} |
View colors.txt
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
0 255 0 | |
0 0 255 | |
255 0 0 | |
0 255 255 | |
255 255 0 | |
255 0 255 | |
80 70 180 | |
250 80 190 | |
245 145 50 | |
70 150 250 |
View cudatest.cu
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 <stdio.h> | |
#include <iostream> | |
#include <time.h> | |
// GPUで計算する際の関数 | |
__global__ void gpu_function(float *d_x, float *d_y) | |
{ | |
int i = blockIdx.x * blockDim.x + threadIdx.x; | |
d_y[i] = sin(d_x[i]) * sin(d_x[i]) + cos(d_x[i]) * cos(d_x[i]); | |
} |