본문 바로가기

개인 공부

(6)
Python) numpy 사용 - 행렬 연산 행렬곱 (dot product) - np.dot() import numpy as np def dot(a,b): c=np.zeros((2,4)) for row in range(0,2): for col in range(0,4): temp = 0 for diagonal in range(0,3): temp+=(a[row][diagonal]*b[diagonal][col]) c[row][col]=temp return c a=[[1,2,4], [2,6,0]] b=[[4,1,4,3], [0,-1,3,1], [2,7,5,2]] c=np.array([[1,2,4], [2,6,0]]) d=np.array([[4,1,4,3], [0,-1,3,1], [2,7,5,2]]) print("직접 만든 함수 \n",dot(a,b)) p..
database index 공부자료: https://en.wikipedia.org/wiki/Database_index Database index - Wikipedia From Wikipedia, the free encyclopedia Jump to navigation Jump to search A database index is a data structure that improves the speed of data retrieval operations on a database table at the cost of additional writes and storage space to maintain the index d en.wikipedia.org database index? 추가적인 쓰기 및 인덱스 데이터 구조를 저장하기 위한 ..
Strong Connected Component ※ 이 글은 개인공부 글입니다. ※ https://en.wikipedia.org/wiki/Strongly_connected_component Strongly connected component - Wikipedia Graph with strongly connected components marked In the mathematical theory of directed graphs, a graph is said to be strongly connected or diconnected if every vertex is reachable from every other vertex. The strongly connected components or diconnected co en.wikipedia.org 원문 정..
히스토그램과 히스토그램 역투영 Histogram 영상 데이터에 대한 분포를 알 수 있습니다. 예를 들어 5*5 이미지가 있고 아래와 같은 데이터를 가지고 있다고 가정하면요. [ 1 2 3 2 1 0 9 2 4 8 1 2 3 0 0 0 2 4 5 1 2 4 5 3 1 ] 위의 이미지에 대한 분포는 0~1이 9개 2~3이 9개 4~5이 5개 6~7이 0개 8~9이 2개 이렇게 됩니다. 이걸 표형식으로 보여주는것이 Histogram입니다. 이 정보를 이용해서 얼굴 인식등에 활용할 수 있습니다. 예시 GrayScale(0~255)로 표현된 Lena님의 사진입니다. 우측은 왼쪽 사진에 대한 히스토그램입니다. 길고 가는 막대 2개가 눈에 띄네요. 히스토그램이 들쑥날쑥하면 영상이 고르지 못한것으로 이해할 수 있습니다. Histogram Back ..
RGB, HSV, YCrCb? RGB? 3차원 벡터로 색을 표현하는 방법입니다! RED(255,0,0) GREEN(0,255,0) BLUE(0,0,255) YELLOW(255,255,0), MAGENTA(255,0,255), CYAN(0,255,255) 이렇게 색을 표현할 수 있습니다. HSV? Hue - 색상 Saturation - 채도(색의 선명함) Value - 명도 YCrCb? 이건 말씀드리기가 좀 어렵네요..;; 제가 색상전문가는 아니라서..;; https://en.wikipedia.org/wiki/YCbCr YCbCr - Wikipedia "CbCr" redirects here. For other uses, see CBCR. A visualization of YCbCr color space The CbCr plane at ..
Ford Fulkerson Algorithm ※ 이 글은 개인 공부 글입니다. ※ 출처 : https://en.wikipedia.org/wiki/Ford%E2%80%93Fulkerson_algorithm Ford–Fulkerson algorithm - Wikipedia From Wikipedia, the free encyclopedia Jump to navigation Jump to search algorithm to compute the maximum flow in a flow network (equivalently; the minimum cut) The Ford–Fulkerson method or Ford–Fulkerson algorithm (FFA) is a greedy algorithm that computes en.wikipedia.org..