|
From: Petr M. <mi...@ph...> - 2006-02-20 17:26:56
|
>> Attached is a patch to fix this bug. It uses a bisecting method. Please
>> check it over and test it. You'll find that the imshow(A,A,A) now works
>> but doesn't look to be the correct brightness. We'll address that problem
>> next.
OK, now the patch, gnuplot does not crash.
On the other hand, it shows the following garbage:
octave|3> A = loadimage ("default.img");
octave|4> imshow(A,A,A);
gnuplot_x11: unknown command
<.'.'.'<.<.<.>/>/>/$@0@0@0,@0@0@03@0@0@0;@0@0@0C@p@p@pJ@p@p@pR@p@p@pZ?p?p?pb>o>o>oi<n<n<nq9m9m9my:m:m:m:m:m:m8l8l8l8l8l8l9,9,9,9m9m9m
>
gnuplot_x11: unknown command
<@0@0@0@0@0@0@p@p@p!@p@p@p)@p@p@p1@p@p@p8@p@p@p@@0@0@0H?p?p?pP>o>o>oW:-:-:-_;-;-;-g;n;n;no:-:-:-v9,9,9,~8l8l8l8l8l8l*e*e*e*%*%*%)$)$)$%(d(d(d,)$)$)$4'd'd'd<($($($D&c&c&cK'd'd'dS'#'#'#[&c&c&cc'd'd'dj'd'd'dr'd'd'dz(d(d(d(d(d(d($($($'d'd'd($($($($($($('#'#'#0&c&c&c8'#'#'#?&c&c&cG'#'#'#O'd'd'dV'#'#'#^'d'd'df'#'#'#n&c&c&cu%c%c%c}($($($*%*%*%
>
gnuplot_x11: unknown command
<.'.'.'<.<.<.>/>/>/$@0@0@0,@0@0@03@0@0@0;@0@0@0C@p@p@pJ@p@p@pR@p@p@pZ?p?p?pb>o>o>oi<n<n<nq9m9m9my:m:m:m:m:m:m8l8l8l8l8l8l9,9,9,9m9m9m
>
octave|5>
> Oh, btw, I made the patch behave similar to the existing routine in that it
> rounds up, like a ceil() function. I didn't look closely, but perhaps you'd
> like the routine to be round(), unless that's been compensated for somewhere
> else already.
I have no idea what you mean. But it does not matter, please send me the
patch as close as to the "traditional" octave or Matlab behaviour as
possible.
Petr
|