Skip to content

Commit

Permalink
Merge pull request gzr2017#21 from kokosabu/fix_q22
Browse files Browse the repository at this point in the history
Q22の修正
  • Loading branch information
yoyoyo-yo authored Mar 3, 2019
2 parents 2624182 + 17b625b commit 5d34518
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Question_21_30/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ xout = { a (xin < c)
xout = s0 / s * (xin - m) + m0
```
|入力 (imori.jpg)|出力 (answer_22_1.jpg) |ヒストグラム(answer_22_2.png)|
|入力 (imori_dark.jpg)|出力 (answer_22_1.jpg) |ヒストグラム(answer_22_2.png)|
|:---:|:---:|:---:|
|![](imori.jpg)|![](answer_22_1.jpg)|![](answer_22_2.png)|
|![](imori_dark.jpg)|![](answer_22_1.jpg)|![](answer_22_2.png)|
答え >> [answer_22.py](https://github.com/yoyoyo-yo/Gasyori100knock/blob/master/Question_21_30/answer_22.py)
Expand Down
2 changes: 2 additions & 0 deletions Question_21_30/answer_22.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

out = img.copy()
out = s0 / s * (out - m) + m0
out[out < 0] = 0
out[out > 255] = 255
out = out.astype(np.uint8)

# Display histogram
Expand Down
Binary file modified Question_21_30/answer_22_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Question_21_30/answer_22_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5d34518

Please sign in to comment.