This file contains hidden or 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
| cout << "origin\n"; | |
| Mat a = (Mat_<int>(5, 5) << 1, 2, 3, 4, 5, | |
| 7, 8, 9, 10, 11, | |
| 12, 13, 14, 15, 16, | |
| 17, 18, 19, 20, 21, | |
| 22, 23, 24, 25, 26); | |
| cout << a << endl; | |
| cout << "\ninterest index of row - 0,3\n"; | |
| vector< int> row_index_interest; |
This file contains hidden or 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 tensorflow as tf | |
| import numpy as np | |
| tf.set_random_seed(777) | |
| #teach hello: hihell -> ihello | |
| idx2char = ['h', 'i', 'e', 'l', 'o'] #class 5 | |
| x_data = [[0, 1, 0, 2, 3, 3]] #hihell | |
| x_one_hot = [[[1, 0, 0, 0, 0], #h 0 |
This file contains hidden or 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 tensorflow as tf | |
| import numpy as np | |
| tf.set_random_seed(777) | |
| #teach hello: hihell -> ihello | |
| idx2char = ['h', 'i', 'e', 'l', 'o'] #class 5 | |
| x_data = [[0, 1, 0, 2, 3, 3]] #hihell | |
| x_one_hot = [[[1, 0, 0, 0, 0], #h 0 |
This file contains hidden or 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
| http://study.marearts.com/2014/03/opencv-study-write-text-on-image.html | |
| ////////////////////////// | |
| //cvPutText, IplImage case. | |
| CvFont * font = new CvFont; | |
| cvInitFont(font, CV_FONT_VECTOR0, 0.5f, 1.0f, 0, 1, 8); //rate of width and height is 1:2 | |
| char szText[8]; | |
| sprintf(szText, "TextOut"); //make string | |
| cvPutText(Image, szText, CenterPoint, font, CV_RGB(255, 255, 255)); //draw text on the IplImage* (Image) |
This file contains hidden or 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
| http://study.marearts.com/2013/10/opencv-246-calibration-example-source.html | |
| clc; | |
| close all; | |
| %clear all; | |
| %ImgPT=load('imagept.txt'); | |
| %ObjPT=load('objectpt.txt'); | |
| k=load('intrinsic.txt');R=load('rotation.txt');T=load('translation.txt');%S=load('ptSize.txt'); |
This file contains hidden or 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
| http://study.marearts.com/2013/10/opencv-246-calibration-example-source.html | |
| #include < stdio.h> | |
| #include < opencv2\opencv.hpp> | |
| //#include < opencv2\features2d\features2d.hpp> | |
| //#include < opencv2\nonfree\nonfree.hpp> | |
| //#include < opencv2\nonfree\features2d.hpp> | |
| #include < vector> |
This file contains hidden or 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
| http://study.marearts.com/2018/01/histogram-equalization-stretching.html | |
| #include "opencv2/opencv.hpp" | |
| #include "opencv2\highgui.hpp" | |
| #include <iostream> | |
| #ifdef _DEBUG | |
| #pragma comment(lib, "opencv_core331d.lib") | |
| #pragma comment(lib, "opencv_highgui331d.lib") |
This file contains hidden or 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
| http://study.marearts.com/2017/12/opencv-histogram-stretching-example.html | |
| #include "opencv2/opencv.hpp" | |
| #include "opencv2\highgui.hpp" | |
| #include <iostream> | |
| #ifdef _DEBUG | |
| #pragma comment(lib, "opencv_core331d.lib") | |
| #pragma comment(lib, "opencv_highgui331d.lib") |
This file contains hidden or 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
| http://study.marearts.com/2017/12/hue-histogram-example-opencv-source-code.html | |
| #include "opencv2/opencv.hpp" | |
| #include "opencv2\highgui.hpp" | |
| #include <iostream> | |
| #ifdef _DEBUG | |
| #pragma comment(lib, "opencv_core331d.lib") |
This file contains hidden or 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
| http://study.marearts.com/2017/12/calchist-for-rgb-image-opencv-histogram.html | |
| #include "opencv2/opencv.hpp" | |
| #include "opencv2\highgui.hpp" | |
| #include <iostream> | |
| #ifdef _DEBUG | |
| #pragma comment(lib, "opencv_core331d.lib") | |
| #pragma comment(lib, "opencv_highgui331d.lib") | |
| #pragma comment(lib, "opencv_imgcodecs331d.lib") |