Skip to content

Commit

Permalink
[#2] fix: 매개변수 C값 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryuchanghoon committed Feb 6, 2025
1 parent 6a68ae5 commit 65cea49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binari_adaptive_thresholding.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ def draw_grid(image, block_size=51):

# ------ Mean Adaptive Thresholding -------

mean_bin = cv2.adaptiveThreshold(image, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 51, 10)
mean_bin = cv2.adaptiveThreshold(image, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 51, 15)

cv2.namedWindow('mean thresholding', cv2.WINDOW_NORMAL)
cv2.imshow('mean thresholding', mean_bin)


# ------ Gaussian Adaptive Thresholding -------

gaus_bin = cv2.adaptiveThreshold(image, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, 51, 10)
gaus_bin = cv2.adaptiveThreshold(image, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, 51, 15)

cv2.namedWindow('Gaus Thresholding', cv2.WINDOW_NORMAL)
cv2.imshow('Gaus Thresholding', gaus_bin)
Expand Down

0 comments on commit 65cea49

Please sign in to comment.