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
Post a Comment