Matlab 图像和常量值之间的逻辑and
我想为位平面切片编写一个代码,而不使用Matlab 图像和常量值之间的逻辑and,matlab,image-processing,logical-operators,Matlab,Image Processing,Logical Operators,我想为位平面切片编写一个代码,而不使用bitget() 我想计算图像和常量值之间的逻辑and,例如5,用于获取位平面5 我该怎么办?你试过比特吗 fifthBit = bitand( I, 32 ) > 0; % assuming I is an integer type
bitget()
我想计算图像和常量值之间的逻辑and,例如5,用于获取位平面5
我该怎么办?你试过比特吗
fifthBit = bitand( I, 32 ) > 0; % assuming I is an integer type