次のパラメーターを使用して、openCVでSobelエッジ検出を実行しています。
cv.Sobel(mat, edgemat, 1, 1)
# mat -> source image
# edgemat -> taget output image
# 1 -> xorder (int) – Order of the derivative x
# 1 -> yorder (int) – Order of the derivative y
# apertureSize (int) – Size of the extended Sobel kernel -> its by default set to 3
また、GIMPを使用して画像のソーベルエッジ検出を行いました。
ソースイメージは次
のとおりです。openCVによる出力は次のとおりです。GIMPによる出力は次のとおりです
。
openCVとGIMPによる出力の間になぜこんなに大きな違いがあるのか。GIMPによる出力の品質は、openCVを光年上回っています。