import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2 . imread ( 'messi5.jpg' , 0 ) f = np . fft . fft2 ( img ) fshift = np . fft . fftshift ( f ) magnitude_spectrum = 20 * np . log ( np . abs ( fshift )) plt . subplot ( 121 ), plt . imshow ( img , cmap = 'gray' ) plt . title ( 'Input Image' ), plt . xticks ([]), plt . yticks ([]) plt . subplot ( 122 ), plt . imshow ( magnitude_spectrum , cmap = 'gray' ) plt . title ( 'Magnitude Spectrum' ), plt . xticks ([]), plt . yticks ([]) plt . show () rows , cols = img . shape crow , ccol = rows / 2 , cols / 2 fshift [ crow - 30 : crow + 30 , ccol - 30 : ccol + 30 ] = 0 f_ishift = np . fft . ifftshift ( fshift ) img_back = np . fft . ifft2 ( f_ishift ) img_back = np . abs ( img_back ) plt . subplot ( 131 ), plt . imshow ( img , cmap = 'gray' ) plt . title ( 'Input Image' ), plt . xticks ([]), ...
$ 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