對於圖像來說:
image.shape[0]——圖片高h
image.shape[1]——圖片長w
image.shape[2]——圖片通道數channels
而對於矩陣來說:
shape[0]:表示矩陣的行數
shape[1]:表示矩陣的列數
對於圖像來說:
image.shape[0]——圖片高h
image.shape[1]——圖片長w
image.shape[2]——圖片通道數channels
而對於矩陣來說:
shape[0]:表示矩陣的行數
shape[1]:表示矩陣的列數
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。