comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » JPEG image help - Easy for people who understand IDL?!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: JPEG image help - Easy for people who understand IDL?! [message #82393 is a reply to message #82299] Thu, 06 December 2012 15:24 Go to previous messageGo to previous message
Rebecca C is currently offline  Rebecca C
Messages: 5
Registered: December 2012
Junior Member
Three commands is all it would take?! Wow, I'm really doing this wrong! And unfortuanately this is the *end* of the semester, so we should be winding down now.

Our lesson on jpeg files was one slide long, and told us "read_JPEG" was the thing to do, and that we could figure everything else out ourselves based on array manipulation, which is what I learned last week! Anyway, making up and googling possible commands and guessing how to place brackets for the right results is not working out too well for me.

I think that both images are well-contained with a bit of extra space in a 385x333 window.

Ocean is 367 x 137, and Sky is 259 x 194. I thought I would try to "rebin" one of them so they match array sized, but I only reached errors.


Additionally, here's the homework assignment:

There are two picture files attached with this email, merge the two into one, with the sky on top while the ocean on bottom. But please keep the top and bottom portions the same size and show as many clouds as you can in your final picture.

Save your picture following these steps:

1. Set a window matching your picture size (assuming a name as xyz)
2. tv, xyz, true=1
3. write_jpeg, 'your filename', tvrd(/true), /true


which is why I thought to use TV in the first place.
I can't seem to find any good explanations of how to move around the arrays of JPG's or show one on top of the other, so I guess I'm resorting to workarounds like changing the window size and hoping for the best. Anything I try to do that worked for text and integer arrays, doesn't seem applicable now.
Any suggestions on what I'm missing?
Thanks again!!
- Rebecca
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Two new IDL Help Articles describing how to use the Workbench are made available now.
Next Topic: Obtaining all values of an HDF5 attribute w/o looping

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 13:24:37 PDT 2025

Total time taken to generate the page: 1.04151 seconds