open cv hist
-
히스토그램 #4OpenCV (C#) 2024. 8. 2. 12:02
도수 분포표중에 하나이며, 구간으로 나눠서 데이터를 시각적으로 표현한 막대그래프이다.X축은 픽셀의 값이고, Y축은 해당 픽셀의 개수이다. 이를 통해서 이미지의 밝은 픽셀과 어두운 픽셀이 어떤 형태로 분포하는지 알 수 있다. 히스토그램의 3가지 중요요소1. 빈도수(BINS) 히스토그램 X축의 간격이다. 픽셀값의 범위가 0~255이고, 빈도수가 8이면, 0~7, 8~15... 248~255 범위로 총 32개의 막대가 생성 된다. 2. 차원수(DIMS) 채널을 이야기한다. R채널 G채널 B채널 혹은 그레이스케일 채널, 여러 채널에 대해서 분석 할 수 있다. 3. 범위(RANGE) 히스토그램 그래프의 X축 범위이다. 특정 픽셀 값 영역만 분석하는데 사용 된다. 시각적으로도 이미지가 밝은지 어두운지 파악이 되지..