import numpy as np def hist_match ( source , template ): """ Adjust the pixel values of a grayscale image such that its histogram matches that of a target image Arguments: ----------- source: np.ndarray Image to transform; the histogram is computed over the flattened array template: np.ndarray Template image; can have different dimensions to source Returns: ----------- matched: np.ndarray The transformed output image """ oldshape = source . shape source = source . ravel () template = template . ravel () # get the set of unique pixel values and their corresponding indices and # counts s_values , bin_idx , s_counts = np . unique ( source , return_inverse = True , return_counts = True ) t_values , t_counts = np . unique ( template , return_counts = True ) ...
$ curl -o foo.txt http://example.com/foo.txt
답글삭제$ curl -O http://example.com/foo.txt
$ curl -O http://example.com/foo[0-9].txt
$ curl -O http://example.com/{foo,bar,baz}.txt
파일 크기로 찾기: 보다 큰거 모두 찾기
답글삭제$ find ~/ -size +1024k
하드웨어 목록 표시
답글삭제$ sudo lshw
USB 목록표시
$ sudo lsusb
스토리지 목록 보여주기
$ sudo fdisk -l
자유 메모리 보기
답글삭제$ free -m
시스템에 부하 주기
답글삭제$ stress -c 4
코어 수
$ sudo apt-get install stress
tree -L 1 -h
답글삭제look disguise
답글삭제curl ifconfig.me
답글삭제외부 아이피
file cat.jpg
답글삭제curl ipinfo.io
답글삭제내 ip로 위치
pkg-config --modversion opencv
답글삭제pkg-config --cflags opencv
pkg-config --libs opencv
GitHub 퍼블릭키 설정하기
답글삭제http://uiandwe.tistory.com/992