image - Extraction of the least significant bit of a pixel -


i want extract least significant bit (lsb) of each pixel in image. want know value of lsb in each pixel, whether 1 or 0. how do in matlab?

you can use bitget function , specify bit position of 1, denoting lsb of each pixel. assuming image stored in a, do:

b = bitget(a, 1); 

b same size a tells lsb of each pixel in image.


Comments

Popular posts from this blog

Multilayer CSV to filtered excel -

Listboxes in c# -

ios - Why must I define variables twice in the Header file? -