Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (8)
MFC thread control
4.0
Application background Create thread1, create thread AfxBeginThread ();2, UINT typedef (*AFX_THREADPPOC AFX_CDECL) (LPVOID);Thread control1, pause2, continue3, termination
lzp0916
2016-08-23
2
1
Single pipe transmission between MFC processes
no vote
Application background Single pipe data transmission between processesOperating platform: pro win10+vs2013Operating results:1, the conversion between characters and wide characters/ / wide character to characterTcharToChar void (TCHAR TCHAR * char, const * _char){ILength int;Get / / byte lengthILength = WideCharToMultiByte (CP_ACP, 0, TCHAR, -1, NULL, 0, NULL, NULL);The TCHAR / _char to the valueWideCharToMultiByte (CP_ACP, 0, TCHAR, -1, _char, iLength, NULL, NULL);}/ / characters to wide charactersCharToTchar void (char _char * TCHAR, const * TCHAR){ILength int;ILength = MultiByteToWideChar (CP_ACP, 0, _char, strlen (_char) + 1, NULL, 0);MultiByteToWideChar (CP_ACP, 0, _char, strlen (_char) + 1, TCHAR, iLength);}2, creating process and single pipe transmissionCDemoDlg: void: OnBnClickedButton1 (){TODO: / / add control notification handler code here/ / pipeHPWrite hPRead, HANDLE;SA SECURITY_ATTRIBUTES = {0};Sa.nLength = sizeof (SA);Sa.bInheritHandle = TRUE;Sa.lpSecu
lzp0916
2016-08-23
1
1
MFC creation process, open process, termination pr
no vote
Application background To create a process, open the process, terminate the process* two functions CreateProcess, openProcess, TerminateProcess* get process handle* access process number* enhance process authoritySpy++ *MicrosoftOperating platform: pro win10+vs2013Operation steps:1, create processPROCESS_INFORMATION PI; / / process information structureSTARTUPINFO Si; / / boot information structureMemset (& Si, 0, sizeof (SI));Si.cb = sizeof (Si);Si.wShowWindow = SW_SHOW;Si.dwFlags = STARTF_USESHOWWINDOW;SzPath[] TCHAR = TEXT ("E:\\c++\\MFC\\a.txt c:\\windows\\system32\\notepad.exe");BRet BOOL =:: CreateProcess (NULL, szPath, NULL, FALSE, NULL, NULL, NULL, NULL, &, Si, &, PI);Error int = GetLastError ();If (bRet){: CloseHandle (pi.hThread);: CloseHandle (pi.hProcess);AfxMessageBox (TEXT ("creation process"));}Else{AfxMessageBox (TEXT ("creation process failure"));}2, open processPID DWORD;If the specified window / / and the name of the window said the succ
lzp0916
2016-08-23
0
1
Python implementation of image network transmissio
no vote
Application background Platform: windows or LinuxLanguage: Python, opencvFunction: can be realized in the windows platform or Linux platform, in the local computer to take pictures, can be in a computer on the LAN display pictures.Process: 1, running server.py         ; 2, running video.py         ; 3, running client.py
lzp0916
2016-08-23
0
1
MATLAB image stitching
4.0
The program mainly uses SIFT algorithm for image feature extraction, then carries out rough feature matching, uses random sampling consistent algorithm (RANSAC) for image mismatching, and finally carries out image fusion.
lzp0916
2016-08-23
1
1
MATLAB implementation of boundary chain code
4.0
Procedures are used to implement: 1, an intensity image binarization; 2, image tracking, and contains 4 and 8; 3, 4 or 8 direction directional chain code generation and the beginning of normalization and normalized difference.
lzp0916
2016-08-23
8
1
MFC using CSocket class to achieve TCP network communication
4.0
Application background
lzp0916
2015-12-17
3
1
Opencv2 uses the mouse to draw rectangles and cut and save rectangular area images
no vote
Application background         mouse operation belongs to user interface design, can directly call the opencv library functions, mainly two points, one is to monitor the mouse operation, the mouse click, move, release, and then through the mouse_event to identify the operation of the mouse, according to different operation and then processing, two is in the main function to add the mouse.    second methods.
lzp0916
2015-11-24
0
1
No more~