MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Internazionale
on 19 Mar 2013

i have matrix A(64x72). A is bit number. i want to embed every number in A to last bits of image B(RGB) after dec2bin process. the size of image is 64x64. how to embed A to last bit of B (LSB process) ?

Answer by Image Analyst
on 19 Mar 2013

I'm not a steganography expert, and I don't think any of the regulars here are. So I suggest you find a method in VisionBib in one of these sections:

23.3.8 Image Hiding, Data Hiding, Steganography, Steganalysis 23.3.8.1 Data Hiding, Steganography, LSB, Least Significant Bit 23.3.8.2 Halftone Images, Compressed Images: Image Hiding, Data Hiding, Steganography 23.3.8.3 Surveys, Image Hiding, Data Hiding, Steganography

Then we can help after you've made an attempt at coding up your chosen algorithm in MATLAB.

## 5 Comments

## Walter Roberson

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/67735#comment_137458

Could you clarify the size of A?

Could you give a small example? I suspect there is a communication problem with some of the words.

## Internazionale

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/67735#comment_137462

size A(64x72). A is bit number, value of A(1,1) until A(64,72) just between 0 and 1. total 4068 of A, i want to do process LSB, embedding every value of A to image B. image B has size 64x64.

## Jan Simon

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/67735#comment_137545

@Internazionle: I've edited the typo in the original question to clarify the dimensions of A - this is less confusing than hiding important details in comments.

What is "a bit number"? What does "total 4068" mean? How do you want to embed 64*72 values in 64*64 pixels? Please do not let us guess so many relevant details.

## Image Analyst

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/67735#comment_137546

What does the "last bits of image" mean when the image is RGB, which is composed of three gray scale image planes (color channels)? And where did you post your images? You forgot to tell us.

## Internazionale

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/67735#comment_137600

actually, A is set of coefficient (64x4). i converted it to binary number, each coefficient becomes 18 bits. So the array becomes 64x72. i want to embedding this bits (coefficient) to cover image using LSB method. the size of cover image is 64x64. i want to embed the array of bits to cover image. no matter in what components. the important is i can embedding the bits of coefficient and after that i can extract back (bitget).