随笔

常用图像算法(图像增强)

1、对数图像增强算法       对数图像增强是图像增强的一种常见方法,其公式为: S = c log(r+1),其中c是常数(以下算法c=255/(log(256)),这样可以实现整个画面的亮度增大。 void LogEnh...

python数字搜索的实例

import numpy as np x= np.array([[30,40,0],[0,20,10],[50,0,60]]) print(x.shape) xx=x[:,0:2] print(xx) y = np.where(xx==[30000,4000]) print(len(x[y])) 关键是利用where

C#控制电脑重启、关闭

using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Diagnostics; using System.Runtime.InteropServices; using System.Threading; using Syst...

树莓派安装OpenCV3完整过程

配置并更新树莓派系统 sudo raspi-config // 进入后打开摄像头、SSH sudo apt-get update sudo apt-get upgrade sudo rpi-update 安装OpenCV的相关工具 sudo apt-get install build-essential cmake git pkg-c...