On 1/18/2012 7:29 AM, Ingo Schmid wrote:
I noticed something strange, after issuing my $a16_png, then the rpic
command, help vars does not show it. It's there, but help does not show
it. It does, however, when calling it directly. Even undef did not help.
This is in a pdl2 shell.
The 'help vars' only shows package piddle vars
and not lexical ones.
--Chris
pdl> my $a16_png;
pdl> help vars
PDL variables in package main::
Name Type Dimension Flow State Mem
----------------------------------------------------------------
$a16 Ushort D [256,255] P 0.12MB
pdl> $a16_png;
pdl> help vars
PDL variables in package main::
Name Type Dimension Flow State Mem
----------------------------------------------------------------
$a16 Ushort D [256,255] P 0.12MB
pdl> $a16_png = rpic('tushort_b16.png')
pdl> help vars
PDL variables in package main::
Name Type Dimension Flow State Mem
----------------------------------------------------------------
$a16 Ushort D [256,255] P 0.12MB
pdl> undef $a16_png
a16_png
pdl> undef $a16_png
pdl> $a16_png = rpic('tushort_b16.png')
pdl> help vars
PDL variables in package main::
Name Type Dimension Flow State Mem
----------------------------------------------------------------
$a16 Ushort D [256,255] P 0.12MB
On 01/17/2012 09:19 PM, Chris Marshall wrote:
Nonetheless, the images look ok which
suggests that the *test checks* are failing
and not necessarily the PNM and PNG
image input and output. Ingo will need
to debug that on his end unless you can
reproduce the problem on your end.
--Chris
On Tue, Jan 17, 2012 at 2:53 PM, David
Mertens<[email protected]> wrote:
On Tue, Jan 17, 2012 at 12:49 PM, Chris Marshall<[email protected]>
wrote:
My guess is that the test is checking for equality
rather than approximately.
Could you run the test in the debugger and see
what the value of sum(abs($a16-$a16_png)) is
for the failing test?
What are the data types of the piddles being
compared?
The types are PDL ushorts, so they really should not suffer rounding
errors.
Also, my hunch was wrong: shorts appear to be consistently 16 bits, as
discussed here: http://en.cppreference.com/w/cpp/language/types
David
Thanks,
Chris
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl