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

Home » Public Forums » archive » Re: 3D images
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: 3D images [message #39837 is a reply to message #39833] Mon, 21 June 2004 09:46 Go to previous messageGo to previous message
siliconcube is currently offline  siliconcube
Messages: 11
Registered: June 2004
Junior Member
Hi Jeff,
thank you very much that solved my problem.
Aleks
jnettle1@utk.edu (Jeff) wrote in message news:<330af58b.0406192254.62eefa2f@posting.google.com>...
> Al,
>
> The problem seems to be the way you're making the tif files in
> Photoshop. Photoshop has lots of optional items you can put in tif
> files (including, i think, preserving Photoshop layers now). I'm not
> surprised at all that IDL is having problems reading them. I'd go
> back to Photoshop and try to make the simplest file you can
> make....flatten the image before you save it, make sure it's not
> compressed, etc. Also, note that your code is going to bomb unless
> you have Photoshop save grayscale files instead of RGB mode files.
> The read_tiff routine will assign a [3,m,n] array to the variable
> image that you then try to assign to a single band in the variable
> volume. (I'm sure you know this but you also have to be saving 8-bit
> tif files in Photoshop or otherwise not use byte arrays in IDL) You
> may also want to use the count keyword to findfile and use that in
> setting up the volume (ie, volume = bytarr(1600,1200,count)) and in
> the loop that reads the tiffs (for j = 0, count-1 etc). Anyway, i did
> what you said you did....made a tif file in photoshop, made copies,
> and then ran your code (modified as i suggested above) and it worked
> fine, though i didn't bother sorting the images since they were all
> the same in my rough little experiment. Good luck.
>
> Jeff
>
> siliconcube@yahoo.com (Aleks) wrote in message news:<79140897.0406181249.6e0342b5@posting.google.com>...
>> Hello,
>> this board has been very helpful and I was wondering if anyone could
>> help me with the following.
>> I'm trying to construct a cylinder. I made a circle in photoshop and
>> made 10 copies of the file just renaming it. (example circle_01.tiff,
>> ...._02.tiff etc)
>>
>> this is the code I have (which is barely modified code from Dr.
>> Fannings website) and with the following code i was hoping to get an
>> isosurface of a cylinder and this is the error that I get before I
>> make past the last line:
>> % READ_TIFF: Not a TIFF file, bad magic number 19778 (0x4d42)
>> % Execution halted at: $MAIN$
>> The images are TIFF Files, I checked them from properties tab in
>> windows.
>> when I run query_tiff command I get the following error
>> IDL> ok = query_tiff('test_01.tif', info)
>> % Loaded DLM: TIFF.
>> IDL> print, info.dimensions
>> % Expression must be a structure in this context: INFO.
>> % Execution halted at: $MAIN$
>>
>>
>> files=findfile('*.tif')
>> index=bsort(files, sortedfiles)
>> volume=bytarr(1600,1200,80)
>> for j=0,9 do begin
>> image=read_tiff(sortedfiles[j])
>> volume[*,*,j] = image
>> endfor
>>
>> Thank you
>> Al
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Saving an application state
Next Topic: TeXtoIDL update: Easy Greek letters in IDL

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

Current Time: Wed Oct 15 17:45:51 PDT 2025

Total time taken to generate the page: 0.40096 seconds