Writing on the image using IDL. [message #92300] |
Thu, 12 November 2015 22:07  |
ristight
Messages: 5 Registered: September 2015
|
Junior Member |
|
|
I want to create a program that writes the data to the image, but it does not go well.
What will you do?
Please tell me how to write the data to the image.
Array of image is (3, 3547, 3431).
|
|
|
Re: Writing on the image using IDL. [message #92301 is a reply to message #92300] |
Fri, 13 November 2015 00:23  |
Yngvar Larsen
Messages: 134 Registered: January 2010
|
Senior Member |
|
|
On Friday, 13 November 2015 07:07:06 UTC+1, 山本正志 wrote:
> I want to create a program that writes the data to the image, but it does not go well.
> What will you do?
> Please tell me how to write the data to the image.
> Array of image is (3, 3547, 3431).
Not really enough information to answer this, but something like this might work if your data are floating point:
write_image, 'your_data.png', 'PNG', bytscl(array)
or
write_image, 'your_data_db.png', 'PNG', bytscl(alog(array))
Of course, there are many other formats you could use, see the documentation:
http://www.exelisvis.com/docs/WRITE_IMAGE.html
--
Yngvar
|
|
|