原创 wrapping c code in python

wrapping c code in python 1. write c code #include <stdio.h> #include <stdlib.h> int list_month(int i){ swit

原创 demo sRGB vs HSV

demo sRGB < ---- > HSV   http://math.hws.edu/graphicsbook/demos/c2/rgb-hsv.html

原创 structured image vs textured image

structured image vs textured image   structured image: repeated pattern, less radom,systematical perturbation. like農村的瓦

原创 no response after click "System Settings" under Ubuntu16.04

no response after click "System Settings" under Ubuntu16.04 sudo apt-get install ubuntu-desktop  

原创 VGA,DVI,HDMI,DP,USB Type-C

VGA,DVI,HDMI,DP,USB Type-C   https://www.zhihu.com/question/19571221

原创 720p,1080p,4k

  720p: 1280x720 1080p: 1920x1080  4k: 3840x2160  ( 水平方向約有4000個pixel)

原创 noise in digital image

noise in digital image   noise: random variation of brightness or color information in image gaussian noise salt-and pe

原创 正則表達式

正則表達式 查找分辨率 width = int(re.findall(r'_(\d+)x\d+_', filename)[0]) height = int(re.findall(r'_\d+x(\d+)_', filename)[0]

原创 pycharm debug模式下Console消失

pycharm debug模式下Console消失 pycharm version:2019.1.1(Community Edition) fix method:  delete directory C:\Users\jh\.PyChar

原创 convert 8bit/10bit RGB444,YUV444,NV12,NV21 to PNG

convert 8bit/10bit RGB444,YUV444,NV12,NV21 to PNG 下面的代碼寫的粗糙(汗~),將就着看,僅做參考。。。 def yuv2bgr(filename,height,width,bit_dep

原创 Ubuntu 16.04下安裝VM Ubuntu18.04

Ubuntu 16.04下安裝VM Ubuntu18.04 背景: 1. 之前的VM因爲跑指令 disk=0;重新啓動就啓動不了了。。。             2. 已經有一個VM,但是版本是Ubuntu 16.04   步驟:    

原创 [32bit binary issue under 64bit system] no such file for directory

[32bit binary issue under 64bit system] no such file for directory   lib32ncurses5 and libc6-i386     From :https://ubu

原创 C語言fgets函數按行讀取文件

C語言fgets函數按行讀取文件 參考:https://blog.csdn.net/Gordennizaicunzai/article/details/80219787           https://stackoverflow.co

原创 for loop in shell script

for loop in shell script # variable1: x1, x2 # variable2: 100~10000,step=1000 # variable3: 10~100,step=10 for x in x1 x

原创 VirtualBox下虛擬機Ubuntu18.04瀏覽器可以用proxy上網,terminal不可以連網

VirtualBox下虛擬機Ubuntu18.04瀏覽器可以用proxy上網,terminal不可以連網 https://stackoverflow.com/questions/41502868/how-to-set-proxy-for-