Bug in Band.  Invalid components are handled in different ways: it either
lists the indices of invalid entries in a referential invalid component or
tags the invalid entries in a dependent component,  depending on which
requires the least memory.  In this case its using a dependent component.

Unfortunately, Band seems determined to interpolate all positions-dependent
components, and does so using type float,  So the "interpolated" invalid
positions component is type float, which is wrong.  I've fixed the source
to avoid interpolating dependent invalid components.  You can certainly
make this work by setting cull=1, but that irregularizes the data.  Of
course, the output of and will be irregular, anyway.

Greg

Randall Hopper <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 09/20/2001
12:51:37 PM

Please respond to [email protected]

Sent by:  [EMAIL PROTECTED]


To:   [email protected]
cc:
Subject:  [opendx-users] Band error



I'm trying to band the pixels in a volume using Band.  But I'm not sure why
I get this error:

------------------------------------------------------------------------------

image = Construct( [0,0], {[0,1],[1,0]}, [3,3], {0,1,2,3,4,5,6,7,8} );
incl = Include( image, min=1, max=7, cull=0 );
band = Band( incl );

 0:  Band: 'value' defaults to mean: 4 .
 0:  ERROR:  39::/Band:0: Invalid data: dependent invalid data component
must be scalar bytes
------------------------------------------------------------------------------


Any ideas?

Also, how can this best be done without converting everything to explicit
positions and connections?  Is Compute the fastest way?

Thanks,

Randy

--
Randall Hopper (mailto:[EMAIL PROTECTED])
Lockheed Martin Operation Support
EPA Scientific Visualization Center
US EPA MD/24 ERC-1A; RTP, NC 27711


Reply via email to