【StereoDepth】PytorchでSADの実験
背景
画像の類似性を計算する代表的な方法にSAD(Sum of Absolute Difference)という手法がある。
とりあえずどんな感じなのか視覚的に理解したいと思う。
比較対象
右のイメージを左のDisparityを使ってwarpさせた画像
SAD
赤いフェンスのerrorがちゃんと検知されてる
車の周りも推定がうまく行ってないのをlossがきちんと出ている。
ソースコード
SAD_left = torch.mean(torch.abs(left - estLeft))
SAD_right = torch.mean(torch.abs(right - estRight))
結論
シンプルに優秀!
Author And Source
この問題について(【StereoDepth】PytorchでSADの実験), 我々は、より多くの情報をここで見つけました https://qiita.com/minh33/items/7c5d5dc4243c1e28f1c1著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .