As I know the simple way to calculate the image size=width x length x bpp (bits per pixel). Is the bits per pixel the same for every image of the same size?
thanks for replying. actually, I knew about the bit format. But, I wonder the file size and bits per pixel: e.g: info = imfinfo('Cameraman256.png') using the MATLAB provide different file size for each different image of same size and of same format. In this sense, what is the bits per pixel general formula for an image?
There many techniques of performing steganography. Consider, you are applying image steganography and your scheme embeds in the prediction errors. Let the scheme embeds in 0 and 1 valued prediction errors.
1. Now apply a predictor in an image.
2. Calculate the prediction errors.
3. After measuring the prediction errors in an image, compute the number of 0 and 1 valued errors.
4. The measured number is your highest payload in that image is your message is long.
5. Thus, you can measure the possible highest payload in an image before embedding data.