[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: checkerboard Function in octave
From: |
Juan Pablo Carbajal |
Subject: |
Re: checkerboard Function in octave |
Date: |
Thu, 29 Nov 2012 14:51:17 +0100 |
On Thu, Nov 29, 2012 at 2:49 PM, Juan Pablo Carbajal
<address@hidden> wrote:
> On Thu, Nov 29, 2012 at 2:29 PM, pantxo diribarne
> <address@hidden> wrote:
>> Hello,
>>
>> I have a preliminary version of checkerboard (see attached), though I don't
>> know if it conforms to ML one.
>>
>> Pantxo
>>
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://mailman.cae.wisc.edu/listinfo/help-octave
>>
>
> Pancho,
> Hey, thanks a lot for the initiative!
> The function seems compatible to me, according to
> http://www.mathworks.com/help/images/ref/checkerboard.html
>
> The only thing I noticed the following
>
>> unique ( checkerboard ())
> ans =
>
> 0.00000
> 0.51000
> 1.00000
>
> Shouldn't there be only 0's and 1's?
> Removing the line 43 seems to fix this. Why were you doing this
> multiplication?
Forget what I said, I see that ML function does it as well. The
function seems good to me. Please submit it to the image package or
directly to core using the patch tracker at savannah.
Cheers