Transform a Numpy array of a mask

1 次查看(过去 30 天)
Hi! So i am trying to Transform a 1022x1022x3 that contain [boolean , boolean , boolean] elements to a 1022x1022x1 that only contains the boolean at Position [1]. how could I so this?

采纳的回答

darova
darova 2021-7-24
Assume A is your 3D matrix (1024x1024x3)
A1 = A(:,:,1); % extract first matrix

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Elementary Math 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by