i want to hide an image into audio file
Mostra commenti meno recenti
i need a coding by using lsb algorithm
6 Commenti
Geoff Hayes
il 27 Dic 2014
What have you tried so far? Please discuss what you have attempted and where you are getting stuck in the code. If you are observing errors, then please include the full error message in your post.
Image Analyst
il 27 Dic 2014
Since images are usually much much larger than audio signals, your audio file would have to be very long. I have an LSB algorithm for hiding images into a 2D array - I suppose you could adapt it for a 1D signal as long as the signal was long enough.
hemalatha
il 5 Gen 2015
hemalatha
il 24 Gen 2015
Image Analyst
il 24 Gen 2015
49 is the ASCII value of 1. I'm not sure what you are doing.
hemalatha
il 2 Feb 2015
Risposte (2)
Parameswaran Bose
il 27 Dic 2014
hi, you can hide an image with audio file. Since I don't know matlab coding, I want to know more details about your problem. what kind of audio file matlab supports. The general thing is convert your image in to color bytes and embed those bytes in to audio data bytes. The code I have used in java is as follows,
int audioByteCount=0;
for(int i=0;i<colorBytes.length;i++){
int colorByte = colorBytes[i];
for(int bit=7; bit>=0; --bit){
int b = (colorByte >>> bit) & 1;
audioBytes[audioByteCount] = ((audioBytes[audioByteCount] & 0xFE) | b );
colorByteCount++;
}
}
rgds Parameswaran Bose
Image Analyst
il 5 Gen 2015
0 voti
Attached is my LSB watermarking code. I think it should work with some minor modifications to handle 1D audio signal.
Categorie
Scopri di più su Audio I/O and Waveform Generation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!