matlab中圖像掩模 | 2個二維數組的掩模

參考:https://www.cnblogs.com/bithuaning/p/6925037.html

測試:

arr=[1 2 3;4 5 6;7 8 9]
mask=[1 0 1;0 1 0;1 0 1];
ret = arr.*mask

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章