octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sub2ind: index out of range


From: Carnë Draug
Subject: Re: sub2ind: index out of range
Date: Thu, 7 Nov 2013 07:30:21 +0000

On 6 November 2013 13:18, Gokhan Acer <address@hidden> wrote:
> Hi,
>
> I try to use image package on octave.
> When I use bwconncomp function,
> there is a bug :
>
> error: sub2ind: index out of range
>
> error: called from:
>
> error:   /Users/gokhanacer/octave/image-2.0.0/bwconncomp.m at line 61,
> column 12
>
> error:
> /Users/gokhanacer/Desktop/deneme_matlab/imge_isleme_dersi/Octave/OctaveDeneme.m
> at line 20, column 4
>
>
> How Can I solve this problem?
>
> Is there experiencing this specific problem?

I think there is a bug, yes. Can you swap the 1 and 2 in that line,
i.e, change it so that it reads:

    P{k} = sub2ind (size (bw), B{k}(:, 1), B{k}(:, 2));

Please report back whether that solves your problem or not.

Carnë


reply via email to

[Prev in Thread] Current Thread [Next in Thread]