- 스택오버플로어 http://stackoverflow.com/questions/5478519/photo-mosaic-algorithm-how-to-create-a-mosaic-photo-given-the-basic-image-and-a
- 모자이크 아티클 http://drdobbs.com/184404848?pgno=1
- 모자이크 마소 기사 http://www.imaso.co.kr/?doc=bbs%2Fgnuboard.php&bo_table=article&sselect=wr_subject%7Cwr_content&stext=%B8%F0%C0%DA%C0%CC%C5%A9&soperator=0&x=0&y=0
2012년 3월 29일 목요일
mosaic
스캔 책 이미지 사이즈 줄이기에 대한 노력들.
- gimp filter로 해보기 : 간단히 되질 않는다. 포기
- opencv + python 해보기 : filter을 다시 찾아봐야 함.
- python + pil 로 이미지를 palette로 바꾸기 : 검색, 흰색만
- 할일: pil palette 공부하기
2012년 3월 26일 월요일
2012년 3월 19일 월요일
[opencv] ROI
crop으로 검색해서 나옴
http://nashruddin.com/OpenCV_Region_of_Interest_(ROI)
todo
http://nashruddin.com/OpenCV_Region_of_Interest_(ROI)
todo
- python 으로 일단은 해보기
- 매칭관련해서 공부해보기
2012년 3월 17일 토요일
opencv python
opencv, numpy 설치시
cv2 : c++ 바인드, 가장 최신
cv : c 바인드, 예전 버젼
이미지 로우딩 :
import cv2,cv
im = cv2.imread("file.jpg")
im : numpy.ndarray 로 return
src: numpy.ndarray
grey_src = cv2.cvtColor(src : numpy.ndarray, cv.CV_RGB2GRAY)
grey_src : numpy.ndarray
이미지 저장 :
import cv2
cv2.imwrite("파일명", numpy.ndarry=> 위의 im 같은값)
cv2 : c++ 바인드, 가장 최신
cv : c 바인드, 예전 버젼
이미지 로우딩 :
import cv2,cv
im = cv2.imread("file.jpg")
im : numpy.ndarray 로 return
src: numpy.ndarray
grey_src = cv2.cvtColor(src : numpy.ndarray, cv.CV_RGB2GRAY)
grey_src : numpy.ndarray
이미지 저장 :
import cv2
cv2.imwrite("파일명", numpy.ndarry=> 위의 im 같은값)
2012년 3월 16일 금요일
sicp 2.59
#lang racket
(define (element-of-set? x set)
(cond ((null? set) false)
((equal? x (car set)) true)
(else (element-of-set? x (cdr set)))))
(define (adjoin-set x set)
(if (element-of-set? x set)
set
(cons x set)))
(define (intersection-set set1 set2)
(cond ((or (null? set1) (null? set2)) '())
((element-of-set? (car set1) set2)
(cons (car set1)
(intersection-set (cdr set1) set2)))
(else (intersection-set (cdr set1) set2))))
;; 2.59
(define (union-set set1 set2)
(cond ((null? set1) set2)
((element-of-set? (car set1) set2)
(cons (car set1)
(union-set (cdr set1) (cdr set2))))
(else (cons (car set1) (union-set (cdr set1) set2)))))
(union-set '(1 2 3 4) '(2 3 4))
피드 구독하기:
글 (Atom)