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
http://study.marearts.com/2016/07/opencv-30-trackbar-usage-simple-example.html | |
#include "opencv2/opencv.hpp" | |
#include < iostream> | |
using namespace cv; | |
using namespace std; | |
int g_slider; //slider pos value | |
int g_slider_max; //slider max value | |
void on_trackbar(int, void*) |
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
http://study.marearts.com/2016/07/opencv-30-trackbar-simple-example-in.html | |
#include "opencv2/opencv.hpp" | |
#include < iostream> | |
using namespace cv; | |
using namespace std; | |
int g_slider; //slider pos value | |
int g_slider_max; //slider max value | |
void on_trackbar(int, void*) |
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
http://study.marearts.com/2017/01/opencv-trackbar-exmaple-source-code.html | |
#include "opencv2/opencv.hpp" | |
#include < iostream> | |
using namespace cv; | |
using namespace std; | |
int g_slider; //slider pos value | |
int g_slider_max; //slider max value |
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
http://study.marearts.com/2017/01/mfc-cipaddressctrl-ctrol-ip-address-set.html | |
..................................................................... | |
//set, get code | |
//get address to Cstring | |
CString ipaddress; | |
BYTE ip[4]; | |
m_ServeripAddress.GetAddress(ip[0], ip[1], ip[2], ip[3]); | |
ipaddress.Format(_T("%d.%d.%d.%d"), ip[0], ip[1], ip[2], ip[3]); | |
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
http://study.marearts.com/2017/01/opencv-add-subtract-multiply-divide.html | |
http://cvlecture.marearts.com/2017/01/opencv-4-3.html | |
#include "opencv2/opencv.hpp" | |
#include "opencv2/cuda.hpp" | |
#include "opencv2\cudaarithm.hpp" | |
#include <iostream> | |
using namespace std; |
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 "opencv2/opencv.hpp" | |
#include <iostream> | |
using namespace std; | |
using namespace cv; | |
int main(int, char) | |
{ | |
Mat originImg = imread("scret.jpg"); | |
namedWindow("originImg", 0); |
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
http://study.marearts.com/2017/02/cvlecture-example-code-operation.html | |
http://cvlecture.marearts.com/2017/02/opencv-lecture-4-4.html | |
#include "opencv2/opencv.hpp" | |
#include "opencv2/cuda.hpp" | |
#include "opencv2\cudaarithm.hpp" | |
#include <iostream> | |
using namespace std; | |
using namespace cv; |
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
http://study.marearts.com/2017/02/cvlecture-example-code-video-subtraction.html | |
http://cvlecture.marearts.com/2017/02/opencv-4-5.html | |
#include "opencv2/opencv.hpp" | |
#include "opencv2/cuda.hpp" | |
#include "opencv2\cudaarithm.hpp" | |
#include <iostream> | |
using namespace std; | |
using namespace cv; |
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
http://study.marearts.com/2017/02/opencv-lecture-and-or-xor-not-example.html | |
http://cvlecture.marearts.com/2017/02/opencv-lecture-4-6.html | |
Mat leftCircle = Mat(500, 1000, CV_8UC1); | |
Mat rightCircle = Mat(500, 1000, CV_8UC1); | |
leftCircle.setTo(0); | |
rightCircle.setTo(0); | |
circle(leftCircle, Point(1000/5*2, 500/2), 250, CV_RGB(255, 255, 255), CV_FILLED); |
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
http://study.marearts.com/2017/02/opencv-lecture-and-or-xor-not-example_14.html | |
http://cvlecture.marearts.com/2017/02/opencv-lecture-4-6.html | |
//실제 영상에서 | |
Mat img = imread("empireofthesun.jpg"); | |
Mat img_mask = img.clone(); // imread("empireofthesun_mask.jpg"); | |
img_mask.setTo(0); | |
circle(img_mask, Point(1000 / 5 * 2, 500 / 2), 250, CV_RGB(255, 255, 255), CV_FILLED); | |
Mat res; |