lsb substitution tohide the data in another data

1 view (last 30 days)
Enter the no of LSB bits to be subsituted- 5 Error using bitcmp ASSUMEDTYPE must be an integer type name.
Error in Steg (line 15) S = uint8(bitor(bitand(x,bitcmp(2^n-1,8)),bitshift(y,n-8))); %Stego

Answers (1)

Walter Roberson
Walter Roberson on 1 Apr 2017
bitcmp cannot be used to complement only one bit: it does all of the bits at the same time.
You can bitset to set a bit to bitcmp of an extracted bit.

Community Treasure Hunt

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

Start Hunting!