Hide a text in an image with a special method.
Show older comments
Hello everyone.I should hide a text in an image but it's not with common methods.first I should divide image's matrix in to 8*8 blocks (the image is in bmp format and it has a 3D matrix.) and then find and sort the variances of each block.After that I should hide the bits of the text in the sorted var matrix by using random numbers. for example assume that the least variance is in 250'th block in green layer and the first element of produced random matrix is 26.Now I should put the first bit of the text in the 26'th element of 250'th block in green layer and the next bit should go to 12's element of 100's block in red layer and it will go on like this. after sorting the variances I have no idea how to deal with the rest of the problem.In other word how I can hide each bit of the text in the determined element of the blocks with lowest variances?
Answers (1)
Image Analyst
on 28 Aug 2021
0 votes
I hide text in images in my File Exchange
Perhaps you can adapt that for your homework.
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!