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

Home » Public Forums » archive » IsoSurface
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IsoSurface [message #39727] Wed, 09 June 2004 14:44 Go to previous message
siliconcube is currently offline  siliconcube
Messages: 11
Registered: June 2004
Junior Member
Hi all,
ok here is the problem I have: I'm trying to run a test on different
images to figure out how things work. Previously I was helped to find
the size of my tiff image. I modified the code accordingly.
Unfortunatelly, when I try to run this code on my images the first
Window function shows me all my images but when the execution gets to
the second Window Function I lose IDL ie it crashes. I have 81 nearly
identical image. (if you would like to see the image you can check it
out here http://www.geocities.com/siliconcube/tree_01.tif
images were modified with MatLab). Can anyone help me identify the
problem, is my image not suitable for Iso Surface or am I doing
somethign wrong =/.

Thanks
Aleks


files=findfile('*.tif')
index=bsort(files, sortedfiles)


volume=bytarr(761,671,81)

for j=0,80 do begin
image=read_tiff(sortedfiles[j])
volume[0,0,j] = image
endfor

Window, Title='Original Image Slices', XSize=800, YSize=500, 1,
XPos=0, YPos=0
LoadCT, 0
Device, Decomposed=0
FOR j=0,49 DO TV, volume[*,*,j], j

Window, 6, XSize=800, YSize=800, Title='Test IsoSurface'
Scale3, XRange=[0,760], YRange=[0,670], ZRange=[0,80], AZ=-150
Shade_Volume, volume, 81, vertices, polygons, /Low
theHead = PolyShade(vertices, polygons, /T3D)
TV, theHead



end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array indices and lookup tables
Next Topic: Super/sub-script in widget program?

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

Current Time: Fri Oct 10 09:17:29 PDT 2025

Total time taken to generate the page: 0.24129 seconds