I have intensity values of an image in a 2D matrix array. I want to save this information in the form of an image (.jpeg,bmp,tiff etc). Now each of these image formats have a specific file structure.
Can you people guide me, from where I can get the library or function that takes the intensity information in an array and writes them into image file? and similarly i also want the reverse of this, i.e. reads the intensity values from image file and writes them into an array.