detection관련 code.

2020.09.25 22:27 1,596 조회
from matplotlib.image import NonUniformImage
>>> import matplotlib.pyplot as plt

Construct a 2-D histogram with variable bin width. First define the bin edges:

>>>

>>> xedges = [0, 1, 3, 5]
>>> yedges = [0, 2, 3, 4, 6]

Next we create a histogram H with random bin content:

>>>

>>> x = np.random.normal(2, 1, 100)
>>> y = np.random.normal(1, 1, 100)
>>> H, xedges, yedges = np.histogram2d(x, y, bins=(xedges, yedges))


np.histogram2d에서 x,y 그리고 bins가 어떻게 적용되어서 결과가 나오게 되는지 궁금합니다.

(하단에 3개의 이미지 중에 왼쪽 첫번째 이미지가 결과 이미지 입니다.)