X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 May 2010 08:19 AM by  anon
Smile idl-problem visualization image linux
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 May 2010 08:19 AM
    I have a problem with idl 7.0 for linux (ubuntu 10) When i read an image and i try to view this on a window, it give me an image of the dimension of my pc screen, the image is cut. And the same happen when i write it on a file. "read_jpeg,path_image, image window, 10, xsize=5950, ysize=341 tv, congrid(mercury_map, 5950, 341) image=tvrd(true=3) tv,image,true=3 write_jpeg, path_out+'prova.jpg',image,true=3, quality=100" With win xp, i use the same and all is ok. Why with ubuntu change? How i can solve this problem? Thanks

    Deleted User



    New Member


    Posts:
    New Member


    --
    19 May 2010 08:24 AM
    I have a problem with idl 7.0 for linux (ubuntu 10) When i read an image and i try to view this on a window, it give me an image of the dimension of my pc screen, the image is cut. And the same happen when i write it on a file. "read_jpeg,path_image, image window, 10, xsize=5950, ysize=341 tv, congrid(mercury_map, 5950, 341) image=tvrd(true=3) tv,image,true=3 write_jpeg, path_out+'prova.jpg',image,true=3, quality=100" With win xp, i use the same and all is ok. Why with ubuntu change? How i can solve this problem? Thanks

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 May 2010 05:25 PM
    Dear Francesca, I can see the same thing when trying to have a very long window under a Linux OS. It seems that the OS will cut the window length, instead of let it be as long as it should be. I think the solution will be just to use WRITE_JPEG and then open new jpg file with any jpeg reader in Ubuntu. Why are you using TRUE=3, I though jpeg are TRUE=1. At least the jpeg I used to test. I also noticed that you forgot to add the 3rd dimension to the congrid() function, i.e., in my example: image_rescaled=congrid(image, 3, 5950, 341), /TRUE Then, if I use WRITE_JPEG: write_jpeg, 'image_rescaled.jpg', image_rescaled, /true, quality=100 I get a jpeg file that shows the whole image correctly. Cheers, Fernando
    You are not authorized to post a reply.