본문 바로가기

분류 전체보기

(158)
c# winform backgroundworker 스레드 중단/재개하기 코드 c# winform background worker에서 중요한 점은 background worker에서 do_work는 별도의 background 스레드에서 동작하기 때문에 UI를 손볼 수 없다. ui의 변경은 ProgressChangedEventHandler나 RunWorkCompletedEventHandler에서 조정한다. 또한 background worker의 중단/재개 방법을 코드로 적는다. 버튼으로 중단/재개를 할 수 있으며, P(중단) R(재개) 키를 누름으로서 프로그램의 중단/재개를 할 수 있다. ======= 코드 ======= 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 3..
c# winform chart(only for .net framework) 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms; namespace winformchart{ public partial class Fo..
c# winform listview 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; u..
c# winform drag & drop 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace DragAndDrop { public partial clas..
c# winform background worker 사용하기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks;..
c++ sobel operator 구현 코드 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677void convert_greyscale_image_to_sobel(void){ unsigned const int n = 3; int sobel_x[n][n] = {-1,-2,-1,0,0,0,1,2,1}; int sobel_y[n][n] = {-1,0,1,-2,0,2,-1,0,1}; int R_patch[n][n] = { 0, 0,0,0,0,0,0,0,0}; int patch_y = -1; int patch_x = -1; for (int i = 0; i
링크, google landmark recognition 설명 https://personal-record.onrender.com/post/google-landmark-recognition-2020/?fbclid=IwAR12P_Dd68wxYstWYgwi1EgUiPZsLDS2zYrP_PWYtObtQ6lMdNd8fyUjhQY
c++ opencv keypoint를 활용한 homography 찾기 결과 >> 코드 >> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 #include "opencv2/opencv.hpp" #include #include using namespace cv; int homographyStudy() { // 이미지 읽기 Mat src1 = imread("graf1.png", IMREAD_COLOR)..