In stenography, a hidden image is embedded in a cover image. To get this method first we have to find the RGB matrix of both images i.e. the red green and blue matrix.
The MATLAB function imread can import image files as variables in the workspace. The exact format of the image matrix in the MATLAB workspace depends on its encoding. For the most common situation of a RGB-encoded image, the function "A = imread(filename, fmt)" will return A, a x-by-y-by-3 matrix where x and y are the number of pixels in the height and width dimensions, and the 3rd dimension contains the Red, Green and Blue values for each given pixel.
Have a look at the MATLAB documentation for imread: http://www.mathworks.com/help/matlab/ref/imread.html
See also "Displaying Bit-Mapped Images" in the MATLAB documentation.
The MATLAB function imread can import image files as variables in the workspace. The exact format of the image matrix in the MATLAB workspace depends on its encoding. For the most common situation of a RGB-encoded image, the function "A = imread(filename, fmt)" will return A, a x-by-y-by-3 matrix where x and y are the number of pixels in the height and width dimensions, and the 3rd dimension contains the Red, Green and Blue values for each given pixel.
Have a look at the MATLAB documentation for imread: http://www.mathworks.com/help/matlab/ref/imread.html
See also "Displaying Bit-Mapped Images" in the MATLAB documentation.