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

Home » Public Forums » archive » Re: voxel_proj and seg fault
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: voxel_proj and seg fault [message #29552 is a reply to message #29551] Wed, 27 February 2002 07:22 Go to previous messageGo to previous message
Jacques Basson is currently offline  Jacques Basson
Messages: 17
Registered: May 1999
Junior Member
David Fanning wrote:
> Jacques Basson (jfb37@removeme.cam.ac.uk) writes:
>
>
>> I seem to be getting segmentation faults when using the interpolate
>> keyword to voxel_proj (strangely enough, removing the rotations gets rid
>> of the segfault, but then that's not exactly useful). It is repeatable
>> on several machines running linux or solaris. xvolume works fine, but is
>> not configurable enough (automating translations / getting a contour
>> plot instead of an image out of the thing...).
>>
>> Does anyone know of a suitable workaround, apart from not using the
>> interpolate keyword - it's nice to have smooth-looking final plots :)
>>
>
> The code you provided runs on my Windows machine,
> but I get a floating underflow warning and the
> result contains all zeros. Are you sure the code
> is doing what you *think* it is doing?
>
> Cheers,
>
> David

When I run it without the /interpolate, I get the proper result (using
my data rather than the data generated in the provided code - so I know
more or less what it is supposed to look like). Running the code
provided without interpolate and doing "tvscl, result, true=3" provides
a cube rotated appropriately. And result is definitely not all zeros.

......
IDL> result = voxel_proj(vol, rgbo)
IDL> help, result
RESULT BYTE = Array[640, 512, 3]
IDL> help, max(result)
<Expression> BYTE = 255
IDL> help, min(result)
<Expression> BYTE = 0
IDL> print, moment(result)
% Compiled module: MOMENT.
246.125 2173.24 -5.12102 24.0455

Cheers,
Jacques
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: tv-like display... for polar data
Next Topic: file date

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

Current Time: Sun Nov 30 12:29:59 PST 2025

Total time taken to generate the page: 2.64066 seconds