Please Help Me. Can I Get a Matlab Code for Image Steganography Using Channel Differences

3 views (last 30 days)
Hello everyone.. I have final project about steganography with algoritm Vibrant Color. Technique of this algoritm are :
  1. Use one of the three channels as the indicator. The indicator sequence can be made random, based, on a shared key between sender and receiver.
  2. Data stored in one of the two channels other than the indicator. The channel whose color value is lowest among the two channels other than that of the indicator, will store the data in its least significant bits.
  3. Instead of storing a fixed number of data-bits per channel, variable numbers of bit are to be stored depending on the color value of the channel. The lower the value, the higher the data-bits to be stored.
  4. To retrieve data, need to know which channel stores the data-bits. This is done by looking at the least significant bits of the two channels other then the indicator : # if the bits are same, then the channel following the indicator in cyclic order stores the data. Otherwise, the chaannel which precedes the indicator in cyclic order stores the data.
  5. Therefor, we needed modified last bit of channel other indicator channel and channel with data. Do this process if needed.
Help please..
  4 Comments

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 20 Jan 2014
To get a random number between 1 and 3, use randi:
key = int32(randi(3, 1))
then do the mod thing, like you already have, except I made key an integer so you don't need to call uint8().
ind = mod(key,3);
If that what you mean?
  2 Comments
Nurmi
Nurmi on 20 Jan 2014
key will be entered before encoding process :
%%Input Key
key = input('\nEnter Between 1 - 100:\n');
if key < 1 || key > 100
error('Invalid');
end
key = uint8(key);
and then i wanna using the key to encoding process by modulus.

Sign in to comment.

Categories

Find more on Encryption / Cryptography in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!