export matrix as image?

1 visualizzazione (ultimi 30 giorni)
raktim banerjee
raktim banerjee il 29 Gen 2011
Good Morning Sir!
I am trying to watermark some value in a 404x474 RGB
image. Exactly watermarking in the blue color matrix(unsigned integer type). converted the matrix into double type and watermarked the value. want to export this double type matrix as an image without loosing any value. So that on the next phase of watermark extraction I can retrieve the matrix from the image.
How to perform this?

Risposte (1)

Jan
Jan il 29 Gen 2011
You can store an image as WxHx3 array using IMWRITE. But the values are either UINT8 or DOUBLE values. You can store an RGB array of type DOUBLE using 16-bit precision per color channel. But this does not allow to store the image "without loosing any value". I do not know animage format, which stores the values with 64 bit precision per channel.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by