User Tools

Site Tools


research:201712

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
research:201712 [2018/07/18 15:03] dongheeresearch:201712 [2018/07/18 15:05] (current) donghee
Line 28: Line 28:
 ``` ```
 docker exec -it containerid /bin/bash     docker exec -it containerid /bin/bash    
-```    +```
  
 ## Finding Lines of Color ## Finding Lines of Color
Line 41: Line 41:
          
 color_select[thresholds] = [0, 0, 0] color_select[thresholds] = [0, 0, 0]
-```    +```
  
 ndarray index and slicing ndarray index and slicing
Line 53: Line 53:
 ``` ```
                  
-```        +```
 c[:,0,0] # 가장 왼쪽 컬럼 빨간 성분  c[:,0,0] # 가장 왼쪽 컬럼 빨간 성분 
 array([  0,  27,  54,  81, 108, 135, 162, 189, 216]) array([  0,  27,  54,  81, 108, 135, 162, 189, 216])
 ``` ```
  
-```        +```
 c[:,:,0] # 모든 요소의 빨간성분 c[:,:,0] # 모든 요소의 빨간성분
 array([[  0,   3,   6,   9,  12,  15,  18,  21,  24], array([[  0,   3,   6,   9,  12,  15,  18,  21,  24],
Line 70: Line 70:
        [216, 219, 222, 225, 228, 231, 234, 237, 240]])            [216, 219, 222, 225, 228, 231, 234, 237, 240]])    
 ``` ```
- 
  
 thresholds를 selector로 사용했다. thresholds를 selector로 사용했다.
Line 76: Line 75:
 numpy.where를 참고 numpy.where를 참고
  
-```    +```
 x = np.array([True, False, True, False]) x = np.array([True, False, True, False])
 y = np.arange(4) # [0 1 2 3 ] y = np.arange(4) # [0 1 2 3 ]
Line 97: Line 96:
 blur_gray = cv2.GaussianBlur(gray,(kernel_size, kernel_size),0) blur_gray = cv2.GaussianBlur(gray,(kernel_size, kernel_size),0)
 ``` ```
 +
 왜 GaussianBlue를 하지? 노이즈 제거. 왜 GaussianBlue를 하지? 노이즈 제거.
 커널은 함수로 N x N matrix의 합성곱(convolution)  커널은 함수로 N x N matrix의 합성곱(convolution) 
  
 Canny Canny
-```        +```
 edges = cv2.Canny(blur_gray, low_threshold, high_threshold) edges = cv2.Canny(blur_gray, low_threshold, high_threshold)
 ``` ```
research/201712.1531926192.txt.gz · Last modified: 2018/07/18 15:03 by donghee