回答編集履歴
1
参考URLの差し替え
answer
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
[OpenCV: High-level GUI](https://docs.opencv.org/master/d7/dfc/group__highgui.html#ga453d42fe4cb60e5723281a89973ee563)
|
2
|
+
> If the image is 8-bit unsigned, it is displayed as is.
|
3
|
+
If the image is 16-bit unsigned or 32-bit integer, the pixels are divided by 256. That is, the value range [0,255*256] is mapped to [0,255].
|
4
|
+
If the image is 32-bit or 64-bit floating-point, the pixel values are multiplied by 255. That is, the value range [0,1] is mapped to [0,255].
|
5
5
|
|
6
6
|
とのことです。
|
7
7
|
`img_dst`のdtypeはint32になっていました。うまく表示されないのはそのためです。
|