Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Need some explanation for a line of code.

1 回表示 (過去 30 日間)
Wei Qing
Wei Qing 2012 年 7 月 7 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Can any1 tell me why in the "rgb(:,:,1) = (img - img.*edge_img);" line of code, it need to " - img.*edge_img"? what is that "img.*edge_img" mean? I try to delete the " - img.*edge_img" from that line of code, still will get the same output. So can any1 explain it to me? Thank You.

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 7 月 7 日
It is subtracting out the image masked by the edge image. If the edge image is all 0's then that would result in no change. If the edge image is not all 0's then possibly the changes would be subtle.

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by