Loading

摘要: var code = "69c58911-f211-47df-9a1e-5e8192157285" import numpy as np # 罗德里格矩阵模型,根据公共点计算旋转矩阵与平移矩阵 def RodriguesMatrixModel(src, dst): # 计算比例关系 scale = 阅读全文
posted @ 2022-12-21 22:38 WindSnowLi 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 遇到个需要将两个std::tuple对应元素分别求平均值的需求 实现 #include <iostream> #include <tuple> template <typename T, size_t S = 0, size_t E = std::tuple_size<T>::value> void 阅读全文
posted @ 2022-11-24 13:16 WindSnowLi 阅读(34) 评论(0) 推荐(0) 编辑
摘要: uchar *bits = nullptr; void initBuff(size_t size) { if (bits == nullptr) { bits = new uchar[size]; } } void releaseBuff() { if (bits != nullptr) { del 阅读全文
posted @ 2022-11-19 18:39 WindSnowLi 阅读(31) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_44575789/article/details/127935697像素处理太慢,这里换种方式 #pragma once #include <QDebug> #include <QImage> #include <QTimer> #include < 阅读全文
posted @ 2022-11-19 18:26 WindSnowLi 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 创建并获取窗口句柄 view->show(); view->createWinId(); auto wid = view->winId(); 获取图片 // 三秒钟之后 QTimer::singleShot(3000, [wid]() { auto&& image = GetGDIBitmap((H 阅读全文
posted @ 2022-11-19 13:19 WindSnowLi 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 代码示例 https://download.csdn.net/download/qq_44575789/86993010 CToolBar类 实现 加载位图的成员变量 CToolBar m_ToolBar; CBitmap m_bitmapEmpty; CBitmap m_bitmap1; CBit 阅读全文
posted @ 2022-11-13 16:12 WindSnowLi 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 解决方法 将单例对象初始化放入.cpp文件 示例 Fun.h #ifdef FUN_EXPORTS #define FUN_API __declspec(dllexport) #else #define FUN_API __declspec(dllimport) #endif #include <i 阅读全文
posted @ 2022-11-01 11:26 WindSnowLi 阅读(64) 评论(0) 推荐(0) 编辑
摘要: VTK使用CDockManager时弹出窗口提示OpenGL删除缓冲区错误 vtkOpenGLFramebufferObject (000001DCC7696900): failed at glDeleteFramebuffers 16 OpenGL errors detec 解决办法:OpenGL 阅读全文
posted @ 2022-09-21 15:16 WindSnowLi 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 核心部分 识别文本编码,这里使用ICU 核心代码 /// <summary> /// 读取文本文件内容并返回QString /// </summary> /// <param name="path">文件路径</param> /// <returns>文本内容</returns> static QS 阅读全文
posted @ 2022-09-20 09:52 WindSnowLi 阅读(28) 评论(0) 推荐(0) 编辑
摘要: # 获取文件编码类型 import chardet import os # 获取文件编码 def get_encoding(file_path): with open(file_path, 'rb') as f: return chardet.detect(f.read())['encoding'] 阅读全文
posted @ 2022-09-15 09:44 WindSnowLi 阅读(20) 评论(0) 推荐(0) 编辑