原创 opencv 從本地讀取視頻和文件夾下圖片
讀取視頻 VideoCapture m_cap; VideoWriter videoWriter; m_cap.open("...//1.mp4"); int32_t m_totalFrames = st
原创 圖像顏色空間轉換--RGB to Lαβ
Lαβ 空間是作者在文章《color transfer between images》中於2001年提出來的,該空間相比於RGB空間的優點是三通道相關性很小,缺點是計算量稍大,RGB轉到Lαβ 空間是一個非線性的過程,具體Lαβ的介紹以及
原创 CNN-卷積核的可視化c++實現-Day 1
頭文件包含內容(部分): typedef unsigned char u8; typedef signed char s8; typedef unsigned int u32; typedef int s32
原创 numpy-dictionary
d ={'peter': 'handsome', 'shutong':'cute'}#key:value print('peter' in d)#is in ? print(d['peter'])#下標訪問內容 d['1']='11'
原创 win10 在不同窗口下設置不同默認輸入法(程序員必備)
不知道有沒有和我有相似經歷的程序員,就是總會因爲在code 裏不小心使用了中文符號或者某些配置文件、路徑中使用了中文字符,而導致項目不work。所以,一個好的習慣就是, 在需要英文輸入法環境的我們設置英文輸入法,這樣一個小小的技巧可以避免
原创 首次使用git 的配置步驟
一:首先下載Git 客戶端; 二:設置用戶名和郵箱: git config --global user.name "xxx" git config --global user.email "xxxx" , g
原创 雙邊 濾波器的C++實現,彩色三通道(轉載+修改)
原文鏈接:https://cloud.tencent.com/developer/article/1094493 int getDiffFactor(const unsigned char*
原创 ACE(自適應對比對增強)的分析與改進
該方法的基本思想是將圖像分成兩部分:低頻和高頻兩部分,增強高頻部分,再合成。達到銳度增強的效果。一般在Y通道進行。 局部低頻部分:lowFre = blur(srcY, r)//局部濾波 局部高頻部分:highFre = srcY - l
原创 conda 安裝各類包的方法
conda info --envs//列出所有環境 activate xxx//切換到xxx環境 conda create --name xxx//新建環境 conda info -envis conda remove -n flower
原创 基於相似性的空域去燥
void spatialWeightingDeNoise(unsigned char* dst, unsigned char* src, int width, int height, int srcStride, int dstStri
原创 時域去燥的簡單嘗試
//test #include "deNoise.h" #define TMP_SIZE 5 #define MAX_SAD_THRESH 3 int main() { VideoCapture capture;
原创 rgb格式轉換
void cvtColorBgrC2RgbP(unsigned char* dst, unsigned char* src, int width, int height) { int picSize = width * height;
原创 python-numpy-quickSort
def quickSort(arr): if len(arr) < 1: return arr pivot = arr[len(arr)//2] left = [x for x in arr if
原创 c-灰度圖彩色化
void Test_fakeColorDis(uint8_t *gray, uint8_t* dstColor, int32_t dstWidth, int32_t dstHeight, int32_t dstStride) {
原创 圖像交叉格式和平坦格式互相轉換(cross->planar, planar->cross)
#include "imghead.h" #include <conio.h> template <typename T> void img_Cross2Planar(T *src, T *dst, int width, int he